strapdata / elassandra

Elassandra = Elasticsearch + Apache Cassandra
http://www.elassandra.io
Apache License 2.0
1.71k stars 198 forks source link

Can the number of shards under an index be set or must it be the number of nodes #376

Closed tengzhuofei closed 3 years ago

Coder-Qian commented 3 years ago

Each Cassandra node is an Elasticsearch shard for each indexed keyspace. Unlike Elasticsearch, sharding depends on the number of nodes in the datacenter, and the number of replica is defined by your keyspace Replication Factor . Elasticsearch numberOfShards is just information about the number of nodes.

vroyer commented 3 years ago

Good explanation given by Coder-Qian