Dcos-net is a Mesos-based open source network solution from Mesosphere, which handles network resources such as service discovery, load balancing, and overlay used by containers to access nodes across nodes.
Dcos-net is mainly composed of dcos-l4lb, Dcos-overlay, dcos-dns three major modules. This introduction is the dcos-l4lb module, mainly completed in the VIP service discovery and LVS-based load balancing function, of course mesosphere in addition to L4 lb is based on haproxy implementation of MARATHON-LB and EDGE-LB, the latter is only suitable for For Enterprise Editions.
Route_mgr maintains a route for local access VIPs, such as
Local 11.254.192.142 Dev Minuteman Scope host
L4lb-mesos-poller as the entrance to the entire DCOs l4lb information, periodically obtains the full amount of current task information from Mesos-master/agent, and adds the task to backend based on the state of the task. And the VIP from the domain name to IP (maintained by Dcos-net), after finishing the VIP information forwarded lashup
L4lb-kashup-kv-listener Monitor Lashup VIP events, when there is a VIP update processing to obtain lashup-event, the VIP of the latest information to push to L4lb-mgr, and the VIP and domain name (top-level domain as Director Y, Global, top-level domain name Mesos will be processed by Mesos-dns to Erldns
L4lb-netns-watch the resource used to get l4lb is handled using a separate network namespace, using the Host network namespace by default.
The dcos-l4lb of dcos-net analysis