The number of shards becomes 0 after changing index.number_of_shards

Hi there, I found that when I changed the index.number_of_shards, such as
from 5 to 10, the shards will become 0 (using elasticsearch master to
view), it's so weird.
could anybody encounter this situation? Where have I make a mistake?
Any help would be appreciated!

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

You cannot change the number of shards dynamically. The logs should show an
exception and the number shouldn't change.

On Thu, Feb 28, 2013 at 6:06 PM, Jingang Wang bitwjg@gmail.com wrote:

Hi there, I found that when I changed the index.number_of_shards, such as
from 5 to 10, the shards will become 0 (using elasticsearch master to
view), it's so weird.
could anybody encounter this situation? Where have I make a mistake?
Any help would be appreciated!

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Thanks for your reply, and sorry for my wrong description.
I know I can not change it dynamically, but I changed it in the config file* elasticsearch.yml
*and restart ES, the number of shards is 0.

On Friday, March 1, 2013 1:09:25 AM UTC+8, Kay Röpke wrote:

You cannot change the number of shards dynamically. The logs should show
an exception and the number shouldn't change.

On Thu, Feb 28, 2013 at 6:06 PM, Jingang Wang <bit...@gmail.com<javascript:>

wrote:

Hi there, I found that when I changed the index.number_of_shards, such as
from 5 to 10, the shards will become 0 (using elasticsearch master to
view), it's so weird.
could anybody encounter this situation? Where have I make a mistake?
Any help would be appreciated!

--
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 elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

even if you change it in the yml file it would not be applied to existing
indices. Yet, I think we should still fail in that case

simon

On Thursday, February 28, 2013 6:21:08 PM UTC+1, Jingang Wang wrote:

Thanks for your reply, and sorry for my wrong description.
I know I can not change it dynamically, but I changed it in the config file

  • elasticsearch.yml *and restart ES, the number of shards is 0.

On Friday, March 1, 2013 1:09:25 AM UTC+8, Kay Röpke wrote:

You cannot change the number of shards dynamically. The logs should show
an exception and the number shouldn't change.

On Thu, Feb 28, 2013 at 6:06 PM, Jingang Wang bit...@gmail.com wrote:

Hi there, I found that when I changed the index.number_of_shards, such
as from 5 to 10, the shards will become 0 (using elasticsearch master to
view), it's so weird.
could anybody encounter this situation? Where have I make a mistake?
Any help would be appreciated!

--
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 elasticsearc...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
For more options, visit https://groups.google.com/groups/opt_out.