We are getting "ClusterBlockException[blocked" in logstash.
Posted: Mon Dec 28, 2020 7:41 am
Hi Team,
From the past few days we are observing "ClusterBlockException[blocked" logs in logstash logs intermittently. Before receiving this logs , few shards of NLS cluster gets in UNASSIGNED or INITIALIZING state. When we checked elasticsearch logs at the same time we found below logs over there. When we received this strings in logs we restart the logstash and elasticsearch services on each NLS node in cluster. After restart cluster takes few time to assigned shards and start working properly.
logs string from logstash logs:
message=>"Attempted to send a bulk request to Elasticsearch configured at '[\"http://localhost:9200\"]', but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided?", :error_message=>"[503] {\"error\":\"ClusterBlockException[blocked by: [SERVICE_UNAVAILABLE/2/no master]
logs string from elasticsearch:
[2020-12-27 22:27:03,250][INFO ][discovery.zen ] [9cb943f4-0239-415c-8529-5cb81fc735ab] master_left [[9fa4ac7d-d127-48aa-bf17-4e83b583b770][6-VRmeBeSFO3noB5WMV1Iw][nls02][inet[/10.27.18.49:9300]]{max_local_storage_nodes=1}], reason [do not exists on master, act as master failure]
Can you please help us to find the root cause of master failure ?
From the past few days we are observing "ClusterBlockException[blocked" logs in logstash logs intermittently. Before receiving this logs , few shards of NLS cluster gets in UNASSIGNED or INITIALIZING state. When we checked elasticsearch logs at the same time we found below logs over there. When we received this strings in logs we restart the logstash and elasticsearch services on each NLS node in cluster. After restart cluster takes few time to assigned shards and start working properly.
logs string from logstash logs:
message=>"Attempted to send a bulk request to Elasticsearch configured at '[\"http://localhost:9200\"]', but an error occurred and it failed! Are you sure you can reach elasticsearch from this machine using the configuration provided?", :error_message=>"[503] {\"error\":\"ClusterBlockException[blocked by: [SERVICE_UNAVAILABLE/2/no master]
logs string from elasticsearch:
[2020-12-27 22:27:03,250][INFO ][discovery.zen ] [9cb943f4-0239-415c-8529-5cb81fc735ab] master_left [[9fa4ac7d-d127-48aa-bf17-4e83b583b770][6-VRmeBeSFO3noB5WMV1Iw][nls02][inet[/10.27.18.49:9300]]{max_local_storage_nodes=1}], reason [do not exists on master, act as master failure]
Can you please help us to find the root cause of master failure ?