Ingest Node
- 可以預先處理, 或是 pipeline _doc
- 用量很大的話可以獨立出來
Shard
- each index in Elasticsearch is allocated 5 primary shards and 1 replica
- a primary shard can technically contain up to 2147483519 (Integer.MAX_VALUE - 128) documents
- 50 GB per shard
Config
- Don’t Cross 32 GB!
- The moral of the story is this: even when you have memory to spare, try to avoid crossing the 32 GB heap boundary. It wastes memory, reduces CPU performance, and makes the GC struggle with large heaps.
- Java uses a trick called compressed oops to prevent wasting pointer space
- https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html#heap-sizing
- bootstrap.memory_lock: true
- Set Xmx to no more than 50% of your physical RAM, to ensure that there is enough physical RAM left for kernel file system caches.
Index
- Force-merge read-only indices