CN111343290A - Cloud platform system with load balancing function - Google Patents
Cloud platform system with load balancing function Download PDFInfo
- Publication number
- CN111343290A CN111343290A CN202010442215.4A CN202010442215A CN111343290A CN 111343290 A CN111343290 A CN 111343290A CN 202010442215 A CN202010442215 A CN 202010442215A CN 111343290 A CN111343290 A CN 111343290A
- Authority
- CN
- China
- Prior art keywords
- server
- load
- module
- load balancing
- unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention relates to the technical field of cloud platforms, in particular to a cloud platform system with a load balancing function. The system comprises a network communication module unit, a server running state unit and a load balancing unit; the network communication module unit is used for ensuring normal communication of a network; the server running state unit is used for acquiring running state data of the server; the load balancing service list is used for calculating the comprehensive load of the server. The invention sends the load information of the server to the load balancing unit for processing, and dynamically adjusts according to the comprehensive load value fed back by the server, thereby reducing the resource consumption of the server and achieving the effect of load balancing.
Description
Technical Field
The invention relates to the technical field of cloud platforms, in particular to a cloud platform system with a load balancing function.
Background
A new generation of general computer system product for realizing cloud computing use effect of a cloud platform under a local area network architecture is a cloud platform comprehensive management system which is constructed on basic hardware resources such as servers, storage and networks and basic software such as a stand-alone operating system, middleware and a database to manage massive basic hardware and software resources. Compared with the development of network technology, the increase of the processing speed and the memory access speed of the server is far lower than the increase of network bandwidth and application service, and the increase of the number of users brought by the increase of the network bandwidth also causes the consumption of server resources to be serious, thereby causing the load of the server resources to be serious.
Disclosure of Invention
The present invention is directed to a cloud platform system with load balancing function, so as to solve the problems in the background art.
In order to solve the above technical problems, an object of the present invention is to provide a cloud platform system with a load balancing function, which includes a network communication module unit, a server operation state unit, and a load balancing unit; the network communication module unit is used for ensuring normal communication of a network; the server running state unit is used for acquiring running state data of the server; the load balancing service list is used for calculating the comprehensive load of the server.
As a further improvement of the technical solution, the network communication module unit includes a load balancing service module, a network basic communication module and a user request forwarding module; the load balancing service module is used for delivering the sent request data to the load balancing unit for processing; the network basic communication module is used for processing the data processed by the non-load balancing unit; and the user request forwarding module is used for forwarding the user request according to the running state of the server.
The processing flow of the load balancing service module is as follows:
a1, the data packet arrives at the switch;
a2, the switch can not find the flow table item which can be matched, and sends packet-in information to the control;
a3, the controller receives the packet-in message and delivers the packet-in message to the load balancing unit for processing.
The processing flow of the network basic communication module is as follows:
b1, the data packet arrives at the switch;
b2, the destination IP of the data packet is not the network service responsible for the load balancing unit;
b3, the load balancing unit does not do any processing, and directly transmits the packet-in message to the network communication module unit for processing, so as to ensure normal communication of other services.
The forwarding user request module is communicated with the server through the Ethernet switch and the network card connected with the controller through the Ethernet switch, and the running state of the server is obtained through the SNMP protocol.
As a further improvement of the technical solution, the server operation state unit includes a module for dynamically feeding back a current server load, a server processing capacity calculation module, and a comprehensive load calculation module; the dynamic feedback current server load module is used for collecting the utilization rate of a CPU (central processing unit) and a memory of each server; the server processing capacity calculation module is used for calculating the processing capacity of the server; and the comprehensive load calculating module is used for calculating the comprehensive load of the server.
As a further improvement of the technical solution, a calculation formula for dynamically feeding back the current server load amount module is as follows:
wherein the content of the first and second substances,for the usage of the i-th server CPU,for the usage rate of the i-th station memory,andas a weight value, the weight value,the load capacity of the ith server is obtained through calculation.
Wherein the content of the first and second substances,andto emphasize the different degrees of influence of the service type on the respective parts,。
as a further improvement of the technical solution, a calculation formula of the server processing capacity calculation module is:
wherein the content of the first and second substances,as to the processing power of the ith server,the number of the CPU of the ith server,the size of the memory of the ith server,andis a weight value.
As a further improvement of the technical solution, a calculation formula of the comprehensive load calculation module is as follows:
wherein the content of the first and second substances,for the integrated load capacity of the ith server,to calculate the load of the ith server,is the processing power of the ith server.
As a further improvement of the technical solution, the load balancing unit includes a load calculating module and an allocation weight calculating module; the load calculation module is used for calculating the load average quantity of the server; the distribution weight calculation module is used for calculating the weight proportion of load distribution.
The load calculation module comprises a CPU load average value and a memory utilization rate, and records:the total state of the server is:=for a period of timeInternal serverCPU load ofThe average values are:
the memory utilization rate is as follows:
as a further improvement of the present technical solution, a calculation formula of the distribution weight calculation module is:
Another object of the present invention is to provide a cloud platform apparatus with a load balancing function, which includes a processor, a memory, and a computer program stored in the memory and running on the processor, wherein the processor is configured to implement any of the cloud platform systems with the load balancing function when executing the computer program.
A third object of the present invention is to provide a computer-readable storage medium storing a computer program, which when executed by a processor implements any of the above cloud platform systems with load balancing functions.
Compared with the prior art, the invention has the beneficial effects that: in the cloud platform system with the load balancing function, the utilization rate of a CPU and a memory of each server is collected, then the collected load information of each server is sent to the load balancing unit for processing, dynamic adjustment is carried out according to a comprehensive load value fed back by the server, the resource consumption of the server is reduced, and the load balancing effect is achieved.
Drawings
FIG. 1 is an overall block diagram of embodiment 1;
FIG. 2 is a block diagram of a network communication module according to embodiment 1;
FIG. 3 is a block diagram of a server operation state unit according to embodiment 1;
FIG. 4 is a block diagram of a load balancing unit according to embodiment 1;
fig. 5 is a schematic structural diagram of the cloud platform apparatus according to embodiment 1.
The various reference numbers in the figures mean:
100. a network communication module unit; 101. a load balancing service module; 102. a network base communication module; 103. a user request forwarding module;
200. a server operation state unit; 201. dynamically feeding back a current server load module; 202. a server processing capacity calculation module; 203. a comprehensive load amount calculation module;
300. a load balancing service unit; 301. a load calculation module; 302. and distributing a weight calculation module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
As shown in fig. 1 to 5, the present embodiment provides a cloud platform system with a load balancing function, which includes a network communication module unit 100, a server operation state unit 200, and a load balancing unit 300; the network communication module unit 100 is used for ensuring normal communication of a network; the server operation state unit 200 is configured to obtain operation state data of a server; the load balancing service order 300 is used to compute the aggregate load of the servers.
In this embodiment, the network communication module 100 includes a load balancing service module 101, a network basic communication module 102, and a user request forwarding module 103; the load balancing service module 101 is configured to deliver the sent request data to the load balancing unit 300 for processing; the network basic communication module 102 is configured to process data processed by the non-load balancing unit 300; the user request forwarding module 103 is configured to forward a user request according to the operation status of the server.
The processing flow of the load balancing service module 101 is as follows:
a1, the data packet arrives at the switch;
a2, the switch can not find the flow table item which can be matched, and sends packet-in information to the control;
a3, the controller receives the packet-in message and delivers the packet-in message to the load balancing unit 300 for processing.
The processing flow of the network basic communication module 102 is as follows:
b1, the data packet arrives at the switch;
b2, the destination IP of the data packet is not the network service for which the load balancing unit 300 is responsible;
b3 and the load balancing unit 300 do nothing, and directly transmit the packet-in message to the network communication module unit 100 for processing, so as to ensure that other services communicate normally.
The forwarding user request module 103 is connected to the network card connected to the controller through the ethernet switch, the controller communicates with the server through the ethernet switch, and the operation state of the server is obtained by using the SNMP protocol.
Further, the server operation state unit 200 includes a module 201 for dynamically feeding back the current server load, a module 202 for calculating the server processing capacity, and a module 203 for calculating the comprehensive load; the dynamic feedback current server load module 201 is used for collecting the utilization rate of the CPU and the memory of each server; the server processing capacity calculation module 202 is used for calculating the processing capacity of the server; the comprehensive load amount calculating module 203 is configured to calculate a comprehensive load amount of the server.
Specifically, the calculation formula for dynamically feeding back the current server load amount module 201 is as follows:
wherein the content of the first and second substances,for the usage of the i-th server CPU,for the usage rate of the i-th station memory,andas a weight value, the weight value,the load capacity of the ith server is obtained through calculation.
Wherein the content of the first and second substances,andto emphasize the different degrees of influence of the service type on the respective parts,。
still further, the calculation formula of the server processing capability calculation module 202 is as follows:
wherein the content of the first and second substances,as to the processing power of the ith server,the number of the CPU of the ith server,the size of the memory of the ith server,andis a weight value.
In addition, the calculation formula of the comprehensive load amount calculation module 203 is:
wherein the content of the first and second substances,for the integrated load capacity of the ith server,to calculate the load of the ith server,is the processing power of the ith server.
In addition, the load balancing unit 300 includes a load calculation module 301 and an allocation weight calculation module 302; the load calculation module 301 is used for calculating the load average amount of the server; the distribution weight calculation module 302 is used for calculating the weight proportion of the load distribution.
The load calculation module 301 includes a CPU load average value and a memory usage rate, and records:the total state of the server is:=for a period of timeInternal serverCPU load ofThe average values are:
the memory utilization rate is as follows:
it should be noted that the calculation formula of the assignment weight calculation module 302 is:
Referring to fig. 5, a schematic structural diagram of a cloud platform apparatus with a load balancing function according to this embodiment is shown, where the apparatus includes a processor, a memory, and a bus.
The processor comprises one or more processing cores, the processor is connected with the processor through a bus, the memory is used for storing program instructions, and the cloud platform system with the load balancing function is realized when the processor executes the program instructions in the memory.
Alternatively, the memory may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
In addition, the present invention also provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the cloud platform system with the load balancing function is implemented.
Optionally, the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the cloud platform system with load balancing function in the above aspects.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, or may be implemented by hardware related to instructions of a program, and the program may be stored in a computer readable storage medium, where the above mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, and the preferred embodiments of the present invention are described in the above embodiments and the description, and are not intended to limit the present invention. The scope of the invention is defined by the appended claims and equivalents thereof.
Claims (7)
1. A cloud platform system with load balancing function is characterized in that: the system comprises a network communication module unit (100), a server running state unit (200) and a load balancing unit (300); the network communication module unit (100) is used for ensuring normal communication of a network; the server running state unit (200) is used for acquiring running state data of the server; the load balancing service unit (300) is used for calculating the comprehensive load of the server; the network communication module unit (100) comprises a load balancing service module (101), a network basic communication module (102) and a user request forwarding module (103); the load balancing service module (101) is used for delivering the sent request data to a load balancing unit (300) for processing; the network basic communication module (102) is used for processing data processed by the non-load balancing unit (300); the user request forwarding module (103) is used for forwarding a user request according to the running state of the server; the server operation state unit (200) comprises a module (201) for dynamically feeding back the current server load, a module (202) for calculating the server processing capacity and a module (203) for calculating the comprehensive load; the dynamic feedback current server load module (201) is used for collecting the utilization rate of a CPU and a memory of each server; the server processing capacity calculation module (202) is used for calculating the processing capacity of the server; the comprehensive load calculating module (203) is used for calculating the comprehensive load of the server; the calculation formula of the dynamic feedback current server load module (201) is as follows:
2. The cloud platform system with load balancing function according to claim 1, wherein: the calculation formula of the server processing capacity calculation module (202) is as follows:
3. The cloud platform system with load balancing function according to claim 1, wherein: the calculation formula of the comprehensive load calculation module (203) is as follows:
and the AL is the comprehensive load capacity of the ith server, the LS is the calculated load capacity of the ith server, and the C is the processing capacity of the ith server.
4. The cloud platform system with load balancing function according to claim 1, wherein: the load balancing unit (300) comprises a load calculation module (301) and an allocation weight calculation module (302); the load calculation module (301) is used for calculating the load average quantity of the server; the distribution weight calculation module (302) is used for calculating the weight proportion of the load distribution.
6. A cloud platform device with a load balancing function is characterized in that: comprising a processor, a memory, and a computer program stored in the memory and running on the processor, the processor being configured to implement the cloud platform system with load balancing functionality according to any one of claims 1 to 5 when executing the computer program.
7. A computer-readable storage medium storing a computer program, characterized in that: the computer program, when executed by a processor, implements a load balancing enabled cloud platform system as claimed in any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010442215.4A CN111343290A (en) | 2020-05-22 | 2020-05-22 | Cloud platform system with load balancing function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010442215.4A CN111343290A (en) | 2020-05-22 | 2020-05-22 | Cloud platform system with load balancing function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111343290A true CN111343290A (en) | 2020-06-26 |
Family
ID=71186475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010442215.4A Pending CN111343290A (en) | 2020-05-22 | 2020-05-22 | Cloud platform system with load balancing function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111343290A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817836A (en) * | 2021-02-22 | 2021-05-18 | 深信服科技股份有限公司 | Method, device, equipment and storage medium for determining server load |
CN113301126A (en) * | 2021-05-06 | 2021-08-24 | 中国南方电网有限责任公司 | Edge calculation method suitable for heterogeneous networking gateway |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104581423A (en) * | 2013-10-12 | 2015-04-29 | 北京航天长峰科技工业集团有限公司 | Comprehensive scheduling and load balancing method for intelligent massive video analysis system |
CN105471938A (en) * | 2014-08-19 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Server load management method and server load management device |
CN108282523A (en) * | 2018-01-18 | 2018-07-13 | 东华大学 | A kind of SiteServer LBS based on SDN |
US10237341B1 (en) * | 2012-03-29 | 2019-03-19 | Emc Corporation | Method and system for load balancing using server dormant mode |
-
2020
- 2020-05-22 CN CN202010442215.4A patent/CN111343290A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10237341B1 (en) * | 2012-03-29 | 2019-03-19 | Emc Corporation | Method and system for load balancing using server dormant mode |
CN104581423A (en) * | 2013-10-12 | 2015-04-29 | 北京航天长峰科技工业集团有限公司 | Comprehensive scheduling and load balancing method for intelligent massive video analysis system |
CN105471938A (en) * | 2014-08-19 | 2016-04-06 | 腾讯科技(深圳)有限公司 | Server load management method and server load management device |
CN108282523A (en) * | 2018-01-18 | 2018-07-13 | 东华大学 | A kind of SiteServer LBS based on SDN |
Non-Patent Citations (1)
Title |
---|
周松泉: "一种改进的集群动态负载均衡算法", 《计算机与现代化》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817836A (en) * | 2021-02-22 | 2021-05-18 | 深信服科技股份有限公司 | Method, device, equipment and storage medium for determining server load |
CN113301126A (en) * | 2021-05-06 | 2021-08-24 | 中国南方电网有限责任公司 | Edge calculation method suitable for heterogeneous networking gateway |
CN113301126B (en) * | 2021-05-06 | 2024-03-12 | 中国南方电网有限责任公司 | Edge computing method suitable for heterogeneous networking gateway |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10447594B2 (en) | Ensuring predictable and quantifiable networking performance | |
US9910708B2 (en) | Promotion of calculations to cloud-based computation resources | |
CN107087019A (en) | A kind of end cloud cooperated computing framework and task scheduling apparatus and method | |
Liu et al. | eBA: Efficient bandwidth guarantee under traffic variability in datacenters | |
CN110830391A (en) | Resource allocation method and device and cluster system | |
US20090293056A1 (en) | Methods and systems for automatic self-management of virtual machines in cloud-based networks | |
CN104092756A (en) | Cloud storage system resource dynamic allocation method based on DHT mechanism | |
MX2015006471A (en) | Method and apparatus for controlling utilization in a horizontally scaled software application. | |
CN111343290A (en) | Cloud platform system with load balancing function | |
Shahapure et al. | Load balancing with optimal cost scheduling algorithm | |
US8780723B2 (en) | Communication system and communication apparatus | |
Eymann et al. | Self-organizing resource allocation for autonomic network | |
US11709707B2 (en) | Low latency distributed counters for quotas | |
CN113328906A (en) | Flow real-time monitoring method and device, storage medium and electronic equipment | |
Wang et al. | A game theoretical bandwidth allocation mechanism for cloud robotics | |
CN109981794B (en) | Processing method and device based on block chain node point network and electronic equipment | |
CN114598656B (en) | Load balancing method and system applied to delivery service platform | |
WO2022267458A1 (en) | Load balancing method, apparatus and device, and storage medium | |
Jarma et al. | Dynamic service contract enforcement in service-oriented networks | |
CN112073223B (en) | System and method for managing and controlling operation of cloud computing terminal and cloud server | |
Rodriguez et al. | Green virtualized networks | |
CN116366563A (en) | Data transmission method, system, electronic equipment and storage medium | |
Blaiech et al. | Runtime resource allocation model over network processors | |
CN113918349A (en) | Distributed computing system and method | |
CN117857458A (en) | Distributed flow control method and system based on quasi-real-time statistics |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200626 |
|
RJ01 | Rejection of invention patent application after publication |