Windows Azure Load Balancing session remains

Source: Internet
Author: User
Tags server memory azure load balancer

Windows Azure Load Balancer defaults to 5-tuple hash: Source address, source port, destination address, destination port, protocol. That is, only session packets with exactly the same five tuples will be forwarded to the same back-end server. Obviously, for the vast majority of users with NAT Internet access, the 5-tuple does not have a session-hold function. The IPv4 is getting less and IPv6 still floating.

From an application perspective, in particular, some early Web applications do not have the ability to centralize management, and the session is stored in the Web server memory. In order to migrate to Windows Azure and modify the code, users will always feel uncomfortable, although we have thousands of reasons to persuade customers how meaningful this is.

The load balancer for Windows Azure already supports both 2-tuple hash and 3-tuple hash-mode loads, and it's plain that the source and destination ports are removed from the original 5-tuple. This way, the source address, destination address, and protocol in the session packet will not change even if you are surfing the Internet through NAT. Only the 2, 3-tuple hash mode load balancer can now be created and used only through PowerShell.

For a load balancer that already exists, you can use the following PowerShell script to set it to a 2-tuple hash mode for session persistence based on four-tier load balancing:

" SourceIP " -servicename [Cloud service name]-lbsetname [load balancer set name]

If you want to set to 3-tuple hash mode, change [SourceIP] in the above script to [Sourceipprotocol].

Windows Azure Load Balancing session remains

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.