Can a node have more than one shard in Elasticsearch? -


i reading "elasticsearch: definitive guide" , confirm something.

when create index, assigned 5 shards default (or can use "number_of_shards" setting).

but if using 1 node (one server), index spread 5 shards in same node? guess asking - can node have multiple shards?

yes node can have multiple shards of 1 or more indices. can verify executing get _cat/shards?v command. read more command here. problem having single node elasticsearch cluster replica shards indices not allocated (but primary shards be) not make sense have both primary , replica of same shard on same machine.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -