Elasticsearch shard allocation algorithm. wait_for_active_shards setting configured to 2.