Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently controller waits for `pollingInterval` after each `doWork` run that takes `W` time long. Work rate and metrics counter change rate is therefore equal to `1 / (pollingInterval + W)` which makes it hard to configure alerts based on the counter change rate thresholds due to unknown `W`. This change runs controller work cycle at fixed rate of `1 / pollingInterval`. For the existing deployments the side effect would be reduced work cycle and increased API request rates, e.g. for `W` of 15s and default `pollingInterval` of 30s the work cycle is reduced from 45s to 30s (-33%). Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
- Loading branch information