CN108322502A - Method, gateway system and storage medium for equalization server load - Google Patents

Method, gateway system and storage medium for equalization server load Download PDF

Info

Publication number
CN108322502A
CN108322502A CN201711406333.4A CN201711406333A CN108322502A CN 108322502 A CN108322502 A CN 108322502A CN 201711406333 A CN201711406333 A CN 201711406333A CN 108322502 A CN108322502 A CN 108322502A
Authority
CN
China
Prior art keywords
server
load
user
request
equalization
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
Application number
CN201711406333.4A
Other languages
Chinese (zh)
Inventor
段鹏飞
袁小山
许波
朱凯迪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Da Search Car Service Co Ltd
Original Assignee
Hangzhou Da Search Car Service Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Da Search Car Service Co Ltd filed Critical Hangzhou Da Search Car Service Co Ltd
Priority to CN201711406333.4A priority Critical patent/CN108322502A/en
Publication of CN108322502A publication Critical patent/CN108322502A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server 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)

Abstract

The embodiment of the invention discloses the method loaded for equalization server, gateway system and storage mediums, method is used at least one server group, the load of pair at least two servers carries out balanced when at least one server group includes at least two server, includes the following steps:Timing detects the health status of at least two servers of at least one server group, and will be in the update to database of the health status of at least two servers;User's request is received, parsing routing rule is carried out to user's request, obtains the title of server group;The health status of at least one server group is obtained from database;According to the health status of the server in the title of the server group of acquisition, chooses a server in load health and user's request is forwarded to server.The embodiment of the present invention, by detecting the loading condition of Servers-all, the load of energy efficient balance internal system server in real time.

Description

