Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[FEATURE] AutoRange #38706
AutoRange is a feature that helps to find and to apply the optimal limits for a service. It is an update for the docker collector and require swarm mode to be enabled.
This collector extension was thought as a way to monitor and predict the optimal limits for a service. The goal was to find the point where a service could function properly, but still save as much resources as possible. It was written as a way to answer the question
The logic behind the feature can be described in 3 points:
The functionality is declared by adding the
services: myservice: autorange: memory: cpu%:
The available keys are:
services: myservice: autorange: memory: min: "110000" max: "120000" threshold%: "10" cpu%: min: "60" max: "70"
This functionality is deployed with
Thing that could be improved:
I'm open to any suggestion on how to refine the code/feature to better suit the docker scheme.
This was referenced
Feb 11, 2019
@@ Coverage Diff @@ ## master #38706 +/- ## ========================================== - Coverage 36.55% 36.42% -0.14% ========================================== Files 610 613 +3 Lines 45395 45869 +474 ========================================== + Hits 16596 16706 +110 - Misses 26507 26865 +358 - Partials 2292 2298 +6