ovis icon indicating copy to clipboard operation
ovis copied to clipboard

producer/transport connection redundant logs

Open baallan opened this issue 4 years ago • 2 comments

As in v3, v4 needs connection-related log messages related to reasonably-expected failures to be issued once per incident instead of repeated at the attempt interval. Logs shouldn't explode because a sampled node is down.

baallan avatar Aug 18 '20 16:08 baallan

Hi @baallan, please propose a design to be discussed.

tom95858 avatar Aug 22 '20 01:08 tom95858

Barring a refactoring of logging in v4, I would add a log_status int in struct ldmsd_prdcr and a set of bit flags (e.g. PRDCR_LOG_REJECTED, PRDCR_LOG_ERROR) handled such that if the bit is set, the message is suppressed (having already been issued). A successful connection should clear the flag(s).

baallan avatar Aug 24 '20 16:08 baallan