简体   繁体   中英

Run multiple instances on a Mesos slave node

I'm building an Apache mesos cluster with 3 masters and 3 slaves. I installed docker on the slave nodes and it's able to create instances which are vissible in Marathon. Now i tried to install the HAproxy server on top of it but that didn't worked out that well so I deleted it. The problem is, since then i'm only able to scale my application to a maximum of 3 instances, the exact number of nodes When I want to scale to 5, there are 2 instances that are stuck at the 'deploying' stage.

Does anyone know how to fix this issue so i'm back able to create more instances?

Thank you

To perform that, you trully need to setup Marathon ServiceDiscovery with HAProxy as unknown ports on the same slave machine will be binded to your containers.

First, install HAProxy on every slave. If you need SSL, you will need to make build HAProxy to support SSL.

Then, when HAProxy service is running, you need to follow this very well explain tutorial to enable Marathon service discovery on every Slave HAProxy marathon Service discovery

Pay well attention to the tutorial, it is very well explained and straightforward.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM