CN103795553A - Switching of main and standby servers on the basis of monitoring - Google Patents
Switching of main and standby servers on the basis of monitoring Download PDFInfo
- Publication number
- CN103795553A CN103795553A CN201210420098.7A CN201210420098A CN103795553A CN 103795553 A CN103795553 A CN 103795553A CN 201210420098 A CN201210420098 A CN 201210420098A CN 103795553 A CN103795553 A CN 103795553A
- Authority
- CN
- China
- Prior art keywords
- server
- state
- time interval
- standby
- status
- 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
Images
Landscapes
- Hardware Redundancy (AREA)
Abstract
The invention provides a monitoring method which monitors connection state of an application server and a main server and a standby server, database service state of the main and standby servers and respective resource use state of the main and standby servers. Monitoring results are processed in a centralized way, and automatic switching is performed according to the monitoring results and switching strategies. The invention also provides a corresponding monitoring system. The invention also provides a method for switching between the main server and the standby server on the basis of the monitoring method, and a corresponding system.
Description
Technical field
The present invention relates to Server switching technology, relate in particular to the technology that the connection status based on application server and active and standby server is switched.
Background technology
Consider the available and reliability of application and the height of database, general IT system framework is to apply and database divides and is located on different servers.For application, the standing multiple servers of putting, to process request and the related service to various application, can be described as application server for the server of each application.To database, at least two-server can be set conventionally and form active-standby mode.
Under normal circumstances, application server is communicated by letter with main database server, obtains needed data and information from master data base.In the situation that database master server is abnormal, database is taken in time for server, and each application of application server is connected to this for server, thereby recovers or continuation Business Processing.
Usually, in IT system, can adopt high available commercial product, as the AIX HACMP of IBM, DB2 HADR, Oracle RAC etc. has realized the switching between active/standby server.In order to realize switching, the way of this scheme is to carry out heartbeat detection between database master server and standby server, once heartbeat detection finds that master server is abnormal, starts and switches immediately.
Although this scheme is restore database service in time, have the following disadvantages:
[006] 1. Rule of judgment is single, easily causes mistake switching or can not switch in time.The heartbeat detection adopting in this scheme or health detection, for this testing mechanism, if arranging of its Rule of judgment is comparatively responsive, easily cause mistake switching, if setting is too blunt, can not switch in time.For example between active/standby server, network disconnecting causes heartbeat message to be lost, and just can make standby server think that master server switches extremely, but now in fact still normally operation of master server is switched and can be caused on the contrary service exception; For another example, if master server in a critical condition, database service is abnormal, but master server is still can ping logical, heartbeat signal is normal, at this moment backup server can not automatically switch again; Further, occur when abnormal in database master server resource service condition, as bottleneck appears in CPU or I/O, backup server cannot obtain abnormal information, also just cannot extremely switch for this;
2. after switching, application server needs to reconnect to standby server by platform by hand, and service recovery time is long.After database server is realized and being automatically switched, application cannot know, cannot Auto-reconnect, at this moment often need to apply and restart or reconnect by platform by hand, greatly extended the time of business recovery;
3. switching judging is insufficient, even if handover mechanism starts, also cannot guarantee handover success realization.Before backup server switches, cannot judge whether current backup server has the condition that realizes business recovery, while being attached to standby server as database, whether normally move, whether standby server system resource can meet service operation etc.
Summary of the invention
The invention provides a kind of method for supervising, it is used in application server, master server and the standby system of server that comprising communicates with one another connects, and described method comprises:
A), every very first time interval, obtain the connection status of described application server and described master server;
B), every second time interval, obtain the connection status of described application server and described standby server;
C), every the 3rd time interval, obtain the service state of the database that is arranged on described master server;
D), every the 4th time interval, obtain the service state of the database that is arranged on described standby server;
E), every the 5th time interval, obtain the resource using status of described master server;
F), every the 6th time interval, obtain the resource using status of described standby server; And
G) each state that storage was obtained according to very first time interval, second time interval, the 3rd time interval, the 4th time interval, the 5th time interval and the 6th time interval.
Preferably, described method for supervising also comprises accesses each state of storing in step g) according to the default time interval, and:
In the case of the state obtaining according to very first time interval show described application server and described master server malunion normal, send alarm signal;
In the case of the state obtaining according to second time interval show described application server and described standby server malunion normal, send alarm signal;
In the bright abnormal situation of database service that is arranged on described master server of the state table obtaining according to the 3rd time interval, send alarm signal;
Be arranged in the described standby abnormal situation of database service of server the state table obtaining according to the 4th time interval is bright, send alarm signal.
Preferably, described method for supervising also comprises that access is in the time that step g) is stored each state, judges that whether each state upgrades according to the corresponding time interval, if do not had, sends alarm signal.
Preferably, in described method for supervising, the resource using status of described master server at least comprises that its CPU uses state, input/output interface to use state, memory to use state; The resource using status of described standby server at least comprises that its CPU uses state, input/output interface to use state, memory to use state.
Preferably, in described method for supervising, each state of described step g) storage is to be stored in described standby server.
The present invention also provides a kind of method of switching between master server and standby server, and it is used in application server, master server and the standby system of server that comprising communicates with one another connects, and described method comprises:
A), every very first time interval, obtain the connection status of described application server and described master server;
B), every second time interval, obtain the connection status of described application server and described standby server;
C), every the 3rd time interval, obtain the service state of the database that is arranged on described master server;
D), every the 4th time interval, obtain the service state of the database that is arranged on described standby server;
E), every the 5th time interval, obtain the resource using status of described master server;
F), every the 6th time interval, obtain the resource using status of described standby server;
G) each state that storage was obtained according to very first time interval, second time interval, the 3rd time interval, the 4th time interval, the 5th time interval and the 6th time interval;
K) based on described each state, switching state indication is set, need to be switched to standby server or noly be switched to standby server from master server from master server whether showing.
Preferably, in this changing method, also comprise switching state table is set, switch, switch completed state to show to start.
The present invention also provides a kind of supervisory control system, it is used in and comprises the application server that communicates with one another and connect, in master server and the standby system of server, wherein, described supervisory control system comprises first detection module, it is configured to every very first time interval, obtain the connection status of described application server and described master server, every second time interval, obtain the connection status of described application server and described standby server, every the 3rd time interval, obtain the service state of the database that is arranged on described master server, every the 4th time interval, obtain the service state of the database that is arranged on described standby server, the second detection module, it is configured to, every the 5th time interval, obtain the resource using status of described master server, the 3rd detection module, it was configured to every the 6th time interval, obtained the resource using status of described standby server, and memory module, it is configured to store each state that described first detection module, the second detection module and the 3rd detection module obtain.
The present invention also provides a kind of system of switching between master server and standby server, it is used in and comprises the application server that communicates with one another and connect, in master server and the standby system of server, it is characterized in that, the described system of switching comprises first detection module, it is configured to every very first time interval, obtain the connection status of described application server and described master server, every second time interval, obtain the connection status of described application server and described standby server, every the 3rd time interval, obtain the service state of the database that is arranged on described master server, every the 4th time interval, obtain the service state of the database that is arranged on described standby server, the second detection module, it is configured to, every the 5th time interval, obtain the resource using status of described master server, the 3rd detection module, it was configured to every the 6th time interval, obtained the resource using status of described standby server, memory module, it is configured to store each state that described first detection module, the second detection module and the 3rd detection module obtain, and switching controls module, whether it is configured to based on described each state, and switching state indication is set, need to be switched to standby server or noly be switched to standby server from master server from master server showing.
Carry out method of the present invention or adopt system of the present invention, can judge fully relevant switching state, effectively reduced the risk that mistake is switched.
Accompanying drawing explanation
Fig. 1 is the flow chart of method for supervising according to an embodiment of the invention.
Fig. 2 is the structural representation of supervisory control system according to an embodiment of the invention.
Embodiment
Describe schematic example of the present invention referring now to accompanying drawing, identical drawing reference numeral represents identical element.Each embodiment described below contributes to those skilled in the art thoroughly to understand the present invention, and is intended to example and unrestricted.Unless otherwise defined, the term (comprising Science and Technology term) using in literary composition has the identical implication of implication of generally understanding with those skilled in the art in the invention.
Fig. 1 is the flow chart of method for supervising according to an embodiment of the invention.The method is applied in and comprises in application server, database master server (for simplicity, hereinafter referred to as master server), the database system for server (for simplicity, hereinafter referred to as standby server).In this system, application server and master server communication connection also can communicate to connect standby server after handover operation.
According to the method shown in Fig. 1, in step 100, every very first time interval, obtain the connection status of application server and master server.Illustratively, connection status comprises that application server is communicated with master server or non-connection.For the judgement whether being communicated with, can by application server, carry out ping or telnet etc. in order to judge two computers whether together with instruction carry out.
In step 102, every second time interval, obtain the connection status of application server and standby server.Illustratively, connection status comprises that application server is communicated with or non-connection with standby server.For the judgement whether being communicated with, can by application server, carry out ping or telnet etc. in order to judge two computers whether together with instruction carry out.
In step 104, every the 3rd time interval, obtain the service state of the database that is arranged on master server.Illustratively, service state comprises whether database can normally connect, selected and upgrade, if this wherein one go wrong, show that database is undesired.For whether judgement normally of primary server database, can by application server, carry out for connection data storehouse, select database or more the instruction of new database reach.
In step 106, every the 4th time interval, obtain the service state of the database that is arranged on standby server.Illustratively, service state comprises whether database can normally connect, selected and upgrade, if this wherein one go wrong, show that database is undesired.For the whether normally judgement of standby server database, can by application server, carry out for connection data storehouse, select database or more the instruction of new database reach.
In step 108, every the 5th time interval, obtain the resource using status of master server.At this, resource using status comprises the use state of CPU, use state, the internal memory use state etc. of input/output end port.
In step 110, every the 6th time interval, obtain the resource using status of standby server.Resource using status comprises the use state of CPU, use state, the internal memory use state etc. of input/output end port.
In step 112, each state that storage was obtained according to very first time interval, second time interval, the 3rd time interval, the 4th time interval, the 5th time interval and the 6th time interval.The above-mentioned each state obtaining in step 100 to 110 is for example stored in a peripheral hardware storage device with the state of monitor database or is arranged in standby server.For any one state in above-mentioned state, if it is normal, can be corresponding its state value be set to 0, be extremely set to 1.
Further, the method shown in Fig. 1 can also comprise according to the default time interval, and whether each state that access is stored in step 112 is normal to detect the detection that its each state is corresponding.Particularly, in access, if find that the state that obtains according to very first time interval shows that application server and master server malunion are normal, transmission alarm signal; If find to show that according to the state that second time interval obtained application server is normal with standby server malunion, send alarm signal; If find that the bright database service that is arranged on master server of the state table obtaining according to the 3rd time interval is undesired, send alarm signal; If find that the bright database service that is arranged on described standby server of the state table obtaining according to the 4th time interval is undesired, send alarm signal.In the situation that above-mentioned each state is stored as monitor database, only need to access this monitor database to obtain state information, wherein, state information is according to normally whether being set to 0 or 1.In all examples of the present invention, represent that with 0 state is normal, represent abnormal state with 1, but not as limit.
In addition,, when the method shown in Fig. 1 also can be included in each state of storing according to default time interval accessing step 112, also detect each state and whether upgrade according to the update cycle.For the update cycle of each state, generally identical with the time interval that checks each state.Such as, the connection status of application server and master server, its update cycle is generally very first time interval, the connection status of application server and standby server, its update cycle was generally for second time interval, the like.
In all examples of the present invention, very first time interval, second time interval, the 3rd interval, the 4th time interval, the 5th time interval and the 6th time interval, can be identical, also can be different.
Monitor according to the method shown in Fig. 1, can be termly the situation that is communicated with between application server and master server, standby server be monitored, also can monitor the resource service condition of the access situation of database and active and standby server, obtain and comparatively comprehensively judge information thus, can understand as early as possible above-mentioned situation for user.
Each state in above-mentioned monitor database can be used as the judgement basis whether switching.
It will be appreciated by those skilled in the art that, application server generally comprises many, so shown in Fig. 1 in method, the state that relates to application server is the state for each application server.
If application server more than all application servers or 50 percent, it is abnormal with the connection status performance of master server separately, simultaneously standby server connection status is normal, normal, the standby server resource of backup database state uses state normal, can switch.
If application server more than all application servers or 50 percent, it is normal with the connection status performance of master server separately, but to the access exception of database, simultaneously standby server connection status is normal, normal, the standby server resource of backup database state uses state normal, can switch.
If master server resource is used abnormal, simultaneously standby server connection status is normal, normal, the standby server resource of backup database state uses state normal, can switch.
Be appreciated that, except the abnormal conditions that above relate to, under other abnormal conditions, can not switch.All exist extremely cannot switch in the situation that at master server and standby server, can report to the police so that manual intervention.
Further, switching state mark can be set, as this is designated 1, show to switch immediately, show to switch as this is designated 2.
In addition, a switching state table can be set, for depositing the mark that whether needs switching.This mark is used for starting standby server and automatically switches, simultaneously also for notifying application server to reconnect and whether definite application server successfully reconnects.Table 1 is the switching mark arranging for each application server, and wherein, 0 shows normally, without switching; 1 shows extremely, needs to switch; 2 represent successful switch.This switching state table can be arranged on monitor database mentioned above.
Table 1
Server | Switch flag |
Application server 1 | 0 or 1 or 2 |
Application server 2 | 0 or 1 or 2 |
…… | 0 or 1 or 2 |
Application server n | 0 or 1 or 2 |
Database is for server | 0 or 1 or 2 |
Meet switching condition if standby server determines, immediately switching state is set to 1, as shown in table 2.
Table 2
Server | Switch flag |
Application server 1 | 1 |
Application server 2 | 1 |
…… | 1 |
Application server n | 1 |
Database is for server | 1 |
For the reliability of further guaranteeing to switch, application server, switches be checked through switching state and be denoted as 1 in the situation that double.
If standby server judges that corresponding switching mark is set to and shows to take over immediately 1 of database service, start and automatically switch immediately, complete drift and the adapter of IP address, storage, complete the adapter of database service, after implementation success, will switch home position is 2.If handoff failure, reports to the police immediately.
For each application server, if standby Server switching flag has been set to 2, corresponding application server automatic switchover flag is 1 simultaneously, shows successful switch on backup server of database service.So, this application server need start switching immediately, and application is reconnected to database for server.After automatically switching successfully, be 2 by corresponding home position, show that this application server realizing automatically switches.If handoff failure, reports to the police immediately.
For the reliability of further guaranteeing to switch, application server, switches be checked through switching state and be denoted as 1 in the situation that double.
In addition, alternately, also can whether be switched according to switching state mark notice application server by standby server, and whether switch.
And routine techniques only judges compared with the connection between active and standby server by heartbeat detection, the present invention has judged the connected state of application server and active and standby server, be arranged on the service state of the database of active and standby server, and the resource service condition of active and standby server.Such judgement makes to switch carry out more reliable, there will not be problem as described in background technology part.
Fig. 2 is according to the structural representation of the supervisory control system of an example of the present invention.As shown in Figure 2, this supervisory control system is used in application server, master server and the standby system of server that comprising communicates with one another connects.These supervisory control system first detection module 20, the second detection module 22, the three detection modules 24 and memory modules 26.Each detection module 20,22 and 24 is electrically connected with memory module 26 respectively.Alternatively, this supervisory control system also comprises alarm module 28, it is electrically connected with memory module 26, and be configured to detect according to the default time interval each state that described memory module is stored, and the service state of obtaining at described first detection module shows in abnormal situation, send alarm signal.Whether alarm module 28 is further configured to each state of judging in memory module 26 and upgrades according to the corresponding time interval, if do not had, sends alarm signal.
First detection module 20 can be arranged in application server.First detection module 20, every very first time interval, obtains the connection status of application server and master server.Illustratively, connection status comprises that application server is communicated with master server or non-connection.For the judgement whether being communicated with, can by application server, carry out ping or telnet etc. in order to judge two computers whether together with instruction carry out.First detection module 20, every second time interval, obtains the connection status of application server and standby server.Illustratively, connection status comprises that application server is communicated with or non-connection with standby server.For the judgement whether being communicated with, can by application server, carry out ping or telnet etc. in order to judge two computers whether together with instruction carry out.First detection module 20, every the 3rd time interval, obtains the service state of the database that is arranged on master server.Illustratively, service state comprises whether database can normally connect, selected and upgrade, if this wherein one go wrong, show that database is undesired.For whether judgement normally of primary server database, can by application server, carry out for connection data storehouse, select database or more the instruction of new database reach.First detection module 20, every the 4th time interval, obtains the service state of the database that is arranged on standby server.Illustratively, service state comprises whether database can normally connect, selected and upgrade, if this wherein one go wrong, show that database is undesired.For the whether normally judgement of standby server database, can by application server, carry out for connection data storehouse, select database or more the instruction of new database reach.
The second detection module 22 can be arranged on master server.The second detection module 22, every the 5th time interval, obtains the resource using status of master server.At this, resource using status comprises the use state of CPU, use state, the internal memory use state etc. of input/output end port.
The 3rd detection module 24, every the 6th time interval, obtains the resource using status of standby server.Resource using status comprises the use state of CPU, use state, the internal memory use state etc. of input/output end port.
In memory module 26, deposit the state that each detection module 20,22 and 24 obtains, and these states be stored as to monitor database, any one state in these states, if it is normal, can be corresponding its state value be set to 0, be extremely set to 1.This memory module is preferably arranged on standby server, is also arranged on a peripheral hardware storage device.
Whether alarm module 28, according to the default time interval, is accessed each state of storing in memory module 26, normal to judge the detection that its each state is corresponding.Particularly, if alarm module 28 find the state obtaining according to very first time interval show application server and master server malunion normal, send alarm signal; If find to show that according to the state that second time interval obtained application server is normal with standby server malunion, send alarm signal; If find that the bright database service that is arranged on master server of the state table obtaining according to the 3rd time interval is undesired, send alarm signal; If find that the bright database service that is arranged on described standby server of the state table obtaining according to the 4th time interval is undesired, send alarm signal.In the situation that above-mentioned each state is stored as monitor database, 28 needs of alarm module are inquired about this monitor database to obtain state information, and wherein, each state information is according to normally whether being set to 0 or 1.In all examples of the present invention, represent that with 0 state is normal, represent abnormal state with 1, but not as limit.Alarm module is in the situation that finding that there is detected state and being 1, thereby knowing that the state of detection of its sign is undesired can send alarm signal.
In addition,, when each state that alarm module is also configured to store in the time interval inquiry memory module 26 according to default, also detect each state and whether upgrade according to the update cycle.For the update cycle of each state, generally identical with the time interval that checks each state.Such as, the connection status of application server and master server, its update cycle is generally very first time interval, the connection status of application server and standby server, its update cycle was generally for second time interval, the like.
System shown in Fig. 2, can be termly the situation that is communicated with between application server and master server, standby server be monitored, also can monitor the resource service condition of the access situation of database and active and standby server, obtain and comparatively comprehensively judge information thus, can understand as early as possible above-mentioned situation for user.
Each state in monitor database in system shown in Figure 2 can be used as the judgement basis whether switching.Application server generally comprises many, so in system shown in Figure 2, the state that relates to application server is the state for each application server.
The present invention also provides a kind of system of switching between master server and standby server, it is used in application server, master server and the standby system of server that comprising communicates with one another connects, and this system of switching comprises in conjunction with the supervisory control system shown in Fig. 1 and switching controls module.Whether switching controls module is configured to based on described each state, and switching state indication is set, need to be switched to standby server or noly be switched to standby server from master server from master server showing.
The application server of switching controls module more than all application servers or 50 percent, it is abnormal with the connection status performance of master server separately, simultaneously standby server connection status is normal, normal, the standby server resource of backup database state uses in the normal situation of state, and switching state indication is set.
The application server of switching controls module more than all application servers or 50 percent, it is normal with the connection status performance of master server separately, but to the access exception of database, simultaneously standby server connection status is normal, normal, the standby server resource of backup database state uses in the normal situation of state, and switching state indication is set.
Switching controls module is used abnormal in master server resource, simultaneously standby server connection status is normal, normal, the standby server resource of backup database state uses in the normal situation of state, and switching state indication is set.
According to an example of the present invention, application server detects this switching state indication and switches according to it.
Be appreciated that, except the abnormal conditions that relate to, under other abnormal conditions, switching state indication can be set above.All exist extremely cannot switch in the situation that at master server and standby server, can report to the police so that manual intervention.
In addition, in the monitor database of storing in memory module 24, switching state mark discussed above and switching state table can also be set, because of this, both elaborated hereinbefore, did not just repeat at this.
Claims (19)
1. a method for supervising, it is used in application server, master server and the standby system of server that comprising communicates with one another connects, and it is characterized in that, and described method comprises:
A), every very first time interval, obtain the connection status of described application server and described master server;
B), every second time interval, obtain the connection status of described application server and described standby server;
C), every the 3rd time interval, obtain the service state of the database that is arranged on described master server;
D), every the 4th time interval, obtain the service state of the database that is arranged on described standby server;
E), every the 5th time interval, obtain the resource using status of described master server;
F), every the 6th time interval, obtain the resource using status of described standby server; And
G) each state that storage was obtained according to very first time interval, second time interval, the 3rd time interval, the 4th time interval, the 5th time interval and the 6th time interval.
2. method for supervising as claimed in claim 1, is characterized in that, also comprise and access each state of storing in step g) according to the default time interval, and:
In the case of the state obtaining according to very first time interval show described application server and described master server malunion normal, send alarm signal;
In the case of the state obtaining according to second time interval show described application server and described standby server malunion normal, send alarm signal;
In the bright abnormal situation of database service that is arranged on described master server of the state table obtaining according to the 3rd time interval, send alarm signal;
Be arranged in the described standby abnormal situation of database service of server the state table obtaining according to the 4th time interval is bright, send alarm signal.
3. method for supervising as claimed in claim 2, is characterized in that, also comprises that access is in the time that step g) is stored each state, judges that whether each state upgrades according to the corresponding time interval, if do not had, sends alarm signal.
4. the method for supervising as described in claim 1 to 3 kind of any one, is characterized in that, the resource using status of described master server at least comprises that its CPU uses state, input/output interface to use state, memory to use state; The resource using status of described standby server at least comprises that its CPU uses state, input/output interface to use state, memory to use state.
5. the method for supervising as described in claim 1 to 3 kind of any one, is characterized in that, each state of described step g) storage is to be stored in described standby database server.
6. a method of switching between master server and standby server, it is used in application server, master server and the standby system of server that comprising communicates with one another connects, and it is characterized in that, and described method comprises:
A), every very first time interval, obtain the connection status of described application server and described master server;
B), every second time interval, obtain the connection status of described application server and described standby server;
C), every the 3rd time interval, obtain the service state of the database that is arranged on described master server;
D), every the 4th time interval, obtain the service state of the database that is arranged on described standby server;
E), every the 5th time interval, obtain the resource using status of described master server;
F), every the 6th time interval, obtain the resource using status of described standby server;
G) each state that storage was obtained according to very first time interval, second time interval, the 3rd time interval, the 4th time interval, the 5th time interval and the 6th time interval;
K) based on described each state, switching state indication is set, need to be switched to standby server or noly be switched to standby server from master server from master server whether showing.
7. method as claimed in claim 6, is characterized in that, also comprises switching state table is set, and switches, switches completed state to show to start.
8. method as claimed in claim 6, is characterized in that, also comprise and access each state of storing in step g) according to the default time interval, and:
In the case of the state obtaining according to very first time interval show described application server and described master server malunion normal, send alarm signal;
In the case of the state obtaining according to second time interval show described application server and described standby server malunion normal, send alarm signal;
In the bright abnormal situation of database service that is arranged on described master server of the state table obtaining according to the 3rd time interval, send alarm signal;
Be arranged in the described standby abnormal situation of database service of server the state table obtaining according to the 4th time interval is bright, send alarm signal.
9. method as claimed in claim 8, is characterized in that, also comprises that access is in the time that step g) is stored each state, judges that whether each state upgrades according to the corresponding time interval, if do not had, sends alarm signal.
10. the method as described in claim 1 to 9 kind of any one, is characterized in that the resource using status of described master server at least comprises that its CPU uses state, input/output interface to use state, memory to use state; The resource using status of described standby server at least comprises that its CPU uses state, input/output interface to use state, memory to use state.
11. 1 kinds of supervisory control systems, it is used in application server, master server and the standby system of server that comprising communicates with one another connects, and it is characterized in that, and described supervisory control system comprises:
First detection module, it is configured to every very first time interval, obtain the connection status of described application server and described master server, every second time interval, obtain the connection status of described application server and described standby server, every the 3rd time interval, obtain the service state of the database that is arranged on described master server, every the 4th time interval, obtain the service state of the database that is arranged on described standby server;
The second detection module, it is configured to, every the 5th time interval, obtain the resource using status of described master server;
The 3rd detection module, it was configured to every the 6th time interval, obtained the resource using status of described standby server; And
Memory module, it is configured to store each state that described first detection module, the second detection module and the 3rd detection module obtain.
12. supervisory control systems as claimed in claim 11, it is characterized in that, described supervisory control system also comprises alarm module, it is configured to detect according to the default time interval each state that described memory module is stored, and the service state of obtaining at described first detection module shows in abnormal situation, send alarm signal.
13. supervisory control systems as claimed in claim 12, is characterized in that, whether described alarm module is further configured to each state of judging in described memory module and upgrades according to the corresponding time interval, if do not had, sends alarm signal.
14. supervisory control systems as described in any one in claim 11 to 13, is characterized in that, the resource using status of described master server at least comprises that its CPU uses state, input/output interface to use state, memory to use state; The resource using status of described standby server at least comprises that its CPU uses state, input/output interface to use state, memory to use state.
15. 1 kinds of systems of switching between master server and standby server, it is used in application server, master server and the standby system of server that comprising communicates with one another connects, it is characterized in that, described in the system switched comprise:
First detection module, it is configured to every very first time interval, obtain the connection status of described application server and described master server, every second time interval, obtain the connection status of described application server and described standby server, every the 3rd time interval, obtain the service state of the database that is arranged on described master server, every the 4th time interval, obtain the service state of the database that is arranged on described standby server;
The second detection module, it is configured to, every the 5th time interval, obtain the resource using status of described master server;
The 3rd detection module, it was configured to every the 6th time interval, obtained the resource using status of described standby server;
Memory module, it is configured to store each state that described first detection module, the second detection module and the 3rd detection module obtain; And
Switching controls module, whether it is configured to based on described each state, and switching state indication is set, need to be switched to standby server or noly be switched to standby server from master server from master server showing.
16. methods as claimed in claim 15, is characterized in that, described switching controls module is further configured to arrange switching state table, switch, switch completed state to show to start.
17. supervisory control systems as claimed in claim 16, it is characterized in that, described supervisory control system also comprises alarm module, it is configured to detect according to the default time interval each state that described memory module is stored, and the service state of obtaining at described first detection module shows in abnormal situation, send alarm signal.
18. supervisory control systems as claimed in claim 17, is characterized in that, whether described alarm module is further configured to each state of judging in described memory module and upgrades according to the corresponding time interval, if do not had, sends alarm signal.
19. supervisory control systems as described in any one in claim 15 to 18, is characterized in that, the resource using status of described master server at least comprises that its CPU uses state, input/output interface to use state, memory to use state; The resource using status of described standby server at least comprises that its CPU uses state, input/output interface to use state, memory to use state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210420098.7A CN103795553B (en) | 2012-10-29 | 2012-10-29 | Active and standby server switching based on monitoring |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210420098.7A CN103795553B (en) | 2012-10-29 | 2012-10-29 | Active and standby server switching based on monitoring |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103795553A true CN103795553A (en) | 2014-05-14 |
CN103795553B CN103795553B (en) | 2017-06-06 |
Family
ID=50670879
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210420098.7A Active CN103795553B (en) | 2012-10-29 | 2012-10-29 | Active and standby server switching based on monitoring |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103795553B (en) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104361043A (en) * | 2014-10-29 | 2015-02-18 | 中国建设银行股份有限公司 | Database switching method and database switching system |
CN104468242A (en) * | 2014-12-29 | 2015-03-25 | 同方威视技术股份有限公司 | Automatic switching method and system |
CN104597814A (en) * | 2014-12-24 | 2015-05-06 | 重庆川仪自动化股份有限公司 | High-stability control system redundancy system and method |
CN105530120A (en) * | 2015-12-01 | 2016-04-27 | 中国建设银行股份有限公司 | Service processing method, controller and service processing system |
CN106557543A (en) * | 2016-10-14 | 2017-04-05 | 深圳前海微众银行股份有限公司 | Node switching method and system |
CN106789246A (en) * | 2016-12-22 | 2017-05-31 | 广西防城港核电有限公司 | The changing method and device of a kind of active/standby server |
CN107066354A (en) * | 2017-04-18 | 2017-08-18 | 中国银联股份有限公司 | A kind of switching method of database, master server and from server |
CN107465560A (en) * | 2017-09-20 | 2017-12-12 | 郑州云海信息技术有限公司 | A kind of distributed meta data collection group alerting system and method |
WO2019091062A1 (en) * | 2017-11-10 | 2019-05-16 | 北京全路通信信号研究设计院集团有限公司 | Method and device for switching between master and standby operation display machines, and computer storage medium |
CN110489397A (en) * | 2019-08-09 | 2019-11-22 | 上海富欣智能交通控制有限公司 | Date storage method, apparatus and system |
CN110532278A (en) * | 2019-10-30 | 2019-12-03 | 上海爱可生信息技术股份有限公司 | The MySQL database system high availability method of statement formula |
CN110855526A (en) * | 2019-11-20 | 2020-02-28 | 北京百分点信息科技有限公司 | Method and device for detecting data source connection, storage medium and electronic equipment |
CN111427728A (en) * | 2019-12-31 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | State management method, main/standby switching method and electronic equipment |
CN113760591A (en) * | 2021-07-28 | 2021-12-07 | 北京思特奇信息技术股份有限公司 | Method and system for bill emergency query |
CN114338688A (en) * | 2021-12-28 | 2022-04-12 | 中国农业银行股份有限公司 | Data management method and device |
CN114650283A (en) * | 2020-12-21 | 2022-06-21 | 京东科技控股股份有限公司 | Method and device for dynamically switching cloud storage service, electronic equipment and storage medium |
CN114978871A (en) * | 2022-04-08 | 2022-08-30 | 北京航天飞行控制中心 | Node switching method and node switching device of service system and electronic equipment |
CN115987760A (en) * | 2022-12-16 | 2023-04-18 | 深圳市康必达控制技术有限公司 | Service process daemon method under dual-machine mode and dual-machine service system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101119187B (en) * | 2007-09-06 | 2010-05-19 | 上海可鲁系统软件有限公司 | Master-salve equipment switch control method |
CN101645800B (en) * | 2009-08-20 | 2011-09-21 | 中兴通讯股份有限公司 | Upgrading method and system of computer telecommunication integrated device |
-
2012
- 2012-10-29 CN CN201210420098.7A patent/CN103795553B/en active Active
Cited By (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104361043B (en) * | 2014-10-29 | 2019-06-07 | 中国建设银行股份有限公司 | Database switching method and database switching system |
CN104361043A (en) * | 2014-10-29 | 2015-02-18 | 中国建设银行股份有限公司 | Database switching method and database switching system |
CN104597814A (en) * | 2014-12-24 | 2015-05-06 | 重庆川仪自动化股份有限公司 | High-stability control system redundancy system and method |
CN104597814B (en) * | 2014-12-24 | 2017-10-24 | 重庆川仪自动化股份有限公司 | A kind of system and method for the control system redundancy of high stability |
CN104468242A (en) * | 2014-12-29 | 2015-03-25 | 同方威视技术股份有限公司 | Automatic switching method and system |
US10379976B2 (en) | 2014-12-29 | 2019-08-13 | Nuctech Company Limited | Automatic switching method and automatic switching system |
CN105530120A (en) * | 2015-12-01 | 2016-04-27 | 中国建设银行股份有限公司 | Service processing method, controller and service processing system |
CN106557543A (en) * | 2016-10-14 | 2017-04-05 | 深圳前海微众银行股份有限公司 | Node switching method and system |
CN106789246A (en) * | 2016-12-22 | 2017-05-31 | 广西防城港核电有限公司 | The changing method and device of a kind of active/standby server |
CN107066354A (en) * | 2017-04-18 | 2017-08-18 | 中国银联股份有限公司 | A kind of switching method of database, master server and from server |
WO2018192286A1 (en) * | 2017-04-18 | 2018-10-25 | 中国银联股份有限公司 | Database switching method, master server and slave server |
CN107066354B (en) * | 2017-04-18 | 2021-01-05 | 中国银联股份有限公司 | Database switching method, master server and slave server |
CN107465560A (en) * | 2017-09-20 | 2017-12-12 | 郑州云海信息技术有限公司 | A kind of distributed meta data collection group alerting system and method |
WO2019091062A1 (en) * | 2017-11-10 | 2019-05-16 | 北京全路通信信号研究设计院集团有限公司 | Method and device for switching between master and standby operation display machines, and computer storage medium |
CN110489397A (en) * | 2019-08-09 | 2019-11-22 | 上海富欣智能交通控制有限公司 | Date storage method, apparatus and system |
CN110532278A (en) * | 2019-10-30 | 2019-12-03 | 上海爱可生信息技术股份有限公司 | The MySQL database system high availability method of statement formula |
CN110532278B (en) * | 2019-10-30 | 2020-01-31 | 上海爱可生信息技术股份有限公司 | High availability method of declarative MySQL database system |
CN110855526A (en) * | 2019-11-20 | 2020-02-28 | 北京百分点信息科技有限公司 | Method and device for detecting data source connection, storage medium and electronic equipment |
CN111427728A (en) * | 2019-12-31 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | State management method, main/standby switching method and electronic equipment |
CN111427728B (en) * | 2019-12-31 | 2022-07-01 | 杭州海康威视数字技术股份有限公司 | State management method, main/standby switching method and electronic equipment |
US11892922B2 (en) | 2019-12-31 | 2024-02-06 | Hangzhou Hikvision Digital Technology Co., Ltd. | State management methods, methods for switching between master application server and backup application server, and electronic devices |
CN114650283A (en) * | 2020-12-21 | 2022-06-21 | 京东科技控股股份有限公司 | Method and device for dynamically switching cloud storage service, electronic equipment and storage medium |
CN113760591A (en) * | 2021-07-28 | 2021-12-07 | 北京思特奇信息技术股份有限公司 | Method and system for bill emergency query |
CN114338688A (en) * | 2021-12-28 | 2022-04-12 | 中国农业银行股份有限公司 | Data management method and device |
CN114338688B (en) * | 2021-12-28 | 2024-02-23 | 中国农业银行股份有限公司 | Data management method and device |
CN114978871A (en) * | 2022-04-08 | 2022-08-30 | 北京航天飞行控制中心 | Node switching method and node switching device of service system and electronic equipment |
CN114978871B (en) * | 2022-04-08 | 2023-10-24 | 北京航天飞行控制中心 | Node switching method and node switching device of service system and electronic equipment |
CN115987760A (en) * | 2022-12-16 | 2023-04-18 | 深圳市康必达控制技术有限公司 | Service process daemon method under dual-machine mode and dual-machine service system |
Also Published As
Publication number | Publication date |
---|---|
CN103795553B (en) | 2017-06-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103795553A (en) | Switching of main and standby servers on the basis of monitoring | |
US10560315B2 (en) | Method and device for processing failure in at least one distributed cluster, and system | |
CN109495312B (en) | Method and system for realizing high-availability cluster based on arbitration disk and double links | |
CN101582787B (en) | Double-computer backup system and backup method | |
US20070288585A1 (en) | Cluster system | |
WO2017177941A1 (en) | Active/standby database switching method and apparatus | |
CN106330475B (en) | Method and device for managing main and standby nodes in communication system and high-availability cluster | |
CN110830283B (en) | Fault detection method, device, equipment and system | |
CN103560922A (en) | Disaster recovery method and system | |
CN112181660A (en) | High-availability method based on server cluster | |
CN104717077B (en) | A kind of method, apparatus and system for managing data center | |
CN107276839B (en) | Self-monitoring method and system of cloud platform | |
CN102394914A (en) | Cluster brain-split processing method and device | |
CN107480014A (en) | A kind of High Availabitity equipment switching method and device | |
CN105430327A (en) | NVR cluster backup method and device | |
CN111385107A (en) | Main/standby switching processing method and device for server | |
CN103856357A (en) | Stack system fault processing method and stack system | |
CN105227385A (en) | A kind of method and system of troubleshooting | |
CN111581287A (en) | Control method, system and storage medium for database management | |
CN114553900B (en) | Distributed block storage management system, method and electronic equipment | |
CN113162797B (en) | Method, system and medium for switching master node fault of distributed cluster | |
CN111026585A (en) | Storage server hot standby switching method in recording and broadcasting system | |
CN111865659B (en) | Main and standby controller switching method and device, controller and network equipment | |
US20120239988A1 (en) | Computing unit, method of managing computing unit, and computing unit management program | |
CN103299584A (en) | Method for optimizing network performance after a temporary loss of connection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |