Collecting Apache Solr™ performance statistics
When solr_latency_snapshot_options
is enabled, the performance service creates the required tables and schedules the job to periodically update the relevant snapshot from the specified data source.
The following snapshots collect performance statistics:
- Query latency snapshot
-
Record phase-level cumulative percentile latency statistics for queries over time.
- Update latency snapshot
-
Record phase-level cumulative percentile latency statistics for updates over time.
- Commit latency snapshot
-
Record phase-level cumulative percentile latency statistics for commits over time.
- Merge latency snapshot
-
Record phase-level cumulative percentile latency statistics for index merges over time.
All objects are disabled by default.
Where is the dse.yaml
file?
The location of the dse.yaml
file depends on the type of installation:
Installation Type | Location |
---|---|
Package installations + Installer-Services installations |
|
Tarball installations + Installer-No Services installations |
|
Procedure
-
Edit the
dse.yaml
file. -
In the
dse.yaml
file, under thesolr_latency_snapshot_options
parameter, changeenabled
totrue
and set the other options as required.# Solr latency snapshot options solr_latency_snapshot_options: enabled: true ttl_seconds: 604800 refresh_rate_ms: 60000
All objects are disabled by default.
Options Options Determines enabled
Whether the object is enabled at start up.
ttl_seconds
How many seconds a record survives before it is expired from the performance object.
refresh_rate_ms
Period (in milliseconds) between sample recordings for periodically updating statistics like the
solr_result_cache_stats
.