CN107632899A - A kind of snapshot service method and device of application server - Google Patents
A kind of snapshot service method and device of application server Download PDFInfo
- Publication number
- CN107632899A CN107632899A CN201710671253.5A CN201710671253A CN107632899A CN 107632899 A CN107632899 A CN 107632899A CN 201710671253 A CN201710671253 A CN 201710671253A CN 107632899 A CN107632899 A CN 107632899A
- Authority
- CN
- China
- Prior art keywords
- snapshot
- rule
- application server
- snapshot rule
- module
- 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.)
- Granted
Links
Landscapes
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
Abstract
Include the invention discloses a kind of snapshot service method and device of application server, the step of this method:Obtain at least two snapshots rule;The execution time of snapshot rule is set in timer;Control timer performs snapshot rule successively according to the time is performed.Therefore, this method execution time regular by setting snapshot, realize successively according to the multiple snapshots rules of time execution are performed, information during application server failure is gathered more fully hereinafter.In addition, due to being able to carry out multiple snapshot rules, user can customize corresponding snapshot rule as needed and be used in application server snapshot service, so snapshot rule is not limited solely to the content that snapshot service gives tacit consent to offer, therefore the customizable degree of snapshot rule is higher.In addition, the snapshot service device of application server equally has the effect above.
Description
Technical field
The present invention relates to snapshot server field, more particularly to the snapshot service method and dress of a kind of application server
Put.
Background technology
With the continuous development of Internet technology, application server quantity in the cluster is more and more huger, and due to
Application server failure in cluster often short duration, it is difficult to be arrived in the very first time by operation maintenance personnel investigation, therefore is transported
Control and monitoring of the dimension personnel for the working condition of application server gradually reduce.Based on the above situation, operation maintenance personnel compels to be essential
Ask and will appreciate that application server in the failure condition monitoring of operation phase and collection, therefore the snapshot service of application server
Arise at the historic moment.Snapshot service when application server breaks down can quick response, and according to snapshot rule collection response therefore
Software and hardware running situation information in the case of barrier, solve application server failure for operation maintenance personnel and provide favourable help.
But in the prior art, the snapshot rule of snapshot service is fixed, and customizable deficiency, operation maintenance personnel is only
The snapshot rule that snapshot service acquiescence can be used to provide carries out rule settings;In addition, snapshot service only supports a snapshot rule
Execution, and be also strictly limited for the content quantity that application server is monitored in snapshot rule, cause failure
Information tends not to comprehensively be gathered.
As can be seen here, there is provided a kind of snapshot service method of application server with improve snapshot rule customizable journey
Degree, and the fault message of more comprehensive acquisition applications server, are those skilled in the art's urgent problems to be solved.
The content of the invention
It is an object of the invention to provide a kind of snapshot service method and device of application server, make application server failure
When information can be gathered more fully hereinafter, and improve snapshot rule customizable degree.
In order to solve the above technical problems, the present invention provides a kind of snapshot service method of application server, including:
Obtain at least two snapshots rule;
The execution time of snapshot rule is set in timer;
Control timer performs snapshot rule successively according to the time is performed.
Preferably, after at least two snapshot rules are obtained, this method further comprises:
The interface for entering edlin to snapshot rule is established in snapshot rule by way of note.
Preferably, this method further comprises:
Judge whether snapshot rule changes;
If it is, restarting snapshot rule.
Preferably, when snapshot rule changes, this method further comprises:
Judge whether snapshot rule is applied in application server cluster in other destination application servers;
If it is, by snapshot regular and synchronized into destination application server, and enter the step of restarting snapshot rule
Suddenly.
Preferably, snapshot rule specifically includes:
The Contents for Monitoring of defined and corresponding monitoring information is generated according to Contents for Monitoring.
Preferably, explain is specially that HK2 is explained.
Preferably, interface is specially REST interfaces.
In addition, the present invention also provides a kind of snapshot service device of application server, including:
Rule acquisition module, for obtaining at least two snapshots rule;
Setting module, for setting the execution time of snapshot rule in timer;
Execution module, for controlling timer to perform snapshot rule successively according to the time is performed.
Preferably, the device further comprises:
Interface creation module, it is used to enter edlin to snapshot rule for establishing in snapshot rule by way of note
Interface.
Preferably, the device further comprises:
Rule judgment module, for judging whether snapshot rule changes, restart module if it is, calling;
Module is restarted, for restarting snapshot rule.
The snapshot service method of application server provided by the present invention, it is real by setting the execution time of snapshot rule
Show regular according to the multiple snapshots of time execution are performed successively.This have the advantage that although in each snapshot rule
It is strictly limited for the content quantity that application server is monitored, but by performing multiple snapshot rules, Neng Gouda
To the purpose of the content quantity of increase application server monitoring, enable information during application server failure by more comprehensive
Ground gathers.Further, since being able to carry out multiple snapshot rules, user can customize corresponding snapshot rule as needed and use
In application server snapshot service, so snapshot rule is not limited solely to the content that snapshot service gives tacit consent to offer, therefore snapshot
The customizable degree of rule is higher.In addition, the present invention also provides a kind of snapshot service device of application server, beneficial effect
As described above.
Brief description of the drawings
In order to illustrate the embodiments of the present invention more clearly, the required accompanying drawing used in embodiment will be done simply below
Introduce, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ordinary skill people
For member, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the snapshot service method of application server provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the snapshot service method of another application server provided in an embodiment of the present invention;
Fig. 3 is a kind of snapshot service structure drawing of device of application server provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, for those of ordinary skill in the art under the premise of creative work is not made, what is obtained is every other
Embodiment, belong to the scope of the present invention.
The core of the present invention is to provide a kind of snapshot service method and device of application server, makes determining for snapshot rule
Inhibition and generation degree is higher, and when application server failure, the relevant information of failure can be gathered more fully hereinafter.
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
Embodiment one
Fig. 1 is a kind of flow chart of the snapshot service method of application server provided in an embodiment of the present invention.It refer to figure
1, the specific steps of the snapshot service method of application server include:
Step S10:Obtain at least two snapshots rule.
It is understood that due to the content quantity quilt in a kind of snapshot rule, being monitored for application server
Strict limitation, so the Application Server information of part can only be monitored in a kind of snapshot rule.Therefore, a variety of snapshots are obtained
Rule is advantageous in that, can more comprehensively monitor the information of application server, and user can be as needed in difference
Snapshot rule in set polytype Contents for Monitoring, customization is stronger.
Step S11:The execution time of snapshot rule is set in timer.
Due to the orderly progress between snapshot rule to be ensured, so carrying out the execution time to snapshot rule by timer
On constraint, whenever the executions time of snapshot rule the threshold value set by user has been reached, then snapshot rule stopping
Perform, and perform the next item down snapshot rule.It is understood that performing the time depending on the specific needs of user, but it is
All snapshots rules while the effect carried out can be reached as far as possible, the execution time should be relatively short.
Step S12:Control timer performs snapshot rule successively according to the time is performed.
In this step, by according to set in timer snapshot rule time control snapshot rule execution,
The purpose for the snapshot for realizing a variety of snapshot rules is reached.
The snapshot service method of application server provided by the present invention, it is real by setting the execution time of snapshot rule
Show regular according to the multiple snapshots of time execution are performed successively.This have the advantage that although in each snapshot rule
It is strictly limited for the content quantity that application server is monitored, but by performing multiple snapshot rules, Neng Gouda
To the purpose of the content quantity of increase application server monitoring, enable information during application server failure by more comprehensive
Ground gathers.Further, since being able to carry out multiple snapshot rules, user can customize corresponding snapshot rule as needed and use
In application server snapshot service, so snapshot rule is not limited solely to the content that snapshot service gives tacit consent to offer, therefore snapshot
The customizable degree of rule is higher.
Embodiment two
Fig. 2 is the flow chart of the snapshot service method of another application server provided in an embodiment of the present invention.Walked in Fig. 2
Rapid S10-S12 is identical with Fig. 1, will not be repeated here.
As shown in Fig. 2 on the basis of above-described embodiment, as a preferred embodiment, obtaining at least two
After snapshot rule, this method further comprises:
Step S20:The interface for entering edlin to snapshot rule is established in snapshot rule by way of note.
Due in the prior art, it is common to use DOM mode flow model modes read XML configuration file and snapshot rule is repaiied
Change or edit, but realized by way of configuration file and edlin and modification are entered to snapshot rule, substantial amounts of configuration text can be made
Part is present in application server, causes configuration file redundancy, and readable reduction.Therefore, fast by way of note
After being established in rule for entering the interface of edlin to snapshot rule, it can be realized by interface and the editor of snapshot rule is grasped
Make, this it is avoided that in order to edit snapshot rule and frequently write the operation of configuration file, also carried while file redundancy is reduced
The high efficiency of editor's snapshot rule.It is emphasized that due to having many kinds for the monitoring type of application server, therefore
The type and quantity of interface should specifically determine according to different types of snapshot rule.
On the basis of above-described embodiment, as a preferred embodiment, it is specially that HK2 is explained to explain.
Because HK2 is that powerful lightweight explains framework, thus for application server entirety resource occupancy compared with
It is few, therefore application server performance impact is small.
On the basis of above-described embodiment, as a preferred embodiment, interface is specially REST interfaces.
REST interfaces are the interface types for meeting REST standards, and overall style is concise, and the readability of code is higher,
Facilitate the sequence of operations such as the optimization of later stage docking port.
In order to which above-mentioned embodiment is more clearly understood, carried out below for a certain operating procedure for establishing interface
Illustrate, but be not intended as specifically limiting:
Configured, after explaining successfully, DOM parser are explained to each tag interface class in data model
XML configuration file is parsed according to the attribute and element scheduled in tag interface class, reads snapshot rule, and explain by HK2
Afterwards, tag interface is issued as REST interfaces.
As shown in Fig. 2 on the basis of above-described embodiment, as a preferred embodiment, this method is further wrapped
Include:
Step S21:Judge whether snapshot rule changes, if it is, performing step S22.
Step S22:Restart snapshot rule.
It is understood that after snapshot rule changes, it should re-execute snapshot rule, this can ensure to update
Snapshot rule can be used at once in snapshot service, and then avoid when application server failure, snapshot is gathered
Information be unsatisfactory for user's request situation occur.It should be noted that do not limited for the specific execution sequence of this step,
This step can carry out carrying out simultaneously with above-mentioned arbitrary steps after above-mentioned arbitrary steps.
As shown in Fig. 2 on the basis of above-described embodiment, as a preferred embodiment, when snapshot rule occurs
During change, this method further comprises:
Step S23:Judge whether snapshot rule is applied in application server cluster in other destination application servers,
If it is, perform step S24.
Step S24:By snapshot regular and synchronized into destination application server, and enter step S22.
Due to application server often be in application server cluster environment in, and some snapshot rules be in cluster one
What a little application servers were used in conjunction with, therefore when snapshot rule changes in an application server, other application clothes
Snapshot rule in business device will also carry out identical change.So in middle present embodiment, when some snapshot in application server
Rule changes, and in other destination application servers of cluster also using the snapshot rule when, will be fast after change
According to regular and synchronized into destination application server.It can be seen that using the above method, the numerous of user's configuration snapshot rule one by one is avoided
Trivial operation, improves whole efficiency.
In addition, as a preferred embodiment, snapshot rule specifically includes:
The Contents for Monitoring of defined and corresponding monitoring information is generated according to Contents for Monitoring.
Wherein, the Contents for Monitoring of the defined item such as including CPU, GC, HTTP, JDBC, MEMORY;In addition, monitoring information bag
Include a series of letters for contributing to customer analysis failure situation such as GC daily records, MEMORY summaries, MEMORY details, JSTACK
Breath.It should be noted that the data-interface that the content monitored can often be provided by reading application server obtains, but
Rational reading frequency should be kept, reading frequency is too high may to influence application server overall performance.
Embodiment three
Hereinbefore it is described in detail for the embodiment of the snapshot service method of application server, the present invention is also
A kind of snapshot service device of application server corresponding with this method is provided, due to embodiment and the method part of device part
Embodiment it is mutually corresponding, therefore the embodiment of device part refers to the description of the embodiment of method part, wouldn't go to live in the household of one's in-laws on getting married here
State.
Fig. 3 is a kind of snapshot service structure drawing of device of application server provided in an embodiment of the present invention.The present invention is implemented
The snapshot service device for the application server that example provides, is specifically included:
Rule acquisition module 10, for obtaining at least two snapshots rule.
Setting module 11, for setting the execution time of snapshot rule in timer.
Execution module 12, for controlling timer to perform snapshot rule successively according to the time is performed.
The snapshot service device of application server provided by the present invention, it is real by setting the execution time of snapshot rule
Show regular according to the multiple snapshots of time execution are performed successively.This have the advantage that although in each snapshot rule
It is strictly limited for the content quantity that application server is monitored, but by performing multiple snapshot rules, Neng Gouda
To the purpose of the content quantity of increase application server monitoring, enable information during application server failure by more comprehensive
Ground gathers.Further, since being able to carry out multiple snapshot rules, user can customize corresponding snapshot rule as needed and use
In application server snapshot service, so snapshot rule is not limited solely to the content that snapshot service gives tacit consent to offer, therefore snapshot
The customizable degree of rule is higher.
On the basis of embodiment three, the device also includes:
Interface creation module, it is used to enter edlin to snapshot rule for establishing in snapshot rule by way of note
Interface.
On the basis of embodiment three, the device also includes:
Rule judgment module, for judging whether snapshot rule changes, restart module if it is, calling;
Module is restarted, for restarting snapshot rule.
A kind of snapshot service method and device of application server provided by the present invention is described in detail above.
Each embodiment is described by the way of progressive in specification, what each embodiment stressed be with other embodiment not
Same part, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment, due to it
Correspond to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration.Should
Point out, for those skilled in the art, under the premise without departing from the principles of the invention, can also be to this hair
Bright to carry out some improvement and modification, these are improved and modification is also fallen into the protection domain of the claims in the present invention.
It should also be noted that, in this manual, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including the key element, method, article or equipment being also present.
Claims (10)
1. a kind of snapshot service method of application server, it is characterised in that including:
Obtain at least two snapshots rule;
The execution time of the snapshot rule is set in timer;
The timer is controlled to perform the snapshot rule successively according to the execution time.
2. according to the method for claim 1, it is characterised in that after at least two snapshot rules of the acquisition, this method
Further comprise:
The interface for entering edlin to the snapshot rule is established in the snapshot rule by way of note.
3. method according to claim 1 or 2, it is characterised in that this method further comprises:
Judge whether the snapshot rule changes;
If it is, restart the snapshot rule.
4. according to the method for claim 3, it is characterised in that when the snapshot rule changes, this method enters one
Step includes:
Judge whether the snapshot rule is applied in application server cluster in other destination application servers;
If it is, by the snapshot regular and synchronized into the destination application server, and enter described in the restarting
The step of snapshot rule.
5. according to the method for claim 1, it is characterised in that the snapshot rule specifically includes:
The Contents for Monitoring of defined and corresponding monitoring information is generated according to the Contents for Monitoring.
6. according to the method for claim 2, it is characterised in that described explain is specially that HK2 is explained.
7. according to the method for claim 2, it is characterised in that the interface is specially REST interfaces.
A kind of 8. snapshot service device of application server, it is characterised in that including:
Rule acquisition module, for obtaining at least two snapshots rule;
Setting module, for setting the execution time of the snapshot rule in timer;
Execution module, for controlling the timer to perform the snapshot rule successively according to the execution time.
9. device according to claim 8, it is characterised in that the device further comprises:
Interface creation module, it is used to carry out snapshot rule for establishing in the snapshot rule by way of note
The interface of editor.
10. device according to claim 8 or claim 9, it is characterised in that the device further comprises:
Rule judgment module, for judging whether the snapshot rule changes, restart module if it is, calling;
It is described to restart module, for restarting the snapshot rule.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710671253.5A CN107632899B (en) | 2017-08-08 | 2017-08-08 | Snapshot service method and device of application server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710671253.5A CN107632899B (en) | 2017-08-08 | 2017-08-08 | Snapshot service method and device of application server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107632899A true CN107632899A (en) | 2018-01-26 |
CN107632899B CN107632899B (en) | 2020-12-04 |
Family
ID=61099499
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710671253.5A Active CN107632899B (en) | 2017-08-08 | 2017-08-08 | Snapshot service method and device of application server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107632899B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656876A (en) * | 2018-12-07 | 2019-04-19 | 杭州宏杉科技股份有限公司 | Storing method, device, electronic equipment and the machine readable storage medium of snapshot |
US11741076B2 (en) | 2021-03-22 | 2023-08-29 | Kyndryl, Inc. | Adaptive snapshot controller |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120072968A1 (en) * | 2007-02-16 | 2012-03-22 | Wysopal Christopher J | Assessment and analysis of software security flaws in virtual machines |
CN104410671A (en) * | 2014-11-03 | 2015-03-11 | 深圳市蓝凌软件股份有限公司 | Snapshot capturing method and data monitoring tool |
CN104781783A (en) * | 2012-08-28 | 2015-07-15 | 云思易有限责任公司 | Integrated computing platform deployed in an existing computing environment |
CN104823162A (en) * | 2012-11-29 | 2015-08-05 | 国际商业机器公司 | High availability for cloud servers |
CN106681861A (en) * | 2016-12-08 | 2017-05-17 | 杭州销冠网络科技有限公司 | New environment isolation configuration data management method and system |
-
2017
- 2017-08-08 CN CN201710671253.5A patent/CN107632899B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120072968A1 (en) * | 2007-02-16 | 2012-03-22 | Wysopal Christopher J | Assessment and analysis of software security flaws in virtual machines |
CN104781783A (en) * | 2012-08-28 | 2015-07-15 | 云思易有限责任公司 | Integrated computing platform deployed in an existing computing environment |
CN104823162A (en) * | 2012-11-29 | 2015-08-05 | 国际商业机器公司 | High availability for cloud servers |
CN104410671A (en) * | 2014-11-03 | 2015-03-11 | 深圳市蓝凌软件股份有限公司 | Snapshot capturing method and data monitoring tool |
CN106681861A (en) * | 2016-12-08 | 2017-05-17 | 杭州销冠网络科技有限公司 | New environment isolation configuration data management method and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656876A (en) * | 2018-12-07 | 2019-04-19 | 杭州宏杉科技股份有限公司 | Storing method, device, electronic equipment and the machine readable storage medium of snapshot |
US11741076B2 (en) | 2021-03-22 | 2023-08-29 | Kyndryl, Inc. | Adaptive snapshot controller |
Also Published As
Publication number | Publication date |
---|---|
CN107632899B (en) | 2020-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107451040B (en) | Method and device for positioning fault reason and computer readable storage medium | |
EP2026212B1 (en) | Automatic test generation for reference testing | |
EP3049968B1 (en) | Master schema shared across multiple tenants with dynamic update | |
CN102902558B (en) | Project script file upgrades system and method, script file merges method and apparatus | |
US20130179461A1 (en) | Proactive Monitoring of Database Servers | |
CN105915657B (en) | Data synchronization method and device and client | |
CN107273369B (en) | Table data modification method and device | |
CN102833120B (en) | The abnormal method and system of NM server are processed in a kind of rapid automatized test | |
US20120331004A1 (en) | Asset managing apparatus and asset managing method | |
US20220318319A1 (en) | Focus Events | |
CN105872110A (en) | Cloud platform service management method and cloud platform service management device | |
CN107632899A (en) | A kind of snapshot service method and device of application server | |
JP2002324155A (en) | Workflow system and program | |
CN103197927B (en) | A kind of method that realizes of Workflow and system thereof | |
US8090994B2 (en) | System, method, and computer readable media for identifying a log file record in a log file | |
CN105022663B (en) | Power system monitoring and control system | |
US9977726B2 (en) | System and method for smart framework for network backup software debugging | |
CN103034679A (en) | Monitoring system for java operational database | |
US20160050158A1 (en) | Workflow-Based Resource Management | |
US20180219752A1 (en) | Graph search in structured query language style query | |
CN105760283B (en) | A kind of log-output method and device | |
US11416801B2 (en) | Analyzing value-related data to identify an error in the value-related data and/or a source of the error | |
JP5979185B2 (en) | Operation management apparatus, operation management system, information processing method, and operation management program | |
Zhenlong et al. | The application and development of software testing in cloud computing environment | |
JP2020173570A (en) | Analysis apparatus, analysis method, and program |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |