How to safely decommission nodes by using cluster-level shard allocation filtering (excluding nodes)

Tremaine Eto
Towards Dev
Published in
3 min readMay 1, 2023

--

When you want to decommission nodes in Elasticsearch, the usual process is not to just go right ahead and destroy the nodes. If you do, then you risk data loss, which just isn’t what you want to do with what is supposed to be a reliable database.

--

--

Senior Software Engineer @ Iterable | Previously worked at DIRECTV, AT&T, and Tinder | UCLA Computer Science alumni | Follow me for software engineering tips!