[8.2] [MOD-12069] Add *_pending_jobs metrics#7626
Merged
Conversation
* align info/* to active_coord * add APIs to get queues length * add to info * fix * test * fix test * catch general error * rename * fix moduleArgs * rename * rename test_active_worker_threads * rename to wworketrs (cherry picked from commit ea0476a)
JoanFM
approved these changes
Dec 3, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 8.2 #7626 +/- ##
=======================================
Coverage 89.50% 89.50%
=======================================
Files 253 253
Lines 41205 41219 +14
Branches 3725 3725
=======================================
+ Hits 36879 36894 +15
+ Misses 4277 4276 -1
Partials 49 49
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MOD-12069 Multi threaded section
MOD-12696 number of queries waiting in the shards queue
MOD-12697 number of pending jobs in “low priority queue”
MOD-12831 test_info_modules:test_pending_jobs_metrics_search Extend output on timeout
backport #7556 and #7609 to
8.2Note
Add threadpool getters and INFO MODULES metrics for workers’ high/low priority pending jobs, with workers wrappers and new tests.
redisearch_thpool_high_priority_pending_jobsandredisearch_thpool_low_priority_pending_jobsto fetch queue lengths (atomic reads).MultiThreadingStatswithworkers_low_priority_pending_jobsandworkers_high_priority_pending_jobs.GlobalStats_GetMultiThreadingStats()to read workers’ active thread count and pending job counts without locking.multi_threadingsection, addsearch_workers_low_priority_pending_jobsandsearch_workers_high_priority_pending_jobs.workersThreadPool_LowPriorityPendingJobsCount()andworkersThreadPool_HighPriorityPendingJobsCount()wrappers.wait_for_conditionhelper.FT.SEARCHandFT.AGGREGATEwith paused/resumed workers.Written by Cursor Bugbot for commit a544a18. This will update automatically on new commits. Configure here.