I am using hosted es with v 11.1.2. I am having two nodes with 1 primary shard and 1 replica shard in each node. (for 1 index- 1 primary and 1 replica shard)
Autoscaling is enabled for clusters. During autoscaling, a new node will be added will it increase no. of shards for an index so that they can get distributed to new nodes?
Elastic Cloud (official hosted Elasticsearch) does not have a version 11.1.2 so I am a bit confused.
With respect to your question, assuming you are using Elastic Cloud today, auto scale adds new node(s). In general it does not change the number of shards. It will just simply re-balances the existing shards primaries and replicas across the new node(s).
However, There is a setting that can allow auto expand the replicas if so desired
This will expand the replicas but not change the number of primaries
index.auto_expand_replicas
Details on this page This will expand the replicas but not change the number of primaries
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.