Skip to content

Cache Expensive Index Stats in TransportClusterStatsAction (#63943)#64195

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:63943-7.x
Oct 27, 2020
Merged

Cache Expensive Index Stats in TransportClusterStatsAction (#63943)#64195
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:63943-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

Follow up to #62753, which moved this expensive method off of the transport threads.
Often times monitoring will hit this endpoint every few seconds while the metadata
will likely change at a much slower interval.
Given that in practice the computation of the stats might take up to a minute for large
cluster states, caching them on a best-effort basis seems like a reasonable improvement.

backport of #63943

Follow up to #62753, which moved this expensive method off of the transport threads.
Often times monitoring will hit this endpoint every few seconds while the metadata
will likely change at a much slower interval.
Given that in practice the computation of the stats might take up to a minute for large
cluster states, caching them on a best-effort basis seems like a reasonable improvement.
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Monitoring)

@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Oct 27, 2020
@original-brownbear original-brownbear merged commit c5fa52a into elastic:7.x Oct 27, 2020
@original-brownbear original-brownbear deleted the 63943-7.x branch October 27, 2020 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Core/Infra/Monitoring DEPRECATED, DO NOT USE Team:Data Management (obsolete) DO NOT USE. This team no longer exists.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants