Summary of the invention
The shortcoming of prior art in view of the above, fundamental purpose of the present invention is to be to provide a kind of computer platform management unit operation mode intercede processing method and system, it can make things convenient for and apace cutter point server be finished the setting of main control end and standby end.
Another object of the present invention is to provide a kind of computer platform management unit operation mode intercede processing method and system, it can be issued to the required main control end of cutter point server and the setting purpose of standby end in the situation that must not increase hardware, also can be switched simultaneously, thereby improve and set elasticity according to user's demand.
Computer platform management unit operation mode intercede processing method of the present invention and system are loaded on computer platform, a kind of computer platform of assembling type particularly, be blade server for example, be used for providing operator scheme arbitration process function this blade server.
Computer platform management unit operation mode intercede processing method of the present invention comprises at least: (P1) when this computer platform starts, make this first administrative unit detect the initiate mode of this second administrative unit by this network interface; If the initiate mode of this second administrative unit is false, then the operator scheme with this first administrative unit is set at master mode; If the initiate mode of this second administrative unit is true, then neighborhood end initiate mode detection module sends neighborhood end operator scheme and checks enable information; (P2) neighborhood end operator scheme is checked this neighborhood end operator scheme inspection enable information that this neighborhood end initiate mode detection module of module responds is sent and is sent neighborhood end operator scheme inspection requirements information, and this neighborhood end operator scheme inspection requirements information is sent to this second administrative unit by this network interface, so as to require this second administrative unit responsively the back delivery operations pattern inform information; (P3) if this second administrative unit passback master mode is informed information, then this neighborhood end operator scheme inspection module is sent the standby mode enable information; If this second administrative unit passback standby mode is informed information, this neighborhood end operator scheme inspection module is sent the master mode enable information; But if this second administrative unit does not temporarily have back information, then neighborhood end operator scheme inspection module is sent random number timing enable information; (P4) if receiving the master mode of this second administrative unit passback, this first administrative unit do not inform information, then the random number timing module responds this neighborhood end operator scheme and checks this random number timing enable information that module is sent and produce random number timing numerical value, and carries out timing program according to this random number timing numerical value; And this random number timing module can make this neighborhood end operator scheme check whether this second administrative unit of the lasting detection of module returns master mode and inform information in timing course; When timing finishes, if connecing the master mode of not receiving this second administrative unit passback, this first administrative unit informs information, then this random number timing module sends the master mode enable information; And (P5) local side operator scheme setting module responds each standby mode enable information and the operator scheme of this first administrative unit is set at standby mode, and local side operator scheme setting module responds each master mode enable information and the operator scheme of this first administrative unit is set at master mode.
Computer platform management unit operation mode intercede Processing System Design of the present invention is used for the aforesaid method of specific implementation, the Object Oriented OO component model of its entity framework comprises at least: (A) neighborhood end initiate mode detection module, the startup incident that it can respond on this computer platform to be taken place and make this first administrative unit detect the initiate mode of this second administrative unit by this network interface; If the initiate mode of the initiate mode of this second administrative unit is false, then the operator scheme with this first administrative unit is set at master mode; Otherwise,, then send neighborhood end operator scheme and check enable information if the initiate mode of this second administrative unit is true; (B) neighborhood end operator scheme is checked module, it can respond the neighborhood end operator scheme that this neighborhood end initiate mode detection module sent and check enable information and send neighborhood end operator scheme inspection requirements information, and this neighborhood end operator scheme inspection requirements information is sent to this second administrative unit by this network interface, so as to require this second administrative unit responsively the back delivery operations pattern inform information; If this second administrative unit passback master mode is informed information, then send the standby mode enable information; Otherwise, send the master mode enable information if the passback standby mode is informed information; But if temporary transient no back information then sends random number timing enable information; (C) random number timing module, it can respond this neighborhood end operator scheme and check the random number timing enable information that module is sent and produce random number timing numerical value, and carries out timing program according to this random number timing numerical value; And it can make this neighborhood end operator scheme check whether this second administrative unit of the lasting detection of module returns master mode and inform information in timing course; When timing finished, if this second administrative unit does not still return master mode and informs information, then this random number timing module sent the master mode enable information; And (D) local side operator scheme setting module, it can respond each standby mode enable information and the operator scheme of this first administrative unit is set at standby mode, and responds each master mode enable information and the operator scheme of this first administrative unit is set at master mode.
The characteristics of computer platform management unit operation mode intercede processing method of the present invention and system are adopting existing NIC (Network Interface Card, network interface unit) is used as the channel of arbitration process information, and and then adopt the random number timing mode to set the stand-by period, to allow the administrative unit of local side finish and the administrative unit of not receiving its neighborhood end is yet replied operator scheme when informing information, just set up on their own to be master mode in these times for the treatment of; Otherwise just looking the present operator scheme of neighborhood end administrative unit sets.These characteristics can reduce the system complexity of operator scheme arbitration process mechanism, make it have better cost benefit on concrete enforcement.And by carrying out the setting of main control end by the random number timing mode at computer platform management unit operation mode intercede processing method of the present invention and system of system, so can effectively avoid causing computer platform in the setting of main control end, to clash because of sending the master mode information of informing simultaneously between the administrative unit both sides of the administrative unit of local side and neighborhood end, therefore can more successfully finish the setting work of main control end.
Description of drawings
Fig. 1 is used to show that for using synoptic diagram computer platform management unit operation mode intercede disposal system of the present invention is loaded on the application mode of blade server; And
Fig. 2 is the system architecture synoptic diagram, is used to show the basic framework of the Object Oriented OO component model of computer platform management unit operation mode intercede disposal system of the present invention;
Fig. 3 is used to each processing action that shows that computer platform management unit operation mode intercede disposal system of the present invention is performed for handling action flow chart (activity diagram).
[primary clustering symbol description]
10 blade servers
21 first administrative units (local side)
22 second administrative units (neighborhood end)
30 network interface unit (NIC)
40 buses (SMB)
51 processing units (servo module)
52 processing units (servo module)
53 processing units (servo module)
54 processing units (servo module)
100 computer platform management unit operation mode intercede disposal systems of the present invention
110 neighborhood end initiate mode detection modules
120 neighborhood end operator schemes are checked module
130 random number timing modules
140 local side operator scheme setting modules
201 startup incidents
202 operator scheme set informations
Embodiment
Below will cooperate appended graphicly, describe the embodiment of computer platform management unit operation mode intercede processing method of the present invention and system in detail.
Function of the present invention
Fig. 1 shows the application mode of computer platform management unit operation mode intercede disposal system of the present invention (as the square of label 100 indications).As shown in the figure, computer platform management unit operation mode intercede disposal system 100 of the present invention is to be loaded on computer platform in practical application, the computer platform of particularly a kind of assembling type (clustering), it for example is blade server (blade server) 10, and this blade server 10 disposes at least two administrative units (management units), comprises first administrative unit 21 and second administrative unit 22; Wherein disposing network interface 30 between this first administrative unit 21 and this second administrative unit 22, for example is the network interface of NIC formula; And and then by specific bus 40, for example be System Management Bus SMB (System Management Bus, or claim SM Bus), come the processing unit of management and control group, for example be a plurality of servo modules 51,52,53,54 in the blade server 10.
When practical application, the operator scheme of aforesaid first administrative unit 21 or second administrative unit 22 is when these blade server 10 initialization, optionally is set at master mode, and another then is set to standby mode.For instance, if first administrative unit 21 is set to master mode, then second administrative unit 22 promptly is set to standby mode; Otherwise if second administrative unit 22 is set to master mode, then first administrative unit 21 promptly is set to standby mode.When practical operation, the servo module 51,52,53,54 that the administrative unit under the master mode (21 or 22) promptly is responsible in the blade server 10 carries out management and control work; And the administrative unit under master mode (21 or 22) is when breaking down situation, makes administrative unit (22 or 21) under the standby mode replace it and is responsible for servo module 51,52,53,54 is carried out management and control work.Computer platform management unit operation mode intercede disposal system 100 designs of the present invention are used for providing operator scheme arbitration process function to first administrative unit 21 and second administrative unit 22, in this blade server 10 starting up's initialization procedure, arbitrate out the operator scheme of first administrative unit 21 and second administrative unit 22 therefrom.
On concrete enforcement, computer platform management unit operation mode intercede disposal system 100 of the present invention can be loaded on first administrative unit 21 and second administrative unit 22 simultaneously, or only is loaded on one of them.The embodiment of Fig. 1 only exemplarily shows and is loaded on first administrative unit 21; And in the case, first administrative unit 21 promptly is called the administrative unit of " local side ", and second administrative unit 22 then is called the administrative unit of " neighborhood end ".Otherwise, if computer platform management unit operation mode intercede disposal system 100 of the present invention is to carry to second administrative unit 22, then second administrative unit 22 promptly is called the administrative unit of " local side ", and first administrative unit 21 then becomes the administrative unit of " neighborhood end ".
Framework of the present invention
As shown in Figure 2, the basic framework of computer platform management unit operation mode intercede disposal system 100 of the present invention comprises at least: (A) neighborhood end initiate mode detection module 110; (B) neighborhood end operator scheme is checked module 120; (C) the random number timing module 130; And (D) local side operator scheme setting module 140.The individual attribute and the function of these composition modules 110,120,130,140 below promptly are described at first respectively.
Neighborhood end initiate mode detection module 110 can respond the startup incident 201 that taken place on this blade server 10 when carrying out initialize routine (be blade server 10) and make first administrative unit 21 of the local side under it detect the initiate mode of second administrative unit 22 of its neighborhood end by this NIC network interface 30.On concrete enforcement, if second administrative unit 22 is an initiate mode, then it can send the logical signal of EM2_PRESENT=1; Otherwise, then send EM2_PRESENT=0.If the initiate mode of second administrative unit 22 is false (EM2_PRESENT=0), then send the master mode enable information to this local side operator scheme setting module 140; Otherwise,, then send neighborhood end operator scheme and check that enable information is to this neighborhood end operator scheme inspection module 120 if the initiate mode of second administrative unit 22 is true (EM2_PRESENT=1).
Neighborhood end operator scheme checks that module 120 can respond the neighborhood end operator scheme that above-mentioned neighborhood end initiate mode detection module 110 sent and check enable information and send operator scheme inspection requirements information Status_Check, and this operator scheme inspection requirements information Status_Check is sent to this second administrative unit 22 by this NIC network interface 30, so as to require this second administrative unit 22 responsively the back delivery operations pattern inform information.If second administrative unit 22 is in master mode, then it can return master mode and inform information " I_am_in_active_mode "; Otherwise if be in standby mode, then it can return standby mode and inform information " I_am_in_standby_mode ".If second administrative unit, the 22 passback master mode of neighborhood end are informed information " I_am_in_active_mode ", then this neighborhood end operator scheme inspection module 120 is promptly responsively sent the standby mode enable information and is given this local side operator scheme setting module 140; Otherwise, if receiving second administrative unit, the 22 passback master mode of neighborhood end, first administrative unit 21 of local side do not inform information " I_am_in_active_mode ", then enable this random number timing module 130 immediately.
Random number timing module 130 checks that by above-mentioned neighborhood end operator scheme module 120 is enabled to produce random number timing numerical value, and carries out timing program according to this random number timing numerical value.In this timing course, neighborhood end operator scheme checks that module 120 will continue to detect second administrative unit 22 and whether return master mode and inform information " I_am_in_active_mode "; If then it will send the standby mode enable information to this local side operator scheme setting module 140.Otherwise, when timing finishes, inform information " I_am_in_active_mode " as if the master mode that second administrative unit 22 that does not receive the neighborhood end is yet returned, then it will send the master mode enable information to this local side operator scheme setting module 140.
Local side operator scheme setting module 140 can respond above-mentioned neighborhood end initiate mode detection module 110, neighborhood end operator scheme and check module 120 or master mode enable information that random number timing module 130 sent or standby mode enable information and send first administrative unit 21 that corresponding operator scheme set information 202 is given local side, therefrom this first administrative unit 21 is set to corresponding operator scheme; Also promptly respond the master mode enable information and the operator scheme of this first administrative unit 21 is set at master mode, otherwise then respond the standby mode enable information and be set at standby mode.
Mode of operation of the present invention
Below promptly utilize application example and cooperate Fig. 3 that the mode of operation of computer platform management unit operation mode intercede disposal system 100 of the present invention when practical application is described.
In this application example, suppose that computer platform management unit operation mode intercede disposal system 100 of the present invention is loaded on first administrative unit 21, be used to make second administrative unit 22 of first administrative unit 21 and its neighborhood to arbitrate communication between the two and set the operator scheme of itself afterwards.The processing action flow chart (activity diagram) of Fig. 3 for drawing according to unified modeling language UML (Unified Modeling Language) standard is used to show that performed each of computer platform management unit operation mode intercede disposal system of the present invention 100 handle action.
Please consult Fig. 1 to Fig. 3 simultaneously, when practical application, when this blade server 10 is activated and carries out initialize routine (when startup incident 201 takes place), it can make neighborhood end initiate mode detection module 110 responsively carry out processing action S1 shown in Figure 3, makes this first administrative unit 21 detect the initiate mode of this second administrative unit 22 by this NIC network interface 30.If the initiate mode of second administrative unit 22 is false (EM2_PRESENT=0), then neighborhood end initiate mode detection module 110 responsively makes local side operator scheme setting module 140 send corresponding operator scheme set information 202 to first administrative units 21, make first administrative unit 21 responsively carry out processing action P1 shown in Figure 3, therefrom first administrative unit 21 is set at master mode, and finishes this arbitration process program.
Otherwise, if the initiate mode of second administrative unit 22 of neighborhood end is true (EM2_PRESENT=1), then neighborhood end initiate mode detection module 110 responsively makes neighborhood end operator scheme check processing action S2 and S3 that module 120 execution are shown in Figure 3, also promptly send operator scheme inspection requirements information Status_Check, and this operator scheme inspection requirements information Status_Check is sent to this second administrative unit 22 by this NIC network interface 30, inform information so as to requiring these second administrative unit, 22 back delivery operations patterns.If second administrative unit 22 is in master mode, then it can responsively return master mode and inform information " I_am_in_active_mode ".If neighborhood end operator scheme checks that module 120 receives this information, then it promptly responsively makes local side operator scheme setting module 140 send corresponding operator scheme set information 202 to first administrative units 21, make first administrative unit 21 responsively carry out processing action P2 shown in Figure 3, therefrom first administrative unit 21 is set at standby mode, and finishes this arbitration process program.
Otherwise, if neighborhood end operator scheme checks that module 120 does not receive the master mode that second administrative unit 22 returned and informs information " I_am_in_active_mode ", then it responsively makes random number timing module 130 carry out processing action S4 shown in Figure 3, so as to producing random number timing numerical value, and carry out timing program according to this random number timing numerical value.In this timing course S5, if timing does not finish as yet, then neighborhood end operator scheme checks that module 120 will continue to carry out processing action S6 shown in Figure 3, whether returns master mode and informs information " I_am_in_active_mode " so as to detecting second administrative unit 22; If, then it will responsively make local side operator scheme setting module 140 send corresponding operator scheme set information 202 to first administrative units 21, make this first administrative unit 21 carry out processing action P2 shown in Figure 3, therefrom this first administrative unit 21 is set at standby mode, and finishes this arbitration process program.
Otherwise when timing finishes, if neighborhood end operator scheme checks that module 120 does not receive the master mode that second administrative unit 22 of neighborhood end returned yet and informs information " I_am_in_active_mode ", then it will responsively make local side operator scheme setting module 140 carry out processing action S7 and S8 shown in Figure 3; Also promptly in S7 at first, send master mode and inform that information " I_am_in_active_mode " is to second administrative unit 22; And then in S8, check whether to have and receive that the pattern that has that second administrative unit 22 is returned informs information " I_am_in_standby_mode "; If do not have, then continue to carry out S8.Otherwise, if second administrative unit, 22 passbacks " I_am_in_standby_mode " of neighborhood end, then make local side operator scheme setting module 140 send corresponding operator scheme set information 202 to first administrative units 21, make first administrative unit 21 responsively carry out processing action P1 shown in Figure 3, therefrom first administrative unit 21 is set at master mode, and finishes this arbitration process program.
Generally speaking, the invention provides a kind of computer platform management unit operation mode intercede processing method and system, it can be applicable to the blade server operator scheme arbitration process function is provided; And its characteristics are to adopt existing network interface (being NIC) to be used as the channel of arbitration process information, and and then adopt the random number timing mode to set the stand-by period, to allow the administrative unit of local side finish and the administrative unit of not receiving its neighborhood end is yet replied operator scheme when informing information, just set up on their own to be master mode in these times for the treatment of; Otherwise just looking the present operator scheme of neighborhood end administrative unit sets.These characteristics can reduce the system complexity of operator scheme arbitration process mechanism, make it on concrete enforcement, have better cost benefit, and because computer platform management unit operation mode intercede processing method of the present invention and system of system carry out the setting of main control end by the random number timing mode, so can effectively avoid causing computer platform in the setting of main control end, to clash because of sending the master mode information of informing simultaneously between the administrative unit both sides of the administrative unit of local side and neighborhood end, therefore can more successfully finish the setting work of main control end.Therefore the present invention has better progressive and practicality than background technology.
The above is preferred embodiment of the present invention only, is not the scope that is used to limit essence technology contents of the present invention.Essence technology contents of the present invention broadly is defined in the following claim.If any technology entity that other people are finished or method and following claim are defined identical or be a kind of change of equivalence, all will be regarded as being encompassed among the claim of the present invention.