Zoekt: Reduce zoekt_nodes frequent update
What does this MR do and why?
There are two changes:
- Adjust the tasks pull frequency based on the number of pending
tasks. If the number ofpendingtasksis more than theconcurrencylimit of anodethen the pull frequency will be500mselse it will be10s. This will optimize the pulling of tasks. - Save the
nodeonly when theupdated_atis older than5s. This will reduce thezoekt_nodesupdate load.
Related: #499124 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Edited by Ravi Kumar