Background technology
In most of communication systems, all can relate to the management and the management system of network element device.And these systems all are independent of the standard of each manufacturer, make to manage very difficulty of whole network.Owing to there is the difficulty of management, must the standard of each tame equipment vendors be isolated and provided a cover unified management mode, therefore the notion of comprehensive network management has been proposed.Though the proposition of comprehensive network management has solved the problem of managing each manufacturer's network, comprehensive network management itself adopts distributed system architecture usually, so the management of itself is also too complicated, makes the management comprehensive webmaster very difficult.This just must propose the centralized management model under distributed structure/architecture; Through the centralized management model to be distributed in network everywhere independently system include unified administration interface in; To the system manager a transparent management interface is provided, to improve the ability that administers and maintains of system.
First kind of realization of the prior art relevant with the present invention is to adopt manual work to carry out telemanagement, is connected to remote operating system through manual work, manages through the operation-interface of remote system.
If adopt above-mentioned first kind of processing mode will have following problem.At first, do not have the unified user interface of a cover, make the user must understand the details of operation of the management of a lot of services, make the system maintenance difficulty strengthen; Next adopts the directly long-range operating system that is connected to the service place, can make system safety have problems, and causes the potential safety hazard of system.Once more, the dependence between the system service of distribution can't be able to effective management; At last, manual type can't effective integration arrive Integrated Network Management System inside, makes that management is imperfect.
Realize that the implementation that is adopted is that management interface is provided for second kind of the prior art relevant in the Distributed Services of being managed, again by network service management system direct control management interface with the present invention.
If adopt above-mentioned second kind of processing mode will have following problem.At first, this can make the degree of coupling between Distributed Services and the network management services system than higher, is unfavorable for the expansion of system.Secondly, on management interface each independently the distributed service management interface be difficult to consistent.Once more, lack the complete administrative mechanism of a cover Distributed Services is managed, make that system program is difficult to safeguard.At last, because the interface network agreement of different services is different, can cause system safety hazards.
Summary of the invention
The purpose of this invention is to provide a kind of distributed system service management system and method, solved and safeguarded in the prior art that Distributed Services does not have Unified Treatment problem difficult in maintenance that mechanism causes.
The technical scheme that the present invention takes in order to solve the problems of the technologies described above is: a kind of distributed system service management system is characterized in that: comprise service managerZ-HU, proxy manager and management and monitoring device;
Described service managerZ-HU provides unified operation interface, through the unified different proxy manager of user interface visit, is used to receive user's processing request, transmission requests model and notice user processing result;
Described proxy manager comprises service end and client; Service end is deployed on the computer of management and monitoring device place; Client deployment is on the computer of service managerZ-HU place; Service end is connected through network with client, the result that proxy manager is used to receive unified request model, the notice management and monitoring device of said service managerZ-HU and transmits the management and monitoring device;
Described management and monitoring device is deployed on the computer of service place, and each service has a management and monitoring device, the concrete service in management of management and monitoring implement body and the monitor network, and notify result to said proxy manager;
Also comprise service dependence processor in the wherein said service managerZ-HU, service managerZ-HU is through the dependence between the service dependence processor processes proxy manager;
Described service managerZ-HU comprises heartbeat Timing Processing device, and the heartbeat Timing Processing device of service managerZ-HU regularly sends the heartbeat detection instruction and judges the service current state;
Described proxy manager comprises heartbeat server; After the heartbeat server of proxy manager receives the status poll instruction that heartbeat Timing Processing device sends over; Be transformed into the accessible call instruction of management and monitoring device, and call the management and monitoring device and carry out service monitoring;
Described management and monitoring device comprises service monitor, is used for receiving the call instruction that the heartbeat server of proxy manager sends, and returns the state of current service according to instruction.
Press such scheme, described service dependence processor comprises rule analysis engine and rule configuration;
The rule configuration is used for the dependence by the user definition service;
The service that the rule analysis engine is used for the analysis rule configuration relies on rule definition, whether can do corresponding execution request according to defined rule judgment current service.
Press such scheme, described service managerZ-HU also comprises the state notifying processor, is used for receiving that Status Change notice that proxy manager sends is instant revises the service state that service managerZ-HU is managed, and the current state of notifying the user to serve.
Press such scheme, described proxy manager comprises to be carried out preprocessor, carry out post processor and carries out processor;
Carry out preprocessor and be responsible for after receiving instruction immediately that the notification service manager begins execution with proxy manager;
Carrying out post processor is responsible in the result who executes after carry out according to executing state notification service manager the instruction back;
Carry out processor and be used for the instruction that proxy manager is submitted to is transformed into the accessible call instruction of said management and monitoring device, and call the management and monitoring device and carry out Service Management.
Press such scheme, described management and monitoring device comprises service processor, is used for receiving the call instruction that the execution processor of proxy manager sends, and carries out corresponding command according to call instruction.
A kind of distributed system service management, it is characterized in that: it may further comprise the steps:
A, service managerZ-HU provide unified operation interface for the user; To the service definition standard set operator scheme of being managed so that manageable service range to be provided; Receive user's processing request; And judge by the dependence processor whether this request has the service of relying on to be untreated; Have and then point out the user; If do not have, transmit the client of request to corresponding proxy manager by the service end of visiting corresponding proxy manager then according to the user processing request;
The client of the proxy manager of B, correspondence receives the request of service managerZ-HU, and notice management and monitoring device is responsible for concrete Processing tasks;
C, management and monitoring device are responsible for handling specific tasks, and execution result is notified to proxy manager;
After the execution post processor of D, said proxy manager receives the result that the management and monitoring device carries out, convert execution result to state that the user can understand and send to service managerZ-HU through message, recording operation daily record simultaneously is convenient to the attendant and is followed the tracks of;
E, said service managerZ-HU are finally notified execution result to the end user, revise the state of institute's management service simultaneously, and the current dependent status of notification service dependence processor management;
The heartbeat Timing Processing device of F, service managerZ-HU regularly sends the heartbeat detection instruction and judges the service current state;
The heartbeat server of G, proxy manager is transformed into the accessible call instruction of management and monitoring device after receiving the status poll instruction that heartbeat Timing Processing device sends over;
The service monitor of H, management and monitoring device receives the call instruction that heartbeat server sends, and returns the state of current service according to instruction.
Press such scheme, in the described steps A, whether the request of dependence processor judgment processing has the untreated process of the service of dependence to be:
A1, user set up the dependence of service execution action through being provided with to manageable service range;
Rule analysis engine in a2, the dependence processor obtains configuration information to dependence analysis; Dependence model based on configuration information; Generate an executing state transition graph, described configuration information comprises the bookkeeping of service name, service place host ip and service support;
The service current states that a3, rule analysis engine basis will be handled is searched the dependence item of state among the figure in the executing state transition graph, and judges whether satisfy, carry out as if satisfying then if relying on item, start item otherwise notify the user to be correlated with.
Press such scheme, described step B specifically comprises:
The client of B1, said proxy manager receives the request of service managerZ-HU, carries out the request preliminary treatment, returns to service managerZ-HU to the state of preparing to carry out, and is shown to the end user by service managerZ-HU;
Execution processor in B2, the said proxy manager calls the practical operation instruction in the management and monitoring device according to the request type decision that the user sent.
Operation principle of the present invention is: the user is distributed in each service in the network through the service managerZ-HU unified management.In service managerZ-HU, can pass through the dependence between the service dependence processor processes proxy manager, thereby ensure the dependence of the service in the network varying environment that is distributed in.Service managerZ-HU visit different proxy managers, and all proxy managers all provides unified interface through unified user interface; Thereby isolated the management difference between each service.Proxy manager is through the concrete service of management and monitoring management, to ensure that proxy manager is transparent to serving.Concrete service in management of management and monitoring implement body and the monitor network.
Particularly, the user can pass through a client actions service managerZ-HU, and service managerZ-HU provides and shows that output is presented on the client computer, and the user carries out interactive operation through this graphical interfaces.The management and monitoring device is deployed on the computer of service place, and each service all has a management and monitoring device like this, and proxy manager is through access to netwoks management and monitoring device.And proxy manager is divided into service end and two parts of client, is deployed in respectively on the computer of management and monitoring device and service managerZ-HU place, and wherein service end is deployed on the management and monitoring device, and client deployment is on service managerZ-HU.
Beneficial effect of the present invention is:
1, the user is distributed in each service in the network through the service managerZ-HU unified management, has solved to safeguard in the prior art that Distributed Services does not have Unified Treatment problem difficult in maintenance that mechanism causes;
2, by increasing the dependence between the service dependence processor processing proxy manager; Make the dependence between service to expand by the user; The scope of management service is extended arbitrarily; Need include new service in range of management; Only need to expose unified interface; And administration detail is encapsulated in the management and monitoring device scope; The system that makes has uniformity and autgmentability; Solved between the prior art systems service degree of coupling than higher; It is bigger to add the new service of management difficulty, the problem that the program autgmentability is not strong;
3, for the end user unified operation user interface is provided, operation and maintenance can be operated with a kind of mode in same place, thereby makes to have high ease for use;
4, whole system makes whole system have good fail safe owing to adopted unified interface and unified management service agreement.
Embodiment
Fig. 1 is the module frame chart of one embodiment of the invention, comprises service managerZ-HU, proxy manager and management and monitoring device.
Described service managerZ-HU provides unified operation interface, through the unified different proxy manager of user interface visit, is used to receive user's processing request, transmission requests model and notice user processing result;
Described proxy manager comprises service end and client; Service end is deployed on the computer of management and monitoring device place; Client deployment is on the computer of service managerZ-HU place; Service end and client are used to receive the result of unified request model, notice management and monitoring device and the forwarding management and monitoring device of said service managerZ-HU through net connection;
Described management and monitoring device is deployed on the computer of service place, and each service has a management and monitoring device, the concrete service in management of management and monitoring implement body and the monitor network, and notify result to said proxy manager;
Also comprise service dependence processor in the wherein said service managerZ-HU, service managerZ-HU is through the dependence between the service dependence processor processes proxy manager.
Fig. 2 is the theory diagram of one embodiment of the invention, and service managerZ-HU A10 is the inlet of whole system, also is unique and module user interactions.The user can initiatively send control request through mutual with service managerZ-HU A10, also can be by service managerZ-HU A10 initiatively the state notifying user of service.In service managerZ-HU A10, comprise heartbeat Timing Processing device A11 and state notifying processor A 12.Heartbeat Timing Processing device A11 is used for regularly sending the heartbeat detection instruction and judges the service current state, also can the synchronous service state even guarantee other disturbed condition to occur.State notifying processor A 12 is used for receiving that Status Change notice that proxy manager sends is instant revises the service state that service managerZ-HU is managed, and the current state of notifying the user to serve.
Service dependence processor A 20 is analyzers that the dependence of service that service managerZ-HU is managed is handled.Service dependence processor A 20 mainly is that the dependence of control service promptly starts or the execution order when closing.Comprise rule analysis engine A21 and rule configuration A22 in the service dependence processor A 20.The service that rule analysis engine A21 is used for analysis rule configuration A22 relies on rule definition, whether can do corresponding execution request according to defined rule judgment current service.Rule configuration A22 is used for the dependence by the user definition service.
Proxy manager A30 receives the execution command that service managerZ-HU is submitted to.Comprise among the proxy manager A30 and carry out preprocessor A31, execution post processor A32, execution processor A 33 and heartbeat server A34.Carry out preprocessor A31 and be responsible for after receiving instruction immediately that notification service manager proxy manager begins to carry out.Carrying out post processor A32 is responsible in the result who executes after carry out according to executing state notification service manager the instruction back.Carry out processor A 33 and be used for the instruction that proxy manager is submitted to is transformed into the accessible call instruction of management and monitoring device A40, and call A40 and carry out Service Management.Heartbeat server A34 is used for the definition status that the heartbeat Timing Processing device A11 of respond services manager A10 sends and replys service.Heartbeat server A34 receives the status poll instruction that heartbeat Timing Processing device A11 sends over regularly, is transformed into the accessible call instruction of management and monitoring device A40, and calls A40 and carry out service monitoring.
Management and monitoring device A40 is used to handle the control and the supervision of concrete service.Comprise service processor A41 and service monitor A42 among the management and monitoring device A40.Service processor A41 is used for receiving the call instruction that the execution processor A 33 of proxy manager A30 sends, and carries out corresponding command according to instruction.Service monitor A42 is used for receiving the call instruction that the heartbeat server A34 of proxy manager A30 sends, and returns the state of current service according to instruction.
The distributed system service management of present embodiment may further comprise the steps:
Steps A: the user sends operational order through service managerZ-HU.
Service managerZ-HU provides unified operation interface for the user; Service definition standard set operator scheme to being managed provides manageable service range; Receive user's processing request, and judge that through the dependence processor whether this request has the service of dependence to be untreated, and has and then points out the user; If do not have, transmit the client of request to corresponding proxy manager through the service end of visiting corresponding proxy manager then according to the user processing request.
Wherein whether the request of dependence processor judgment processing has the untreated process of the service of dependence to be:
A1, user set up the dependence of service execution action through being provided with to manageable service range;
Rule analysis engine in a2, the dependence processor obtains configuration information to dependence analysis; Dependence model based on configuration information; Generate an executing state transition graph, described configuration information comprises the bookkeeping of service name, service place host ip and service support;
The service current states that a3, rule analysis engine basis will be handled is searched the dependence item of state among the figure in the executing state transition graph, and judges whether satisfy, carry out as if satisfying then if relying on item, start item otherwise notify the user to be correlated with.
Step B: the preliminary treatment of proxy manager and executable operations.
The client of corresponding proxy manager receives the request of service managerZ-HU, and the responsible concrete Processing tasks of notice management and monitoring device, specifically comprises:
The client of B1, said proxy manager receives the request of service managerZ-HU; Carry out the request preliminary treatment; The state of prepare carrying out is returned to service managerZ-HU, be shown to the end user, make the end user can know that present service carries out by service managerZ-HU; Preprocessor is done the operation daily record to the operation of preparing to carry out simultaneously, so that the attendant can be based on daily record situation follow-up service administrative situation;
Execution processor in B2, the said proxy manager calls the practical operation instruction in the management and monitoring device according to the request type decision that the user sent.This need call the practical operation instruction in the management and monitoring device according to the type decided of the execution request that the user sent through proxy manager.Do like this and can accomplish user transparent, user capture be operation-interface, and the bottom layer treatment details is packaged in the management and monitoring device.
Step C: the concrete executable operations of management and monitoring device.
The management and monitoring device is finished and passes the result to proxy manager back.
Step D: the rearmounted processing of proxy manager operated.
Proxy manager just gets into that proxy manager is rearmounted handles operation after receiving the result that the management and monitoring device is finished.The proxy manager postposition is handled operation and is responsible for converting result to state that the user can understand, sends to service managerZ-HU through message, and attendant's tracking is convenient in recording operation daily record simultaneously.
Step e: service managerZ-HU receives result.
Service managerZ-HU is finally notified execution result to the end user, revises the state of institute's management service simultaneously, and the current dependent status of notification service dependence processor management.
Step F: the heartbeat Timing Processing device of service managerZ-HU regularly sends the heartbeat detection instruction and judges the service current state.
Step G: the heartbeat server of proxy manager is transformed into the accessible call instruction of management and monitoring device after receiving the status poll instruction that heartbeat Timing Processing device sends over.
Step H: the service monitor of management and monitoring device receives the call instruction that heartbeat server sends, and returns the state of current service according to instruction.
Wherein, step F, G, H can carry out with above other steps simultaneously, and be separate, do not disturb mutually.