Internally load balance Docker Containers using Azure Container Service -


i using azure container service docker swarm host containers. containers running asp.net core web api , have private port exposed. trying use haproxy internal load balancer in front of these containers in turn exposed through port 8080 on azure container service.

here haproxy.cfg

global    log 127.0.0.1   local0    log 127.0.0.1   local1 notice    #log loghost    local0 info    maxconn 4096    chroot /usr/local/etc/haproxy    uid 99    gid 99  defaults     mode http     timeout connect 5000ms     timeout client 50000ms     timeout server 50000ms  frontend http-in     bind *:8080     default_backend servers  backend servers     server server1 10.0.0.4:8080 maxconn 32     server server1 10.0.0.5:8080 maxconn 32     server server1 10.0.0.6:8080 maxconn 32 

with docker swarm orchestrator, acs creates load balancers (separate agents , masters) in swarm based cluster. not need worry anymore.

see sample demonstration here: "microsoft azure container service engine - swarm walkthrough"


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -