azure - How does the load balancer decide how to route requests? -
the titles says everything: let's created 3 vm's load balancing on port 80 in 1 cloud service. there request cloud service: how load balancer decide of these 3 vm's should route request? there specific metric or load balancer routes randomly?
microsoft azure load balancer layer-4 type load balancer. microsoft azure load balancer distributes load among set of available servers (virtual machines) computing hash function on traffic received on given input endpoint. hash function computed such packets same connection (tcp or udp) end on same server. microsoft azure load balancer uses 5 tuple (source ip, source port, destination ip, destination port, protocol type) calculate hash used map traffic available servers. hash function chosen such distribution of connections servers random. however, depending on traffic pattern, possible different connections mapped same server.
full details: https://azure.microsoft.com/en-us/blog/microsoft-azure-load-balancing-services/
Comments
Post a Comment