Dear all,
i have an elastic to collect log
when i read the document they say that the default number of shard per index are 5 but when i create the index there are only one index, so how can i increate the number of shard in that index without having to create a template to create a new index
Thank for responding
i want to increase the numbers of shard because i was hoping that it would help me with the time out problems that i keep having when viewing a huge size log index
epoch timestamp cluster status node.total node.data shards pri relo init unassign pending_tasks max_task_wait_time active_shards_percent
1572855595 08:19:55 green 9 3 120 74 0 0 0 0 - 100.0%
and the output of GET /_cat/indices?v is:
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open wineventlog-2019.10 w78FS0ESQ6SDBFmP6cVAVw 1 0 1371220897 0 690.6gb 690.6gb
green open wineventlog-2019.11 Q6YaIoZgRH-8RhwqYgXDhg 1 1 837432644 0 1tb 515.9gb
When i view the log in the wineventlog index in more than 1 hours it always timeout
You probably need at least 14 primary shards per index.
Another solution would be to change from daily indices to hourly indices or use the rollover API and rollover every 50gb...
Apart from increasing the shards which looks very critical, you can also increase your replicas to divert your read/write traffic. But replicas do come with extra cost.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.