I am running a 3 node cluster for Elasticsearch. I get the error below when I try to create an ILM policy
org.elasticsearch.transport.RemoteTransportException: [es3][192.168.10.52:9300][cluster:admin/ilm/put]
Caused by: org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutException: failed to process cluster event (put-lifecycle-fb_test) within 30s
at org.elasticsearch.cluster.service.MasterService$Batcher.lambda$onTimeout$0(MasterService.java:158) ~[elasticsearch-7.17.9.jar:7.17.9]
at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?]
at org.elasticsearch.cluster.service.MasterService$Batcher.lambda$onTimeout$1(MasterService.java:157) ~[elasticsearch-7.17.9.jar:7.17.9]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:718) ~[elasticsearch-7.17.9.jar:7.17.9]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1589) [?:?]
The following is my cluster details:
{
"cluster_name" : "ess",
"status" : "red",
"timed_out" : false,
"number_of_nodes" : 3,
"number_of_data_nodes" : 3,
"active_primary_shards" : 2448,
"active_shards" : 2503,
"relocating_shards" : 0,
"initializing_shards" : 4,
"unassigned_shards" : 2120,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 134,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 1143201,
"active_shards_percent_as_number" : 54.09552625891506
}
I have tried to restart the cluster, but every time I try to perform a synced flush, I get error 502 after 30 seconds.