Method, gateway system and storage medium for equalization server load
Technical field
The present invention relates to computer communication fields, and in particular to a kind of to be used for method, the gateway system that equalization server loads System and storage medium.
Background technology
Gateway is most complicated network interconnection apparatus, network interconnection, is only used for two high-rise associations in network layer implementation above network interconnection Discuss different network interconnection.Gateway both can be used for wide area network interconnection, can be used for local area network interconnection, is that one kind serving as conversion The computer system or equipment of important task.When gateway is used in different communication protocol, data format or language or even architecture When between two kinds of entirely different systems, gateway can regard a translater as.Only simply convey information different from bridge, Gateway will repack the information received, with the demand of adaptation to end system.Gateway more famous in open source projects at present System is kong, which supports the functions such as plug-in unit, certification, caching, daily record, is the fairly perfect system of a set of function.
But during business magnitude is slowly increased, increase to adapt to business, the operation system of the gateway system Multiple independent modules are split into, a big system is safeguarded together by multiple business sides, at this moment when the request of user Into fashionable, existing gateway system lacks a unified entrance to combine internal each business module, to respond the request of user, Coordinate the request of each business module, therefore existing gateway system is when business magnitude is very big, it may appear that some business module because It is too many with time business to be treated and the case where collapse, then should just can not be timely by the business that the business module is handled Processing.
Invention content
In view of the deficiencies of the prior art, the purpose of the present invention is intended to provide the method for equalization server load, net Relationship is united and storage medium, and by being grouped to multiple servers, and timing detects the load condition of Servers-all, and will The data of the health status of Servers-all are stored in database, carry out equilibrium allocation and are asked to the user of each server, are avoided out The case where some now extreme server is collapsed because of user's request excess load that the same time enters.
To achieve the above object, it in a first aspect, the embodiment of the present invention provides the method for equalization server load, is used for At least one server group, when at least one server group includes at least two server the load of pair at least two servers into Row is balanced, and method includes the following steps:
Server health status detecting step:Timing detects the health of at least two servers of at least one server group Situation, and will be in the update to database of the health status of at least two servers;
Receive user's request step:User's request is received, parsing routing rule is carried out to user's request, obtains server group Title;
Server health status obtaining step:The health status of at least one server group is obtained from database;
User asks forwarding step:According to the server in the title for receiving the server group that user's request step obtains Health status chooses the first server in load health and user's request is forwarded to server.
Preferably, routing rule includes that all rules cached read from database and timing are updated to data Rule in library.
Preferably, method further includes step:Such as find that the load of selected server is unhealthy, then by the negative of server Load situation updates in database immediately, and according to the server in the title for receiving the server group that user's request step obtains Health status, in addition be in load health second server and by user request be forwarded to server.
Preferably, the health status of at least two servers of at least one server group is periodically detected, and will at least two The health status update of a server in database the specific steps are:
The mode of poll goes to ask the specified of at least two servers of at least one server group at short intervals for timing Address, if the time for receiving the returned data of at least two servers in scheduled time threshold value, judge at least two Server is in the situation of load health, and by the data update of the health status of at least two servers to database;
If receiving the time of the returned data of a server not in scheduled time threshold value, a service is judged Device is in the unsound situation of loading, and by the data of the health status of at least two servers to database.
Preferably, the method for equalization server load further includes that the parameter of all steps is configured and managed.
Preferably, it includes that routing rule is configured and updated to carry out configuration and management to the parameter of all steps.
Preferably, further include at least one server group of configuration and at least two servers.
Preferably, the method for equalization server load is used for by using the net of OpenResty and Node.js joint developments Relationship system executes.
Second aspect, the embodiment of the present invention provide the gateway system for equalization server load, including processor, storage Device and storage in memory and are configured as the computer program executed by processor, processor execution computer program When, it can be achieved that for equalization server load method.
The third aspect, the embodiment of the present invention provide a kind of storage medium, which is characterized in that storage medium includes the meter of storage Calculation machine program, wherein the equipment where controlling storage medium when computer program is run is realized when executing is used for balancing service The method of device load.
Method, gateway system and storage medium provided in an embodiment of the present invention for equalization server load, beneficial to effect Fruit has:The supplemental characteristic being related to by managing and being arranged all steps, and configure multiple servers and including multiple services The server group of device, timing detects the loading condition of Servers-all, and the loading condition of Servers-all is updated to data Library obtains the loading condition of Servers-all, and in the service of load health in the request for receiving user from database One is chosen in device and user is asked into the forwarding past.Method energy provided in an embodiment of the present invention for equalization server load The load balancing of the Servers-all in the system loaded for equalization server is enough effectively ensured, and can guarantee all receive User request can there is corresponding server effectively to be handled.
Description of the drawings
Fig. 1 is the flow diagram of one embodiment of the method loaded for equalization server;
Fig. 2 is the schematic diagram of one embodiment of the gateway system loaded for equalization server.
10, user asks forwarding module;11, reception result interface;20, routing rule parsing module;21, request is received to connect Mouthful;22, situation interface is received;30, heart beat detection module;40, management rule module;50, at least one server group;51, it takes Business device one;60, database.
Specific implementation mode
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 describes, 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, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
It is the stream of one embodiment of the system provided in an embodiment of the present invention for equalization server load referring to Fig. 1 Journey schematic diagram;
The embodiment of the present invention provide for equalization server load method, be used at least one server group, at least one The load of pair at least two servers carries out balanced when a server group includes at least two server, method include step S1 extremely S4:
Server health status detecting step S1:Timing detects the strong of at least two servers of at least one server group Health situation, and will be in the update to database of the health status of at least two servers;
It should be noted that the method provided in an embodiment of the present invention for equalization server load, including multiple services Device, and multiple servers are all grouped, and timing as unit of server group to the loading condition of Servers-all into Row detection, if the non-excess load of server load, then it is assumed that be health status, if the load of server is super negative close to load or Lotus, then it is assumed that be unhealthy condition, and the loading condition of Servers-all is saved in database in the form of data.
Receive user's request step S2:User's request is received, parsing routing rule is carried out to user's request, obtains server The title of group;
It should be noted that the function of server group is configured previously according to routing rule, and it is corresponding with function Different titles is configured, and the title of server group is corresponded with function, and the Servers-all processing of server group is same User request;Therefore, when receiving user's request, parsing routing rule first is carried out to user request, to obtain the use The title of corresponding server group is asked at family, then the Servers-all in the server group under the title can handle such use It asks at family.
Server health status obtaining step S3:The health status of at least one server group is obtained from database;
It should be noted that with or without user's request is received, it is provided in an embodiment of the present invention to be used for balancing service The method of device load all can actively obtain the health status data of newest Servers-all group from database, receive user When request, then the data that current newest acquisition data action of being subject to obtains, i.e., using the data as the health of Servers-all Status data.
User asks forwarding step S4:According to the server in the title for receiving the server group that user's request step obtains Health status, choose in load health first server simultaneously by user request be forwarded to server.
It should be noted that in conjunction with the title of step S2 and S3 the server group obtained respectively and owning for newest acquisition The health status data of server group obtain the health status of the corresponding server group of the title, i.e. institute in the server group There is the loading condition of server, and arbitrarily choose one from the server of all non-excess loads of load, and user's request is turned The server is issued, user is asked to carry out substantial treatment by the server.
Preferably, routing rule includes that all rules cached read from database and timing are updated to data Rule in library.
Preferably, method further includes step:Such as find that the load of selected server is unhealthy, then by the negative of server Load situation updates in database immediately, and according to the server in the title for receiving the server group that user's request step obtains Health status, in addition choose in load health second server and by user request be forwarded to server.
Preferably, the health status of at least two servers of at least one server group is periodically detected, and will at least two The health status update of a server in database the specific steps are:
The mode of poll goes to ask the specified of at least two servers of at least one server group at short intervals for timing Address, if the time for receiving the returned data of at least two servers in scheduled time threshold value, judge at least two Server is in the situation of load health, and by the data update of the health status of at least two servers to database;
If receiving the time of the returned data of a server not in scheduled time threshold value, a service is judged Device is in the unsound situation of loading, and by the data of the health status of at least two servers to database.
Preferably, the method for equalization server load further includes that the parameter of all steps is configured and managed.
Preferably, it includes that routing rule is configured and updated to carry out configuration and management to the parameter of all steps.
Preferably, further include at least one server group of configuration and at least two servers.
Preferably, the method for equalization server load is used for by using the net of OpenResty and Node.js joint developments Relationship system executes.
It is one embodiment of the gateway system provided in an embodiment of the present invention for equalization server load referring to Fig. 2 Schematic diagram;
Second aspect, the gateway system provided in an embodiment of the present invention for equalization server load, including processor, are deposited Reservoir and storage in memory and are configured as the computer program executed by processor, processor execution computer program When, it can be achieved that for equalization server load method.
Gateway system provided in an embodiment of the present invention for equalization server load, including user ask forwarding module 10, routing rule parsing module 20, heart beat detection module 30, management rule module 40, at least one server group 50, database 60 and user ask the reception result interface 11 in forwarding module 10, the reception inside routing rule parsing module 20 asks to connect Mouth 21 and reception situation interface 22, the server 1 that at least one server group 50 includes;
With reference to the flow chart of the method for equalization server load of Fig. 1, for equalization server load The operation principle of the method for equalization server load of the embodiment of the present invention is specifically described for system.
User asks forwarding module 10:The use of gateway system provided in an embodiment of the present invention for equalization server load Family request forwarding module meeting active transmission data is asked to database, and at least the two of at least one server group are obtained to database The health status of a server can be by least two clothes of at least one server group when database receives the request of data The data of the health status of business device are sent to user and ask forwarding module;When user asks forwarding module to receive user's transmission When user asks, the request data that the user received asks is sent to routing rule parsing module;Routing rule parses When module receives the request data of user request, parsing road is carried out to the request data that the user asks according to routing rule By rule, the user that the request data of user request can get after parsing routing rule user request asks specified Server group title, and by the title of the server group be sent to user ask forwarding module;User asks forwarding module When receiving the title of the server group, further according to the server group obtained from database at least two servers it is strong Health situation chooses the server of one of health, and user request is forwarded to the server of the health, and by the service Device asks the user to carry out actual treatment.
Reception result interface 11:It includes reception result interface that user, which asks forwarding module, and reception result interface is with user It asks the startup of forwarding module and starts, and receive the newer information of server health of routing rule parsing module transmission
Routing rule parsing module 20:When routing rule parsing module receives the request data of user request, root The request data asked to the user according to routing rule carries out routing rule parsing, wherein resolving is:
The domain name for parsing the request data of user request, the business side to be forwarded title can be obtained by domain name, Then the title of the server group of business side is obtained by two kinds of routing rules, and the title of server group is transmitted to user and is asked Seek forwarding module.
And two kinds of forms of routing rule are respectively:
1, NameSpace, the first segment in the address domain name suffix of the request data of user request is the address Specified NameSpace, such as:The address domain name of request data is https://patchouli.souche.com/dfc/users/ 123, in this address domain name, it is the first segment of address domain name, the as number that suffix has dfc, users and 123, dfc respectively According to the NameSpace of the address domain name of request, ordered when routing rule parsing module parses request data progress routing rule When name space dfc, if in the presence of the server group specified with the NameSpace, which is asked to the title of matched server group It is sent to user and asks forwarding module, and ask forwarding module that user request is forwarded to the arbitrary of the server group by user The server of one mesa-shaped state health gets on, and is asked come the actual treatment user by the server.
2, path rule, for being forwarded to single interface, such as:First segment provided with address domain name is /a/ User's request of b/c/d is forwarded to entitled/e/f/g/h with the NameSpace dfc server groups specified, then, when user asks The domain name addresses for the request data asked is https:When //patchouli.souche.com/a/b/c/d, which can be asked The suffix for being transmitted to the specified server groups of dfc, and changing the domain name addresses of request address is /e/f/g/h.
If the request data that routing rule parsing module asks the user carry out routing rule parsing can not obtain with The specified server group of user request, then send information to management rule module.
Specifically, in embodiments of the present invention, the same domain name can configure multiple servers, by routing rule into The specific distribution of row, and can solve the problems, such as that same domain name corresponds to the cookie names conflict of multiple servers, there are two types of directions The problem of cookie conflicts of processing:
1. server sends cookie to user terminal, the clothes belonging to upper server can be added automatically after gateway system The title for device group of being engaged in;
2. user terminal sends cookie to server, added server can be automatically removed after gateway system The title of group.
This flow ensure that server is unaffected, and when user terminal will voluntarily handle cookie, cookie names are than former The more prefixes of beginning name, need specially treated, the processing mode of special cookie:If server returns to cookie Using-_-as the prefix of the addresses cookie, the cookie of this type will not add Server Group Name when passing through gateway system Prefix, and-_-prefix can be removed, the cookie that user terminal obtains at this time is just original title.The scene used is multiple The specific public domain name of server group, and when needing shared cookie.
It is cached in addition, routing rule parsing module can read all configuration rules from database on startup, and Newest configuration rule is read in timing from database, is updated and is cached according to newest configuration rule.Preferably, timing length is 30s, setting timing is otherwise excessively frequently counted when user's request frequency increases to reduce the read operation to database The bottleneck of whole system performance can be become according to read operation.
Receive request interface 21:Routing rule parsing module can provide several interfaces on startup, wherein these interfaces with Routing resolution module and entire gateway system are all that simple HTTP RESTful API connect all without the connection on hardware Mouthful, it is used for the differentiation of routing rule parsing module function.It is one of interface to receive data-interface, is responsible for receiving from user Ask the request data of user's request of forwarding module and other data, and the request data of the request of the user to receiving Routing rule parsing is carried out with other data, user's request forwarding module is returned result to after obtaining result.
Reception situation interface 22:When heart beat detection module is timed detection to Servers-all group, do not find Server is in unhealthy condition, but when user asks forwarding module that user's request is forwarded to one of server, It was found that the server fails normally to handle the request data of user's request, or find that the server asks the data having received The completion speed asked is slower than the deadline of the same request of data recorded in the past, i.e., judges that the server is practically in temporarily Unhealthy condition, user ask forwarding module to be sent to the server immediately and are in the information of unhealthy condition to routing rule solution The reception situation interface of module is analysed, update server health is sent according to this information after receiving situation interface to information Information is to heart beat detection module, and in the data update for receiving heart beat detection module and returning to the health status of the server come After information, forwards this information to user and ask forwarding module;Heart beat detection module will be serviced according to the fresh information received The state of health data of device updates in database immediately;And it is not to be good for that user, which asks forwarding module to mark the server temporarily, Health state, and during the health status of the server marks, user is not forwarded to ask to the server.
Heart beat detection module 30:The mode transmission data request of poll goes to ask to take at short intervals for heart beat detection module timing The address specified on business device, and start timing, the health status of server is judged according to the true response time of returned data, such as Fruit receives returned data in scheduled time threshold value, then judges that the server is in health status;If receiving return number According to time be more than scheduled time threshold value, then judge that the server is in unhealthy situation;Then all in database update The health status of server;Particularly, the timing length of the embodiment of the present invention is 1s, and scheduled time threshold value is set as 5s.
For due to loading excessive and in unhealthy condition server, user's request forwarding module, which can be reduced, to be configured to User's request of the server is got well until the server:
After user's request enters server, server process user request needs to occupy the hardware resources such as CPU, memory. When short time a large amount of request Concurrencies enter the same server, the hardware resource exhaustion of server, server can not be docked User's request of receipts is normally handled.
If reducing the configuration of user's request of the server, server having time can be allowed to have handled the use having been received Family is asked, and is gradually discharged hardware resource, and situation of slowly getting well.
The case where can restoring above is the case where server is in excess load but collapses not yet, if the server It has been collapsed that, then need to restore manually.
Management rule module 40:Management rule module is the net for balanced multiple server loads of the embodiment of the present invention The management module of relationship system, is responsible for the functional configuration of system institute, and being associated with for the request data that configuration domain name and user ask is matched Routing resolution rule is set, routing rule parsing module needs to ask one domain name of configuration, server group and clothes for each user Server ip, routing rule in device group of being engaged in.
Routing rule parsing module finds business side according to the domain name that user asks, and finding business side according to routing rule sets The desired server group being forwarded to set.
System provided in an embodiment of the present invention can configure the forward rule that user's request is forwarded to server, same The different user request of same application can be transmitted to the server group of responsible each business module according to rule under domain name, then be forwarded to Server.For the single page web applications of present front and back end separation scheme exploitation, cross-domain request permission is can configure, single page is solved and answers With most common Cross-domain problem.
Server group is the load balancing for doing server, and the business magnitude of user's request is big with the latter service Device can not undertake a large amount of user's request, so forming a server group using multiple servers, each server is true Positive processing user request, and server group is an artificial concept, it is to belong to same to identify these servers all The user of business asks.Forwarding user's request is that server group first obtains user request with group server, then by user It asks to be distributed to the server for really handling user request up.
In embodiments of the present invention, provided in an embodiment of the present invention preferably by OpenResty and Node.js joint developments System can also develop gateway, as long as the gateway system of technique effect and the embodiment of the present invention using other gateway developing instruments It unites substantially identical, belongs to the protection domain of the embodiment of the present invention.
The third aspect, the embodiment of the present invention provide a kind of storage medium, which is characterized in that storage medium includes the meter of storage Calculation machine program, wherein the equipment where controlling storage medium when computer program is run executes being used for for first aspect offer The method of equalization server load.
Illustratively, computer program can be divided into one or more module/units, and one or more module/ Unit is stored in memory, and is executed by processor, to complete the present invention.One or more module/units can be energy The series of computation machine program instruction section of specific function is enough completed, which takes for describing computer program for equilibrium The implementation procedure being engaged in the gateway system of device load.
Gateway system for equalization server load can be desktop PC, notebook, palm PC and high in the clouds The computer equipments such as server, the gateway system for being used for equalization server load in the present embodiment is master server.For equal The gateway system of weighing apparatus server load may include, but be not limited only to, processor, memory.
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it His general processor, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng processor is the control centre of the method gateway system loaded for equalization server, utilizes various interfaces and connection The various pieces of gateway system for equalization server load.
Memory can be used for storing computer program and/or module, processor are stored in memory by running or executing Interior computer program and/or module, and the data being stored in memory are called, it realizes for equalization server load The various functions of gateway system.Memory can include mainly storing program area and storage data field, wherein storing program area can deposit Store up the application program (such as sound-playing function, image player function etc.) etc. needed for operating system, at least one function;Storage Data field can be stored uses created data (such as audio data, phone directory etc.) etc. according to mobile phone.In addition, memory can Can also include nonvolatile memory, such as hard disk, memory, plug-in type hard disk, intelligence to include high-speed random access memory Energy storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-state parts.
Wherein, if the integrated module/unit of gateway system for equalization server load is with SFU software functional unit Form is realized and when sold or used as an independent product, can be stored in a storage medium.Based on this understanding, The present invention realizes all or part of flow in above-described embodiment method, can also be instructed by computer program relevant hard Part is completed, and the computer program of the gateway system for equalization server load can be stored in a storage medium, the calculating Machine program is when being executed by processor, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, computer program includes calculating Machine program code, computer program code can be source code form, object identification code form, executable file or certain intermediate shapes The computer-readable mediums such as formula may include:Any entity or system, recording medium, U of computer program code can be carried Disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), arbitrary access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs Bright, the content that storage medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, storage medium does not include electric carrier signal and telecommunications letter Number.
Described above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as Protection scope of the present invention.

