Skip to content

Commit

Permalink
[flex counter] Flex counter threads consume too much CPU resources. s…
Browse files Browse the repository at this point in the history
…onic-net#9202 (sonic-net#1925)

* [flex counter] Flex counter threads consume too much CPU resources. sonic-net#9202

Increase the interval up lmit from 30 seconds to 60 seconds

* only modify the interval of watermark counter group

* fix merge conflict

* fix commit issue
  • Loading branch information
StormLiangMS committed Nov 18, 2021
1 parent 2ec47a5 commit 9ab6c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion counterpoll/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,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))
def interval(poll_interval):
""" Set watermark counter query interval for both queue and PG watermarks """
configdb = ConfigDBConnector()
Expand Down

0 comments on commit 9ab6c51

Please sign in to comment.