CN108600344A - A kind of network access request dispatching method, device and storage medium - Google Patents
A kind of network access request dispatching method, device and storage medium Download PDFInfo
- Publication number
- CN108600344A CN108600344A CN201810312584.4A CN201810312584A CN108600344A CN 108600344 A CN108600344 A CN 108600344A CN 201810312584 A CN201810312584 A CN 201810312584A CN 108600344 A CN108600344 A CN 108600344A
- Authority
- CN
- China
- Prior art keywords
- servers
- relay
- link information
- relay servers
- 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.)
- Pending
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
-
- 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
-
- 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/14—Session management
- H04L67/141—Setup of application sessions
-
- 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/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of network access request dispatching method, device and media, to the problem for each server load unevenness caused by the long connection in cluster server.Network access request dispatches system, including:An at least relay server, for the link information of itself to be written to Zookeeper servers;Lookup servers, the link information for obtaining at least one relay server from Zookeeper servers by monitoring mechanism;For each relay server, determine that the reality of the relay servers can distribute connection number according to the link information of the relay servers;The sequence of connection number from high to low, which can be distributed, according to the reality of each relay servers establishes relay server distribution queues;The connection distribution request received is distributed according to relay server distribution queues.
Description
Technical field
The present invention relates to technical field of the computer network more particularly to a kind of network access request control method, device, it is
System and medium.
Background technology
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein
Description recognizes it is the prior art not because not being included in this part.
Server cluster technology refers to that many server centereds are got up to carry out same service together, in client
It is like that only there are one servers.Cluster can carry out parallel computation to obtain very high calculating speed using multiple computers
Degree, can also be backuped with multiple computers, so that any one computer glitch whole system can be with normal operation.
Since server cluster technology has incomparable advantage in business processing compared to individual server, server
Clustering is by more and more main stream websites especially e-commerce website for providing business processing service.
Currently, most of Website servers are when facing a large number of users and concurrently accessing, by the access request to user into
The mode of row load balancing is distributed to different servers and is handled.This method, can be effectively for short Connection Service
The load of balanced each server.It is long to connect since user access request needs to occupy resource for a long time but for long Connection Service
Connect and only just will disconnect in server failure or after restarting, in this way, for be responsible for load balancing server for its not
Know when the long Connection Service of Client-initiated discharges, if be allocated still according to existing load-balancing method, will lead
The load too low for causing the load too high for the server that certain performances are stablized in cluster, certain failures or the server restarted, makes
It is uneven at the load of each server.
Invention content
A kind of network access request dispatching method of offer of the embodiment of the present invention, device and medium, to be directed to cluster service
The problem of each server load unevenness caused by long connection in device.
In a first aspect, providing a kind of network access request scheduling system, including Lookup servers, Zookeeper service
Device and at least one relaying relay server, wherein:
An at least relay server, for the link information of itself to be written to the Zookeeper servers;
The Lookup servers obtain described at least one for passing through monitoring mechanism from the Zookeeper servers
The link information of platform relay servers;For each relay server, determined according to the link information of the relay servers
The reality of the relay servers can distribute connection number;Connection number can be distributed according to the reality of each relay servers from high to low
Sequence establishes relay server distribution queues;The connection distribution received according to relay servers distribution queue distribution is asked
It asks.
Optionally, the link information includes maximum number of connections and current connection number;And
The Lookup servers are specifically used for being directed to each relay server, most according to the relay servers
Big connection number and current connection number determine that the relay servers can distribute connection number, determine the company of distribution of the relay servers
The reality that several half is connect as the relay servers can distribute connection number.
Optionally, the zookeeper servers are additionally operable to become in the relay number of servers for detecting registration
When change, the link information of current service available relay servers is redefined;
The Lookup servers, for can currently provide service listening to the zookeeper server updates
Relay servers link information when, reacquire the link information of current service available relay servers;And root
The relay servers distribution queue is updated according to the link information of the current service available relay servers of acquisition.
Optionally, the Lookup servers are additionally operable to, when receiving connection distribution request, service from the relay
A relay server is sequentially selected to be allocated in device distribution queue.
Second aspect provides a kind of network access request dispatching method, including:
The link information of each relay servers is obtained from the Zookeeper servers by monitoring mechanism, wherein institute
It is what the relay servers were written to Zookeeper servers to state link information;
For each relay server, which is determined according to the link information of the relay servers
Connection number can actually be distributed;
The sequence of connection number from high to low, which can be distributed, according to the reality of each relay servers establishes the distribution of relay servers
Queue;
The connection distribution request received is distributed according to the relay servers distribution queue.
Optionally, the link information includes maximum number of connections and current connection number;And
For each relay server, which is determined according to the link information of the relay servers
Connection number can be actually distributed, is specifically included:
For each relay server, being determined according to the maximum number of connections of the relay servers and current connection number should
Relay servers can distribute connection number;
Determine that the half for distributing connection number of the relay servers can the company of distribution as the reality of the relay servers
Connect number.
Optionally, network access request dispatching method provided in an embodiment of the present invention further includes:
In the connection letter for listening to the current service available relay servers of the zookeeper server updates
When breath, the link information of current service available relay servers is reacquired, wherein current service available relay
The link information of server is the zookeeper servers when the relay number of servers for detecting registration changes
It redefines out;And
The relay servers point are updated according to the link information of the current service available relay servers of acquisition
With queue.
Optionally, the connection distribution request received is distributed according to the relay servers distribution queue, including:
When receiving connection distribution request, a relay service is sequentially selected from the relay servers distribution queue
Device is allocated.
The third aspect provides a kind of network access request dispatching device, including:
Monitoring unit, the connection for obtaining each relay servers from the Zookeeper servers by monitoring mechanism
Information, wherein the link information is what the relay servers were written to Zookeeper servers;
Determination unit, for being directed to each relay server, being determined according to the link information of the relay servers should
The reality of relay servers can distribute connection number;
Unit is established, is established for the sequence of connection number from high to low can be distributed according to the reality of each relay servers
Relay server distribution queues;
Allocation unit, for distributing the connection distribution request received according to the relay servers.
Optionally, the link information includes maximum number of connections and current connection number;And
The determination unit is specifically used for being directed to each relay server, according to the most Dalian of the relay servers
It connects number and current connection number determines that the relay servers can distribute connection number;Determine the relay servers distributes connection number
Half can distribute connection number as the reality of the relay servers.
Optionally, the determination unit is additionally operable to currently provide listening to the zookeeper server updates
When the link information of the relay servers of service, the link information of current service available relay servers is reacquired,
Wherein, the link information of current service available relay servers is that the zookeeper servers are detecting registration
What relay number of servers redefined out when changing;And according to the current service available relay servers of acquisition
Link information update the relay servers distribution queue.
Optionally, the allocation unit is specifically used for when receiving connection distribution request, from the relay servers point
It is allocated with a relay server is sequentially selected in queue.
Fourth aspect provides a kind of computing device, including at least one processor and at least one processor, wherein
The memory is stored with computer program, when described program is executed by the processor so that on the processor executes
State the step described in either method.
5th aspect, provides a kind of computer-readable medium, is stored with the computer program that can be executed by computing device,
When described program is run on the computing device so that the computing device executes the step described in any of the above-described method.
In network access request dispatching method provided in an embodiment of the present invention, device, system and storage medium, each relay
Server is written the link information of itself to Zookeeper servers, and Lookup servers are by monitoring mechanism from Zookeeper
Server obtains the link information of each relay servers, and the reality of every relay servers is determined according to the link information of acquisition
Border can distribute connection number;The sequence of connection number from high to low, which can be distributed, according to the reality of each relay servers sequentially distributes reception
The connection distribution request arrived avoids connection from focusing on a clothes in this way, solving the problems, such as that long Connection Service device load is non-uniform
Lead to server delay machine on business device, improves the service performance of server.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and is obtained in book, claims and attached drawing.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and constitutes the part of the present invention, this hair
Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the structural schematic diagram that system is dispatched according to the network access request of embodiment of the present invention;
Fig. 2 is the implementation process diagram according to the network access request dispatching method of embodiment of the present invention;
Fig. 3 is the implementing procedure that connection number can be distributed according to the reality of the determination relay servers of embodiment of the present invention
Schematic diagram;
Fig. 4 is the structural schematic diagram according to embodiment of the present invention;
Fig. 5 is the structural schematic diagram according to the computing device of mode of the embodiment of the present invention.
Specific implementation mode
In order to solve the problems, such as that long Connection Service device load is non-uniform, avoiding connection from focusing on a server causes to take
Device delay machine of being engaged in influences service performance, an embodiment of the present invention provides a kind of network access request dispatching method, device, system and deposits
Storage media.
Below in conjunction with Figure of description, preferred embodiment of the present invention will be described, it should be understood that described herein
Preferred embodiment only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention, and in the absence of conflict, this hair
The feature in embodiment and embodiment in bright can be combined with each other.
As shown in Figure 1, it dispatches the structural schematic diagram of system for network access request provided in an embodiment of the present invention, including
Lookup (load balancing) server 11, Zookeeper (distributed application program coordination) servers 12 and an at least relay
(video signaling) server 13, wherein:
An at least relay server 13, for the connection letter of itself to be written to the Zookeeper servers 12
Breath;
The Lookup servers 11, for pass through monitoring mechanism from the Zookeeper servers 12 obtain it is described to
The link information of a few relay server 13;For each relay server 13, according to the company of the relay servers 13
It connects information and determines that the reality of the relay servers 13 can distribute connection number;It can the company of distribution according to the reality of each relay servers 13
It connects the sequence of number from high to low and establishes relay server distribution queues;It is distributed and is received according to the relay servers distribution queue
The connection distribution request arrived.
Wherein, the link information of each relay servers includes the maximum number of connections and work as that each relay servers can carry
Preceding connection number, each relay servers service the maximum number of connections that itself can be carried and current connection number write-in zookeeper
Device, and the link information being written to zookeeper servers according to the situation of change real-time update of itself current connection number,
The monitor function of Lookup server by utilizing zookeeper services obtains the company of each relay servers from Zookeeper servers
Connect information.For the every relay servers for including in relay server clusters, Lookup servers are serviced according to the relay
The maximum number of connections of device and current connection number determine that the relay servers can distribute connection number, for example, Lookup servers can be with
Determine that the maximum number of connections of relay servers and the current difference for connecting number are the assignable connection number of the relay servers, tool
When body is implemented, in order to avoid relay server loads are excessively high, in the embodiment of the present invention, it may be determined that relay servers divide
Half with connection number can distribute connection number as the reality of the relay servers.I.e. lookup servers are each time according to each
The link information that relay servers are written to zookeeper servers determine each relay servers can distribute connection number it
Afterwards, determine that the actually available connection number of relay servers is the half that can distribute connection number, for example, t1Moment determines that relay is serviced
The connection number that distributes of device A is 8, then lookup servers determine t1It is 4 that moment relay server A, which can actually distribute connection number,
t2Moment determines that the connection number that distributes of relay server As is 6, then lookup servers determine t2Moment relay server A is real
It is 3 that border, which can distribute connection number, and so on.In order to solve the problems, such as that long Connection Service device load distribution is non-uniform, the present invention is real
It applies in example, lookup servers can distribute the sequence of connection number from high to low according to the reality of each relay servers and establish relay
Server distribution queue sequentially selects one in this way, in receiving connection distribution request from relay server distribution queues
A relay servers are allocated, in this manner it is ensured that the relay servers per sub-distribution are to be born in current server cluster
Most light relay servers are carried, avoiding to connect focusing on a server causes server delay machine to influence service performance.
When it is implemented, zookeeper servers can also be changed by detecting the relay number of servers of registration come real
Shi Gengxin can provide the link information of the relay servers of server.Relay servers are taken for example, being increased newly in server cluster
Or when by registered relay server fails can not provide server, zookeeper servers are according to detecting
The link information that service available relay servers are respectively written, Lookup servers are listening to zookeeper services
When device has updated the link information of current service available relay servers, current service available relay is reacquired
The link information of server;And according to described in the update of the link information of the current service available relay servers of acquisition
Relay server distribution queues.When receiving connection distribution request, Lookup servers take according to the relay itself stored
Business device distribution queue, sequentially selects a relay server to be allocated from relay server distribution queues.
In network access request dispatching method provided in an embodiment of the present invention, device, system and storage medium, each relay
Server is written the link information of itself to Zookeeper servers, and Lookup servers are by monitoring mechanism from Zookeeper
Server obtains the link information of each relay servers, and the reality of every relay servers is determined according to the link information of acquisition
Border can distribute connection number;The sequence of connection number from high to low, which can be distributed, according to the reality of each relay servers sequentially distributes reception
The connection distribution request arrived avoids connection from focusing on a clothes in this way, solving the problems, such as that long Connection Service device load is non-uniform
Lead to server delay machine on business device, improves the service performance of server.
Based on same inventive concept, a kind of network access request dispatching method and dress are additionally provided in the embodiment of the present invention
Set, the principle solved the problems, such as due to the above method and device is similar to network access request scheduling system, the above method and
The implementation of device may refer to the implementation of method, and overlaps will not be repeated.
As shown in Fig. 2, it is the implementation process diagram of network access request dispatching method provided in an embodiment of the present invention,
Including:
S21, the link information for obtaining each relay servers from the Zookeeper servers by monitoring mechanism.
Wherein, the link information is what the relay servers were written to Zookeeper servers.
S22, it is directed to each relay server, determines that the relay is serviced according to the link information of the relay servers
The reality of device can distribute connection number.
S23, connection number sequence from high to low can be distributed according to the reality of each relay servers establish relay servers
Distribution queue.
S24, the connection distribution request received is distributed according to the relay servers distribution queue.
Optionally, the link information includes maximum number of connections and current connection number.
Based on this, in step S22, can include the following steps according to flow implementation shown in Fig. 3:
S31, it is directed to each relay server, it is true according to the maximum number of connections of the relay servers and current connection number
The fixed relay servers can distribute connection number;
S32, determine that the half for distributing connection number of the relay servers can divide as the reality of the relay servers
With connection number.
Optionally, network access request dispatching method provided in an embodiment of the present invention further includes:
In the connection letter for listening to the current service available relay servers of the zookeeper server updates
When breath, the link information of current service available relay servers is reacquired, wherein current service available relay
The link information of server is the zookeeper servers when the relay number of servers for detecting registration changes
It redefines out;And
The relay servers point are updated according to the link information of the current service available relay servers of acquisition
With queue.
Optionally, the connection distribution request received is distributed according to the relay servers distribution queue, including:
When receiving connection distribution request, a relay service is sequentially selected from the relay servers distribution queue
Device is allocated.
As shown in figure 4, it is the structural schematic diagram of network access request dispatching device provided in an embodiment of the present invention, packet
It includes:
Monitoring unit 41, the company for obtaining each relay servers from the Zookeeper servers by monitoring mechanism
Connect information, wherein the link information is what the relay servers were written to Zookeeper servers;
Determination unit 42 is determined for being directed to each relay server according to the link information of the relay servers
The reality of the relay servers can distribute connection number;
Unit 43 is established, is established for the sequence of connection number from high to low can be distributed according to the reality of each relay servers
Relay server distribution queues;
Allocation unit 44, for distributing the connection distribution request received according to the relay servers.
Optionally, the link information includes maximum number of connections and current connection number;And
The determination unit is specifically used for being directed to each relay server, according to the most Dalian of the relay servers
It connects number and current connection number determines that the relay servers can distribute connection number;Determine the relay servers distributes connection number
Half can distribute connection number as the reality of the relay servers.
Optionally, the determination unit is additionally operable to currently provide listening to the zookeeper server updates
When the link information of the relay servers of service, the link information of current service available relay servers is reacquired,
Wherein, the link information of current service available relay servers is that the zookeeper servers are detecting registration
What relay number of servers redefined out when changing;And according to the current service available relay servers of acquisition
Link information update the relay servers distribution queue.
Optionally, the allocation unit is specifically used for when receiving connection distribution request, from the relay servers point
It is allocated with a relay server is sequentially selected in queue.
For convenience of description, above each section is divided by function describes respectively for each module (or unit).Certainly, exist
Implement the function of each module (or unit) can be realized in same or multiple softwares or hardware when the present invention.
After the network access request dispatching method and device for describing exemplary embodiment of the invention, next,
Introduce the computing device of another exemplary embodiment according to the present invention.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, i.e.,:It is complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
In some possible embodiments, computing device according to the present invention can include at least at least one processing
Device and at least one processor.Wherein, the memory has program stored therein code, when said program code is by the processing
When device executes so that the processor executes the net according to the various illustrative embodiments of the present invention of this specification foregoing description
Step in network access request dispatching method.For example, the processor can execute step S21 as shown in Figure 2, pass through prison
Listen mechanism from the Zookeeper servers obtain each relay servers link information and step S22, be directed to each
Relay servers determine that the reality of the relay servers can distribute connection number according to the link information of the relay servers, with
And step S23, it can distribute connection number sequence from high to low according to the reality of each relay servers and establish relay servers point
With queue;With step S24, the connection distribution request received is distributed according to the relay servers distribution queue.
The computing device 50 of this embodiment according to the present invention is described referring to Fig. 5.The calculating dress that Fig. 5 is shown
It is only an example to set 50, should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in figure 5, computing device 50 is showed in the form of universal computing device.The component of computing device 50 may include
But it is not limited to:Above-mentioned at least one processor 51, above-mentioned at least one processor 52, (including the storage of connection different system component
Device 52 and processor 51) bus 53.
Bus 53 indicates one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, processor or the local bus using the arbitrary bus structures in a variety of bus structures.
Memory 52 may include the readable medium of form of volatile memory, such as random access memory (RAM) 521
And/or cache memory 522, it can further include read-only memory (ROM) 523.
Memory 52 can also include program/utility 525 with one group of (at least one) program module 524, this
The program module 524 of sample includes but not limited to:Operating system, one or more application program, other program modules and journey
Ordinal number evidence may include the realization of network environment in each or certain combination in these examples.
Computing device 50 can also be communicated with one or more external equipments 54 (such as keyboard, sensing equipment etc.), may be used also
Enable a user to the equipment interacted with computing device 50 communication with one or more, and/or with enable the computing device 50
Any equipment (such as the router, modem etc.) communication communicated with one or more of the other computing device.This
Kind communication can be carried out by input/output (I/O) interface 55.Also, computing device 50 can also pass through network adapter 56
With one or more network (such as LAN (LAN), wide area network (WAN) and/or public network, such as internet) communication.
As shown, network adapter 56 is communicated by bus 53 with other modules for computing device 50.It will be appreciated that though figure
In be not shown, can in conjunction with computing device 50 use other hardware and/or software module, including but not limited to:Microcode, equipment
Driver, redundant processor, external disk drive array, RAID system, tape drive and data backup storage system etc..
In some possible embodiments, the various aspects of network access request dispatching method provided by the invention may be used also
In the form of being embodied as a kind of program product comprising program code, when described program product is run on a computing device,
Said program code be used to make the computer equipment execute this specification foregoing description according to the various exemplary realities of the present invention
The step in the network access request dispatching method of mode is applied, for example, the computer equipment can execute as shown in Figure 2
Step S21, the link information and step of each relay servers are obtained from the Zookeeper servers by monitoring mechanism
S22, it is directed to each relay server, the reality of the relay servers is determined according to the link information of the relay servers
Connection number and step S23 can be distributed, the sequence of connection number from high to low can be distributed according to the reality of each relay servers builds
Vertical relay server distribution queues;The connection point received with step S24, according to relay servers distribution queue distribution
With request.
The arbitrary combination of one or more readable mediums may be used in described program product.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red
The system of outside line or semiconductor, device or device, or the arbitrary above combination.The more specific example of readable storage medium storing program for executing
(non exhaustive list) includes:Electrical connection, portable disc with one or more conducting wires, hard disk, random access memory
(RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc
Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Portable compact disc may be used in the program product for network access request scheduling of embodiments of the present invention
Read-only memory (CD-ROM) and include program code, and can run on the computing device.However, the program product of the present invention
Without being limited thereto, in this document, readable storage medium storing program for executing, which can be any, includes or the tangible medium of storage program, which can be with
It is commanded the either device use or in connection of execution system, device.
Readable signal medium may include in a base band or as the data-signal that a carrier wave part is propagated, wherein carrying
Readable program code.Diversified forms may be used in the data-signal of this propagation, including --- but being not limited to --- electromagnetism letter
Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can
Read medium, which can send, propagate either transmission for being used by instruction execution system, device or device or
Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to ---
Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with any combination of one or more programming languages for executing the program that operates of the present invention
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It executes on computing device, partly execute on a user device, being executed as an independent software package, partly in user's calculating
Upper side point is executed or is executed in remote computing device or server completely on a remote computing.It is being related to far
In the situation of journey computing device, remote computing device can pass through the network of any kind --- including LAN (LAN) or extensively
Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service
Provider is connected by internet).
It should be noted that although being referred to several units or subelement of device in above-detailed, this stroke
It point is only exemplary not enforceable.In fact, according to the embodiment of the present invention, it is above-described two or more
The feature and function of unit can embody in a unit.Conversely, the feature and function of an above-described unit can
It is embodied by multiple units with being further divided into.
In addition, although the operation of the method for the present invention is described with particular order in the accompanying drawings, this do not require that or
Hint must execute these operations according to the particular order, or have to carry out shown in whole operation could realize it is desired
As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one
Step is decomposed into execution of multiple steps.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications can be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (10)
1. a kind of network access request dispatches system, which is characterized in that including load balancing Lookup servers, Distributed Application
Program Coordination Zookeeper servers and at least a video signaling relay server, wherein:
An at least relay server, for the link information of itself to be written to the Zookeeper servers;
The Lookup servers obtain described at least one for passing through monitoring mechanism from the Zookeeper servers
The link information of relay servers;For each relay server, being determined according to the link information of the relay servers should
The reality of relay servers can distribute connection number;Connection number from high to low suitable can be distributed according to the reality of each relay servers
Sequence establishes relay server distribution queues;The connection distribution received according to relay servers distribution queue distribution is asked
It asks.
2. the system as claimed in claim 1, which is characterized in that the link information includes maximum number of connections and current connection
Number;And
The Lookup servers are specifically used for being directed to each relay server, according to the most Dalian of the relay servers
It connects number and current connection number determines that the relay servers can distribute connection number, determine the relay servers distributes connection number
Half can distribute connection number as the reality of the relay servers.
3. the system as claimed in claim 1, which is characterized in that
The zookeeper servers are additionally operable to when the relay number of servers for detecting registration changes, again really
The link information of settled preceding service available relay servers;
The Lookup servers, for listen to the zookeeper server updates current service available
When the link information of relay servers, the link information of current service available relay servers is reacquired;And according to
The link information of the current service available relay servers obtained updates the relay servers distribution queue.
4. system as claimed in claim 1,2 or 3, which is characterized in that
The Lookup servers are additionally operable to when receiving connection distribution request, from the relay servers distribution queue
Sequentially a relay server is selected to be allocated.
5. a kind of network access request dispatching method, which is characterized in that including:
Coordinate Zookeeper servers from the distributed application program by monitoring mechanism and obtains each video signaling relay clothes
The link information of business device, wherein the link information is what the relay servers were written to Zookeeper servers;
For each relay server, the reality of the relay servers is determined according to the link information of the relay servers
Connection number can be distributed;
The sequence of connection number from high to low, which can be distributed, according to the reality of each relay servers establishes relay server distribution queues;
The connection distribution request received is distributed according to the relay servers distribution queue.
6. method as claimed in claim 5, which is characterized in that the link information includes maximum number of connections and current connection
Number;And
For each relay server, the reality of the relay servers is determined according to the link information of the relay servers
Connection number can be distributed, is specifically included:
For each relay server, being determined according to the maximum number of connections of the relay servers and current connection number should
Relay servers can distribute connection number;
Determine that the half for distributing connection number of the relay servers can distribute connection number as the reality of the relay servers.
7. method as claimed in claim 5, which is characterized in that further include:
When listening to the link information of the current service available relay servers of the zookeeper server updates,
Reacquire the link information of current service available relay servers, wherein current service available relay services
The link information of device be the zookeeper servers when the relay number of servers for detecting registration changes again
It determines;And
The relay servers, which are updated, according to the link information of the current service available relay servers of acquisition distributes team
Row.
8. the method as described in claim 5,6 or 7, which is characterized in that connect according to relay servers distribution queue distribution
The connection distribution request received, specifically includes:
Receive connect distribution request when, sequentially selected from the relay servers distribution queue relay server into
Row distribution.
9. a kind of network access request dispatching device, which is characterized in that including:
Monitoring unit, the connection for obtaining each relay servers from the Zookeeper servers by monitoring mechanism are believed
Breath, wherein the link information is what the relay servers were written to Zookeeper servers;
Determination unit determines the relay for being directed to each relay server according to the link information of the relay servers
The reality of server can distribute connection number;
Unit is established, relay clothes are established for the sequence of connection number from high to low can be distributed according to the reality of each relay servers
Business device distribution queue;
Allocation unit, for distributing the connection distribution request received according to the relay servers.
10. a kind of computer-readable medium, which is characterized in that it is stored with the computer program that can be executed by computing device, when
When described program is run on the computing device so that the computing device perform claim requires the step of 1~4 any the method
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810312584.4A CN108600344A (en) | 2018-04-09 | 2018-04-09 | A kind of network access request dispatching method, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810312584.4A CN108600344A (en) | 2018-04-09 | 2018-04-09 | A kind of network access request dispatching method, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108600344A true CN108600344A (en) | 2018-09-28 |
Family
ID=63621280
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810312584.4A Pending CN108600344A (en) | 2018-04-09 | 2018-04-09 | A kind of network access request dispatching method, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108600344A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600429A (en) * | 2018-11-28 | 2019-04-09 | 平安科技(深圳)有限公司 | Service shunting method, device, electronic equipment and storage medium |
CN110445723A (en) * | 2019-07-02 | 2019-11-12 | 网宿科技股份有限公司 | A kind of network data dispatching method and fringe node |
CN110933130A (en) * | 2019-10-22 | 2020-03-27 | 厦门天锐科技股份有限公司 | Load balancing method and device |
CN111010453A (en) * | 2019-12-29 | 2020-04-14 | 中建材信息技术股份有限公司 | Service request processing method, system, electronic device and computer readable medium |
CN111435354A (en) * | 2019-01-14 | 2020-07-21 | 北京京东尚科信息技术有限公司 | Data export method and device, storage medium and electronic equipment |
CN112118275A (en) * | 2019-06-20 | 2020-12-22 | 北京车和家信息技术有限公司 | Overload processing method, Internet of things platform and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020055982A1 (en) * | 2000-11-03 | 2002-05-09 | The Board Of Regents Of The University Of Nebraska | Controlled server loading using L4 dispatching |
CN103118076A (en) * | 2013-01-11 | 2013-05-22 | 烽火通信科技股份有限公司 | Upgraded server cluster system and load balancing method thereof |
CN103259739A (en) * | 2012-02-15 | 2013-08-21 | 株式会社日立制作所 | Load balancing device and load balancing method |
CN103618738A (en) * | 2013-12-09 | 2014-03-05 | 惠州华阳通用电子有限公司 | Intelligent load distribution system and method for achieving TCP long connection and communication |
CN106254515A (en) * | 2016-08-30 | 2016-12-21 | 浪潮(北京)电子信息产业有限公司 | A kind of load-balancing method storing system and equipment |
CN107566217A (en) * | 2017-09-19 | 2018-01-09 | 顺丰科技有限公司 | A kind of flow control methods, device, equipment, storage medium |
-
2018
- 2018-04-09 CN CN201810312584.4A patent/CN108600344A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020055982A1 (en) * | 2000-11-03 | 2002-05-09 | The Board Of Regents Of The University Of Nebraska | Controlled server loading using L4 dispatching |
CN103259739A (en) * | 2012-02-15 | 2013-08-21 | 株式会社日立制作所 | Load balancing device and load balancing method |
CN103118076A (en) * | 2013-01-11 | 2013-05-22 | 烽火通信科技股份有限公司 | Upgraded server cluster system and load balancing method thereof |
CN103618738A (en) * | 2013-12-09 | 2014-03-05 | 惠州华阳通用电子有限公司 | Intelligent load distribution system and method for achieving TCP long connection and communication |
CN106254515A (en) * | 2016-08-30 | 2016-12-21 | 浪潮(北京)电子信息产业有限公司 | A kind of load-balancing method storing system and equipment |
CN107566217A (en) * | 2017-09-19 | 2018-01-09 | 顺丰科技有限公司 | A kind of flow control methods, device, equipment, storage medium |
Non-Patent Citations (1)
Title |
---|
恒久地平线: "zookeeper在集群负载均衡中的应用", 《博客园》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109600429A (en) * | 2018-11-28 | 2019-04-09 | 平安科技(深圳)有限公司 | Service shunting method, device, electronic equipment and storage medium |
CN111435354A (en) * | 2019-01-14 | 2020-07-21 | 北京京东尚科信息技术有限公司 | Data export method and device, storage medium and electronic equipment |
CN112118275A (en) * | 2019-06-20 | 2020-12-22 | 北京车和家信息技术有限公司 | Overload processing method, Internet of things platform and computer readable storage medium |
CN112118275B (en) * | 2019-06-20 | 2023-07-11 | 北京车和家信息技术有限公司 | Overload processing method, internet of things platform and computer readable storage medium |
CN110445723A (en) * | 2019-07-02 | 2019-11-12 | 网宿科技股份有限公司 | A kind of network data dispatching method and fringe node |
CN110933130A (en) * | 2019-10-22 | 2020-03-27 | 厦门天锐科技股份有限公司 | Load balancing method and device |
CN110933130B (en) * | 2019-10-22 | 2022-04-01 | 厦门天锐科技股份有限公司 | Load balancing method and device |
CN111010453A (en) * | 2019-12-29 | 2020-04-14 | 中建材信息技术股份有限公司 | Service request processing method, system, electronic device and computer readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108600344A (en) | A kind of network access request dispatching method, device and storage medium | |
US11283858B2 (en) | Method and system for coordination of inter-operable infrastructure as a service (IaaS) and platform as a service (PaaS) systems | |
US10305823B2 (en) | Network interface card configuration method and resource management center | |
KR20220011063A (en) | Server resource allocation method, device, electronic equipment and storage medium | |
US20090013029A1 (en) | Device, system and method of operating a plurality of virtual logical sites | |
EP3876229A2 (en) | Vehicle-based voice processing method, voice processor, and vehicle-mounted processor | |
US9628353B2 (en) | Using cloud resources to improve performance of a streaming application | |
US10361930B2 (en) | Rerouting data of a streaming application | |
CN107635010B (en) | Traffic scheduling method and device, computer readable storage medium and electronic equipment | |
US20210337452A1 (en) | Sharing geographically concentrated workload among neighboring mec hosts of multiple carriers | |
CN102394929A (en) | Conversation-oriented cloud computing load balancing system and method therefor | |
US9507625B2 (en) | Apparatus and method for generating software defined network(SDN)-based virtual network according to user demand | |
CN113849312A (en) | Data processing task allocation method and device, electronic equipment and storage medium | |
CN108837505B (en) | Network game data transmission method and system | |
CN110413457A (en) | The disaster recovery method and device of cloud service | |
CN114924745A (en) | Operation method and device of deep learning compiler and electronic equipment | |
CN104156663A (en) | Hardware virtual port and processor system | |
US11645109B2 (en) | Managing failures in edge computing environments | |
WO2022228121A1 (en) | Service providing method and apparatus | |
CN115328612A (en) | Resource allocation method, device, equipment and storage medium | |
CN115567602A (en) | CDN node back-to-source method, device and computer readable storage medium | |
CN114205414A (en) | Data processing method, device, electronic equipment and medium based on service grid | |
US11494239B2 (en) | Method for allocating computing resources, electronic device, and computer program product | |
CN114070889A (en) | Configuration method, traffic forwarding method, device, storage medium, and program product | |
CN113973092A (en) | Link resource scheduling method and device, computing equipment and computer storage medium |
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: 20180928 |
|
RJ01 | Rejection of invention patent application after publication |