[crm] syslog generation handling for single threshold for different b… #1056
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…indpoints
What I did
Updated threshold checking in a way that Exceed Threshold syslog message gets generated when the usage for any of the ACL group(bindpoint) exceeds the configured High Thresholds and gets cleared when usage of all the ACL group falls below configured low Threshold.
Why I did it
There is single threshold low and high range for multiple ACL group (similarly for ACL tables as well), but multiple bindpoints. The usage can be low for some bindpoints and higher for other bindpoints. which leads to generation of continuous syslog message generation with THRESHOLD_EXCEEDED and THRESHOLD_CLEAR messages at the same time.
Exceeded Threshold message should get generated only when resource count for any acl group exceeds the Max Thresholds and gets cleared when it falls below the lower threshold for all the acl groups.
How I verified it
Configure CRM configure thresholds for ACL group.
Create ACL group with different bindpoints such that
for some bindpoints the usage is higher than the configured threshold and
for some bindpoints threshold is lower than the configured high threshold.
Configure crm polling interval
Observe that the Threshold Exceeded syslog messages are getting generated only once for the ACL group. Verify that no Threshold Clear messages are seen.
Now release the ACL resources and observe that the Clear messages gets generated only when the ACL group usage for all bindpoints falls below than the configured low threshold.
Details if related