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 1 commit
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: 5 additions & 5 deletions counterpoll/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def queue():
""" Queue counter commands """

@queue.command()
@click.argument('poll_interval', type=click.IntRange(100, 30000))
@click.argument('poll_interval', type=click.IntRange(100, 60000))
def interval(poll_interval):
""" Set queue counter query interval """
configdb = ConfigDBConnector()
Expand Down Expand Up @@ -56,7 +56,7 @@ def port():
""" Queue counter commands """

@port.command()
@click.argument('poll_interval', type=click.IntRange(100, 30000))
@click.argument('poll_interval', type=click.IntRange(100, 60000))
def interval(poll_interval):
""" Set queue counter query interval """
configdb = ConfigDBConnector()
Expand Down Expand Up @@ -133,7 +133,7 @@ def pg_drop(ctx):
ctx.obj.connect()

@pg_drop.command()
@click.argument('poll_interval', type=click.IntRange(1000, 30000))
@click.argument('poll_interval', type=click.IntRange(1000, 60000))
@click.pass_context
def interval(ctx, poll_interval):
"""
Expand Down Expand Up @@ -203,7 +203,7 @@ 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 """
configdb = ConfigDBConnector()
Expand Down Expand Up @@ -247,7 +247,7 @@ def tunnel():
""" Tunnel counter commands """

@tunnel.command()
@click.argument('poll_interval', type=click.IntRange(100, 30000))
@click.argument('poll_interval', type=click.IntRange(100, 60000))
def interval(poll_interval):
""" Set tunnel counter query interval """
configdb = ConfigDBConnector()
Expand Down