Deploy marathon-lb service discovery and load balancing on marathon

https://my.oschina.net/u/1538135/blog/679848
http://blog.csdn.net/felix_yujing/article/details/52081524

To create an app, you need to use bridge mode, three ports [containerPort | hostPort | servicePort] , let marathon-lb find and locate through the group information on the label [Labels].
     
       The port applied in the container is 80. Projecting to port 0 on the host is a random port assignment. marathon-lb will collect these ports and finally provide services on the servicePort of the proxy node. This method requires that the network mode must be Bridge.

       The Labels tag is the key to letting marathon-lb discover the app. Here it is set to
       HAPROXY_GROUP=external

       , so when using the marathon-lb.py script later, add the --group external parameter

http://blog.sina.com.cn/ s/blog_6f2d2e310102wisi.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326536450&siteId=291194637