Sign inGet started

Guides

Elasticsearch, explained the way it behaves in production

30 guides for the people who run the cluster: the model underneath, the arithmetic, the failure modes and the exact commands. Written for Elasticsearch 8.x and 9.x.

Architecture

Topology, tiers, replication and the shape of a cluster that survives.

Elasticsearch Capacity Planning for Logging: A Worked ExampleTurn GB per day of logs into node counts per tier: indexed size, replicas, retention, watermark headroom, shard counts and ingest rate, with all the math.Elasticsearch Node Roles and Cluster Topology for ProductionDesign node roles, master quorum, voting-only tiebreakers and zone awareness so an Elasticsearch cluster survives node and zone loss, with configs and sizing.Elasticsearch Cross-Cluster Replication and Search ArchitectureDesign remote cluster connections, run cross-cluster search with predictable latency, set up CCR followers, and fail over with a tested runbook.Elasticsearch Data Tiers: Hot, Warm, Cold, Frozen with ILMDesign hot, warm, cold and frozen tiers with ILM and searchable snapshots: tier preference, partial vs full mounts, a storage cost model and when frozen pays.Elasticsearch Multi-Tenancy: Index per Tenant vs Shared IndexPick an Elasticsearch multi-tenancy model with the shard math shown: index per tenant, shared indices with routing and filtered aliases, DLS, noisy neighbors.Elasticsearch Shard Sizing: A Capacity Model for Shard CountsCompute shard size and count for time-series and search indices, read per-node shard limits, and fix oversharding with the exact APIs and the arithmetic shown.Logging Architecture with Kafka and Elasticsearch: A Sizing GuideDesign a Kafka-buffered logging pipeline into Elasticsearch: partitions to consumers, backpressure, duplicates and the exactly-once myth, with sizing math.

Operations

Incidents, upgrades, snapshots and the work of keeping it running.

Elasticsearch Disk Watermarks, Flood Stage and Headroom PlanningHow the low, high and flood stage disk watermarks work, why indices go read_only_allow_delete, how max_headroom changes the math, and how much disk to plan.Elasticsearch ILM Troubleshooting: Fixing Stuck PoliciesRead _ilm/explain like a state machine, fix rollover alias and allocation errors, retry or move a stuck step, and change a policy on indices already in flight.Elasticsearch JVM Heap, G1GC and Circuit Breakers ExplainedSize the Elasticsearch heap correctly, read G1GC and _nodes/stats/breaker output, and trace a circuit_breaking_exception back to the request that caused it.Elasticsearch Red Cluster Runbook: Lost Primaries and RecoveryTriage order for a red Elasticsearch cluster: find lost primaries, then choose between waiting, allocate_stale_primary, allocate_empty_primary or a restore.Elasticsearch Rolling Upgrades: 7.17 to 8.x and 8.x to 9.xPlan and run an Elasticsearch rolling upgrade: deprecation checks, node order, allocation settings, client compatibility and why rollback means a snapshot.Elasticsearch Snapshots, SLM and Disaster Recovery PlanningHow incremental snapshots work, SLM schedules and retention, RPO and RTO arithmetic you can defend, restore strategies, and a monthly restore test.Fix Unassigned Shards in Elasticsearch with Allocation ExplainRead the allocation explain API decider by decider: same_shard, disk_threshold, filter, awareness, max_retry, node left. Find the cause and fix each one safely.Zero-Downtime Reindexing in Elasticsearch: Aliases and CutoverChange Elasticsearch mappings with no downtime: alias-first design, sliced and throttled reindex, catching up live writes, atomic cutover and a rollback plan.Monitoring Elasticsearch in Production: Metrics, Alerts, PagingSet up Stack Monitoring on a separate cluster, learn the metrics that predict incidents, set alert thresholds, and decide what pages versus what opens a ticket.

Performance

Heap, threads, indexing and search latency, measured and fixed.

Data modeling

Mappings, templates, data streams and changing them without downtime.

Ingest

Logstash, Elastic Agent, ingest pipelines and buffered pipelines.

Search

Relevance, aggregations and vector search in production.

Security

TLS, roles, API keys and the least privilege that actually works.

Kibana and observability

Kibana at scale and monitoring the stack itself.