We run an elasticsearch cluster 7.17, with 3 data nodes and 3 master nodes. The use case is for monitoring with elasticAPM.
We follow official documentation at Full cluster restart upgrade | Elasticsearch Guide [7.17] | Elastic to update our elaticsearch cluster.
It works fine, but at the end, we have found data miss on apm indices!
In the documentation, you say to disable allocation before removing the node, hence there is no primary shard, hence APM cannot write data.
So, is there a good practice to update a cluster without data loss? Without changing architecture of course (no queue between APM and elasticsearch).