Changing number of shards for new indices

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.

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.

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

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.