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
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
Check the logs of your Elasticsearch nodes.
http://docs.graylog.org/en/2.4/pages/configuration/file_location.html
Sorry but I don’t any logs in /var/log/elasticsearch/graylog-elasticsearch.log :(
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.
Yes i have log for elasticsearch but not for my problem of replica !
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.
ok I see this link but is it possible to have 3 nodes and each server have one primary and one replica ?
Yes, that should be possible.
Check the logs of your Elasticsearch nodes to find out why it doesn’t work in your Elasticsearch cluster.
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 !:
That’s only the logs of one Elasticsearch node. Check all of them.
All of them.
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
Well, there you are.
Ok it’s ok now. I extend disk on all node and now I have replica
Thanls for your help jochen
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.