Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flex counter] Flex counter threads consume too much CPU resources. #1925

Merged
merged 5 commits into from
Nov 18, 2021
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions counterpoll/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,15 @@ def watermark():
""" Watermark counter commands """

@watermark.command()
@click.argument('poll_interval', type=click.IntRange(1000, 30000))
@click.argument('poll_interval', type=click.IntRange(1000, 60000))
StormLiangMS marked this conversation as resolved.
Show resolved Hide resolved
def interval(poll_interval):
""" Set watermark counter query interval for both queue and PG watermarks """
"""
Set watermark counter query interval for both queue and PG watermarks
neethajohn marked this conversation as resolved.
Show resolved Hide resolved
This counter group causes high CPU usage when polled,
increase the interval up limit to 60 seconds.
This is a short term solution and
should be changed once the performance is enhanced
"""
configdb = ConfigDBConnector()
configdb.connect()
queue_wm_info = {}
Expand Down