Changing elasticsearch index's shard-count on the next index-rotation


(erbdex) #1

i have an ELK(Elasticsearch-Kibana) stack wherein the elasticsearch node
has the default shard value of 5. Logs are pushed to it in logstash format(
logstash-YYYY.MM.DD), which- correct me if i am wrong- are indexed
date-wise.

Since i cannot change the shard count of an existing index without
reindexing, i want to increase the number of shards to 8 when the next
index is created
. i figured that the ES-API allows on-the-fly persistent
changes.

How do i go about doing this?

--
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/9f5f2d93-bb58-40f8-b7f1-a60239d98ce0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Alexander Reelsen) #2

Hey,

if you use logstash, you could change the default index template to use 8
shards. See

--Alex

On Wed, Apr 23, 2014 at 7:34 AM, Abhishek Tiwari erbdex@gmail.com wrote:

i have an ELK(Elasticsearch-Kibana) stack wherein the elasticsearch node
has the default shard value of 5. Logs are pushed to it in logstash format(
logstash-YYYY.MM.DD), which- correct me if i am wrong- are indexed
date-wise.

Since i cannot change the shard count of an existing index without
reindexing, i want to increase the number of shards to 8 when the next
index is created
. i figured that the ES-API allows on-the-fly persistent
changes.

How do i go about doing this?

--
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/9f5f2d93-bb58-40f8-b7f1-a60239d98ce0%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/9f5f2d93-bb58-40f8-b7f1-a60239d98ce0%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/CAGCwEM9yBmaabFJYe8ezK_bL65%3DvGcxjO5b8BzO1tfrPhRMMDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3