CN106411583A - Application server repairing device and method - Google Patents

Application server repairing device and method Download PDF

Info

Publication number
CN106411583A
CN106411583A CN201610836275.8A CN201610836275A CN106411583A CN 106411583 A CN106411583 A CN 106411583A CN 201610836275 A CN201610836275 A CN 201610836275A CN 106411583 A CN106411583 A CN 106411583A
Authority
CN
China
Prior art keywords
application server
status values
module
internal memory
condition
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
CN201610836275.8A
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 CN201610836275.8A priority Critical patent/CN106411583A/en
Publication of CN106411583A publication Critical patent/CN106411583A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions

Abstract

The invention discloses an application server repairing device and method. The device comprises a state numerical value acquisition module, a first judgement module and a repairing module, wherein the state numerical value acquisition module is used for acquiring a state numerical value of an application server; the first judgement module is used for judging whether the state numerical value conforms to a preset first condition or not; and the repairing module is used for repairing the application server when a judgment result is positive. According to the technical scheme, based on state detection of the application server, automatic repairing is performed when the application server is about to enter a down state, and the server returns to a healthy running state once again, so that the application server can continue normal work.

Description

Application server prosthetic device and method
Technical field
The present invention relates to field of computer technology, more particularly, to a kind of application server prosthetic device and method.
Background technology
Increasing with enterprise operation system, is also constantly increasing for disposing each systematic difference server.Faced by The situation of substantial amounts of server, not only increased server O&M difficulty to operation maintenance personnel, simultaneously to developer's Check System Also virtually with the addition of many obstacles during problem.
Traditional application server early warning scheme, only after some hardware resources reach the threshold value of certain setting, Corresponding personnel are given a warning, but this can not exclude the possibility of application server just collapse before Resolving probiems.
Accordingly, it would be desirable to a kind of new technical scheme, when the state of application server is on the verge of to delay machine, automatically repaired, Server is allowed to come back to the running status of health.
Content of the invention
Present invention is primarily targeted at proposing a kind of application server prosthetic device and method it is intended to solve in application clothes When dropping in the state of business device, application server is repaired.
For achieving the above object, a kind of application server prosthetic device that the present invention provides, including:Status values obtain mould Block, for obtaining the status values of application server;First judge module, default for judging whether described status values meet First condition;Repair module, for when judged result is to be, executing the reparation to described application server.
Alternatively, aforesaid device, described repair module sends reset command to described application server, restarts institute State application server.
Alternatively, aforesaid device, also includes:Forwarding module, before completing in the startup of described application server, will Request to described application server is forwarded to other application server.
Alternatively, aforesaid device, also includes:Second judge module, pre- for judging whether described status values meet If second condition;Warning module, for when judged result is to be, generating early warning information according to described status values concurrent Go out.
Alternatively, aforesaid device, described status values acquisition module is pressed default time interval and is gathered described status number It is worth and be saved in internal memory;Described first judge module obtains the described status values preserving in described internal memory and is judged.
Alternatively, aforesaid device, also includes:Remove module, for the guarantor in described internal memory when described status values When the time of depositing exceedes preset time value, remove described status values from described internal memory.
According to another aspect of the present invention, additionally provide a kind of application server restorative procedure, including:Obtain application service The status values of device;Judge whether described status values meet default first condition;When judged result is to be, execution is to institute State the reparation of application server.
Alternatively, aforesaid method, the reparation to described application server for the execution, including:Send out to described application server Go out reset command, restart described application server.
Alternatively, aforesaid method, also includes:Before the startup of described application server completes, described application will be taken The request of business device is forwarded to other application server.
Alternatively, aforesaid method, also includes:Judge whether described status values meet default second condition;Sentencing When disconnected result is to be, generates early warning information according to described status values and send.
Alternatively, aforesaid method, obtains the status values of application server, specifically includes:By default time interval Gather described status values and be saved in internal memory;Judge whether described status values meet default first condition, concrete bag Include:Obtain the described status values preserving in described internal memory and judged.
Alternatively, aforesaid method, also includes:When the holding time in described internal memory for the described status values exceed default During time value, remove described status values from described internal memory.
According to above technical scheme it is known that the application server prosthetic device of the present invention and method at least have following excellent Point:
In the inventive solutions, the state-detection based on application server can be on the point of in the state of application server Face when delaying machine, automatically repaired, allow server come back to the running status of health, so that application server can continue Continue and normally worked.
Brief description
Fig. 1 is the block diagram of application server prosthetic device according to an embodiment of the invention;
Fig. 2 is the block diagram of application server prosthetic device according to an embodiment of the invention;
Fig. 3 is the flow chart of application server restorative procedure according to an embodiment of the invention;
Fig. 4 is the flow chart of application server restorative procedure according to an embodiment of the invention.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Realize the mobile terminal of each embodiment of the present invention referring now to Description of Drawings.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for being conducive to the explanation of the present invention, itself Not specific meaning.Therefore, " module " and " part " can mixedly use.
As shown in figure 1, first embodiment of the invention proposes a kind of application server prosthetic device, including:
Status values acquisition module 110, for obtaining the status values of application server.In the present embodiment, to service The status values type of device is not limited, for example, it may be CPU usage, memory usage etc..
First judge module 120, for judging whether status values meet default first condition.In the present embodiment, First condition is not limited, for example, first condition can be when the average one gathering the CPU usage returned in 30 seconds Directly be in more than 95% or average in 30 seconds for the memory usage be constantly in more than 95%.
Repair module 130, for when judged result is to be, executing the reparation of application server.In the present embodiment, The mode repaired is not limited, for example, it may be releasing memory etc..
In the technical scheme of the present embodiment, it is analyzed based on the state value that collection is returned, if application server Certain important indicator reached during danger zone or the external hydraulic performance decline providing service is to a very low level, such as, When collection return CPU usage the average in 30 seconds be constantly in more than 95% or memory usage equal in 30 seconds Value is constantly in more than 95%, then we are just it can be seen that server performance this moment is at a fairly low it is impossible to normally external There is provided service, application server will enter automatic reparation flow process.
Traditional warning module can not exclude the possibility of application server just collapse before Resolving probiems, so can lead Cause operation system before application server is artificially restarted, be constantly in the state of refusal service.The technology of the present embodiment In scheme, can automatically be repaired, allow server come back to the operation of health when the state of application server is on the verge of to delay machine State.
As shown in Fig. 2 first embodiment of the invention proposes a kind of application server prosthetic device, including:
Status values acquisition module 210, by default time interval acquisition state numerical value and be saved in internal memory.In this reality Apply in example, backstage acquiescence runs a number of process, application server shape collection returned by certain time interval State numerical value (CPU usage, memory usage etc.) is analyzed.In the present embodiment, the status values in collection a period of time, The inaccurate impact that the excessive or too small status values occurring once in a while cause can be avoided.
Remove module 220, for when the holding time in internal memory exceedes preset time value when status values, from internal memory Remove status values.In the present embodiment, this Preset Time is not limited, for example, the CPU that collection can be returned by program makes It is cached in internal memory with rate, memory usage, these indexs of thread number of concurrent, in internal memory, only can cache the performance in up-to-date 30 seconds Index, expired achievement data can lose efficacy automatically from internal memory.In the present embodiment, can avoid storing substantial amounts of number in internal memory According to.
Second judge module 230, obtains the status values preserving in internal memory and carries out judging whether status values meet pre- If second condition.In the present embodiment, second condition is not limited, for example, every 30 seconds, program can take from internal memory Go out CPU usage, memory usage, these indexs of thread number of concurrent, index is carried out calculating of averaging, has just obtained 30 CPU average service rate, internal memory average service rate, the average of thread these indexs of average number of concurrent in second, if obtain is average The value threshold values (second condition) pre-configured more than program, such as CPU average service rate is more than 80%, or internal memory averagely makes It is more than 80% with rate, or the average number of concurrent of thread is more than 1500, then just will trigger early warning operation.
Warning module 240, for when judged result is to be, generating early warning information according to status values and sending.At this In embodiment, can be according to pre-configured threshold value, through the analysis of a set of algorithm, if reaching trigger condition, then long Early warning can be carried out.The mode of early warning has and notifies corresponding operation maintenance personnel and project leader with mail, note both modes. The problem log of triggering early warning can be got off, so that follow-up investigate simultaneously.The triggering to early warning for traditional warning module, only right The good threshold value of default configuration carries out single judgement.In the technical scheme of the present embodiment, one can be carried out according to the threshold value having configured Fixed Algorithm Analysis, after reaching trigger condition, just can trigger early warning.
First judge module 250, obtains the status values preserving in internal memory and carries out judging whether status values meet pre- If first condition.
Repair module 260, for when judged result is to be, sending reset command to application server, restarting should Use server.In the present embodiment, the main flow automatically repaired is that program passes through the interface of command calls application server, Current for application server running status is derived, is saved in the form of the journal file under the root of current server Face;Then by order, application server is restarted;After this application server restarts success, then It just normally can externally provide service.While application server order is restarted in routine call, also can be specifically automatic Reparation is recorded, and follow-up operation maintenance personnel can be analyzed being that what reason leads to service according to the journal file preserving Device hydraulic performance decline, thus being optimized accordingly, to improve the stability of server.
Forwarding module 270, before completing in application server startup, the request of application server is forwarded to it His application server.In the present embodiment, before application server restarts, this application server is off externally providing Service;If at this moment client initiates request to application server, also have load balancing clothes on application server Business device, it is to be processed on the other application server that the request that can initiate client is forwarded directly in system cluster. By the technical scheme of the present embodiment it is ensured that in the restarting process of application server, still being able to normal response client Request.
As shown in figure 3, first embodiment of the invention proposes a kind of application server restorative procedure, including:
Step S310, obtains the status values of application server.In the present embodiment, the status values type to server It is not limited, for example, it may be CPU usage, memory usage etc..
Step S320, judges whether status values meet default first condition.In the present embodiment, to first condition not Limited, for example, first condition can be when the average in 30 seconds for the CPU usage that collection is returned be constantly in 95% with Averages upper or that memory usage is in 30 seconds are constantly in more than 95%.
Step S330, when judged result is to be, the reparation of execution application server.In the present embodiment, to reparation Mode be not limited, for example, it may be releasing memory etc..
In the technical scheme of the present embodiment, it is analyzed based on the state value that collection is returned, if application server Certain important indicator reached during danger zone or the external hydraulic performance decline providing service is to a very low level, such as, When collection return CPU usage the average in 30 seconds be constantly in more than 95% or memory usage equal in 30 seconds Value is constantly in more than 95%, then we are just it can be seen that server performance this moment is at a fairly low it is impossible to normally external There is provided service, application server will enter automatic reparation flow process.
Traditional warning module can not exclude the possibility of application server just collapse before Resolving probiems, so can lead Cause operation system before application server is artificially restarted, be constantly in the state of refusal service.The technology of the present embodiment In scheme, can automatically be repaired, allow server come back to the operation of health when the state of application server is on the verge of to delay machine State.
As shown in figure 4, first embodiment of the invention proposes a kind of application server prosthetic device, including:
Step S410, by default time interval acquisition state numerical value and be saved in internal memory.In the present embodiment, backstage Acquiescence runs a number of process, and (CPU makes application server status values collection returned by certain time interval With rate, memory usage etc.) it is analyzed.In the present embodiment, the status values in collection a period of time, can avoid once in a while The inaccurate impact that the excessive or too small status values occurring cause.
Step S420, when the holding time in internal memory for the status values exceeding preset time value, removes shape from internal memory State numerical value.In the present embodiment, this Preset Time is not limited, for example, program can by collection return CPU usage, Memory usage, these indexs of thread number of concurrent are cached in internal memory, only can cache the performance indications in up-to-date 30 seconds in internal memory, Expired achievement data can lose efficacy automatically from internal memory.In the present embodiment, can avoid storing substantial amounts of data in internal memory.
Step S430, obtains the status values preserving in internal memory and carries out judging whether status values meet default second Condition.In the present embodiment, second condition is not limited, for example, every 30 seconds, program can be taken out CPU from internal memory and be made With rate, memory usage, these indexs of thread number of concurrent, index is carried out calculating of averaging, has just obtained CPU in 30 seconds Average service rate, internal memory average service rate, the average of thread these indexs of average number of concurrent, if the mean value obtaining is more than journey The pre-configured threshold values of sequence (second condition), such as CPU average service rate are more than 80%, or internal memory average service rate is more than 80%, or the average number of concurrent of thread is more than 1500, then just will trigger early warning operation.
Step S440, when judged result is to be, generates early warning information according to status values and sends.In the present embodiment In, can be according to pre-configured threshold value, through the analysis of a set of algorithm, if reaching trigger condition, then can carry out long Early warning.The mode of early warning has and notifies corresponding operation maintenance personnel and project leader with mail, note both modes.Can simultaneously The problem log of triggering early warning is got off, so that follow-up investigate.The triggering to early warning for traditional warning module, only joins to acquiescence The threshold value put carries out single judgement.In the technical scheme of the present embodiment, certain calculation can be carried out according to the threshold value having configured Method is analyzed, and after reaching trigger condition, just can trigger early warning.
Step S450, obtains the status values preserving in internal memory and carries out judging whether status values meet default first Condition.
Step S460, when judged result is to be, sends reset command to application server, restarts application service Device.In the present embodiment, the main flow automatically repaired is that program passes through the interface of command calls application server, will apply The current running status of server derives, and is saved in the form of the journal file below the root of current server;Then By order, application server is restarted;After this application server restarts success, then it is with regard to energy Enough normally externally offer services.While application server order is restarted in routine call, also specifically can automatically be repaired note Record is got off, and follow-up operation maintenance personnel can be analyzed being that what reason leads to server performance according to the journal file preserving Decline, thus being optimized accordingly, to improve the stability of server.
Step S470, before application server startup completes, the request of application server is forwarded to other application Server.In the present embodiment, before application server restarts, this application server is off externally providing service 's;If at this moment client initiates request to application server, on application server, also have a load-balanced server, It is to be processed on the other application server that the request that can initiate client is forwarded directly in system cluster.By this The technical scheme of embodiment is it is ensured that in the restarting process of application server, still be able to the request of normal response client.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row The comprising of his property, so that including a series of process of key elements, method, article or device not only include those key elements, and And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or device institute Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including being somebody's turn to do Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by the mode of software plus necessary general hardware platform naturally it is also possible to pass through hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Go out partly can embodying in the form of software product of contribution, this computer software product is stored in a storage medium In (as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) method described in execution each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of application server prosthetic device is it is characterised in that include:
Status values acquisition module, for obtaining the status values of application server;
First judge module, for judging whether described status values meet default first condition;
Repair module, for when judged result is to be, executing the reparation to described application server.
2. device according to claim 1 it is characterised in that
Described repair module sends reset command to described application server, restarts described application server.
3. device according to claim 2 is it is characterised in that also include:
Forwarding module, for, before described application server starts and completes, being forwarded to the request of described application server Other application server.
4. device according to claim 1 is it is characterised in that also include:
Second judge module, for judging whether described status values meet default second condition;
Warning module, for when judged result is to be, generating early warning information according to described status values and sending.
5. device according to claim 1 it is characterised in that
Described status values acquisition module gathers described status values by default time interval and is saved in internal memory;
Described first judge module obtains the described status values preserving in described internal memory and is judged.
6. device according to claim 5 is it is characterised in that also include:
Remove module, for when the holding time in described internal memory exceedes preset time value when described status values, from described Described status values are removed in internal memory.
7. a kind of application server restorative procedure is it is characterised in that include:
Obtain the status values of application server;
Judge whether described status values meet default first condition;
When judged result is to be, the reparation to described application server for the execution.
8. method according to claim 7 is it is characterised in that the reparation to described application server for the execution, including:
Send reset command to described application server, restart described application server.
9. method according to claim 8 is it is characterised in that also include:
Before described application server starts and completes, other application service will be forwarded to the request of described application server Device.
10. method according to claim 7 is it is characterised in that also include:
Judge whether described status values meet default second condition;
When judged result is to be, generates early warning information according to described status values and send.
CN201610836275.8A 2016-09-21 2016-09-21 Application server repairing device and method Pending CN106411583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610836275.8A CN106411583A (en) 2016-09-21 2016-09-21 Application server repairing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610836275.8A CN106411583A (en) 2016-09-21 2016-09-21 Application server repairing device and method

