-
Notifications
You must be signed in to change notification settings - Fork 689
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shutdown manager: use filter on downstream_cx_active stats url #6523
shutdown manager: use filter on downstream_cx_active stats url #6523
Conversation
Add a filter to prometheus stats url so that only the desired stats are returned. This improves the performance especially in clusters with high number of routes Signed-off-by: Ahmad Karimi <[email protected]>
Signed-off-by: Ahmad Karimi <[email protected]>
Signed-off-by: Ahmad Karimi <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! just a couple nits
Signed-off-by: Ahmad Karimi <[email protected]>
Signed-off-by: Ahmad Karimi <[email protected]>
Signed-off-by: Ahmad Karimi <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6523 +/- ##
=======================================
Coverage 81.64% 81.64%
=======================================
Files 133 133
Lines 15873 15873
=======================================
Hits 12959 12959
Misses 2620 2620
Partials 294 294
|
…ctcontour#6523) Add a filter to prometheus stats url so that only the desired stats are returned. This improves the performance especially in clusters with high number of routes Signed-off-by: Ahmad Karimi <[email protected]> Signed-off-by: Saman Mahdanian <[email protected]>
The PR adds a query param to the stats URL used in the shutdown-manager when waiting for the active connections to drain.
In clusters with a high number of routes (such as ours in Snapp with over 3000 routes), the
/stats/prometheus
response size is above 80MBs. This makes rendering and fetching the URL take a few seconds.The introduced filter makes rendering faster and the response time shorter. Also, it reduces the time required for parsing and searching the response.
An example of the response when utilizing the filter:
Comparison of total request time before and after the filter: