Elasticsearch: Difference between revisions
From DWIKI
Line 4: | Line 4: | ||
=Monitoring elasticsearch= | =Monitoring elasticsearch= | ||
==Things to | == Things to monito r== | ||
===heap size=== | === heap size === | ||
*node jvm.mem.heap_used_percent | *node jvm.mem.heap_used_percent | ||
===garbage collection=== | === garbage collection === | ||
Something like | Something like | ||
node.jvm.uptime_in_millis/node.jvm.gc.collectors.young.collection_count | node.jvm.uptime_in_millis/node.jvm.gc.collectors.young.collection_count | ||
Line 16: | Line 16: | ||
*[https://www.datadoghq.com/blog/monitor-elasticsearch-performance-metrics/#key-elasticsearch-performance-metrics-to-monitor Performance metrics to monitor] | *[https://www.datadoghq.com/blog/monitor-elasticsearch-performance-metrics/#key-elasticsearch-performance-metrics-to-monitor Performance metrics to monitor] | ||
*[https://opster.com/guides/elasticsearch/capacity-planning/elasticsearch-heap-size-usage/ Heap Size Usage] | *[https://opster.com/guides/elasticsearch/capacity-planning/elasticsearch-heap-size-usage/ Heap Size Usage] | ||
==Query the web interface== | ==Query the web interface== |
Revision as of 12:18, 20 February 2023
Links
- http://jprante.github.io/2012/11/28/Elasticsearch-Java-Virtual-Machine-settings-explained.html
- https://www.elastic.co/blog/a-heap-of-trouble
Monitoring elasticsearch
Things to monito r
heap size
- node jvm.mem.heap_used_percent
garbage collection
Something like
node.jvm.uptime_in_millis/node.jvm.gc.collectors.young.collection_count
- How to monitor Elasticsearch performance
- Top 10 Elasticsearch Metrics to Monitor
- Performance metrics to monitor
- Heap Size Usage
Query the web interface
- 'cluster': 'http://localhost:9200/_cluster/stats',
- 'nodes' : 'http://localhost:9200/_nodes/stats',
- 'indices': 'http://localhost:9200/_stats',
- 'health' : 'http://localhost:9200/_cluster/health'
Installing Elasticsearch
On Debian
deb https://artifacts.elastic.co/packages/oss-6.x/apt stable main
packages is called elasticsearch-oss now?
Terminology
shards
"blocks" of index data distributed over the nodes
Percolation
https://spinscale.de/posts/2021-09-15-understanding-elasticsearch-percolate-query.html
FAQ
Status is yellow
and look for unassigned shards