From 9ab6c515f53ae296db97094af24773c636261584 Mon Sep 17 00:00:00 2001 From: StormLiangMS <89824293+StormLiangMS@users.noreply.github.com> Date: Wed, 17 Nov 2021 17:56:40 -0800 Subject: [PATCH] [flex counter] Flex counter threads consume too much CPU resources. #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 --- counterpoll/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/counterpoll/main.py b/counterpoll/main.py index 27557c170d21..e61d0e96ccef 100644 --- a/counterpoll/main.py +++ b/counterpoll/main.py @@ -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()