Load balancing method based on CPU kernel sharing and device thereof
A CPU core and load balancing technology, applied in multi-programming devices, resource allocation, electrical components, etc., can solve problems such as server load balancing difficulties, and achieve high availability and high performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0030] In the first embodiment of the present invention, a load balancing method based on CPU core sharing, such as figure 2 shown, including the following steps:
[0031] Step 101 , setting and maintaining CPU core load tables of itself and other servers in the server cluster on each server in the server cluster. Assuming that in this embodiment, each server has 4 CPU cores working at the same time, the CPU core load table of each server is as follows image 3 shown.
[0032] Specifically, the way each server obtains its own CPU core load is as follows: in the Windows environment, the CPU core load can be obtained through the operating system, or many application software based on the operating system that can read the CPU core occupancy rate can be used. Load profiles can also be obtained. In the LINUX or UNIX environment, you can directly call the top program to get the CPU core load. In addition, those skilled in the art can also use C language to write a small progra...
no. 2 example
[0041] The second embodiment of the present invention is a load balancing method based on CPU core sharing, which is roughly the same as the load balancing method in the first embodiment, the difference is that the server set and maintained on each server in the server cluster The CPU core load table of all servers in the cluster further includes the weight value of the server, such as Figure 4 As shown, the weight value is set according to the criticality of the server processing business.
[0042] Just because the weight value of the server is included in the CPU core load table, this embodiment has the following advantages compared with the first embodiment: when an idle server receives load migration requests from at least two servers at the same time, if it can Provide idle CPU cores to participate in the service of migrating load, and select and process the client request of the server with the higher weight value according to the weight values of the two servers.
no. 3 example
[0043] In the third embodiment of the present invention, a load balancing device based on CPU core sharing, such as Figure 5 As shown, it includes the following components:
[0044] The CPU core load table configuration maintenance module is used to record and update the CPU core load tables of itself and other servers in the server cluster on the server in real time.
[0045] The migration load judging module is used to judge the processing capability of client requests according to its own CPU core load table, find out idle servers according to the CPU core load tables of other servers in the server cluster, and send load migration requests to idle servers.
[0046] The migration load negotiation module, when the server does not have the ability to process client requests, the migration load negotiation with the idle server is carried out through this module.
[0047] The client request processing module is configured to schedule a local idle CPU core to process the client...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com
