-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Searchable Snapshot] Define additional metrics needed for searchable snapshots #4968
Comments
Path forward for the additional metrics for Searchable Snapshots. Comments and feedback are appreciated. OverviewSearchable snapshots launched as an experimental feature with v2.4.0. As a part of GA, we will add in metrics to keep track of different components on the search capable nodes. This document outlines the metrics currently in use by OpenSearch and lays out the path forward for Searchable snapshots metrics. Current Design DecisionsSearchable snapshots introduced indices which can be queried without downloading all the segment files onto the node, and instead fetching parts of the segment files on-demand as the query dictates. These parts, also known as blocks, will be cached on the nodes. The design decisions for caching are listed out here. Currently Emitted MetricsOpenSearch currently emits the following metrics around querying and caching which will serve as basis for the searchable snapshot metrics. Metrics for querying
How to get these metrics? Metrics for caching (Query Cache)
How to get these metrics? Metrics for storage/node stats
How to get these metrics? Proposed MetricsMetrics for queryingQuery profiling provides the necessary breakdown and metrics regarding the query execution. Searchable snapshot query profiles will be updated to add download metrics which will demonstrate the amount of time spent in fetching the data as well as the number of bytes downloaded from the repository. Future work: Expose an API to fetch node level query metrics and cache metrics for searchable snapshots. Metrics for cachingBased on the cache metrics above, we will define the new cache metrics for
We will update the Metrics for storageThe storage metrics already defined as a part of the OpenSearch service will be sufficient for defining the overall metrics. There will be updates to the Slow logSlow logs are defined per index and help the customers keep track whenever an indexing or search operation goes above the defined threshold. Docs: https://opensearch.org/docs/latest/opensearch/logs/#slow-logs Future work: Consume the framework defined by the above metrics for querying and caching to add additional details to the slow log around time consumption for block downloads, cache usage statistics. |
This task focuses on defining the required metrics needed by searchable snapshots. There are a bunch of questions that need to be answered as a part of the original design discussion on caching here.
The goal of this task is to add in any define any new metrics that need to be added in terms of caching, querying, storage for searchable snapshots.
Additional open questions:
The text was updated successfully, but these errors were encountered: