Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present invention provides a kind of measure of supervision and system of software service, and to improve the service efficiency of software, technical scheme is as follows:
A measure of supervision for software service, for supervisor software service, described software service comprises: first service module group and second service module group, and described method comprises:
The first supervision module is used to exercise supervision to described first service module group, when the one or more service modules in described first service module group break down, one or more service modules that described first supervision module controls to break down in described first service module group restart;
The second supervision module is used to exercise supervision to described second service module group, when the one or more service modules in described second service module group break down, one or more service modules that described second supervision module controls to break down in described second service module group restart.
Preferably, also comprise: use the 3rd supervision module to exercise supervision to described first supervision module and described second supervision module, when described first supervision module breaks down, described 3rd supervision module controls described first supervision module and restarts; When described second supervision module breaks down, described 3rd supervision module controls described second supervision module and restarts.
Preferably,
When the one or more service modules in described first service module group break down, one or more service modules that described first supervision module controls to break down in described first service module group restart, specifically be set to: when the one or more service modules in described first service module group break down, described first supervision module controls all service modules in described first service module group and restarts;
When the one or more service modules in described second service module group break down, one or more service modules that described second supervision module controls to break down in described second service module group restart, specifically be set to: when the one or more service modules in described second service module group break down, described second supervision module controls all service modules in described second service module group and restarts.
Preferably,
When described first supervision module breaks down, described 3rd supervision module controls described first supervision module and restarts, specifically be set to: when described first supervision module breaks down, described 3rd supervision module controls described first supervision module and described second supervision module restarts;
When described second supervision module breaks down, described 3rd supervision module controls described second supervision module and restarts, specifically be set to: when described second supervision module breaks down, described 3rd supervision module controls described first supervision module and described second supervision module restarts.
Preferably, described 3rd supervision module exercises supervision to the 3rd service module group simultaneously, and when described 3rd service module group breaks down, described 3rd supervision module controls described 3rd service module group and restarts.
Present invention also offers a kind of monitor system of software service, for supervisor software service, described software service comprises: first service module group and second service module group, and described system comprises: the first supervision module and the second supervision module,
Described first supervision module, for exercising supervision to described first service module group, when the one or more service modules in described first service module group break down, one or more service modules that described first supervision module controls to break down in described first service module group restart;
Described second supervision module, for exercising supervision to described second service module group, when the one or more service modules in described second service module group break down, one or more service modules that described second supervision module controls to break down in described second service module group restart.
Preferably, also comprise: the 3rd supervision module, for exercising supervision to described first supervision module and described second supervision module, when described first supervision module breaks down, described 3rd supervision module controls described first supervision module and restarts; When described second supervision module breaks down, described 3rd supervision module controls described second supervision module and restarts.
Preferably,
Described first supervision module, specifically be set to: for exercising supervision to described first service module group, when the one or more service modules in described first service module group break down, described first supervision module controls all service modules in described first service module group and restarts;
Described second supervision module, specifically be set to: for exercising supervision to described second service module group, when the one or more service modules in described second service module group break down, described second supervision module controls all service modules in described second service module group and restarts.
Preferably, described 3rd supervision module is specifically set to: exercise supervision to described first supervision module and described second supervision module, when described first supervision module breaks down, described 3rd supervision module controls described first supervision module and described second supervision module restarts; When described second supervision module breaks down, described 3rd supervision module controls described first supervision module and described second supervision module restarts.
Preferably, described 3rd supervision module is also for exercising supervision to the 3rd service module group simultaneously, and when described 3rd service module group breaks down, described 3rd supervision module controls described 3rd service module group and restarts.
By applying above technical scheme, the measure of supervision of a kind of software service provided by the invention and system, multiple supervision module can be used to exercise supervision to the multiple service modules in software service respectively, when a certain service module breaks down, the supervision module of supervising this service module only needs to control this service module and carries out restarting.The present invention difference can restart whole software again, thus reduces the burden of hardware system, also improves the service efficiency of software.
Embodiment
Technical scheme in the present invention is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, should belong to the scope of protection of the invention.
Embodiments provide a kind of measure of supervision of software service, for supervisor software service, described software service comprises: first service module group and second service module group, and described method comprises:
The first supervision module is used to exercise supervision to described first service module group, when the one or more service modules in described first service module group break down, one or more service modules that described first supervision module controls to break down in described first service module group restart;
The second supervision module is used to exercise supervision to described second service module group, when the one or more service modules in described second service module group break down, one or more service modules that described second supervision module controls to break down in described second service module group restart.
Be described below in conjunction with accompanying drawing:
As shown in Figure 1, the measure of supervision of a kind of software service that the embodiment of the present invention provides, for supervisor software service 001, this software service 001 can comprise: first service module group 100 and second service module group 200, first service module group 100 comprises: first service module 110, second service module group 200 comprises: second service module 210, and the method can comprise:
Use the first supervision module 300 pairs of first service module groups 100 to exercise supervision, when first service module 110 breaks down, the first supervision module 300 controls first service module 110 and restarts;
The second supervision module 400 pairs of second service module groups 200 are used to exercise supervision; When second service module 210 breaks down, the second supervision module 400 controls second service module 210 and restarts.
Wherein, when first service module 110 breaks down, first supervision module 300 controls first service module 110 and restarts, and specifically can be set to: when first service module 110 breaks down, and the first supervision module 300 controls first service module group 100 and restarts;
When second service module 210 breaks down, the second supervision module 400 controls second service module 210 and restarts, and specifically can be set to: when second service module 210 breaks down, and the second supervision module controls second service module group and restarts.
Certainly, first service module group 100 and second service module group 200 can also comprise more service module, and software service 001 also can comprise more service module group.It should be noted that, the scheme that service module is divided into service module group can have multiple, concrete, and can delimit according to the actual needs, the present invention does not limit.
The measure of supervision of a kind of software service that the embodiment of the present invention provides, multiple supervision module can be used to exercise supervision to the multiple service modules in software service respectively, when a certain service module breaks down, the supervision module of supervising this service module only needs to control this service module and carries out restarting.The present invention difference can restart whole software again, thus reduces the burden of hardware system, also improves the service efficiency of software.
As shown in Figure 2, in the another kind of software service measure of supervision that the embodiment of the present invention provides, can also comprise: use the 3rd supervision module 500 to exercise supervision to the first supervision module 300 and the second supervision module 400, when the first supervision module 300 breaks down, the 3rd supervision module 500 controls the first supervision module 300 and restarts; When the second supervision module 400 breaks down, the 3rd supervision module 500 controls the second supervision module 400 and restarts.
Wherein, when the first supervision module 300 breaks down, 3rd supervision module 500 controls the first supervision module 300 and restarts, specifically can be set to: when the first supervision module 300 breaks down, the 3rd supervision module 500 controls the first supervision module 300 and the second supervision module 400 restarts;
When the second supervision module 400 breaks down, 3rd supervision module 500 controls the second supervision module 400 and restarts, specifically can be set to: when the second supervision module 400 breaks down, the 3rd supervision module 500 controls the first supervision module 300 and the second supervision module 400 restarts.
As shown in Figure 3, first service module group 100 can also comprise the 3rd service module 120.At this moment, if first service module 110 breaks down, the first supervision module 300 can control first service module group 100 and restart, and also namely first service module 110 and the 3rd service module 120 all restart.Certainly, first service module group 100 and second service module group 200 can also comprise more service module, and software service 001 also can comprise more service module group.It should be noted that, the scheme that service module is divided into service module group can have multiple, concrete, and can delimit according to the actual needs, the present invention does not limit.
That is: when the one or more service modules in first service module group 100 break down, the first supervision module 300 controls all service modules in first service module group 100 and restarts;
When the one or more service modules in second service module group 200 break down, the second supervision module 400 controls all service modules in second service module group 200 and restarts.
Preferably, a supervision tree can be built according to multiple service modules of software service.
As shown in Figure 4, in the another kind of software service measure of supervision that the embodiment of the present invention provides, 3rd supervision module 500 can exercise supervision to the 3rd service module group 600 simultaneously, when the 3rd service module group 600 breaks down, the 3rd supervision module 500 controls the 3rd service module group 600 and restarts.
The measure of supervision of a kind of software service that the embodiment of the present invention provides, multiple supervision module can be used to exercise supervision to the multiple service modules in software service respectively, when a certain service module breaks down, the supervision module of supervising this service module only needs to control this service module and carries out restarting.The present invention difference can restart whole software again, thus reduces the burden of hardware system, also improves the service efficiency of software.
Corresponding to embodiment of the method above, the present invention also provides a kind of monitor system of software service.
The monitor system of a kind of software service that the embodiment of the present invention provides, for supervisor software service, described software service comprises: first service module group and second service module group, and described system comprises: the first supervision module and the second supervision module,
Described first supervision module, for exercising supervision to described first service module group, when the one or more service modules in described first service module group break down, one or more service modules that described first supervision module controls to break down in described first service module group restart;
Described second supervision module, for exercising supervision to described second service module group, when the one or more service modules in described second service module group break down, one or more service modules that described second supervision module controls to break down in described second service module group restart.
Be described below in conjunction with accompanying drawing:
As shown in Figure 1, the monitor system of a kind of software service that the embodiment of the present invention provides, for supervisor software service 001, software service 001 comprises: first service module group 100 and second service module group 200, first service module group 100 comprises: first service module 110, second service module group 200 comprises: second service module 210, and this system comprises: the first supervision module 300 and the second supervision module 400
First supervision module 300, for exercising supervision to first service module group 100, when first service module 110 breaks down, the first supervision module 300 controls first service module 110 and restarts;
Wherein, first supervision module 300, can specifically be set to: for exercising supervision to first service module group 100, when the one or more service modules in first service module group 100 break down, one or more service modules that the first supervision module 300 controls to break down in first service module group 100 restart.
Second supervision module 400, for exercising supervision to second service module group 200, when second service module 210 breaks down, the second supervision module 400 controls second service module 210 and restarts.
Wherein, second supervision module 400, can specifically be set to: second service module group 200 is exercised supervision, when the one or more service modules in second service module group 200 break down, one or more service modules that the second supervision module 400 controls to break down in second service module group 200 restart.
The monitor system of a kind of software service that the embodiment of the present invention provides, multiple supervision module can be used to exercise supervision to the multiple service modules in software service respectively, when a certain service module breaks down, the supervision module of supervising this service module only needs to control this service module and carries out restarting.The present invention difference can restart whole software again, thus reduces the burden of hardware system, also improves the service efficiency of software.
As shown in Figure 2, in the monitor system of the another kind of software service provided in the embodiment of the present invention, can also comprise: the 3rd supervision module 500, for exercising supervision to the first supervision module 300 and the second supervision module 400, when the first supervision module 300 breaks down, the 3rd supervision module 500 controls the first supervision module 300 and restarts; When the second supervision module 400 breaks down, the 3rd supervision module 500 controls the second supervision module 400 and restarts.
Wherein, 3rd supervision module 500 can specifically be set to: exercise supervision to the first supervision module 300 and the second supervision module 400, when the first supervision module 300 breaks down, the 3rd supervision module 500 controls the first supervision module 300 and the second supervision module 400 restarts; When the second supervision module 400 breaks down, the 3rd supervision module 500 controls the first supervision module 300 and the second supervision module 400 restarts.
As shown in Figure 4, in the monitor system of the another kind of software service that the embodiment of the present invention provides, 3rd supervision module 500 can also be used for exercising supervision to the 3rd service module group 600 simultaneously, when the 3rd service module group 600 breaks down, the 3rd supervision module 500 controls the 3rd service module group 600 and restarts.
The monitor system of a kind of software service that the embodiment of the present invention provides, multiple supervision module can be used to exercise supervision to the multiple service modules in software service respectively, when a certain service module breaks down, the supervision module of supervising this service module only needs to control this service module and carries out restarting.The present invention difference can restart whole software again, thus reduces the burden of hardware system, also improves the service efficiency of software.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing of the present invention.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for system embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.System embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.
The above is only the specific embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.