Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

Load Balancer Health Check #370

Open
pjrm opened this issue Feb 19, 2018 · 1 comment
Open

Load Balancer Health Check #370

pjrm opened this issue Feb 19, 2018 · 1 comment

Comments

@pjrm
Copy link

pjrm commented Feb 19, 2018

I'm using an load balancer in front of the Zookeeper Nodes and for health check i'm only using the client port 2181.

The problem is when exhibitor starts at the first time, Zookeeper run as standalone mode, which will indicate on ELB that it's able to receive connections. I only want to accept connections when the node is available and ready in the cluster.

To achieve this I could use the endpoint "exhibitor/v1/cluster/state" which gives the state of the current ZK node, but this endpoint always return "200 - OK".

How do you guarantee that the ZK is healthy (joined in the cluster) ?

Thanks in advance

@pjrm
Copy link
Author

pjrm commented Feb 28, 2018

To deal with this issue I did a PR#371 that contains the endpoint "exhibitor/v1/cluster/node/serving".

It returns HTTP Code 200 (OK) if the node is serving and not running in standalone mode. Otherwise, it returns 503.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant