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

HAProxy as Load Balancer would be great #76

Open
Arwany opened this issue Sep 27, 2015 · 1 comment
Open

HAProxy as Load Balancer would be great #76

Arwany opened this issue Sep 27, 2015 · 1 comment

Comments

@Arwany
Copy link

Arwany commented Sep 27, 2015

It would be great if you include the installation of an HAProxy as load balancer for the services, or is it already there, I mean is there any load balancer there, and how can I use it?

I deployed an app and didn't find the entry point from the service port, here is my JSON:

{
  "container": {
    "type": "DOCKER",
    "docker": {
      "image": "nginx",
      "network": "BRIDGE",
      "portMappings": [
        {
          "containerPort": 80,
          "hostPort": 0,
          "servicePort": 1111,
          "protocol": "tcp"
        }
      ]
    }
  },
  "id": "nginx",
  "instances": 1,
  "cpus": 0.25,
  "mem": 64,
  "uris": []
}

I expected to reach the service on MASTER_IP:1111 but it didn't!

Huge thanks for this really helpful work.

@Arwany
Copy link
Author

Arwany commented Sep 27, 2015

I think it comes already with an haproxy installation script, but it still needs to be executed twice, once to install the haproxy on the system, and the second time to connect it with marathon.

Here are the commands that must be run on each master:

# Install it, assuming that marathon operates on 172.31.3.11:8080
/opt/marathon/bin/haproxy-marathon-bridge install_haproxy_system 172.31.3.11:8080

# configure it, assuming that marathon operates on 172.31.3.11:8080 
/opt/marathon/bin/haproxy-marathon-bridge 172.31.3.11:8080

It would be still nice to have it integrated into vagrant, or is it already there?

Thanks for looking into it.

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

1 participant