Skip to content

Commit

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

* [flex counter] Flex counter threads consume too much CPU resources. #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 authored and qiluo-msft committed Nov 23, 2021
1 parent ec9e5ee commit 239cb5c
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 @@ -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))
def interval(poll_interval):
""" Set watermark counter query interval for both queue and PG watermarks """
configdb = swsssdk.ConfigDBConnector()
Expand Down

0 comments on commit 239cb5c

Please sign in to comment.