How many replica shard for 3 nodes?


(Arcocide) #1

Hi,

I currently have 3 nodes with 3 shard. I woulk like to have replica for keep data if one server down.

In my indice I configure replica :
Index Shard : 3
Index replicas : 1

But now ElasticSearch is yellow. My replica isn’t create.

Thanks


(Jochen) #2

Check the logs of your Elasticsearch nodes.
:arrow_right: http://docs.graylog.org/en/2.4/pages/configuration/file_location.html


(Arcocide) #3

Sorry but I don’t any logs in /var/log/elasticsearch/graylog-elasticsearch.log :(:confused:


(Jochen) #4

Are you sure that’s the correct location for the Elasticsearch log files?
If Elasticsearch was running, there were log messages in the correct log files.


(Arcocide) #5

Yes i have log for elasticsearch but not for my problem of replica !


(Jochen) #6

So the cluster health status of your Elasticsearch cluster is YELLOW, but you don’t think the issue has anything to do with Elasticsearch?

Also make sure to read http://docs.graylog.org/en/2.4/pages/configuration/elasticsearch.html#cluster-status-explained.


(Arcocide) #7

ok I see this link but is it possible to have 3 nodes and each server have one primary and one replica ?


(Jochen) #8

Yes, that should be possible.

Check the logs of your Elasticsearch nodes to find out why it doesn’t work in your Elasticsearch cluster.


(Arcocide) #9

This is logs for Elasticsearch :
-rw-r–r-- 1 elasticsearch elasticsearch 138 Jun 1 21:31 graylog-elasticsearch-2018-06-01.log
-rw-r–r-- 1 elasticsearch elasticsearch 416 Jun 3 21:44 graylog-elasticsearch-2018-06-03.log
-rw-r–r-- 1 elasticsearch elasticsearch 41072 Jun 4 12:25 graylog-elasticsearch_deprecation.log
-rw-r–r-- 1 elasticsearch elasticsearch 0 Mar 5 18:29 graylog-elasticsearch_index_indexing_slowlog.log
-rw-r–r-- 1 elasticsearch elasticsearch 0 Mar 5 18:29 graylog-elasticsearch_index_search_slowlog.log
-rw-r–r-- 1 elasticsearch elasticsearch 26420 Jun 4 10:37 graylog-elasticsearch.log

which file should I watch? Because in graylog-elasticsearch.log there are nothing !:


(Jochen) #10

That’s only the logs of one Elasticsearch node. Check all of them.

All of them.


(Arcocide) #12

Ok I see on my third node :

[2018-06-04T15:18:29,216][INFO ][o.e.c.r.a.DiskThresholdMonitor] [B5dzsai] low disk watermark [85%] exceeded on [B5dzsaiSTayT9_X1ev26mw][B5dzsai][/data/elasticsearch/nodes/0] free: 112.9gb[11.3%], replicas will not be assigned to this node
[2018-06-04T15:18:29,216][INFO ][o.e.c.r.a.DiskThresholdMonitor] [B5dzsai] low disk watermark [85%] exceeded on [y6dGHTwVQaqCu3SBPn4nmg][y6dGHTw][/data/elasticsearch/nodes/0] free: 113.1gb[11.3%], replicas will not be assigned to this node
[2018-06-04T15:18:29,217][INFO ][o.e.c.r.a.DiskThresholdMonitor] [B5dzsai] low disk watermark [85%] exceeded on [_K0hyphnR7yYFnUQbtg8NQ][_K0hyph][/data/elasticsearch/nodes/0] free: 114.5gb[11.4%], replicas will not be assigned to this node

:slight_smile:


(Jochen) #13

Well, there you are.
https://www.elastic.co/guide/en/elasticsearch/reference/5.6/disk-allocator.html


(Arcocide) #14

Ok it’s ok now. I extend disk on all node and now I have replica :slight_smile:

Thanls for your help jochen :wink:


(system) #15

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.