Publications (1)

Publication Number Publication Date
CN106411583A true CN106411583A (en) 2017-02-15

Family

ID=57998059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610836275.8A Pending CN106411583A (en) 2016-09-21 2016-09-21 Application server repairing device and method

Country Status (1)

Country Link
CN (1) CN106411583A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088941A (en) * 2018-09-03 2018-12-25 中新网络信息安全股份有限公司 A method of based on intelligent scheduling cloud resource under ddos attack
CN109522193A (en) * 2018-10-22 2019-03-26 网宿科技股份有限公司 A kind of processing method of operation/maintenance data, system and device
WO2022161100A1 (en) * 2021-01-29 2022-08-04 苏州浪潮智能科技有限公司 Edge computing server resetting method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508734A (en) * 2011-09-30 2012-06-20 Tcl集团股份有限公司 Operating system recovery method and intelligent equipment
CN103701651A (en) * 2013-12-31 2014-04-02 山东中创软件工程股份有限公司 Disaster recovery device and method for application service under domestic environment
CN105791033A (en) * 2016-05-09 2016-07-20 浪潮电子信息产业股份有限公司 Method, device and system for regulating operating state of server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508734A (en) * 2011-09-30 2012-06-20 Tcl集团股份有限公司 Operating system recovery method and intelligent equipment
CN103701651A (en) * 2013-12-31 2014-04-02 山东中创软件工程股份有限公司 Disaster recovery device and method for application service under domestic environment
CN105791033A (en) * 2016-05-09 2016-07-20 浪潮电子信息产业股份有限公司 Method, device and system for regulating operating state of server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088941A (en) * 2018-09-03 2018-12-25 中新网络信息安全股份有限公司 A method of based on intelligent scheduling cloud resource under ddos attack
CN109522193A (en) * 2018-10-22 2019-03-26 网宿科技股份有限公司 A kind of processing method of operation/maintenance data, system and device
WO2022161100A1 (en) * 2021-01-29 2022-08-04 苏州浪潮智能科技有限公司 Edge computing server resetting method and device

Similar Documents

Publication Publication Date Title
CN102929773B (en) information collecting method and device
CN109586952B (en) Server capacity expansion method and device
CN110442498B (en) Abnormal data node positioning method and device, storage medium and computer equipment
CN109800131B (en) Monitoring processing method and device of Linux server, computer equipment and storage medium
CN110430071A (en) Service node fault self-recovery method, apparatus, computer equipment and storage medium
CN108495329B (en) Method and device for evaluating reliability of base station
CN106411583A (en) Application server repairing device and method
CN107729205B (en) Fault processing method and device for business system
CN102902615B (en) A kind of Lustre parallel file system false alarm method and system thereof
CN104899130A (en) Application program management method and system
CN107104820B (en) Dynamic capacity-expansion daily operation and maintenance method based on F5 server node
CN101820635A (en) Method and device for acquiring mobile communication data
CN110809060A (en) Monitoring system and monitoring method for application server cluster
CN110674149B (en) Service data processing method and device, computer equipment and storage medium
CN109617750A (en) A kind of service method for early warning and gateway
CN109450691A (en) Gateway monitoring method, equipment and computer readable storage medium
EP2930995A1 (en) Terminal peripheral management method and m2m gateway
CN109558209B (en) Monitoring method for virtual machine
CN106488416B (en) Industry short message sending method and device
CN110784358A (en) Method and device for constructing network call relation topological graph
CN108271189A (en) A kind of quality of service monitoring method and device
CN113765690A (en) Cluster switching method, system, device, terminal, server and storage medium
CN113204692A (en) Method and device for monitoring execution progress of data processing task
CN107371141B (en) Junk information monitoring method and device and communication system
KR20130109195A (en) System and method for processing similar emails

Legal Events

Date Code Title Description
C06 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: 20170215

RJ01 Rejection of invention patent application after publication