Disconnect between when Elasticsearch is "running" and when it's "available"

Is there any way to make it so Elasticsearch won't say it's running until it can actually accept requests? I've constantly had to build in hacks in my projects that essentially are there just because Elasticsearch takes forever to start up and begin accepting requests. I know the JVM takes a while to load, but there's gotta be a better solution than either sleep-ing for a random length of time or just feverishly polling :9200 to figure out whether ES is alive or not...

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.