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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -