Does Azure load balancer allow connection draining -


i cant seem find documentation it.

if connection draining not available how 1 supposed zero-downtime deployments?

rick rainey answered essentially same question on server fault. states:

the recommended way have custom health probe in load balanced set. example, have simple healthcheck.html page on each of vm's (in wwwroot example) , direct probe load balanced set page. long probe can retrieve page (http 200), azure load balancer keep sending user requests vm.

when need update vm, can rename healthcheck.html different name such _healthcheck.html. cause probe start receiving http 404 errors , take machine out of load balanced rotation because not getting http 200. existing connections continue serviced azure lb stop sending new requests vm.

after updates on vm have been completed, rename _healthcheck.html healthcheck.html. azure lb probe start getting http 200 responses , result start sending requests vm again.

repeat each vm in load balanced set.

note, however, kevin williamson microsoft states in msdn blog post heartbeats, recovery, , load balancer, "make sure probe path not simple html page, includes logic determine service health (eg. try connect sql database)." may want aspx page can check several factors, including custom "drain" flag put somewhere.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -