ElasticSearch in production
summary
Operates and secures hundreds of ElasticSearch clusters on AWS, focuses on concrete failure modes: searches and facets blow up with OOMs, page cache thrashing as dataset outgrows RAM, and heap >32GB disables compressed oops causing expensive GC so running multiple JVM nodes per host or more shards is often better than one huge heap. Notes security: ES has no auth and dynamic scripts are unsandboxed, so isolate dev machines. For HA configure minimum_master_nodes = floor(N/2)+1, use connection pools, bulk and msearch, and make write operations idempotent.
AI-written summary · about
