Add node.task_count to internalAPI
What does this MR do and why?
This MR adds task_count as a new internalAPI parameter. We'll need it to decide how many jobs to give to the indexer from GitLab to avoid indexing saturation.
Related to Zoekt Sharding and Replication (&11382 - closed)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Export
GDK_DIRexport GDK_DIR=<PATH_TO_GDK> - Execute Zoekt indexer in GDK mode
make gdk - Tail
log/development.log - Verify that you see
node.task_countas a parameter for/api/v4/internal/search/zoekt/<UUID>/tasks - It will be 0 if you don't have in-progress indexing operations, but you can try to time an indexing request to see how it increments
Edited by Dmitry Gruzd