Claims (10)

1. for the method for equalization server load, it is used at least one server group, at least one server group to include The load of at least two server is carried out when at least two servers balanced, which is characterized in that include the following steps:
Server health status detecting step:Timing detects the health of at least two servers of at least one server group Situation, and will be in the update to database of the health status of at least two server;
Receive user's request step:User's request is received, parsing routing rule is carried out to user request, obtains server group Title;
Server health status obtaining step:The health status of at least one server group is obtained from the database;
User asks forwarding step:According to the service in the title of the server group of reception user's request step acquisition The health status of device chooses the first server in load health and user request is forwarded to the first service Device.
2. as described in claim 1 for equalization server load method, which is characterized in that the routing rule include from All rules cached read in the database and timing are updated to the rule in the database.
3. the method for equalization server load as described in claim 1, which is characterized in that the method further includes step Suddenly:It such as finds that the load of selected server is unhealthy, then the load state of the server is updated immediately and arrive the number According in library, and the healthy shape of the server in the title of the server group obtained according to reception user's request step Condition chooses the second server in load health and user request is forwarded to the second server.
4. the method for equalization server load as described in claim 1, which is characterized in that described in the timing detection extremely The health status of at least two servers of a few server group, and the health status of at least two server is updated To in database the specific steps are:
The mode of poll goes to ask the specified of at least two servers of at least one server group at short intervals for timing Address, if receiving time of the returned data of at least two server in scheduled time threshold value, described in judgement At least two servers are in the situation of load health, and the data update of the health status of at least two server is arrived The database;
If receiving the time of the returned data of a server not in scheduled time threshold value, one service is judged Device is in the unsound situation of loading, and by the data of the health status of at least two server to the database.
5. the method for equalization server load as described in claim 1, which is characterized in that the method further includes to institute There is the parameter of step to be configured and managed.
6. the method for equalization server load as claimed in claim 5, which is characterized in that the ginseng of described pair of all steps It includes that routing rule is configured and updated that number, which carries out configuration and management,.
7. as described in claim 1 for equalization server load method, which is characterized in that further include configuration described at least One server group and at least two server.
8. as described in claim 1 for equalization server load method, which is characterized in that the method by using The gateway system of OpenResty and Node.js joint developments executes.
9. the gateway system for equalization server load, which is characterized in that including processor, memory and be stored in described In memory and it is configured as the computer program executed by the processor, the processor executes the computer program When, it can be achieved that it is as described in any one of claim 1 to 7 for equalization server load method.
10. a kind of storage medium, which is characterized in that the storage medium includes the computer program of storage, wherein in the meter Equipment calculation machine program controls the storage medium when running where executes realization as described in claim 1 to 7 any one Method for equalization server load.
CN201711406333.4A 2017-12-22 2017-12-22 Method, gateway system and storage medium for equalization server load Pending CN108322502A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711406333.4A CN108322502A (en) 2017-12-22 2017-12-22 Method, gateway system and storage medium for equalization server load

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711406333.4A CN108322502A (en) 2017-12-22 2017-12-22 Method, gateway system and storage medium for equalization server load

