CN110049126A - A kind of computer network load-balancing method - Google Patents
A kind of computer network load-balancing method Download PDFInfo
- Publication number
- CN110049126A CN110049126A CN201910312209.4A CN201910312209A CN110049126A CN 110049126 A CN110049126 A CN 110049126A CN 201910312209 A CN201910312209 A CN 201910312209A CN 110049126 A CN110049126 A CN 110049126A
- Authority
- CN
- China
- Prior art keywords
- server
- load
- load balance
- balance management
- management server
- 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.)
- Withdrawn
Links
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)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of computer network load-balancing methods, are related to Network Load Balance Technology field.The present invention includes setting load balance management server;Load balance management server and each processing server establish connection and by the storage of each server ip into server management table;Load balance management server and each network equipment establish connection and by the storage of each network appliance IP into equipment management table;The type of load balance management server selection processing server;Load balance management server selects processing server most lightly loaded from selection type and task requests is distributed to selected task processor.The present invention passes through heterogeneous networks device class and corresponding to different disposal classification server, and the processing server of corresponding types is first selected according to the type difference of the network equipment by load balance management server, the special treatment for realizing different types of task requests improves the efficient process of the task requests of the network equipment.
Description
Technical field
The invention belongs to Network Load Balance Technology fields, more particularly to a kind of computer network load-balancing method.
Background technique
Becoming increasingly popular and develop with network broadband, network connection is in Fast growth phase, to development communication technologies
Constantly challenge.The Internet application of the prevalence such as streaming media on demand, P2P application, large size 3D online game, shopping at network can be made
At the short high peak and imbalance of network service, the network equipment is possible to delay machine or loss of traffic, causes bad experience to user,
Also result in the loss of economic interests.And the processing capacity of the simple increase network equipment, and can have a large amount of idle capacity,
Cause the waste of Internet resources.
In order to solve the imbalance problem of network service processing, network communication technology is from one-node network server
One-to-many framework migrates to the multi-to-multi framework of clustering, multiserver, extends network throughput and bandwidth, to realize
Inexpensively, efficiently, reliable network service capabilities.
Multiserver framework in the application can there are the following problems: under the network architecture of multiserver, due to server
Connection is different, and different server will receive different task requests, this server resulted in is in high load, even super negative
Carrying row, and some servers are in low-load or idle state, network equipment resource is not effectively utilized.
The present invention provides a kind of computer network load-balancing method, is dedicated to the task of the multiserver processing network equipment
The problem that load when request is uneven, treatment effeciency is lower.
Summary of the invention
The purpose of the present invention is to provide a kind of computer network load-balancing method, by heterogeneous networks device class with
And it is corresponding to different disposal classification server and different first according to the type of the network equipment by load balance management server
The processing server of selected corresponding types, then according still further to the processing most lightly loaded that task requests are distributed to corresponding types again
Server realizes the special treatment of different types of task requests and improves the treatment effeciency of task requests, solves existing
Problem uneven, that treatment effeciency is lower is loaded when the task requests of some multiserver processing network equipments.
In order to solve the above technical problems, the present invention is achieved by the following technical solutions:
The present invention is a kind of computer network load-balancing method, is included the following steps:
Step 1: setting load balance management server;
Step 2: the load balance management server and each processing server establish connection and by each server ips
It stores in server management table;
Wherein, the load balance management server is each processing server marking types and stores to server pipe
It manages in table;Storage server load information is gone back in the server management table;The server load information specifically includes process
It is lined up quantity and cpu busy percentage;
Step 3: the load balance management server establishes connection with each network equipment and stores each network appliance IP
Into equipment management table;
Wherein, the load balance management server is also network equipment marking types and stores to equipment management table;
Step 4: the load balance management server is set after receiving the task requests of the network equipment according to network
Standby type selects the type of corresponding processing server;
Step 5: the load balance management server selects most lightly loaded from several processing servers of selection type
Processing server and task requests are distributed to selected task processor.
Preferably, further include as follows in step 2:
Several servers send connection request to load balance management server;Comprising described in the connection request
Server ip;After the load balance management server receives connection request, by server ip storage to server admin
In table.
It preferably, is also server state initialization after the load balance management server receives connection request;It is described
Server load information specifically includes process queue's quantity and cpu busy percentage;The server state is initial specifically: process row
Team's quantity reset, cpu busy percentage reset.
Preferably, the type of the processing server includes integrated treatment server, image processing server and sound view
Frequency processing server;The marking types of the processing server and the marking types of the network equipment are corresponding;The load balancing
The task requests of the network equipment are distributed to the processing server of corresponding types by management server.
Preferably, each processing server timing is loaded to the load balance management server delivery server believes
Breath;The load balance management server updates server management table after receiving the server load information of real-time delivery.
Preferably, the load balance management server is each processing server in server according to server load information
Load weight sequence is carried out in management table, specific calculate includes the following:
Load capacity=number of processes * process weight+cpu busy percentage * CPU weight;
Wherein, the process weight and CPU weight of the different types of processing server are different.
The invention has the following advantages:
1, of the invention by heterogeneous networks device class and corresponding to different disposal classification server, and pass through load
Balanced management server first selectes the processing server of corresponding types according to the type difference of the network equipment, realizes different type
Task requests special treatment, improve the efficient process of the task requests of the network equipment.
2, the present invention carries out the processing of task requests by preferred allocation processing server most lightly loaded, while handling clothes
The load weight of business device is by number of processes * process weight and cpu busy percentage * CPU weight COMPREHENSIVE CALCULATING, to server load
It is more accurate to assess, and improves the efficiency of the task requests of the multiserver processing network equipment indirectly.
Certainly, it implements any of the products of the present invention and does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will be described below to embodiment required
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of flow chart of computer network load-balancing method of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other
Embodiment shall fall within the protection scope of the present invention.
Specific embodiment one:
Refering to Figure 1, the present invention is a kind of computer network load-balancing method, include the following steps:
Step 1: setting load balance management server;
Step 2: the load balance management server and each processing server establish connection and by each server ips
It stores in server management table;
Wherein, the load balance management server is each processing server marking types and stores to server pipe
It manages in table;Storage server load information is gone back in the server management table;The server load information specifically includes process
It is lined up quantity and cpu busy percentage;
Step 3: the load balance management server establishes connection with each network equipment and stores each network appliance IP
Into equipment management table;
Wherein, the load balance management server is also network equipment marking types and stores to equipment management table;
Step 4: the load balance management server is set after receiving the task requests of the network equipment according to network
Standby type selects the type of corresponding processing server;
Step 5: the load balance management server selects most lightly loaded from several processing servers of selection type
Processing server and task requests are distributed to selected task processor.
Wherein, further include as follows in step 2:
Several servers send connection request to load balance management server;Comprising described in the connection request
Server ip;After the load balance management server receives connection request, by server ip storage to server admin
In table.
It wherein, is also server state initialization after the load balance management server receives connection request;The clothes
Business device load information specifically includes process queue's quantity and cpu busy percentage;The server state is initial specifically: process queue
Quantity reset, cpu busy percentage reset.
Wherein, the type of the processing server includes integrated treatment server, image processing server and audio-video
Processing server;The marking types of the processing server and the marking types of the network equipment are corresponding;The load balancing pipe
The task requests of the network equipment are distributed to the processing server of corresponding types by reason server.
Wherein, each processing server is periodically to the load balance management server delivery server load information;
The load balance management server updates server management table after receiving the server load information of real-time delivery.
Wherein, the load balance management server is each processing server in server pipe according to server load information
Li Biaonei carries out load weight sequence, and specific calculate includes the following:
Load capacity=number of processes * process weight+cpu busy percentage * CPU weight;
Wherein, the process weight and CPU weight of the different types of processing server are different.
It is worth noting that, included each unit is only drawn according to function logic in the above system embodiment
Point, but be not limited to the above division, as long as corresponding functions can be realized;In addition, each functional unit is specific
Title is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
In addition, those of ordinary skill in the art will appreciate that realizing all or part of the steps in the various embodiments described above method
It is that relevant hardware can be instructed to complete by program, corresponding program can store to be situated between in a computer-readable storage
In matter.
Present invention disclosed above preferred embodiment is only intended to help to illustrate the present invention.There is no detailed for preferred embodiment
All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification,
It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to better explain the present invention
Principle and practical application, so that skilled artisan be enable to better understand and utilize the present invention.The present invention is only
It is limited by claims and its full scope and equivalent.
Claims (6)
1. a kind of computer network load-balancing method, which comprises the steps of:
Step 1: setting load balance management server;
Step 2: the load balance management server establishes connection with each processing server and stores each server ip
Into server management table;
Wherein, the load balance management server is each processing server marking types and stores to server management table
In;Storage server load information is gone back in the server management table;The server load information specifically includes process queue
Quantity and cpu busy percentage;
Step 3: the load balance management server and each network equipment establish connection and by the storage of each network appliance IP to setting
In standby management table;
Wherein, the load balance management server is also network equipment marking types and stores to equipment management table;
Step 4: the load balance management server receives after the task requests of the network equipment according to network equipment class
Type selects the type of corresponding processing server;
Step 5: the load balance management server from selected in several processing servers of selection type it is most lightly loaded from
Task requests are simultaneously distributed to selected task processor by reason server.
2. a kind of computer network load-balancing method according to claim 1, which is characterized in that further include in step 2
It is as follows:
Several servers send connection request to load balance management server;It include the service in the connection request
Device IP;After the load balance management server receives connection request, by server ip storage into server management table.
3. a kind of computer network load-balancing method according to claim 2, which is characterized in that the load balancing pipe
It is also server state initialization after managing server reception connection request;The server load information specifically includes process row
Team's quantity and cpu busy percentage;The server state is initial specifically: process queue's quantity reset, cpu busy percentage reset.
4. a kind of computer network load-balancing method according to claim 1, which is characterized in that the processing server
Type include integrated treatment server, image processing server and audio-video processing server;The processing server
Marking types are corresponding with the marking types of the network equipment;The load balance management server is by the task requests of the network equipment
Distribute to the processing server of corresponding types.
5. a kind of computer network load-balancing method according to claim 1, which is characterized in that each processing service
Device is periodically to the load balance management server delivery server load information;The load balance management server receives
Server management table is updated after the server load information of real-time delivery.
6. a kind of computer network load-balancing method according to claim 1, which is characterized in that the load balancing pipe
Reason server is that each processing server carries out load weight sequence in server management table according to server load information, specifically
Calculating includes the following:
Load capacity=number of processes * process weight+cpu busy percentage * CPU weight;
Wherein, the process weight and CPU weight of the different types of processing server are different.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910312209.4A CN110049126A (en) | 2019-04-18 | 2019-04-18 | A kind of computer network load-balancing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910312209.4A CN110049126A (en) | 2019-04-18 | 2019-04-18 | A kind of computer network load-balancing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110049126A true CN110049126A (en) | 2019-07-23 |
Family
ID=67277779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910312209.4A Withdrawn CN110049126A (en) | 2019-04-18 | 2019-04-18 | A kind of computer network load-balancing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110049126A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111107390A (en) * | 2019-12-31 | 2020-05-05 | 广州市百果园网络科技有限公司 | Live broadcast service system and live broadcast connection establishment method |
-
2019
- 2019-04-18 CN CN201910312209.4A patent/CN110049126A/en not_active Withdrawn
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111107390A (en) * | 2019-12-31 | 2020-05-05 | 广州市百果园网络科技有限公司 | Live broadcast service system and live broadcast connection establishment method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210311781A1 (en) | Method and system for scalable job processing | |
Chockler et al. | Spidercast: a scalable interest-aware overlay for topic-based pub/sub communication | |
US20170070457A1 (en) | Multiplexed demand signaled distributed messaging | |
EP3087722B1 (en) | Peer-to-peer network prioritizing propagation of objects through the network | |
EP3439239A1 (en) | Data transmission method and system based on peer-to-peer network | |
CN105357296A (en) | Elastic caching system based on Docker cloud platform | |
CN102281190A (en) | Networking method for load balancing apparatus, server and client access method | |
CN108668178B (en) | Multicast implementation method and related network equipment | |
CN103731487A (en) | Download method, device, system and router for resource file | |
US9104488B2 (en) | Support server for redirecting task results to a wake-up server | |
CN103179217A (en) | Load balancing method and device applicable to WEB application server group | |
US20200081755A1 (en) | Link optimization for callout request messages | |
CN105068755A (en) | Data duplicate storage method facing cloud computing content distribution network | |
CN110515731A (en) | A kind of data processing method, apparatus and system | |
CN104010228A (en) | Apparatus and method for level-based self-adjusting peer-to-peer media streaming | |
Madiha et al. | Quality of experience and quality of service of gaming services in fog computing | |
CN107197039B (en) | A kind of PAAS platform service packet distribution method and system based on CDN | |
CN106330994A (en) | User message publishing method and system | |
CN110049126A (en) | A kind of computer network load-balancing method | |
CN108243215A (en) | The dispatching method and dispatching device of content delivery network service device | |
CN104852964A (en) | Multifunctional server scheduling method | |
CN110769272A (en) | Node adjusting method and related equipment thereof | |
Qiao et al. | Load balancing in peer-to-peer systems using a diffusive approach | |
KR20140097881A (en) | Apparatus and method for load balancing using resource usage prediction | |
CN106533760A (en) | Method and apparatus for constructing CDN system in CM network |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190723 |
|
WW01 | Invention patent application withdrawn after publication |