elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.51k stars 8.06k forks source link

[Task Manager] Perform true partial updates when claiming and releasing tasks #187704

Open mikecote opened 2 weeks ago

mikecote commented 2 weeks ago

When the mget does a bulkUpdate to change task statuses from idle to claiming or running, it uses the task store's bulkUpdate. The bulkUpdate under the hood uses the saved-object repository which recently got changed to support downward-compatible updates (https://github.com/elastic/kibana/issues/152807) by performing a get + Kibana side update before calling index. These extra requests add latency to task runtime and load to Elasticsearch that we do not need when rolling upgrades isn't a concern for claiming and releasing tasks.

Requirements

elasticmachine commented 2 weeks ago

Pinging @elastic/response-ops (Team:ResponseOps)