How to change shards number?

Hi,
Originally, I have 2 nodes with 2 shards. Now I added new node into the
cluster, and I want to change the shards to 3.
But after I modify the configuration, and restart the ES, the shards
still kept to 2.
How can I change the shards number?
Thanks.

-Regards-
-Jackie-

You cannot change the number of shards on a live index.

--
Ivan

On Wed, Jun 6, 2012 at 6:43 PM, jackiedong jackiedong168@gmail.com wrote:

Hi,
Originally, I have 2 nodes with 2 shards. Now I added new node into the
cluster, and I want to change the shards to 3.
But after I modify the configuration, and restart the ES, the shards
still kept to 2.
How can I change the shards number?
Thanks.

-Regards-
-Jackie-

what's your meaning of "live index"?
Do you mean once the index is created, the shards can't be changed anymore?

在 2012年6月7日星期四UTC+8上午10时22分59秒,Ivan Brusic写道:

You cannot change the number of shards on a live index.

--
Ivan

On Wed, Jun 6, 2012 at 6:43 PM, jackiedong jackiedong168@gmail.com
wrote:

Hi,
Originally, I have 2 nodes with 2 shards. Now I added new node into
the
cluster, and I want to change the shards to 3.
But after I modify the configuration, and restart the ES, the shards
still kept to 2.
How can I change the shards number?
Thanks.

-Regards-
-Jackie-

Yes. That's it.
So, it's an important number you have to choose before creating your index.

Replica can be modified live.

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 7 juin 2012 à 07:23, jackiedong jackiedong168@gmail.com a écrit :

what's your meaning of "live index"?
Do you mean once the index is created, the shards can't be changed anymore?

在 2012年6月7日星期四UTC+8上午10时22分59秒,Ivan Brusic写道:
You cannot change the number of shards on a live index.

--
Ivan

On Wed, Jun 6, 2012 at 6:43 PM, jackiedong jackiedong168@gmail.com wrote:

Hi,
Originally, I have 2 nodes with 2 shards. Now I added new node into the
cluster, and I want to change the shards to 3.
But after I modify the configuration, and restart the ES, the shards
still kept to 2.
How can I change the shards number?
Thanks.

-Regards-
-Jackie-

Btw, already with 2 shards and 1 replica, you scale up to 4 nodes without
needing to change it.

On Thu, Jun 7, 2012 at 7:52 AM, David Pilato david@pilato.fr wrote:

Yes. That's it.
So, it's an important number you have to choose before creating your index.

Replica can be modified live.

David :wink:
Twitter : @dadoonet / @elasticsearchfr

Le 7 juin 2012 à 07:23, jackiedong jackiedong168@gmail.com a écrit :

what's your meaning of "live index"?
Do you mean once the index is created, the shards can't be changed anymore?

在 2012年6月7日星期四UTC+8上午10时22分59秒,Ivan Brusic写道:

You cannot change the number of shards on a live index.

--
Ivan

On Wed, Jun 6, 2012 at 6:43 PM, jackiedong jackiedong168@gmail.com
wrote:

Hi,
Originally, I have 2 nodes with 2 shards. Now I added new node into
the
cluster, and I want to change the shards to 3.
But after I modify the configuration, and restart the ES, the shards
still kept to 2.
How can I change the shards number?
Thanks.

-Regards-
-Jackie-