Can we have different indexes with different number of shards within the same setup? like index1 with 5 shards, index2 with 3 shards etc ?
On a separate note, can a node have different shards from different indexes living on it?
for example
node1 having index1shard1, indes2sshard1 and
node2 having index1sshard2, index2shard2?
PUT test
{
"settings" : {
"index" : {
"number_of_shards" : 4,
"number_of_replicas" : 2
}
}
}
creates the index test with 4 shards and 2 replicas. These settings are only for the index test and no other index. Any index created without explicitly specifying the number_of_shards will have 5 shards and the default number_of_replicas is 1.
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.