We have an IOT project in an embedded system environment where we have limited linux box and resources, so we our application and elasticsearch on the same 3 machine cluster. Now it can happen the linux machines can bounce and when that happens we want to wait for elasticsearch to be up and running, the systemctl reports elasticsearch is up, the cluster health reports green, but
since the all indices are not yet green, our app crashes.
Is there a command to make sure elasticsearch is up and ready to use?
I assumed if cluster health reports green, then applications should safely be able to use elasticsearch, certainly thats not the case.