# Managing Elasticsearch Reindex at Scale: Performance, Reliability, and Observability

DevFeed: [Managing Elasticsearch Reindex at Scale: Performance, Reliability, and Observability](<https://devfeed.tech/articles/managing-elasticsearch-reindex-at-scale-performance-reliability-and-observability-56630.md>)

Original publisher: [Read original article](<https://blog.palantir.com/managing-elasticsearch-reindex-at-scale-performance-reliability-and-observability-cf948d0efd47?source=rss----3c87dc14372f---4>)

Author: Palantir

Published: 2026-06-08T17:57:01Z

Content type: article

Language: en

Sources: [Palantir Blog](<https://devfeed.tech/sources/palantir-blog.md>)

Topics: [elasticsearch](<https://devfeed.tech/topics/elasticsearch.md>), [Production Engineering](<https://devfeed.tech/topics/production-engineering.md>), [observability](<https://devfeed.tech/topics/observability.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [rate-limiting](<https://devfeed.tech/topics/rate-limiting.md>), [Big data infrastructure](<https://devfeed.tech/topics/big-data-infrastructure.md>), [consistency](<https://devfeed.tech/topics/consistency.md>), [search-engines](<https://devfeed.tech/topics/search-engines.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [applications](<https://devfeed.tech/tags/applications.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [backend](<https://devfeed.tech/tags/backend.md>), [client](<https://devfeed.tech/tags/client.md>), [crud](<https://devfeed.tech/tags/crud.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [design](<https://devfeed.tech/tags/design.md>), [distributed](<https://devfeed.tech/tags/distributed.md>), [elasticsearch](<https://devfeed.tech/tags/elasticsearch.md>), [full-text-search](<https://devfeed.tech/tags/full-text-search.md>), [gotham](<https://devfeed.tech/tags/gotham.md>), [graph](<https://devfeed.tech/tags/graph.md>), [index](<https://devfeed.tech/tags/index.md>), [infrastructure-software](<https://devfeed.tech/tags/infrastructure-software.md>), [observability](<https://devfeed.tech/tags/observability.md>), [palantir](<https://devfeed.tech/tags/palantir.md>), [palantir-foundations](<https://devfeed.tech/tags/palantir-foundations.md>), [palantirtech](<https://devfeed.tech/tags/palantirtech.md>), [performance](<https://devfeed.tech/tags/performance.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [scale](<https://devfeed.tech/tags/scale.md>)

## AI overview

The document store rebuilds Elasticsearch indices from its transactional database so it can repair or change schemas and migrate clusters while continuing to serve live search traffic. For an in-place rebuild, it creates a shadow index, sends API writes to both old and new indices, and serves reads from the old one until backfill completes and aliases promote the shadow index. A background coordinator tracks schema metadata, detects work, and can resume interrupted operations from persisted state; idempotent lifecycle steps support crash recovery. Parallel workers overlap database reads and indexing, while document-count, memory, and per-run batch limits plus rest intervals bound resource use. The system uses logs, metrics, and on-demand diagnostics for different observability needs. Cross-cluster migration uses a separate reindex machine with its own configuration and metadata, retaining old-cluster indices for possible rollback. These mechanisms are described for Palantir's document store; the excerpt does not provide quantitative performance results.

## Source excerpt

Editor's Note: This is the fourth post in a series exploring how Palantir customizes infrastructure software for reliable operation at scale. The following is a guest contribution to the Foundations series from the Gotham Core Platform organization, which builds and maintains the bedrock for mission-critical applications within the Gotham ecosystem. This blog post by Kevin Liang, a backend developer based in CA, highlights the design considerations and improvements made to the Elasticsearch reindex machinery -- which broadly aims to provide an easy-to-use, performant, reliable, and observable way to repair and rebuild search indices for backend applications. The goal of this post is two-fold: share our design decisions and learnings with the broader technical community, and shed light on what a typical project looks like for a systems-leaning backend engineer working in Gotham Core Platform at Palantir. Search is one of the most heavily used workflows across Palantir Gotham. Users are constantly querying, filtering, and drilling into large datasets to surface entities, trace connections, and assemble the analyses that drive mission-critical operational decisions. At any point in that workflow, they expect results to feel instantaneous, regardless of the scale or complexity of the underlying data graph. Many of these search workflows leverage Elasticsearch, an open-source distributed search and analytics engine that provides robust full-text search capabilities at scale. We have previously explained the role Elasticsearch plays within our broader ecosystem and architecture, which you can read more about in Defensive Databases: Optimizing Index-Refresh Semantics. As mentioned in that blog post, most Gotham applications interact with Elasticsearch via an in-house database client service that acts as a layer between backend services and storage infrastructure. At a high level, the service resembles a document store and provides: Strongly consistent key-value CRUD backed