Docker 1.12 Port Fowarding Services Across Nodes -


so i've got plex server running on docker swarm!! if kill node magically it'll start plex somewhere else. great! comes fun part...

with old-school containers port forward port 32400 on router server running plex , work find. plex can run in multiple different places need figure out how forward port static resource. use haproxy bind bridge interface , run on every node provide failover...but i'd see if there's easier way accomplish this.

what's best way forward ports services in docker swarm?

port forwarding built new swarm mode. there's section on load balancing in documentation:

the swarm manager uses ingress load balancing expose services want make available externally swarm. swarm manager can automatically assign service publishedport or can configure publishedport service in 30000-32767 range.

external components, such cloud load balancers, can access service on publishedport of node in cluster whether or not node running task service. nodes in swarm cluster route ingress connections running task instance.

swarm mode has internal dns component automatically assigns each service in swarm dns entry. swarm manager uses internal load balancing distribute requests among services within cluster based upon dns name of service.


update

the following article discusses how integrate proxy load balancer docker engine


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -