Changing number of shards for new indices


(Kingdom Joy) #1

Hello,

Right now I have two nodes in my ES (part of ELK stack) cluster and 1 shard
for each index. I would like to change number of shards to two for future
indices. Can I do this by changing config file and restarting logstash?
Will it change number of shards for indices created after restarting ES?
Will it break existing indices?

Thank you!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5909f618-241d-4323-aa4b-d018dac7bf96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Kingdom Joy) #2

Typo in my previous message, here's corrected post:

Hello,

Right now I have two nodes in my ES (part of ELK stack) cluster and 1 shard
for each index. I would like to change number of shards to two for future
indices. Can I do this by changing config file and restarting ES? Will it
change number of shards for indices created after restarting ES? Will it
break existing indices?

Thank you!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b1ba628e-c82f-4d68-a798-bc74255f34cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Mark Walkom) #3

It doesn't change existing indexes only new ones.
You can either do the setting change via the API or in the config, if you
choose the latter you will need a restart.

See
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-create-index.html

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com

On 30 July 2014 17:27, Kingdom Joy thekingdomofjoy@gmail.com wrote:

Typo in my previous message, here's corrected post:

Hello,

Right now I have two nodes in my ES (part of ELK stack) cluster and 1
shard for each index. I would like to change number of shards to two for
future indices. Can I do this by changing config file and restarting ES?
Will it change number of shards for indices created after restarting ES?
Will it break existing indices?

Thank you!

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b1ba628e-c82f-4d68-a798-bc74255f34cc%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/b1ba628e-c82f-4d68-a798-bc74255f34cc%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEM624b9fhhBO3dUz_reMy7jLmBoX23G-5zUpVagHk%2BBnd2NrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #4