CN109976977A - Application service loads decompression method, server and storage medium - Google Patents

Application service loads decompression method, server and storage medium Download PDF

Info

Publication number
CN109976977A
CN109976977A CN201910242567.2A CN201910242567A CN109976977A CN 109976977 A CN109976977 A CN 109976977A CN 201910242567 A CN201910242567 A CN 201910242567A CN 109976977 A CN109976977 A CN 109976977A
Authority
CN
China
Prior art keywords
server
application service
performance indicator
threshold
alarm
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
CN201910242567.2A
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910242567.2A priority Critical patent/CN109976977A/en
Publication of CN109976977A publication Critical patent/CN109976977A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present application discloses a kind of application service load decompression method, server and computer readable storage medium, application service load decompression method includes: the real-time performance indicator for obtaining server, and judges whether the performance indicator of the server is higher than alarm threshold;It generates alarm signal and the alarm signal is published in messaging bus, so that the application service for being tied to the messaging bus executes load decompression strategy after receiving the alarm signal.Alarm signal is published in messaging bus when the embodiment of the present application is higher than alarm threshold by the performance indicator in server, the application service for being tied to messaging bus executes load decompression after receiving alarm signal;Solves the problem of Linux server is carried out reduced pressure treatment by the way of extremely violence under the scene that CPU, memory rise suddenly and sharply, causes severe interlocking effect;The availability of application service is improved, user experience is improved.

Description

Application service loads decompression method, server and storage medium
Technical field
The invention relates to fields of communication technology more particularly to a kind of application service to load decompression method, server And computer readable storage medium.
Background technique
In the current internet communications industry, common application service has very much, such as provides website or back-stage management function Apache service provides the Tomcat application service of data supporting for client end AP P, for the purpose of collector journal data Flume service etc.;These application services are almost deployed in Linux server in industry at home.
IT operation maintenance personnel is disposed before application service in Linux server, can assess under normal conditions CPU, memory with And the service condition of some other server index, a pile application service will not be deployed in single Linux server carelessly; So in normal conditions, the application service run in Linux server is that (CPU, memory etc. refer in load normal environment Mark is normal).But everything can not lump together, can be rapid due to user activity in some scenarios (as carried out popularization activity) It rises, the service request of flood tide pours into application service, the CPU of certain application services or memory is caused to rise suddenly and sharply, so that Linux takes Business device load too high.Linux server rises suddenly and sharply in CPU, memory to after pole, and resource will exhaust, can be using the side of extremely violence Formula carries out reduced pressure treatment --- the application service process that CPU on server is excessively high or memory is excessively high killed.Such situation goes out After now, it is likely that it will cause severe interlocking effect, if application service node A is killed by Linux server in cluster service, and it is big It is negative to measure the application service node that the service request poured in can be then further exacerbated by other Linux servers in cluster service It carries, extreme case even will cause entire cluster service paralysis, can not externally provide service, user causes very to client Bad usage experience.
Summary of the invention
In view of this, the embodiment of the present application be designed to provide a kind of application service load decompression method, server with And computer readable storage medium, to solve Linux server under the scene that CPU, memory rise suddenly and sharply using the side of extremely violence The problem of formula carries out reduced pressure treatment, causes severe interlocking effect.
It is as follows that the embodiment of the present application solves technical solution used by above-mentioned technical problem:
According to the one aspect of the embodiment of the present application, a kind of application service load decompression method provided, the application clothes Business loads decompression method
The performance indicator of server is obtained in real time, and judges whether the performance indicator of the server is higher than alarm threshold;
In the case where the performance indicator of the server is higher than the alarm threshold, alarm signal is generated and by the announcement Alert signal is published in messaging bus, so that the application service for being tied to the messaging bus is receiving the alarm signal Load decompression strategy is executed later.
In a kind of possible embodiment, the alarm signal is simultaneously published to messaging bus by the generation alarm signal In, so that the application service for being tied to the messaging bus executes load decompression plan after receiving the alarm signal Slightly, later further include:
Reacquire the performance indicator of the server, and judge reacquire the server performance indicator whether Higher than the alarm threshold;
In the case where the performance indicator of server on the fact that reacquire is higher than the alarm threshold, judgement obtains again Whether the performance indicator of the server taken is higher than cleaning threshold;
In the case where the performance indicator of the server of reacquisition is higher than the cleaning threshold, according to preset clear Except sequence carries out the clear operation of application service until the performance indicator of the server is lower than the alarm threshold.
In a kind of possible embodiment, the preset removing sequence includes:
It preferentially is removed without the application service for being tied to the messaging bus, secondly according to the removing priority of application service Carry out the removing of application service.
In a kind of possible embodiment, the real-time performance indicator for obtaining server, and judge the server Performance indicator whether be higher than alarm threshold, before further include:
Configure the removing priority of the alarm threshold, the cleaning threshold and the application service.
According to the other side of the embodiment of the present application, a kind of server provided, the server include listening components, Message components and messaging bus;
The listening components for obtaining the performance indicator of server in real time, and judge the performance indicator of the server Whether alarm threshold is higher than;
The message components, for generating in the case where the performance indicator of the server is higher than the alarm threshold The alarm signal is simultaneously published in the messaging bus by alarm signal, so that being tied to the application clothes of the messaging bus Business executes load decompression strategy after receiving the alarm signal.
In a kind of possible embodiment, the server further includes cleaning assembly;
The listening components, are also used to reacquire the performance indicator of the server, and judge to reacquire described Whether the performance indicator of server is higher than the alarm threshold;The performance indicator of server is higher than institute on the fact that reacquire In the case where stating alarm threshold, judge whether the performance indicator of the server reacquired is higher than cleaning threshold;
The cleaning assembly is higher than the feelings of the cleaning threshold for the performance indicator of the server in reacquisition Under condition, the clear operation of application service is carried out until the performance indicator of the server is lower than described according to preset removing sequence Alarm threshold.
In a kind of possible embodiment, the preset removing sequence includes:
It preferentially is removed without the application service for being tied to the messaging bus, secondly according to the removing priority of application service Carry out the removing of application service.
In a kind of possible embodiment, the server further includes configuration component;
The configuration component, for configuring the removing of the alarm threshold, the cleaning threshold and the application service Priority.
According to the other side of the embodiment of the present application, a kind of server provided, the server includes memory, place It manages device and is stored in the application service load decompression program that can be run on the memory and on the processor, the application Service load decompression program realizes the step of above-mentioned application service load decompression method when being executed by the processor.
According to the other side of the embodiment of the present application, a kind of computer readable storage medium provided, the computer Application service load decompression program is stored on readable storage medium storing program for executing, the application service load decompression program is executed by processor Shi Shixian above-mentioned application service loads the step of decompression method.
The application service load decompression method, server and computer readable storage medium of the embodiment of the present application, pass through Alarm signal is published in messaging bus when the performance indicator of server is higher than alarm threshold, is tied to answering for messaging bus Load decompression is executed after receiving alarm signal with service;Solves the scene that Linux server rises suddenly and sharply in CPU, memory It is lower that reduced pressure treatment is carried out by the way of extremely violence, the problem of causing severe interlocking effect;Improve the available of application service Property, improve user experience.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and together with specification it is used to explain the principle of the application.
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is that the application service of the application first embodiment loads decompression method flow diagram;
Fig. 2 is that the application service of the embodiment of the present application loads depressurized system structural schematic diagram;
Fig. 3 is the server architecture schematic diagram of the application second embodiment;
Fig. 4 is that the application service of the embodiment of the present application loads decompression process schematic diagram;
Fig. 5 is the server architecture schematic diagram of the application 3rd embodiment.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
In order to be clearer and more clear technical problems to be solved in this application, technical solution and beneficial effect, tie below Drawings and examples are closed, the application is further elaborated.It should be appreciated that specific embodiment described herein is only To explain the application, it is not used to limit the application.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
First embodiment
As shown in Figure 1, the application first embodiment provides a kind of application service load decompression method, the application service is negative Carrying decompression method includes:
Step S11, the performance indicator of server is obtained in real time, and judges whether the performance indicator of the server is higher than announcement Alert threshold value.
In the present embodiment, the performance indicator of server includes but is not limited to the indexs such as the CPU of server, memory.Alarm Threshold value can be configured in advance according to actual needs by IT operation maintenance personnel, such as: the alarm threshold of CPU can be configured to 85%, 90%, 97% etc., the alarm threshold of memory can be configured to 85%, 88%, 90%, 92%, 97% etc..
Step S12, in the case where the performance indicator of the server is higher than the alarm threshold, alarm signal is generated simultaneously The alarm signal is published in messaging bus so that be tied to the application service of the messaging bus receive it is described Load decompression strategy is executed after alarm signal.
In the present embodiment, be tied to the messaging bus application service can realize messaging bus monitoring strategy and Hook adjusts back logic.Specifically, after in application deployment service to server, strategy is monitored due to realizing, then can be tied to and disappear Message is received in breath bus;Otherwise it is not associated with messaging bus formation;It is mainly that application service receives that hook, which adjusts back logic, After alarm signal, strategy is depressurized in the load for executing application service self-defining.
In the present embodiment, application service self-defining load decompression strategy include but is not limited to reduce computation rate, Discharge inoperative memory etc..
In one embodiment, the generation alarm signal and the alarm signal is published in messaging bus, with So that the application service for being tied to the messaging bus executes load decompression strategy after receiving the alarm signal, later Further include:
Reacquire the performance indicator of the server, and judge reacquire the server performance indicator whether Higher than the alarm threshold;
In the case where the performance indicator of server on the fact that reacquire is higher than the alarm threshold, judgement obtains again Whether the performance indicator of the server taken is higher than cleaning threshold;
In the case where the performance indicator of the server of reacquisition is higher than the cleaning threshold, according to preset clear Except sequence carries out the clear operation of application service until the performance indicator of the server is lower than the alarm threshold.
In this embodiment, after the decompression operation of application service has executed, if the performance indicator of server is still high In the alarm threshold, then continue waiting for until triggering cleaning threshold, and then carry out the clear operation one by one of application service.
In this embodiment, the preset removing sequence includes:
It preferentially is removed without the application service for being tied to the messaging bus, secondly according to the removing priority of application service Carry out the removing of application service.
In one embodiment, the real-time performance indicator for obtaining server, and judge the performance of the server Whether index is higher than alarm threshold, before further include:
Configure the removing priority of the alarm threshold, the cleaning threshold and the application service.
As illustratively, alarm threshold, cleaning threshold and the removing of the application service priority of configuration can following institutes Show:
Alarm:CPU=90%, Memory=90%.
Kill:CPU=97%, Memory=97%.
Priority:APP_A=9, APP_B=7, APP_C=10, APP_D=2, APP_E=3, APP_F=7.
Wherein, Alarm is alarm threshold ratio, only need to meet one of condition, i.e. triggering publication alarm signal, specifically Parameter value can be adjusted according to actual needs by IT operation maintenance personnel.
Kill is to execute to remove application service threshold percentage, need to only meet one of condition, that is, can trigger orderly pair Application service is cleared up in Linux server, design parameter value, can be adjusted according to actual needs by IT operation maintenance personnel.
Priority is the priority that application service is removed, and is the unique identification of application service before equal sign, behind equal sign Number it is smaller, it is more early to be removed.If the application service being bundled on messaging bus is arranged preferentially not in configuration component Grade, then defaulting its priority is 5.If not being bundled in the application service on messaging bus, removed at first.
In order to preferably illustrate the present embodiment, system is depressurized to the load of Linux server and application service below in conjunction with Fig. 2 System is illustrated:
As shown in Fig. 2, application service A- application service E is tied on the messaging bus of Linux server, application service F It is not tied on the messaging bus of Linux server.Wherein, application service A- application service E realizes the monitoring of messaging bus Strategy and hook adjust back logic, and application service F can not receive the alarm signal of messaging bus.
Linux server includes configuration component, listening components, message components, cleaning assembly and messaging bus.
IT operation maintenance personnel can configure alarm threshold, cleaning threshold and application service in configuration component according to actual needs Removing priority.If the configuration data in configuration component is had some change, reload config.properties life can be performed It enables, so that the configuration data after change comes into force.
Configuration component is configured according to such as lower template, before wherein the definition of Alarm, Kill and Priority can refer to State content.
Alarm:CPU=90%, Memory=90%.
Kill:CPU=97%, Memory=97%.
Priority:APP_A=9, APP_B=7, APP_C=10, APP_D=2, APP_E=3, APP_F=7.
Listening components monitor CPU and memory variation in Linux server in real time;When CPU or memory are higher than configuration component In alarm threshold when, then call notification component issues alarm signal into messaging bus, and promotion is tied to Linux server The spontaneous carry out reduced pressure treatment of application service on messaging bus;When CPU or memory are higher than the cleaning threshold in configuration component, then The clear operation for the progress application service for calling cleaning assembly orderly.
Message components are monitored component and are called, and alarm signal is published in messaging bus in real time.
Cleaning assembly is monitored component and is called, and orderly application service clear operation is carried out, until current CPU and memory Load is lower than threshold value of warning;Its removing sequence is as follows: preferential removing and messaging bus are without binding application service, followed by according to excellent The progress from low to high of first grade, the as far as possible high application service availability of guarantee significance level.
In summary, it is linked by constructing configuration component, listening components, notification component, the cleaning assembly of Linux server Cooperation mechanism, in CPU, memory abnormal, intelligent early-warning promotes application service to execute reduced pressure treatment;And in extreme case Under, application service cleaning is targetedly carried out, ensures the high application service availability of significance level, is externally provided to realize Service the target of High Availabitity.
The application service of the embodiment of the present application loads decompression method, is higher than alarm threshold by the performance indicator in server When alarm signal is published in messaging bus, the application service for being tied to messaging bus executes after receiving alarm signal Load decompression;It solves Linux server to carry out at decompression by the way of extremely violence under the scene that CPU, memory rise suddenly and sharply The problem of managing, causing severe interlocking effect;The availability of application service is improved, user experience is improved.
Second embodiment
As shown in figure 3, the application second embodiment provides a kind of server, the server includes listening components 21, disappears Cease component 22 and messaging bus 23;
The listening components 21 for obtaining the performance indicator of server in real time, and judge that the performance of the server refers to Whether mark is higher than alarm threshold;
In the present embodiment, the performance indicator of server includes but is not limited to the indexs such as the CPU of server, memory.Alarm Threshold value can be configured in advance according to actual needs by IT operation maintenance personnel, such as: the alarm threshold of CPU can be configured to 85%, 90%, 97% etc., the alarm threshold of memory can be configured to 85%, 88%, 90%, 92%, 97% etc..
The message components 22, for giving birth in the case where the performance indicator of the server is higher than the alarm threshold It is published in the messaging bus at alarm signal and by the alarm signal, so that being tied to answering for the messaging bus 23 Load decompression strategy is executed after receiving the alarm signal with service.
In the present embodiment, be tied to the messaging bus application service can realize messaging bus monitoring strategy and Hook adjusts back logic.Specifically, after in application deployment service to server, strategy is monitored due to realizing, then can be tied to and disappear Message is received in breath bus;Otherwise it is not associated with messaging bus formation;It is mainly that application service receives that hook, which adjusts back logic, After alarm signal, strategy is depressurized in the load for executing application service self-defining.
In the present embodiment, application service self-defining load decompression strategy include but is not limited to reduce computation rate, Discharge inoperative memory etc..
It refer again to shown in Fig. 3, in one embodiment, the server further includes cleaning assembly 24;
The listening components 21, are also used to reacquire the performance indicator of the server, and judge the institute reacquired Whether the performance indicator for stating server is higher than the alarm threshold;The performance indicator of server is higher than on the fact that reacquire In the case where the alarm threshold, judge whether the performance indicator of the server reacquired is higher than cleaning threshold;
The cleaning assembly 24, the performance indicator for the server in reacquisition are higher than the cleaning threshold In the case of, the clear operation of application service is carried out until the performance indicator of the server is lower than institute according to preset removing sequence State alarm threshold.
In this embodiment, after the decompression operation of application service has executed, if the performance indicator of server is still high In the alarm threshold, then continue waiting for until triggering cleaning threshold, and then carry out the clear operation one by one of application service.
In this embodiment, the preset removing sequence includes:
It preferentially is removed without the application service for being tied to the messaging bus, secondly according to the removing priority of application service Carry out the removing of application service.
It refer again to shown in Fig. 3, in one embodiment, the server further includes configuration component 25;
The configuration component 25, for configuring the clear of the alarm threshold, the cleaning threshold and the application service Except priority.
As illustratively, alarm threshold, cleaning threshold and the removing of the application service priority of configuration can following institutes Show:
Alarm:CPU=90%, Memory=90%.
Kill:CPU=97%, Memory=97%.
Priority:APP_A=9, APP_B=7, APP_C=10, APP_D=2, APP_E=3, APP_F=7.
Wherein, Alarm is alarm threshold ratio, only need to meet one of condition, i.e. triggering publication alarm signal, specifically Parameter value can be adjusted according to actual needs by IT operation maintenance personnel.
Kill is to execute to remove application service threshold percentage, need to only meet one of condition, that is, can trigger orderly pair Application service is cleared up in Linux server, design parameter value, can be adjusted according to actual needs by IT operation maintenance personnel.
Priority is the priority that application service is removed, and is the unique identification of application service before equal sign, behind equal sign Number it is smaller, it is more early to be removed.If the application service being bundled on messaging bus is arranged preferentially not in configuration component Grade, then defaulting its priority is 5.If not being bundled in the application service on messaging bus, removed at first.
In order to preferably illustrate the present embodiment, it is illustrated below in conjunction with Fig. 4 to using service load decompression process:
Step 1: listening components listen to Linux server CPU or memory is higher than alarm threshold;
Step 2: alarm signal is published in messaging bus by message components;
Step 3: being tied to the application service of messaging bus after receiving alarm signal, reduce computation rate or release Inoperative memory;
Step 4: judging whether risk releases;If risk releases, process terminates;
Step 5: if risk does not release and listening components listen to Linux server CPU or memory is higher than cleaning threshold Value;
Step 6: cleaning assembly is preferentially removed without the application service for being tied to messaging bus;
Step 7: judging whether risk releases;If risk releases, process terminates;
Step 8: if risk does not release, cleaning assembly carries out the clear of application service according to the removing priority of application service It removes, until risk releases.
The server of the embodiment of the present application sends out alarm signal when being higher than alarm threshold by the performance indicator in server For cloth into messaging bus, the application service for being tied to messaging bus executes load decompression after receiving alarm signal;It solves Linux server carries out reduced pressure treatment under the scene that CPU, memory rise suddenly and sharply by the way of extremely violence, causes badly to join The problem of locking effect;The availability of application service is improved, user experience is improved.
3rd embodiment
As shown in figure 5, the application 3rd embodiment provides a kind of server, the server includes memory 31, processing The application service load decompression program that device 32 and being stored in can be run on the memory 31 and on the processor 32, it is described When application service load decompression program is executed by the processor 32, decompression side is loaded for realizing application service as described below The step of method:
The performance indicator of server is obtained in real time, and judges whether the performance indicator of the server is higher than alarm threshold;
In the case where the performance indicator of the server is higher than the alarm threshold, alarm signal is generated and by the announcement Alert signal is published in messaging bus, so that the application service for being tied to the messaging bus is receiving the alarm signal Load decompression strategy is executed later.
When the application service load decompression program is executed by the processor 32, it is also used to realize application as described below The step of service load decompression method:
The alarm signal is simultaneously published in messaging bus by the generation alarm signal, so that being tied to the message The application service of bus executes load decompression strategy after receiving the alarm signal, later further include:
Reacquire the performance indicator of the server, and judge reacquire the server performance indicator whether Higher than the alarm threshold;
In the case where the performance indicator of server on the fact that reacquire is higher than the alarm threshold, judgement obtains again Whether the performance indicator of the server taken is higher than cleaning threshold;
In the case where the performance indicator of the server of reacquisition is higher than the cleaning threshold, according to preset clear Except sequence carries out the clear operation of application service until the performance indicator of the server is lower than the alarm threshold.
When the application service load decompression program is executed by the processor 32, it is also used to realize application as described below The step of service load decompression method:
The preset removing sequence includes:
It preferentially is removed without the application service for being tied to the messaging bus, secondly according to the removing priority of application service Carry out the removing of application service.
When the application service load decompression program is executed by the processor 32, it is also used to realize application as described below The step of service load decompression method:
The real-time performance indicator for obtaining server, and judge whether the performance indicator of the server is higher than alarm threshold Value, before further include:
Configure the removing priority of the alarm threshold, the cleaning threshold and the application service.
The server of the embodiment of the present application sends out alarm signal when being higher than alarm threshold by the performance indicator in server For cloth into messaging bus, the application service for being tied to messaging bus executes load decompression after receiving alarm signal;It solves Linux server carries out reduced pressure treatment under the scene that CPU, memory rise suddenly and sharply by the way of extremely violence, causes badly to join The problem of locking effect;The availability of application service is improved, user experience is improved.
Fourth embodiment
The application fourth embodiment provides a kind of computer readable storage medium, deposits on the computer readable storage medium Application service load decompression program is contained, the application service load decompression program is real for realizing first when being executed by processor The step of applying the load decompression method of application service described in example.
It should be noted that the computer readable storage medium of the present embodiment, belongs to same with the method for first embodiment Design, specific implementation process is shown in embodiment of the method in detail, and the technical characteristic in embodiment of the method is right in the present embodiment It should be applicable in, which is not described herein again.
The computer readable storage medium of the embodiment of the present application, when being higher than alarm threshold by the performance indicator in server Alarm signal is published in messaging bus, the application service for being tied to messaging bus executes after receiving alarm signal to be born Carry decompression;It solves Linux server and carries out reduced pressure treatment by the way of extremely violence under the scene that CPU, memory rise suddenly and sharply, The problem of causing severe interlocking effect;The availability of application service is improved, user experience is improved.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain objects Reason component or all physical assemblies may be implemented as by processor, such as central processing unit, digital signal processor or micro process The software that device executes, is perhaps implemented as hardware or is implemented as integrated circuit, such as specific integrated circuit.Such software Can be distributed on a computer-readable medium, computer-readable medium may include computer storage medium (or non-transitory be situated between Matter) and communication media (or fugitive medium).As known to a person of ordinary skill in the art, term computer storage medium includes In any method or skill for storing information (such as computer readable instructions, data structure, program module or other data) The volatile and non-volatile implemented in art, removable and nonremovable medium.Computer storage medium includes but is not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic Box, tape, disk storage or other magnetic memory apparatus or it can be used for storing desired information and can be visited by computer Any other medium asked.In addition, known to a person of ordinary skill in the art be, communication media generally comprises computer-readable Other numbers in the modulated data signal of instruction, data structure, program module or such as carrier wave or other transmission mechanisms etc According to, and may include any information delivery media.
Above by reference to Detailed description of the invention preferred embodiment of the present application, not thereby limit to the interest field of the application.This Field technical staff does not depart from made any modifications, equivalent replacements, and improvements in scope of the present application and essence, should all be at this Within the interest field of application.

Claims (10)

1. a kind of application service loads decompression method, which is characterized in that the application service loads decompression method and includes:
The performance indicator of server is obtained in real time, and judges whether the performance indicator of the server is higher than alarm threshold;
In the case where the performance indicator of the server is higher than the alarm threshold, generates alarm signal and believe the alarm It number is published in messaging bus, so that being tied to the application service of the messaging bus after receiving the alarm signal Execute load decompression strategy.
2. application service according to claim 1 loads decompression method, which is characterized in that the generation alarm signal simultaneously will The alarm signal is published in messaging bus, so that the application service for being tied to the messaging bus is receiving the announcement Load decompression strategy is executed after alert signal, later further include:
The performance indicator of the server is reacquired, and judges whether the performance indicator of the server reacquired is higher than The alarm threshold;
In the case where the performance indicator of server on the fact that reacquire is higher than the alarm threshold, reacquisition is judged Whether the performance indicator of the server is higher than cleaning threshold;
It is suitable according to preset removing in the case where the performance indicator of the server of reacquisition is higher than the cleaning threshold Sequence carries out the clear operation of application service until the performance indicator of the server is lower than the alarm threshold.
3. application service according to claim 2 loads decompression method, it is characterized in that, the preset removing sequence is wrapped It includes:
It preferentially is removed without the application service for being tied to the messaging bus, is secondly carried out according to the removing priority of application service The removing of application service.
4. application service according to claim 3 loads decompression method, it is characterized in that, the real-time property for obtaining server Energy index, and judge whether the performance indicator of the server is higher than alarm threshold, before further include:
Configure the removing priority of the alarm threshold, the cleaning threshold and the application service.
5. a kind of server, is characterized in that, the server includes listening components, message components and messaging bus;
The listening components, for obtaining the performance indicator of server in real time, and judge the server performance indicator whether Higher than alarm threshold;
The message components, for generating alarm in the case where the performance indicator of the server is higher than the alarm threshold The alarm signal is simultaneously published in the messaging bus by signal, so that the application service for being tied to the messaging bus exists Execution load decompression is tactful after receiving the alarm signal.
6. server according to claim 5, which is characterized in that the server further includes cleaning assembly;
The listening components, are also used to reacquire the performance indicator of the server, and judge the service reacquired Whether the performance indicator of device is higher than the alarm threshold;The performance indicator of server is higher than the announcement on the fact that reacquire In the case where alert threshold value, judge whether the performance indicator of the server reacquired is higher than cleaning threshold;
The case where cleaning assembly, the performance indicator for the server in reacquisition is higher than the cleaning threshold Under, the clear operation of application service is carried out until the performance indicator of the server is lower than the announcement according to preset removing sequence Alert threshold value.
7. server according to claim 6, is characterized in that, the preset removing sequence includes:
It preferentially is removed without the application service for being tied to the messaging bus, is secondly carried out according to the removing priority of application service The removing of application service.
8. application service according to claim 7 loads decompression method, which is characterized in that the server further includes configuration Component;
The configuration component, the removing for configuring the alarm threshold, the cleaning threshold and the application service are preferential Grade.
9. a kind of server, which is characterized in that the server includes memory, processor and is stored on the memory simultaneously The application service load decompression program that can be run on the processor, the application service load decompression program is by the processing Device realizes the step of application service load decompression method according to any one of claims 1 to 4 when executing.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium using clothes Business load decompression program, the application service load decompression program are realized when being executed by the processor as in Claims 1-4 The step of described in any item application service load decompression methods.
CN201910242567.2A 2019-03-28 2019-03-28 Application service loads decompression method, server and storage medium Pending CN109976977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910242567.2A CN109976977A (en) 2019-03-28 2019-03-28 Application service loads decompression method, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910242567.2A CN109976977A (en) 2019-03-28 2019-03-28 Application service loads decompression method, server and storage medium

Publications (1)

Publication Number Publication Date
CN109976977A true CN109976977A (en) 2019-07-05

Family

ID=67081176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910242567.2A Pending CN109976977A (en) 2019-03-28 2019-03-28 Application service loads decompression method, server and storage medium

Country Status (1)

Country Link
CN (1) CN109976977A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321263B1 (en) * 1998-05-11 2001-11-20 International Business Machines Corporation Client-based application availability
CN102457906A (en) * 2010-10-26 2012-05-16 中国移动通信集团河南有限公司 Load balancing control method and system of message queues
CN103023695A (en) * 2012-11-28 2013-04-03 绍兴电力局 Master station system monitoring model based on power dispatching automation
CN108563550A (en) * 2018-04-23 2018-09-21 上海达梦数据库有限公司 A kind of monitoring method of distributed system, device, server and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6321263B1 (en) * 1998-05-11 2001-11-20 International Business Machines Corporation Client-based application availability
CN102457906A (en) * 2010-10-26 2012-05-16 中国移动通信集团河南有限公司 Load balancing control method and system of message queues
CN103023695A (en) * 2012-11-28 2013-04-03 绍兴电力局 Master station system monitoring model based on power dispatching automation
CN108563550A (en) * 2018-04-23 2018-09-21 上海达梦数据库有限公司 A kind of monitoring method of distributed system, device, server and storage medium

Similar Documents

Publication Publication Date Title
CN107515796B (en) Equipment abnormity monitoring processing method and device
CN108123848B (en) Equipment monitoring method and device
CN106533805B (en) Micro-service request processing method, micro-service controller and micro-service architecture
CN103001809B (en) Service node method for monitoring state for cloud storage system
CN106713168B (en) Flow control method and system
CN108924202B (en) Distributed cluster data disaster tolerance method and related device
CN109391691A (en) The restoration methods and relevant apparatus that NAS is serviced under a kind of single node failure
CN105897933A (en) Service request processing method and device
CN109976977A (en) Application service loads decompression method, server and storage medium
CN111314241A (en) Task scheduling method and scheduling system
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN117459286A (en) SD-WAN-based data communication security early warning method and device
CN110224872B (en) Communication method, device and storage medium
CN114363313A (en) Device control method, server, and storage medium
CN115190052B (en) Management method, system and control unit for long connection
CN109284275B (en) Cloud platform virtual machine file system monitoring method and device
CN116795643A (en) Alarm management method
CN110597631A (en) Resource management method, monitoring server, proxy server, and storage medium
CN116149860A (en) Load balancing method, device and equipment
WO2017206620A1 (en) Method and apparatus for setting state of application program
WO2016206501A1 (en) Process recovery method and device in network management system, and computer readable storage medium
CN113472566A (en) Status monitoring method of union block chain and master node status monitoring system
CN109547439B (en) Processing method and device for service node access network
CN112261076B (en) Download service separation method, device, electronic equipment and readable storage medium
CN106921606B (en) Session detection method, device and system

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: 20190705

RJ01 Rejection of invention patent application after publication