Publications (1)

Publication Number Publication Date
CN108322502A true CN108322502A (en) 2018-07-24

Family

ID=62891470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711406333.4A Pending CN108322502A (en) 2017-12-22 2017-12-22 Method, gateway system and storage medium for equalization server load

Country Status (1)

Country Link
CN (1) CN108322502A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558246A (en) * 2018-12-04 2019-04-02 北京字节跳动网络技术有限公司 A kind of load-balancing method, device, electronic equipment and storage medium
CN109831536A (en) * 2019-03-22 2019-05-31 成都六四三六五科技有限公司 A kind of front end load balancing service degradated system and method
CN110086831A (en) * 2019-05-23 2019-08-02 智者四海(北京)技术有限公司 Method for authenticating for gateway
CN110569163A (en) * 2019-07-24 2019-12-13 无锡华云数据技术服务有限公司 method, device, equipment and medium for monitoring health state of cloud host in telescopic group
CN110943887A (en) * 2019-11-29 2020-03-31 广州市百果园信息技术有限公司 Probe scheduling method, device, equipment and storage medium
CN110944000A (en) * 2019-12-05 2020-03-31 美味不用等(上海)信息科技股份有限公司 OpenResty gateway feature anti-brushing method based on multi-Agent cluster
CN110971479A (en) * 2019-10-08 2020-04-07 视联动力信息技术股份有限公司 Server detection method, device and system based on video network
CN111198762A (en) * 2019-12-16 2020-05-26 北京淇瑀信息科技有限公司 Server cluster system supporting high concurrency, control method and control device
CN111371866A (en) * 2020-02-26 2020-07-03 厦门网宿有限公司 Method and device for processing service request
CN113239396A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Data access system, method, device, computer equipment and medium
WO2021155656A1 (en) * 2020-02-06 2021-08-12 北京百度网讯科技有限公司 Data processing method and apparatus, and access system, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489069A (en) * 2002-10-10 2004-04-14 华为技术有限公司 Content-oriented load equalizing method and apparatus
US7181524B1 (en) * 2003-06-13 2007-02-20 Veritas Operating Corporation Method and apparatus for balancing a load among a plurality of servers in a computer system
CN101582850A (en) * 2009-06-19 2009-11-18 优万科技(北京)有限公司 Method and system for realizing load balance
CN103491123A (en) * 2012-06-14 2014-01-01 中国移动通信集团贵州有限公司 Load balancing method based on domain name visiting, system and load balancer
CN103580988A (en) * 2012-07-31 2014-02-12 阿里巴巴集团控股有限公司 Method for message receiving, pushing and transmitting, device, server group and system
CN105049503A (en) * 2015-07-07 2015-11-11 深信服网络科技(深圳)有限公司 Server dispatching method and load balancing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1489069A (en) * 2002-10-10 2004-04-14 华为技术有限公司 Content-oriented load equalizing method and apparatus
US7181524B1 (en) * 2003-06-13 2007-02-20 Veritas Operating Corporation Method and apparatus for balancing a load among a plurality of servers in a computer system
CN101582850A (en) * 2009-06-19 2009-11-18 优万科技(北京)有限公司 Method and system for realizing load balance
CN103491123A (en) * 2012-06-14 2014-01-01 中国移动通信集团贵州有限公司 Load balancing method based on domain name visiting, system and load balancer
CN103580988A (en) * 2012-07-31 2014-02-12 阿里巴巴集团控股有限公司 Method for message receiving, pushing and transmitting, device, server group and system
CN105049503A (en) * 2015-07-07 2015-11-11 深信服网络科技(深圳)有限公司 Server dispatching method and load balancing device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558246A (en) * 2018-12-04 2019-04-02 北京字节跳动网络技术有限公司 A kind of load-balancing method, device, electronic equipment and storage medium
CN109831536B (en) * 2019-03-22 2021-05-18 成都律图科技有限公司 Front-end load balancing service degradation system and method
CN109831536A (en) * 2019-03-22 2019-05-31 成都六四三六五科技有限公司 A kind of front end load balancing service degradated system and method
CN110086831A (en) * 2019-05-23 2019-08-02 智者四海(北京)技术有限公司 Method for authenticating for gateway
CN110569163A (en) * 2019-07-24 2019-12-13 无锡华云数据技术服务有限公司 method, device, equipment and medium for monitoring health state of cloud host in telescopic group
CN110971479A (en) * 2019-10-08 2020-04-07 视联动力信息技术股份有限公司 Server detection method, device and system based on video network
CN110943887A (en) * 2019-11-29 2020-03-31 广州市百果园信息技术有限公司 Probe scheduling method, device, equipment and storage medium
CN110944000A (en) * 2019-12-05 2020-03-31 美味不用等(上海)信息科技股份有限公司 OpenResty gateway feature anti-brushing method based on multi-Agent cluster
CN110944000B (en) * 2019-12-05 2021-09-28 美味不用等(上海)信息科技股份有限公司 OpenResty gateway feature anti-brushing method based on multi-Agent cluster
CN111198762A (en) * 2019-12-16 2020-05-26 北京淇瑀信息科技有限公司 Server cluster system supporting high concurrency, control method and control device
WO2021155656A1 (en) * 2020-02-06 2021-08-12 北京百度网讯科技有限公司 Data processing method and apparatus, and access system, electronic device and storage medium
CN111371866A (en) * 2020-02-26 2020-07-03 厦门网宿有限公司 Method and device for processing service request
CN113239396A (en) * 2021-05-11 2021-08-10 鸬鹚科技(深圳)有限公司 Data access system, method, device, computer equipment and medium

