elastic / kibana

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

Perform true partial updates when updating the alerting rule after execution #192397

Open mikecote opened 1 week ago

mikecote commented 1 week ago

When an alerting rule finishes running, it updates select fields within the rule saved-object to reflect the new timestamp it last run, the success/failure outcome, etc. The saved-object update method 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 when running many rules add extra latency and I/O to Elasticsearch that we do not need to perform when updating rules at the end of their execution.

Definition of Done

elasticmachine commented 1 week ago

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