Summary of the invention
The invention provides a kind of management method and device of application system, to realize the intellectuality of application system management work, improve maintenance efficiency and the maintainability of application system, reduce the impact on application system execution efficiency.
First aspect, the embodiment of the present invention provides a kind of method of managing application system, and the method comprises:
Obtain the management parameters information of application system, wherein said management parameters information comprises identification information, application system ID of trace route path information, bookkeeping mark and the management trigger condition of described application system place equipment;
Described in Real-Time Monitoring, whether application system meets described management trigger condition;
In the time monitoring described application system and meet described management trigger condition, according to the identification information of described application system place equipment and described application system ID of trace route path information, the described application system on described equipment is carried out and identified corresponding bookkeeping with described bookkeeping.
Second aspect, the embodiment of the present invention also provides a kind of management devices of application system, and this device comprises:
Parameter acquiring unit, for obtaining the management parameters information of application system, wherein said management parameters information comprises identification information, application system ID of trace route path information, bookkeeping mark and the management trigger condition of described application system place equipment;
Trigger monitoring means, whether meet described management trigger condition for application system described in Real-Time Monitoring;
Operation execution unit, while meeting described management trigger condition for monitoring described application system when described triggering monitoring means, according to the identification information of described application system place equipment and described application system ID of trace route path information, the described application system on described equipment is carried out and identified corresponding bookkeeping with described bookkeeping.
The embodiment of the present invention is different from the labor management application system mode that prior art adopts, realize the intelligent management operation to application system, greatly reduce labor workload, improve maintenance efficiency, and solve because people's energy is limited, the restricted problem of the brought maintainability of easily makeing mistakes, can shorten the bookkeeping time, reduced the impact on application system execution efficiency simultaneously.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, in accompanying drawing, only show part related to the present invention but not entire infrastructure.
Fig. 1 is the schematic flow sheet of the management method of a kind of application system of providing of the embodiment of the present invention one, the present embodiment is applicable to the network architecture of distributed or trunking computer equipment composition that can application deployment system, to realize the situation to application system manages on each computer equipment, the method can be carried out by the management devices configuring in the arbitrary computing machine in distributed or trunking computer equipment, also can be carried out by the management devices of the application system that is independent of distributed or trunking computer equipment and exist.Now, taking the management devices of application system as executive agent, the management method of described application system is described in detail, specifically comprises the steps:
Step 110, obtain the management parameters information of application system.
In embodiments of the present invention, application system can be various Web application systems, can be also the service that database application system or other can be realized certain business.The management parameters information of application system comprises identification information, application system ID of trace route path information, bookkeeping mark and the management trigger condition of application system place equipment.
Wherein, the identification information of application system place equipment and application system ID of trace route path information are used for the application system on each computer equipment that the management devices of position application system manages, and then the management devices that makes application system can set up and the communication connection of managed computer equipment, and can on computer equipment, find corresponding application system.Further, the identification information of application system place equipment can be the identity information that IP address, MAC Address, host name or the user name password etc. of application system place computer equipment can unique identification computer equipment; Application system ID of trace route path information is the deposit position information that represents application system on computer equipment.
Bookkeeping mark includes but not limited to: start-up operation mark, shut-down operation mark, deployment operation mark etc.Wherein, deployment operation can be specially the operations such as installation, upgrading, patch installing.For management trigger condition, can arrange according to the time, for example, can using every night, reach eleven time as the trigger condition of updating operation; Also can arrange according to bookkeeping, when the error message number for example, recording in daily record application system being produced reaches the threshold value of setting as the trigger condition of shut-down operation.
In one of the present embodiment concrete embodiment, obtain the management parameters information of application system, be specially: according to acting on entering the operating instructions on human-computer interaction interface, generate the administration configuration file of application system, from this administration configuration file, obtain management parameters information.Wherein, human-computer interaction interface is provided with various application systems and selects information.Under this embodiment, the multiple application systems that can select user are carried out corresponding intelligent management, without the switching between the each application system management of user's manual operations, have promoted user's experience, have saved administrative time.
In another concrete embodiment of the present embodiment, obtain the management parameters information of application system, be specially: receive the administration configuration request that application system place equipment sends, extract the management parameters information of the application system comprising in this administration configuration request.
Whether step 120, Real-Time Monitoring application system meet management trigger condition.
The management devices of application system is after getting the identification information of application system place equipment, application system ID of trace route path information, bookkeeping mark and these management parameters information of management trigger condition, can first resolve management trigger condition, then manage the Real-Time Monitoring of trigger condition according to described analysis result.
Concrete, if described management trigger condition arranged by the time, start timer, whether the set triggered time of Real-Time Monitoring arrives; If described management trigger condition arranges by bookkeeping, arrive and impose a condition as management trigger condition by the parameter preset corresponding with bookkeeping of application system, according to the identification information of application system place equipment, application system ID of trace route path information, obtain described parameter preset from application system place equipment in real time, judge whether this parameter preset arrives to impose a condition.
Step 130, in the time monitoring application system and meet management trigger condition, according to the identification information of application system place equipment and application system ID of trace route path information, the described application system on described equipment is carried out and is identified corresponding bookkeeping with bookkeeping.
When the management devices Real-Time Monitoring application system of application system meets management trigger condition, first according to the identification information of this application system place equipment, set up the communication connection with described equipment; Then according to application system ID of trace route path information, find this application system on described equipment, and then execution identifies corresponding bookkeeping with bookkeeping.
In the time that bookkeeping is designated start-up operation mark, the management devices of application system is carried out and is identified corresponding bookkeeping with start-up operation the application system on described equipment, include but not limited to: whether the application system that the management devices of application system detects on described equipment stops, if so, start this application system.
In the time that bookkeeping is designated shut-down operation mark, the management devices of application system is carried out and is identified corresponding bookkeeping with shut-down operation the application system on described equipment, include but not limited to: whether the application system that the management devices of application system detects on described equipment is moved, if so, stop this application system.
In the time that bookkeeping is designated deployment operation mark, the management devices of application system is carried out and is identified corresponding bookkeeping with deployment operation the application system on described equipment, include but not limited to: the management devices of application system, according to the Code obtaining address of deployment operation mark instruction, obtains the deployment code of application system; Former the operation of the application system on described equipment code is replaced with to described deployment code.Concrete, when described deployment operation is updating operation, the updating operation process of the management devices of application system can be: stop application system, and the operation code of current application system is stored to this locality; Download upgrade code according to user configured Code obtaining address, and described upgrade code is replaced to the operation code of the application system on described equipment; Start application system, detect described application system and whether can use.
The present embodiment is different from the labor management application system mode that prior art adopts, realize the intelligent management operation to application system, greatly reduce labor workload and improved maintenance efficiency, and solve because people's energy is limited, the restricted problem of the brought maintainability of easily makeing mistakes, can shorten the bookkeeping time, reduced the impact on application system execution efficiency simultaneously.
In order to ensure reliability and the stability of management, on the basis of technique scheme, one of the present embodiment preferred embodiment in, after the application system on described equipment is carried out and identified corresponding bookkeeping with bookkeeping, also comprise:
In the time of bookkeeping failure, again the application system on described equipment is carried out and identified corresponding bookkeeping with bookkeeping; Or in the time of bookkeeping failure, according to the history management operating result of storage, the described application system on described equipment is reduced to the state before carrying out described bookkeeping.For example, in the time of updating operation failure, move former code according to the application system of storage, the application system on described equipment is reduced to the state before carrying out this updating operation, and then can improve the stability of upgrading, make application system that the object of service can be uninterruptedly provided.
On the basis of technique scheme, one of the present embodiment preferred embodiment in, after the application system execution on described equipment identifies corresponding bookkeeping with bookkeeping, also comprise: in the time of bookkeeping failure, failed regeneration analysis result, and described failure analysis result is shown.
In any embodiment of the present invention, system architecture that can be based on service-oriented, realize the service encapsulates of this function of management method to application system by cross-platform language, and then this service can be built under Windows, Linux or other operating system, multi-platform lower use.
Fig. 2 is the structural representation of the management devices of a kind of application system of providing of the embodiment of the present invention two, the present embodiment is applicable to the network architecture of distributed or trunking computer equipment composition that can application deployment system, to realize the situation to application system manages on each computer equipment.Referring to Fig. 2, the concrete structure of this device is as follows:
Parameter acquiring unit 210, for obtaining the management parameters information of application system, wherein said management parameters information comprises identification information, application system ID of trace route path information, bookkeeping mark and the management trigger condition of described application system place equipment;
Trigger monitoring means 220, whether meet described management trigger condition for application system described in Real-Time Monitoring;
Operation execution unit 230, while meeting described management trigger condition for monitoring described application system when triggering monitoring means 220, according to the identification information of described application system place equipment and described application system ID of trace route path information, the described application system on described equipment is carried out and identified corresponding bookkeeping with described bookkeeping.
Further, described parameter acquiring unit 210 specifically for:
According to acting on entering the operating instructions on human-computer interaction interface, generate the administration configuration file of application system, from described administration configuration file, obtain management parameters information, wherein said human-computer interaction interface is provided with various application systems and selects information; Or
Receive the administration configuration request that described equipment sends, extract the management parameters information of the application system comprising in described administration configuration request.
Further, described bookkeeping mark comprises deployment operation mark;
Operation execution unit 230, specifically for: according to the Code obtaining address of described deployment operation mark instruction, obtain the deployment code of described application system; Former the operation of the described application system on described equipment code is replaced with to described deployment code.
On the basis of above technical scheme, described device also comprises: operation error correction unit 240, for after described operation execution unit 230 identifies corresponding bookkeeping to the described application system execution on described equipment with described bookkeeping:
In the time of described bookkeeping failure, again the described application system on described equipment is carried out and identified corresponding described bookkeeping with described bookkeeping; Or
In the time of described bookkeeping failure, according to the history management operating result of storage, the described application system on described equipment is reduced to the state before carrying out described bookkeeping.
On the basis of above technical scheme, described device also comprises: operation display unit 250, for after described operation execution unit 230 identifies corresponding bookkeeping to the described application system execution on described equipment with described bookkeeping:
In the time of described bookkeeping failure, failed regeneration analysis result, and described failure analysis result is shown.
The said goods can be carried out the method that any embodiment of the present invention provides, and possesses the corresponding functional module of manner of execution and beneficial effect.
Note, above are only preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that and the invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious variations, readjust and substitute and can not depart from protection scope of the present invention.Therefore, although the present invention is described in further detail by above embodiment, the present invention is not limited only to above embodiment, in the situation that not departing from the present invention's design, can also comprise more other equivalent embodiment, and scope of the present invention is determined by appended claim scope.