Similar Documents

Publication Publication Date Title
CN108322502A (en) Method, gateway system and storage medium for equalization server load
CN106301829B (en) A kind of method and apparatus of network service dilatation
CN105791344B (en) Method, system, load balancer and the service bus device of gray scale issuing service processing
CN110113399A (en) Load balancing management method and relevant apparatus
CN108965007A (en) API gateway interface configures update method and device
CN109636384A (en) A kind of parallelization executes the method, apparatus and system of block chain transaction
CN107404481B (en) User information recognition methods and device
CN103607424B (en) Server connection method and server system
CN108833166A (en) Edge cloud message forwarding method and system, network message retransmission method and system
CN110417870A (en) configuration file management method, device, equipment and storage medium
CN109428749A (en) Network management and relevant device
CN110365748A (en) Treating method and apparatus, storage medium and the electronic device of business datum
CN111212134A (en) Request message processing method and device, edge computing system and electronic equipment
CN112685287B (en) Product data testing method and device, storage medium and electronic device
CN109040243A (en) A kind of message processing method and device
CN108520471A (en) It is overlapped community discovery method, device, equipment and storage medium
CN109151025A (en) Load-balancing method, device, computer storage medium and equipment based on URL
CN105991660A (en) System for sharing resources among multiple cloud storage systems
CN109871498A (en) Back end interface response method, device, electronic equipment and storage medium
CN108733698A (en) A kind of processing method and background service system of log information
CN108924203A (en) Data copy self-adapting distribution method, distributed computing system and relevant device
CN107943423A (en) The management method and computer-readable recording medium of storage resource in cloud system
CN110225102A (en) Method, equipment and the system of pushed information
CN109947568A (en) Timed task processing method, system, computer equipment and storage medium
CN110636149B (en) Remote access method, device, router and 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180724