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

Zookeeper ELB Protocol and port forward #3

Open
dalekurt opened this issue Jun 21, 2015 · 2 comments
Open

Zookeeper ELB Protocol and port forward #3

dalekurt opened this issue Jun 21, 2015 · 2 comments

Comments

@dalekurt
Copy link

Hi,

Is there a reason why the ELB for Zookeeper uses HTTP protocol over TCP and why port 80 forwards to 8181 and not 2181?

I'm setting up Bamboo within my cluster and this came up as a concern, before making any changes to the cloud formation template, I wanted to see if there was a reason behind this configuration.

"ElasticLoadBalancer" : {
      "Type" : "AWS::ElasticLoadBalancing::LoadBalancer",
      "Properties" : {
        "CrossZone": "true",
        "Scheme": "internal",
        "SecurityGroups": [{ "Ref": "LbSecurityGroup" }, { "Ref": "AdminSecurityGroup" }],
        "Subnets": { "Ref": "Subnets" },
        "Listeners" : [ {
          "LoadBalancerPort" : "80",
          "InstancePort" : "8181",
          "Protocol" : "HTTP"
        } ],
        "HealthCheck" : {
          "Target" : "HTTP:8181/exhibitor/v1/cluster/state",
          "HealthyThreshold" : "3",
          "UnhealthyThreshold" : "5",
          "Interval" : "30",
          "Timeout" : "5"
        }
      }
    },
@mbabineau
Copy link
Owner

This listener is for Exhibitor, not for ZooKeeper:

The template also creates an internal-facing ELB for clients to interact with Exhibitor via a static endpoint. This is especially useful for node discovery, so Exhibitor's /cluster/list API is exposed as an output as well (ExhibitorDiscoveryUrl).

ZooKeeper is not usually run behind a load balancer (context).

To get the list of ZK nodes, just query the Exhibitor's /cluster/list API on the ELB. Here's a little Python script for it:
https://github.com/thefactory/cloudformation-bamboo/blob/master/bamboo.json#L169

@clehene
Copy link

clehene commented Oct 15, 2015

I guess this can be closed

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

No branches or pull requests

3 participants