Kibana cannot automatically recover when elasticsearch restarts

hi,I build a docker image of kibana from the code. Then I start the kibana container. I find that when I restart Elasticsearch, kibana also turns error and cannot recover. I must restart kibana manually.
So does kibana have any fault detection and automatic recovery attempts?

Can you share the Kibana logs from before and after you restart Elasticsearch?

Hi @nuaazt ,
If your Elasticsearch downtimes takes longer than default 30 sec, it can cause those problems

can you add those to your kibana config and try again

Elasticsearch.requestTimeout: 50000
Elasticsearch.shardTimeout: 50000

Hi, @FALEN , Thanks for you reply. But the only solution is config larger timeout value?Can kibana monitor ES, and recover automatically?