Azure virtual machine load balancing

Source: Internet
Author: User

Azure Load Balancing

Load Balancing Overview:

Microsoft Azure provides load balancing services for virtual machines (IAAS) and cloud services (PAAs) hosted in it. Server Load balancer supports application scaling and provides application fault recovery and other advantages. You can access the server Load balancer service by specifying the input endpoints on the service through the Microsoft Azure portal or the service model of the application. When a managed service with one or more input endpoints is deployed on Microsoft Azure, it automatically configures the Server Load balancer service provided by the Microsoft Azure platform. To fully utilize the elasticity and redundancy of services, you must have at least two virtual machines serve the same endpoint.

Is an example of an application hosted in Microsoft Azure that uses the load balancing service to pass in traffic (Address/port ....... CN: 8080) boot to three VMS, all of which listen on port 80.

650) This. width = 650; "width =" 615 "Height =" 568 "Title =" Load Balancing .jpg "style =" width: 739px; Height: 421px; "alt =" wkiol1p5nqsc2xbmaagl3wj3cqy981.jpg "src =" http://s3.51cto.com/wyfs02/M02/47/5C/wKioL1P5nQSC2XBMAAGl3wJ3CqY981.jpg "/>

Configure Server Load balancer in azure

1. log on to the Windows azure Management Portal.

650) This. width = 650; "width =" 1200 "Height =" 987 "Title =" 1.jpg" style = "width: 732px; Height: 400px; "alt =" wKiom1P5nB2waYgRAAR-cokU-K0861.jpg "src =" http://s3.51cto.com/wyfs02/M01/47/5B/wKiom1P5nB2waYgRAAR-cokU-K0861.jpg "/>

2. the azure portal provides Web Services for two virtual machines,

650) This. width = 650; "Title =" 2.jpg" alt = "wkiol1p5nalq7zfeaaj4zoxxfeq544.jpg" src = "http://s3.51cto.com/wyfs02/M01/47/5C/wKioL1P5naLQ7ZfEAAJ4zoXxfEQ544.jpg"/>

3. Select the webserver1 Virtual Machine and create the endpoint,

650) This. width = 650; "Title =" 3.jpg" alt = "wkiom1p5nyaztsx6aajjk4zm1yk815.jpg" src = "http://s3.51cto.com/wyfs02/M00/47/5B/wKiom1P5nYazTSx6AAJJK4zm1yk815.jpg"/>

4. Add an independent endpoint port to the webserver1 virtual machine,

650) This. width = 650; "Title =" 4.jpg" alt = "wkiom1p5nvlxxe7_aagxwr81rvg873.jpg" src = "http://s3.51cto.com/wyfs02/M00/47/5B/wKiom1P5nvLxXE7_AAGxwR81rvg873.jpg"/>

5. Create a node name, set the Protocol to TCP, public port to 8080, and virtual machine private port to 80. Select the create Server Load balancer set check box,

650) This. width = 650; "Title =" 5.jpg" alt = "wKiom1P5n6-CB8gaAAIWTDpAyS8914.jpg" src = "http://s3.51cto.com/wyfs02/M02/47/5B/wKiom1P5n6-CB8gaAAIWTDpAyS8914.jpg"/>

6. Create a Server Load balancer collection, protocol, port, probe interval, and probe count,

650) This. width = 650; "Title =" 8.jpg" alt = "wkiom1p5oomgthroaah65dtulz0953.jpg" src = "http://s3.51cto.com/wyfs02/M02/47/5B/wKiom1P5oOmgTHRoAAH65dtUlz0953.jpg"/>

7. wenserver1 endpoint, load balancing set, created successfully ,:

650) This. width = 650; "Title =" 6.jpg" alt = "wKioL1P5ojHxjCv2AAKeeme66-I864.jpg" src = "http://s3.51cto.com/wyfs02/M01/47/5C/wKioL1P5ojHxjCv2AAKeeme66-I864.jpg"/>

8. Create an endpoint and a load balancing set for webserver2,

650) This. width = 650; "Title =" 8.jpg" alt = "wkiol1p5o_hc1m3saah7rmw7ba4968.jpg" src = "http://s3.51cto.com/wyfs02/M01/47/5C/wKioL1P5o_HC1m3SAAH7rMW7BA4968.jpg"/>

9. Add the webserver to an existing load balancing set,

650) This. width = 650; "Title =" 9.jpg" alt = "wkiol1p5pesak0fkaagwqpidafm687.jpg" src = "http://s3.51cto.com/wyfs02/M00/47/5D/wKioL1P5pESAk0fKAAGwqpiDAfM687.jpg"/>

10. Define the name of the endpoint. The ports are consistent,

650) This. width = 650; "Title =" 11.jpg" alt = "wkiol1p5pitj2sbqaaip31iflom073.jpg" src = "http://s3.51cto.com/wyfs02/M00/47/5D/wKioL1P5pITj2sbqAAIP31iFLoM073.jpg"/>

11. The websever has been successfully added to the existing endpoint,

650) This. width = 650; "Title =" 12.jpg" alt = "wkiom1p5o9xypoeleakalblsce580.jpg" src = "http://s3.51cto.com/wyfs02/M00/47/5B/wKiom1P5o9XypoELAAKAlzBLScE580.jpg"/>

Verify the load balancing function:

1. Copy the Web/URL of the VM for access,

650) This. width = 650; "Title =" 13.jpg" alt = "wkiom1p5pvvzwvifaajs4eugj_0688.jpg" src = "http://s3.51cto.com/wyfs02/M01/47/5B/wKiom1P5pVvzWVIfAAJS4eUGJ_0688.jpg"/>

2. Access the webserver application through the webpage. The client has accessed webserver1, server,

650) This. width = 650; "width =" 1200 "Height =" 837 "Title =" 16.jpg" style = "width: 1166px; Height: 809px; "alt =" wkiom1p5ppayybpdaakicbmtmxa736.jpg "src =" http://s3.51cto.com/wyfs02/M02/47/5B/wKiom1P5ppayyBpdAAKicbmtmXA736.jpg "/>

3. Visit http://xyliu.chinacloudapp.cn/8080 again on the webpage. The client has connected to wevserver2 and the server,

650) This. width = 650; "width =" 1200 "Height =" 836 "Title =" 14.jpg" style = "width: 1166px; Height: 772px; "alt =" wkiol1p5qhyxj5zmaal9q2et1zu339.jpg "src =" http://s3.51cto.com/wyfs02/M02/47/5D/wKioL1P5qHyxj5zMAAL9q2eT1ZU339.jpg "/>

Through the previous steps, the server and load balancing functions are basically implemented. In the next section, we will share the Virtual Machine Set in azure for fault tolerance and fault tolerance, and confirm the physical location of the Virtual Machine storage.

Azure virtual machine load balancing

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.