CN104683463B - The control method and device and server system of a kind of application server - Google Patents
The control method and device and server system of a kind of application server Download PDFInfo
- Publication number
- CN104683463B CN104683463B CN201510090608.2A CN201510090608A CN104683463B CN 104683463 B CN104683463 B CN 104683463B CN 201510090608 A CN201510090608 A CN 201510090608A CN 104683463 B CN104683463 B CN 104683463B
- Authority
- CN
- China
- Prior art keywords
- application server
- usage amount
- resource usage
- interface pressure
- pressure rank
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- 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/1012—Server selection for load balancing based on compliance of requirements or conditions with available server resources
-
- 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/1029—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
The present invention provides the control method and device and server system of a kind of application server, helps to solve the problems, such as service system collapse, even cascade collapse.The control method of application server of the invention includes: the corresponding relationship saved between the resource usage amount of application server and the interface pressure rank of the application server, and saves the corresponding relationship between the interface pressure rank of the application server and the one or more functions of the application server;The resource usage amount for receiving the application server determines the corresponding interface pressure rank of the resource usage amount, is then shut off the function of the corresponding one or more application server of the interface pressure rank.
Description
Technical field
The present invention relates to field of computer technology, in particular to the control method and device and clothes of a kind of application server
Business device system.
Background technique
Electric business often holds large-scale promotion, and user's amount of access can be presented volatile lasting within a short period of time in the meantime
Increase, cause many service systems since pressure is excessive, and the problems such as delay machine, cascade collapse occurs.
Such case occurs in order to prevent, and traditional method is to take the means of manual intervention, finds which service system
It crashes, is then restarted manually since pressure is excessive;Since user's amount of access of sustainable growth brings service system in a short time
The pressure of system is often very big, therefore before artificial treatment completion, it is possible to and the service system for front occur is not restarted also, after
The problem of service system in face is also and then cascaded and defeats completely, causes service system collapse, even cascade collapse, institute is in this way
It can only treat the symptoms and cannot effect a permanent cure.
Summary of the invention
In view of this, the present invention provides the control method and device and server system of a kind of application server, help
In solve the problems, such as service system collapse, even cascade collapse.
To achieve the above object, according to an aspect of the invention, there is provided a kind of control method of application server.
The control method of application server of the invention includes: to save the resource usage amount and application clothes of application server
Corresponding relationship between the interface pressure rank of device of being engaged in, and save the interface pressure rank and the application of the application server
Corresponding relationship between the one or more functions of server;The resource usage amount for receiving the application server, determines the money
Usage amount corresponding interface pressure rank in source is then shut off the corresponding one or more application service of the interface pressure rank
The function of device.
Optionally, the resource usage amount includes following one or more of: CPU usage, call number, EMS memory occupation
Amount and number of concurrent.
Optionally, pair between the resource usage amount of the application server and the interface pressure rank of the application server
Should be related to include: the application server interface pressure rank correspond to the application server resource usage amount model
It encloses.
According to another aspect of the present invention, a kind of control device of application server is provided.
The control device of application server of the invention includes: receiving module, for receiving the money of the application server
Source usage amount;Determining module, for according to the resource usage amount of application server and the interface pressure rank of the application server
Between corresponding relationship and the application server interface pressure rank and the application server one or more functions
Between corresponding relationship, determine the corresponding interface pressure rank of the resource usage amount of the application server;Sending module is used for
Control instruction is sent to the application server, the control instruction for close the interface pressure rank it is corresponding one or
The function of multiple application servers.
Optionally, the resource usage amount includes following one or more of: CPU usage, call number, EMS memory occupation
Amount and number of concurrent.
Optionally, pair between the resource usage amount of the application server and the interface pressure rank of the application server
Should be related to include: the application server interface pressure rank correspond to the application server resource usage amount model
It encloses.
According to another aspect of the invention, a kind of server system is provided.
Server system of the invention includes application server and control server, wherein application server, for providing
Then the resource usage amount of the application server closes the interface pressure grade according to the control instruction that control server is sent
The function of the not corresponding one or more application server;Control server, for receiving the money of the application server
Source usage amount, according to the corresponding pass between the resource usage amount of application server and the interface pressure rank of the application server
Corresponding pass between system and the interface pressure rank and the one or more functions of the application server of the application server
System, determines the corresponding interface pressure rank of the resource usage amount of presently described application server, control instruction is sent to described
Application server, the control instruction is for closing the corresponding one or more application server of the interface pressure rank
Function.
Optionally, the system also includes storage server, for save the application server resource usage amount and
Corresponding relationship between the interface pressure rank of the application server, and save the interface pressure rank of the application server
Corresponding relationship between the one or more functions of the application server.
Optionally, pair between the resource usage amount of the application server and the interface pressure rank of the application server
Should be related to include: the application server interface pressure rank correspond to the application server resource usage amount model
It encloses.
According to the technique and scheme of the present invention, the resource usage amount of application server and the interface of the application server are saved
Corresponding relationship between pressure rank, and save the interface pressure rank and the application server of the application server
Corresponding relationship between one or more functions receives the resource usage amount of the application server, determines the resource usage amount
Corresponding interface pressure rank is then shut off the function of the corresponding one or more application server of the interface pressure rank
Can, so as to help to ensure that service system can have with the compression shock of the sustainable growth in the quick response this short time
Help service system collapse caused by solving the problems, such as due to artificial treatment at a slow speed, even cascade collapse.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of server system according to an embodiment of the present invention;
Fig. 2 is the schematic diagram of the control method of application server according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of the main modular of control server according to an embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of configuration process of the configuration information of application server according to an embodiment of the present invention;
Fig. 5 is a kind of schematic diagram of specific workflow of application server according to an embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of specific workflow of control server according to an embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention
Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize
It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together
Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is the schematic diagram of server system according to an embodiment of the present invention.As shown in Figure 1, the clothes of the embodiment of the present invention
Device system 10 of being engaged in includes mainly application server 11 and control server 12, additionally can include storage server shown in figure
13.Storage server 13 is for saving the resource usage amount of the application server and the interface pressure rank of the application server
Between corresponding relationship, and save the interface pressure rank of the application server and the one or more of the application server
Corresponding relationship between function.
Fig. 2 is the schematic diagram of the control method of application server according to an embodiment of the present invention.As shown in Fig. 2, this method
Mainly include the following steps, namely S20 to S22.
Step S20: storage server saves the resource usage amount of application server and the interface pressure of the application server
Corresponding relationship between rank, and save the interface pressure rank of the application server and one of the application server or
Corresponding relationship between multiple functions.The resource usage amount of application server includes following one or more of: CPU usage, tune
With number, EMS memory occupation amount and number of concurrent.The resource usage amount of application server and the interface pressure grade of the application server
Corresponding relationship between not includes: that the interface pressure rank of the application server makes corresponding to the resource of the application server
The range of dosage.
Step S21: control server receives the resource usage amount of the application server, determines that the resource usage amount is corresponding
Interface pressure rank, generate include the interface pressure rank control instruction.For example, the interface pressure rank of application server
Including slight pressure, moderate pressure and high stress;When each application server externally provides service, can according to setting when
Between period or number the resource usage amount of application server is provided, so as to the application service saved according to storage server
Corresponding relationship between the resource usage amount of device and the interface pressure rank of the application server, determines locating for corresponding interface
Pressure rank.
Step S22: application server is closed in the control instruction according to the control instruction that control server provides includes
The function of one or more application server corresponding to interface pressure rank.For example, when control server is received using clothes
When the CPU usage of business device reaches 50%, the resource usage amount of the application server saved according to storage server is answered with this
With the corresponding relationship between the interface pressure rank of server, judge that pressure rank locating for the interface of the application server is light
Pressure is spent, the interface pressure rank for the application server that then control server is saved according to storage server and the application take
Corresponding relationship between the one or more functions of device of being engaged in, is sent to application server for corresponding control instruction, finally applies
Server closes one of the application server for corresponding to interface slight pressure according to the control instruction that control server provides
Or multiple functions;If the resource usage amount that after a period of time, application server provides continues to rise, it is assumed that CPU is used
Rate has reached 80%, then the resource usage amount and the application server of the application server saved according to storage server
Corresponding relationship between interface pressure rank, during control server judges that pressure rank locating for the interface of the application server is
Spend pressure, interface pressure rank and the application server of the application server then saved again according to storage server
Corresponding control instruction is sent to application server, last application server by the corresponding relationship between one or more functions
The one or more for corresponding to the application server of interface moderate pressure is closed according to the control instruction that control server provides
Function is so analogized down.
The process of Fig. 2 is used to control an application server, for multiple application servers, can distinguish shown in application drawing 2
Process is controlled.
Fig. 3 is the schematic diagram of the main modular of control server according to an embodiment of the present invention.As shown in figure 3, of the invention
The control server 30 of embodiment mainly includes receiving module 31, determining module 32 and sending module 33.Receiving module 31 is used
In the resource usage amount for receiving the application server;Determining module 32 is used for the resource usage amount according to application server and should
The interface pressure rank of corresponding relationship and the application server between the interface pressure rank of application server is answered with this
With the corresponding relationship between the one or more functions of server, determines that the resource usage amount of the application server is corresponding and connect
Mouth pressure rank;Sending module 33 is used to control instruction being sent to the application server, and the control instruction is for closing institute
State the function of the corresponding one or more application server of interface pressure rank.
Fig. 4 is a kind of schematic diagram of configuration process of the configuration information of application server according to an embodiment of the present invention.Such as
Shown in Fig. 4, the configuration process of the configuration information of application server is mainly comprised the steps that
Step 401: the client of the configuration information of user's login configurations application server;The configuration information includes: to answer
With the corresponding relationship and application clothes between the resource usage amount of server and the interface pressure rank of the application server
The corresponding relationship being engaged between the interface pressure rank of device and the one or more functions of the application server;
Step 402: finding the application server needed to configure, and judge whether the configuration information of this application server is deposited
If it does, entering step 403;Otherwise, 404 are entered step;
Step 403: taking out the configuration information of original application server from storage server, modify application server
Configuration information, subsequently into step 405;
Step 404: the configuration information of newly-built application server, subsequently into step 405;
Step 405: the configuration information of newly-built/modified application server is saved in storage server.
Fig. 5 is a kind of schematic diagram of specific workflow of application server according to an embodiment of the present invention.Such as Fig. 5 institute
Show, this specific workflow of application server mainly comprises the steps that
Step 501: receiving the order of the interface of specific calling service application server;
Step 502: judge application server whether access control server, if so, entering step 503;Otherwise, enter
Step 504;
Step 503: application server provides the resource usage amount of current application server to control server, receives control
The control instruction that server provides, the control instruction are that the resource usage amount that control server is provided according to application server is true
Control instruction given by pressure rank locating for the interface of fixed current application server, subsequently into step 504;
Step 504: application server is according to the obtained control instruction of last visit control server or according to step
503 obtained control instructions determine whether to close the interface of the application server, if it is, directly terminating;Otherwise, enter
Step 505;
Step 505: application server is closed according to control instruction to be corresponded to described in the one or more of interface pressure rank
The function of application server;Such as: closed safe inspection is determined whether to, anti-reentry whether is closed and whether want current limliting
Deng;Subsequently into step 506;
Step 506: the processing of specific business is carried out, until terminating.
Fig. 6 is a kind of schematic diagram of specific workflow of control server according to an embodiment of the present invention.Such as Fig. 6 institute
Show, this specific workflow of control server mainly comprises the steps that
Step 601: control server starting;
Step 602: the configuration information of application server is obtained from storage server;
Step 603: receiving the request that application server obtains control instruction;
Step 604: according to the resource usage amount of application server offer, locating for the interface for determining current application server
Pressure rank;
Step 605: control instruction is sent to application server according to pressure rank by control server.
Technical solution according to an embodiment of the present invention saves the resource usage amount and the application server of application server
Interface pressure rank between corresponding relationship, and save the application server interface pressure rank and the application clothes
Corresponding relationship between the one or more functions of device of being engaged in, receives the resource usage amount of the application server, determines the resource
The corresponding interface pressure rank of usage amount is then shut off the corresponding one or more application server of the interface pressure rank
Function, so as to help to ensure that service system can be rushed with the pressure of the sustainable growth in the quick response this short time
It hits, facilitates service system collapse caused by solving the problems, such as due to artificial treatment at a slow speed, even cascade collapse.
Describe basic principle of the invention in conjunction with specific embodiments above, in the apparatus and method of the present invention, it is clear that
Each component or each step can be decomposed and/or be reconfigured.These decompose and/or reconfigure should be regarded as it is of the invention etc.
Efficacious prescriptions case.Also, the step of executing above-mentioned series of processes can execute according to the sequence of explanation in chronological order naturally, still
It does not need centainly to execute sequentially in time.Certain steps can execute parallel or independently of one another.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright
It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any
Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention
Within.
Claims (9)
1. a kind of control method of application server characterized by comprising
The corresponding relationship between the resource usage amount of application server and the interface pressure rank of the application server is saved, and
The corresponding relationship between the interface pressure rank of the application server and the one or more functions of the application server is saved,
The resource usage amount includes following one or more of: CPU usage, call number, EMS memory occupation amount and number of concurrent;
The resource usage amount for receiving the application server determines the corresponding interface pressure rank of the resource usage amount, then closes
Close the function of the corresponding one or more application server of the interface pressure rank.
2. the method according to claim 1, wherein the resource usage amount of the application server and the application clothes
Corresponding relationship between the interface pressure rank of device of being engaged in includes: that the interface pressure rank of the application server corresponds to described answer
With the range of the resource usage amount of server.
3. a kind of control device of application server characterized by comprising
Receiving module, for receiving the resource usage amount of the application server, the resource usage amount include it is following a kind of or
It is several: CPU usage, call number, EMS memory occupation amount and number of concurrent;
Determining module, for according between the resource usage amount of application server and the interface pressure rank of the application server
Between the one or more functions of the interface pressure rank and the application server of corresponding relationship and the application server
Corresponding relationship determines the corresponding interface pressure rank of the resource usage amount of the application server;
Sending module, for control instruction to be sent to the application server, the control instruction is for closing the interface pressure
The function of the corresponding one or more application server of power rank.
4. device according to claim 3, which is characterized in that the resource usage amount of the application server and the application clothes
Corresponding relationship between the interface pressure rank of device of being engaged in includes: that the interface pressure rank of the application server corresponds to described answer
With the range of the resource usage amount of server.
5. a kind of server system, which is characterized in that including application server and control server, in which:
Application server is used to provide the described the resource usage amount of application server, the control then sent according to control server
The function for the corresponding one or more application server of interface pressure rank for including in the control instruction is closed in system instruction
Can, the resource usage amount includes following one or more of: CPU usage, call number, EMS memory occupation amount and number of concurrent;
Control server, for receiving the resource usage amount of the application server, according to the resource usage amount of application server
The interface pressure rank of corresponding relationship and the application server between the interface pressure rank of the application server with
Corresponding relationship between the one or more functions of the application server determines the resource usage amount of presently described application server
Control instruction is sent to the application server by corresponding interface pressure rank, and the control instruction is for closing described connect
The function of the corresponding one or more application server of mouth pressure rank.
6. system according to claim 5, which is characterized in that the system also includes storage servers, for saving
The corresponding relationship between the resource usage amount of application server and the interface pressure rank of the application server is stated, and saves institute
State the corresponding relationship between the interface pressure rank of application server and the one or more functions of the application server.
7. system according to claim 6, which is characterized in that the resource usage amount of the application server and the application clothes
Corresponding relationship between the interface pressure rank of device of being engaged in includes: that the interface pressure rank of the application server corresponds to described answer
With the range of the resource usage amount of server.
8. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method as described in any in claim 1-2.
9. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is executed by processor
Method of the Shi Shixian as described in any in claim 1-2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510090608.2A CN104683463B (en) | 2015-02-28 | 2015-02-28 | The control method and device and server system of a kind of application server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510090608.2A CN104683463B (en) | 2015-02-28 | 2015-02-28 | The control method and device and server system of a kind of application server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104683463A CN104683463A (en) | 2015-06-03 |
CN104683463B true CN104683463B (en) | 2019-01-25 |
Family
ID=53318029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510090608.2A Active CN104683463B (en) | 2015-02-28 | 2015-02-28 | The control method and device and server system of a kind of application server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104683463B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105099935A (en) * | 2015-07-28 | 2015-11-25 | 小米科技有限责任公司 | Server load control method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7480719B2 (en) * | 2003-10-29 | 2009-01-20 | International Business Machines Corporation | Information system, load control method, load control program and recording medium |
CN103188277B (en) * | 2011-12-27 | 2016-05-18 | 中国电信股份有限公司 | load energy consumption management system, method and server |
CN103353852A (en) * | 2013-06-07 | 2013-10-16 | 曲阜师范大学 | Method for constructing IaaS of virtualized WebService |
CN103701928B (en) * | 2014-01-02 | 2017-03-01 | 山东大学 | It is applied to the method that load equalizer improves server and SSL gateway operational efficiency |
CN104168207A (en) * | 2014-08-21 | 2014-11-26 | 北京奇艺世纪科技有限公司 | Load regulating method and system |
-
2015
- 2015-02-28 CN CN201510090608.2A patent/CN104683463B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104683463A (en) | 2015-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2020507140A5 (en) | ||
CN103995748B (en) | The task processing method and system of intelligent terminal | |
JP2014521184A5 (en) | ||
RU2014136808A (en) | METHOD AND DEVICE FOR ADVANCED LOCK PASS TECHNOLOGIES | |
CN105589697A (en) | Method and device for upgrading cloud platform | |
CN110083651B (en) | Data loading method and device | |
CN103595770B (en) | Method and device for achieving file downloading through SDK | |
CN107453953B (en) | Httpclient-based data updating system and method | |
JP2013137661A5 (en) | ||
CN108664521B (en) | Method and device for providing serial number, electronic equipment and readable storage medium | |
CN106685894B (en) | Risk identification method, device and system | |
CN110162344B (en) | Isolation current limiting method and device, computer equipment and readable storage medium | |
US10204012B2 (en) | Impact analysis-based task redoing method, impact analysis calculation apparatus, and one-click resetting apparatus | |
CN109361542A (en) | The fault handling method of client, device, system, terminal and server | |
US10013242B2 (en) | Distributed compilation of statically typed languages | |
CN104461563A (en) | Method for regularly detecting newly-added file of FTP server under linux | |
WO2018000918A1 (en) | Network-based set-top box testing method and system | |
CN106407395A (en) | A processing method and device for data query | |
CN103309668A (en) | Method and device for processing uncaught exception of application programs | |
CN104683463B (en) | The control method and device and server system of a kind of application server | |
RU2010149275A (en) | RESTORATION OF THE RESOURCE MANAGEMENT OF THE PROCESSING, WHICH EXECUTES THE EXTERNAL CONTEXT OF EXECUTION | |
CN110554917A (en) | method, system, terminal and storage medium for efficiently traversing large data volume set | |
CN110471786A (en) | Online hot restorative procedure, device, equipment and computer readable storage medium | |
CN108984405B (en) | Performance test method, device and computer readable storage medium | |
CN106250112A (en) | A kind of auxiliary system for developing software, method and software development system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |