LOAD BALANCING COMPUTER DEVICE, SYSTEM, AND METHOD
First Claim
1. A method for balancing load among devices, applied to a computer system that comprises at least a first computer device and a second computer device, wherein the first computer device comprises a cloud management platform, and the second computer device comprises at least one virtual machine;
- the method comprising;
obtaining, by the first computer device, configuration information of a load balancer, wherein the configuration information of the load balancer comprises an identifier of the load balancer and a virtual IP address (VIP) of the load balancer;
instructing, by the first computer device, the second computer device to create the load balancer according to the configuration information;
configuring, by the first computer device, a forwarding mode of a service on the second computer device, wherein the service is initiated by the virtual machine, and wherein in the forwarding mode, a service packet of the service is forwarded to the load balancer;
receiving, by the load balancer, the service packet of the service from the virtual machine; and
selecting, by the load balancer, at least one back-end server to execute the service.
2 Assignments
0 Petitions
Accused Products
Abstract
A computer device, a system, and a load balancing method are provided. A load balancing virtual machine is created on the computer device. When load balancing processing needs to be performed on a service of a virtual machine of the computer device, a related service packet is sent to the load balancing virtual machine of the computer device, so as to perform load balancing processing, thereby avoiding a processing delay caused by congestion of centralized load balancing. In addition, when a computer device is faulty, a virtual machine of the computer device goes offline accordingly, and a load balancing requirement is not generated any more. Therefore, when a fault of a single computer device causes a fault of a load balancing virtual machine, there is no service interruption that is caused by active/standby switchover because of the fault of the load balancing virtual machine.
42 Citations
13 Claims
-
1. A method for balancing load among devices, applied to a computer system that comprises at least a first computer device and a second computer device, wherein the first computer device comprises a cloud management platform, and the second computer device comprises at least one virtual machine;
- the method comprising;
obtaining, by the first computer device, configuration information of a load balancer, wherein the configuration information of the load balancer comprises an identifier of the load balancer and a virtual IP address (VIP) of the load balancer; instructing, by the first computer device, the second computer device to create the load balancer according to the configuration information; configuring, by the first computer device, a forwarding mode of a service on the second computer device, wherein the service is initiated by the virtual machine, and wherein in the forwarding mode, a service packet of the service is forwarded to the load balancer; receiving, by the load balancer, the service packet of the service from the virtual machine; and selecting, by the load balancer, at least one back-end server to execute the service. - View Dependent Claims (2, 3, 4, 5)
- the method comprising;
-
6. A method for balancing load among devices, applied to a computer system that comprises at least a first computer device and a second computer device, wherein the first computer device comprises a cloud management platform, and the second computer device comprises at least one virtual machine;
- the method comprising;
obtaining, by the first computer device, configuration information of a load balancer, wherein the configuration information of the load balancer comprises an identifier of the load balancer and a virtual IP address (VIP) of the load balancer; instructing, by the first computer device, the second computer device to create the load balancer according to the configuration information; and configuring, by the first computer device, a forwarding mode of a service on the second computer device; wherein the service is initiated by the virtual machine, wherein in the forwarding mode, a service packet of the service is forwarded to the load balancer, and wherein after receiving the service packet, the load balancer selects a back-end server for executing the service. - View Dependent Claims (7, 8)
- the method comprising;
-
9. A computer system, comprising at least a first computer device and a second computing device, the first computer device comprises a cloud management platform, and the second computer device comprises at least one virtual machine,
wherein the first computer device is configured to: -
obtain configuration information of a load balancer, wherein the configuration information of the load balancer comprises an identifier of the load balancer and a virtual IP address (VIP) of the load balancer; instruct the second computer device to create the load balancer according to the configuration information; and configure a forwarding mode of a service on the second computer device, wherein the service is initiated by the virtual machine, and wherein in the forwarding mode, a service packet of the service is forwarded to the load balancer; wherein the second computer device is configured to; provide a media access control (MAC) address of the load balancer to the virtual machine, and enable the load balancer to select at least one back-end server for forwarding the service packet of the service from the virtual machine to the back-end server. - View Dependent Claims (10, 11)
-
-
12. A computer device, comprising a processor and a memory,
wherein a hypervisor runs on the computer device, the hypervisor bears a load balancer and at least one virtual machine, the load balancer provides a load balancing service for the virtual machine; -
wherein the computer device is configured to; receive configuration information of the load balancer, the configuration information of the load balancer comprises an identifier of the load balancer and a virtual IP address VIP of the load balancer; create the load balancer according to the configuration information; and configure a forwarding mode of the load balancing service, wherein in the forwarding mode, a service packet of a service initiated by the virtual machine is forwarded to the load balancer; wherein the load balancer receives the service packet from the virtual machine and selects at least one back-end server to execute the service for the virtual machine. - View Dependent Claims (13)
-
Specification