Hi guys,
I’m pretty new to Rancher and docker.
I have currently 3 hosts set up.
I’m trying to set up a web server which would be reachable at any time, even if 2 of the hosts are unreachable.
I saw a load balancer option but I still don’t get where I should point the web domain name to?
Did your nginx service have a health check? Otherwise, having a a host in reconnecting will not re-schedule the containers of the service onto another host.
Hi Denise,
many thanks,
you’re right, I didn’set it up. Should I check it with with http or tcp ?
Here are more details about my setup.
I have 3 hosts, host1, host2 and host3
I have 2 stacks with 1 nginx service each, sidekicked with a php service. let’s call it web1,and web2.
Each stack is scaled to 3.
I have another stack, created only for load balancing and dns routing.
One load balancer service is created inside, deployed on every host, routing web1.mydomain.com to web1/nginx, and web2.mydomain.com to web2/nginx
load balancer is deployed on my hosts and dns are setup as round robin betwween the 3 hosts.
Could you kindly give remarks / advices about my setup ?