Skip to content
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

Using setup with ELB #70

Closed
ferhatsb opened this issue Feb 28, 2013 · 4 comments

Comments

Projects
None yet
2 participants
@ferhatsb
Copy link

commented Feb 28, 2013

Hi Karel,

With http basic authentication, it is not possible to use ELB, it does not has an option to health check with http basic.

My solution is simply adding another location to elasticsearch_proxy.conf.erb

location /health {
return 200;
}

ELB checks /health and works as expected. Perhaps it can be solved with a better way, mine is just fast and simple.

@karmi

This comment has been minimized.

Copy link
Member

commented Mar 1, 2013

Yeah, that is true. Rather then hardcoding the /health endpoint in there, it would be cool to somehow allow using Chef 11 partial templates here, for the Nginx configuration template.

@karmi karmi closed this in fb61f66 Mar 6, 2013

@karmi

This comment has been minimized.

Copy link
Member

commented Mar 6, 2013

Was fooling with this a bit. I see the problem that we would return 200 OK no matter how the Elasticsearch backend is actually doing, thus decreasing the usefulness of the check for ELB.

In the end, I think I have found a way -- returning the response from a HEAD request to localhost:9200. Can you check this out and verify it does not open any loophole?

@ferhatsb

This comment has been minimized.

Copy link
Author

commented Mar 6, 2013

Seems reasonable to me, an ES aware ELB would work better in terms of availability. I will check and share my results. Actually I expect no issues with your solution. Thanks!

@ferhatsb

This comment has been minimized.

Copy link
Author

commented Jun 25, 2013

Here comes very late feedback, working a like charm.
Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.