-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elasticsearch_master fails when minimum_master_nodes is set to >1 #167
Comments
Some background... kibana4 will not start successfully if elasticsearch is unavailable (because kibana needs to load and utilize configuration from elasticsearch). This is why kibana startup is blocked by the health check of elasticsearch in the control script. If you know this kibana behavior has changed, do let us know. With that in mind, I consider the scenario you're describing to be expected, although inconvenient, as a sort of chicken or the egg problem. In your scenario, by removing the wait-for-elasticsearch-200-response, kibana was able to start, but after 60 seconds it timed out and exited with an error. That 60s period was long enough for monit to think it was running and moved on to provisioning your next VMs which eventually brought the cluster into good shape where kibana could stay up. From a deployment perspective, your options are:
The only change I can think of is to switch from a 200 status check to a simple port openness check ( @mrdavidlaing, you're more familiar with kibana4 - what do you think of switching to a naive port check for the purposes of this scenario, and is that something we can take a PR for? |
@mrdavidlaing, thoughts? |
@dpb587, @petar-petrov-sap - The way that Kibana starts up and checks for elasticsearch being available will be overhauled as part of the Kibana 4.2 release. I'd advise not making any changes until we know how that behaviour will change. Until then, we should change our example templates ( bosh-lite and spiff )to have a separate Kibana job (rather than co-locating) at the end of the manifest (so BOSH only deploys it AFTER the ES nodes have been set up). @petar-petrov-sap - Any chance you could submit a PR with that alternate template structure? |
Currently we benefit from the fact that Kibana and Elasticsearch are on the same VM, see #166 Splitting them does not fit to our setup. |
@petar-petrov-sap - you can keep the nginx proxy to Kibana on the same api box; whilst still hosting Kibana on a different VM to get around the startup issue. I'm afraid we can't think of a better short term solution to this issue. |
Hi,
Since adding kibana 4.1.1 as a separate job in elasticsearch_master it can no longer be used in cluster environment because the following happens:
By deleting the wait-for-elasticsearch-200-respone in kibana ctl script the cluster deploys and start as expected.
Kind regards,
Petar Petrov
The text was updated successfully, but these errors were encountered: