CN102523127A - Master server and slave server switching method and system utilizing same - Google Patents
Master server and slave server switching method and system utilizing same Download PDFInfo
- Publication number
- CN102523127A CN102523127A CN2011104569770A CN201110456977A CN102523127A CN 102523127 A CN102523127 A CN 102523127A CN 2011104569770 A CN2011104569770 A CN 2011104569770A CN 201110456977 A CN201110456977 A CN 201110456977A CN 102523127 A CN102523127 A CN 102523127A
- Authority
- CN
- China
- Prior art keywords
- server
- master
- dispatch
- request
- master server
- 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.)
- Pending
Links
Images
Landscapes
- Hardware Redundancy (AREA)
Abstract
The invention discloses a master server and slave server switching method and a system utilizing the same, which solve the problem that a slave mechanism cannot be started automatically when servers does not work when in faults. The technical scheme includes that the master server and slave server switching method includes that a main server and a slave server transmit requests to a dispatch server simultaneously, the dispatch server acquires IP (internet protocol) lists of the master server and the slave server with requests in a preset time range from a database after receiving the requests, acquires the IP of the master server with default configuration from a page server so as to determine to operate one of the master server and the slave server ,and feeds back commands whether the master server or slave server works according to determination results.
Description
Technical field
The present invention relates to a kind of server handoff technique, relate in particular to the method and system that active/standby server switches.
Background technology
The active and standby handover mechanism of main flow mostly is to adopt between the equal server to detect mutually at present, finds current master server fault, and picked at random one station server is when main.This logic has individual prerequisite to require Servers-all to dispose on an equal basis exactly, particularly machines configurations is required than higher work, and the server cost will significantly promote.And this mechanism also will cause a kind of situation, and all delay machine or network of Servers-all is obstructed, can't notify the staff to safeguard automatically timely.
Summary of the invention
The objective of the invention is to address the above problem, a kind of active/standby server changing method is provided, after having solved the server faults itself and can't working, can't launch the problem of back mechanism automatically.
Another object of the present invention is to provide a kind of active/standby server switched system, after having solved the server faults itself and can't working, can't launch the problem of back mechanism automatically.
Technical scheme of the present invention is: the present invention has disclosed a kind of active/standby server changing method, comprising:
Master server be equipped with server and send request to dispatch server simultaneously;
After dispatch server receives request, obtain master server that request is arranged in the Preset Time section and the IP tabulation that is equipped with server from database;
Dispatch server obtains the master server IP of default configuration from page server, and master server is adopted in decision-making, and one of them is operated with being equipped with server;
Dispatch server according to the result of decision to master server or be equipped with server and return the instruction of whether working.
According to an embodiment of active/standby server changing method of the present invention, after dispatch server receives request, the time of asking is recorded in the database.
According to an embodiment of active/standby server changing method of the present invention, the decision process of dispatch server comprises:
Ask if having only a master server or be equipped with server, then work order is returned to that station server of request; If master server be equipped with server request all arranged, then reply the master server work order, reply and be equipped with the server pause instruction; If master server or be equipped with server and all do not ask then sends the notice of emergency treatment.
According to an embodiment of active/standby server changing method of the present invention, the master server of default configuration is that the configuration level according to server is provided with in advance.
The present invention has also disclosed a kind of active/standby server switched system, comprising:
Request sending module, master server be equipped with server and send request to dispatch server simultaneously;
The server ip acquisition module after dispatch server receives request, obtains master server that request is arranged in the Preset Time section and the IP tabulation that is equipped with server from database;
Decision-making module, dispatch server obtains the master server IP of default configuration from page server, and master server is adopted in decision-making, and one of them is operated with being equipped with server;
Instruction sending module, dispatch server according to the result of decision to master server or be equipped with server and return the instruction of whether working.
Embodiment according to active/standby server switched system of the present invention also comprises the time logging modle, after dispatch server receives request, the time of asking is recorded in the database.
According to an embodiment of active/standby server switched system of the present invention, in decision-making module, the decision process of dispatch server comprises:
Ask if having only a master server or be equipped with server, then work order is returned to that station server of request; If master server be equipped with server request all arranged, then reply the master server work order, reply and be equipped with the server pause instruction; If master server or be equipped with server and all do not ask then sends the notice of emergency treatment.
According to an embodiment of active/standby server switched system of the present invention, the master server IP of the default configuration that in decision-making module, obtains is that the configuration level according to server is provided with in advance.
The present invention contrasts prior art has following beneficial effect: scheme of the present invention is through a dispatch server, based on master server and the request that is equipped with server which the station server work of employing of making a strategic decision.Compared to conventional art, scheme of the present invention has solved the server faults itself can't work after, can't launch the problem of back mechanism automatically.
Description of drawings
Fig. 1 shows the sketch map of first embodiment of active/standby server changing method of the present invention.
Fig. 2 shows the sketch map of second embodiment of active/standby server changing method of the present invention.
Fig. 3 shows the schematic diagram of first embodiment of active/standby server switched system of the present invention.
Fig. 4 shows the schematic diagram of second embodiment of active/standby server switched system of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further description.
First embodiment of active/standby server changing method
Fig. 1 shows the flow process of first embodiment of active/standby server changing method of the present invention.See also Fig. 1, master server be equipped with server and send request (step S11) to dispatch server simultaneously.This step also can replace with the data-base recording of direct modification dispatch server and realize.
After dispatch server receives request, obtain master server that request is arranged in the Preset Time section and the IP tabulation (step S12) that is equipped with server from database.
Dispatch server obtains the master server IP of default configuration from page server, and master server is adopted in decision-making, and one of them operates (step S13) with being equipped with server.The master server of default configuration is that the configuration level according to server is provided with in advance; Generally be with disposing the high master server that is set to,, can automatic priority select master server in case master server satisfies condition of work; Save cost, need not all to select every station server for use the server of high configuration.The decision process of dispatch server comprises: ask if having only a master server or be equipped with server, then work order is returned to that station server of request; If master server be equipped with server request all arranged, then reply the master server work order, reply and be equipped with the server pause instruction; If master server or be equipped with server and all do not ask then sends the notice of emergency treatment.
Dispatch server according to the result of decision to master server or be equipped with server and return the instruction (step S14) of whether working.
Second embodiment of active/standby server changing method
Fig. 2 shows the flow process of second embodiment of active/standby server changing method of the present invention.See also Fig. 2, master server be equipped with server and send request (step S21) to dispatch server simultaneously.This step also can replace with the data-base recording of direct modification dispatch server and realize.
Dispatch server receives after the request, and the time of asking is recorded (step S22) in the database.
After dispatch server receives request, obtain master server that request is arranged in the Preset Time section and the IP tabulation (step S23) that is equipped with server from database.
Dispatch server obtains the master server IP of default configuration from page server, and master server is adopted in decision-making, and one of them operates (step S24) with being equipped with server.The master server of default configuration is that the configuration level according to server is provided with in advance; Generally be with disposing the high master server that is set to,, can automatic priority select master server in case master server satisfies condition of work; Save cost, need not all to select every station server for use the server of high configuration.The decision process of dispatch server comprises: ask if having only a master server or be equipped with server, then work order is returned to that station server of request; If master server be equipped with server request all arranged, then reply the master server work order, reply and be equipped with the server pause instruction; If master server or be equipped with server and all do not ask then sends the notice of emergency treatment.
Dispatch server according to the result of decision to master server or be equipped with server and return the instruction (step S25) of whether working.
First embodiment of active/standby server switched system
Fig. 3 shows the principle of first embodiment of active/standby server switched system of the present invention.See also Fig. 3, the active/standby server switched system of present embodiment comprises: request sending module 10, server ip acquisition module 12, decision-making module 14 and instruction sending module 16.
Request sending module 10 realizes master server and is equipped with server simultaneously to dispatch server transmission request.
After server ip acquisition module 12 realizes that dispatch server receives request, obtain master server that request is arranged in the Preset Time section and the IP tabulation that is equipped with server from database.
Decision-making module 14 realizes that dispatch servers obtain the master server IP of default configuration from page server, and master server is adopted in decision-making, and one of them is operated with being equipped with server.In decision-making module 14, the decision process of dispatch server comprises: ask if having only a master server or be equipped with server, then work order is returned to that station server of request; If master server be equipped with server request all arranged, then reply the master server work order, reply and be equipped with the server pause instruction; If master server or be equipped with server and all do not ask then sends the notice of emergency treatment.The master server IP of the default configuration that in decision-making module 14, obtains is that the configuration level according to server is provided with in advance.
Instruction sending module 16 realize dispatch servers according to the result of decision to master server or be equipped with server and return the instruction of whether working.
Second embodiment of active/standby server switched system
Fig. 4 shows the principle of second embodiment of active/standby server switched system of the present invention.See also Fig. 4, the active/standby server switched system of present embodiment comprises: request sending module 20, time logging modle 28, server ip acquisition module 22, decision-making module 24 and instruction sending module 26.
Request sending module 20 realizes master server and is equipped with server simultaneously to dispatch server transmission request.
Time logging modle 28 is implemented in dispatch server and receives after the request, and the time of asking is recorded in the database.
After server ip acquisition module 22 realizes that dispatch server receives request, obtain master server that request is arranged in the Preset Time section and the IP tabulation that is equipped with server from database.
Decision-making module 24 realizes that dispatch servers obtain the master server IP of default configuration from page server, and master server is adopted in decision-making, and one of them is operated with being equipped with server.In decision-making module 24, the decision process of dispatch server comprises: ask if having only a master server or be equipped with server, then work order is returned to that station server of request; If master server be equipped with server request all arranged, then reply the master server work order, reply and be equipped with the server pause instruction; If master server or be equipped with server and all do not ask then sends the notice of emergency treatment.The master server IP of the default configuration that in decision-making module 24, obtains is that the configuration level according to server is provided with in advance.
Instruction sending module 26 realize dispatch servers according to the result of decision to master server or be equipped with server and return the instruction of whether working.
The foregoing description provides to those of ordinary skills and realizes and use of the present invention; Those of ordinary skills can be under the situation that does not break away from invention thought of the present invention; The foregoing description is made various modifications or variation; Thereby invention scope of the present invention do not limit by the foregoing description, and should be the maximum magnitude that meets the inventive features that claims mention.
Claims (8)
1. active/standby server changing method comprises:
Master server be equipped with server and send request to dispatch server simultaneously;
After dispatch server receives request, obtain master server that request is arranged in the Preset Time section and the IP tabulation that is equipped with server from database;
Dispatch server obtains the master server IP of default configuration from page server, and master server is adopted in decision-making, and one of them is operated with being equipped with server;
Dispatch server according to the result of decision to master server or be equipped with server and return the instruction of whether working.
2. active/standby server changing method according to claim 1 is characterized in that, after dispatch server receives request, the time of asking is recorded in the database.
3. active/standby server changing method according to claim 1 is characterized in that, the decision process of dispatch server comprises:
Ask if having only a master server or be equipped with server, then work order is returned to that station server of request; If master server be equipped with server request all arranged, then reply the master server work order, reply and be equipped with the server pause instruction; If master server or be equipped with server and all do not ask then sends the notice of emergency treatment.
4. active/standby server changing method according to claim 1 is characterized in that, the master server of default configuration is that the configuration level according to server is provided with in advance.
5. active/standby server switched system comprises:
Request sending module, master server be equipped with server and send request to dispatch server simultaneously;
The server ip acquisition module after dispatch server receives request, obtains master server that request is arranged in the Preset Time section and the IP tabulation that is equipped with server from database;
Decision-making module, dispatch server obtains the master server IP of default configuration from page server, and master server is adopted in decision-making, and one of them is operated with being equipped with server;
Instruction sending module, dispatch server according to the result of decision to master server or be equipped with server and return the instruction of whether working.
6. active/standby server switched system according to claim 5 is characterized in that, also comprises the time logging modle, after dispatch server receives request, the time of asking is recorded in the database.
7. active/standby server switched system according to claim 5 is characterized in that, in decision-making module, the decision process of dispatch server comprises:
Ask if having only a master server or be equipped with server, then work order is returned to that station server of request; If master server be equipped with server request all arranged, then reply the master server work order, reply and be equipped with the server pause instruction; If master server or be equipped with server and all do not ask then sends the notice of emergency treatment.
8. active/standby server switched system according to claim 5 is characterized in that, the master server IP of the default configuration that in decision-making module, obtains is that the configuration level according to server is provided with in advance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104569770A CN102523127A (en) | 2011-12-30 | 2011-12-30 | Master server and slave server switching method and system utilizing same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011104569770A CN102523127A (en) | 2011-12-30 | 2011-12-30 | Master server and slave server switching method and system utilizing same |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102523127A true CN102523127A (en) | 2012-06-27 |
Family
ID=46293926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2011104569770A Pending CN102523127A (en) | 2011-12-30 | 2011-12-30 | Master server and slave server switching method and system utilizing same |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102523127A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105007293A (en) * | 2015-05-25 | 2015-10-28 | 国家计算机网络与信息安全管理中心 | Double master control network system and double writing method for service request therein |
CN113395188A (en) * | 2021-06-11 | 2021-09-14 | 北京飞讯数码科技有限公司 | Method and system for determining working state of server |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101145895A (en) * | 2007-09-20 | 2008-03-19 | 中兴通讯股份有限公司 | Master/slave device switching method |
CN101179432A (en) * | 2007-12-13 | 2008-05-14 | 浪潮电子信息产业股份有限公司 | Method of implementing high availability of system in multi-machine surroundings |
CN101309167A (en) * | 2008-06-27 | 2008-11-19 | 华中科技大学 | Disaster allowable system and method based on cluster backup |
CN101662495A (en) * | 2009-09-16 | 2010-03-03 | 成都市华为赛门铁克科技有限公司 | Backup method, master server, backup servers and backup system |
CN101902770A (en) * | 2010-08-20 | 2010-12-01 | 中兴通讯股份有限公司 | Dispatching subsystem for digital trunking communication system and business acceptance method thereof |
CN102231681A (en) * | 2011-06-27 | 2011-11-02 | 中国建设银行股份有限公司 | High availability cluster computer system and fault treatment method thereof |
-
2011
- 2011-12-30 CN CN2011104569770A patent/CN102523127A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101145895A (en) * | 2007-09-20 | 2008-03-19 | 中兴通讯股份有限公司 | Master/slave device switching method |
CN101179432A (en) * | 2007-12-13 | 2008-05-14 | 浪潮电子信息产业股份有限公司 | Method of implementing high availability of system in multi-machine surroundings |
CN101309167A (en) * | 2008-06-27 | 2008-11-19 | 华中科技大学 | Disaster allowable system and method based on cluster backup |
CN101662495A (en) * | 2009-09-16 | 2010-03-03 | 成都市华为赛门铁克科技有限公司 | Backup method, master server, backup servers and backup system |
CN101902770A (en) * | 2010-08-20 | 2010-12-01 | 中兴通讯股份有限公司 | Dispatching subsystem for digital trunking communication system and business acceptance method thereof |
CN102231681A (en) * | 2011-06-27 | 2011-11-02 | 中国建设银行股份有限公司 | High availability cluster computer system and fault treatment method thereof |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105007293A (en) * | 2015-05-25 | 2015-10-28 | 国家计算机网络与信息安全管理中心 | Double master control network system and double writing method for service request therein |
CN113395188A (en) * | 2021-06-11 | 2021-09-14 | 北京飞讯数码科技有限公司 | Method and system for determining working state of server |
CN113395188B (en) * | 2021-06-11 | 2023-08-08 | 北京飞讯数码科技有限公司 | Method and system for determining working state of server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101079759B (en) | Distributed bidirectional forwarding detection method and device | |
CN108134700B (en) | Method for realizing electric power automation communication data integrity | |
CN100563394C (en) | A kind of gradual network system and this system's switching be transmission method reportedly | |
CN103051534B (en) | A kind of message processing method and device | |
CN102739453B (en) | Main/standby switching method, equipment and system | |
CN102075343B (en) | An out-of-band management realization method, a system for the same and an out-of-band management switch | |
CN102025616B (en) | Method, device and switch for realizing BFD (Bidirectional Forwarding Detection) | |
CN105471610B (en) | Method and device for protecting HQoS (high-quality QoS) by using multiple board cards | |
TW201328252A (en) | Master device, slave device, and methods thereof | |
CN104038376A (en) | Method and device for managing real servers and LVS clustering system | |
CN103297502B (en) | A kind of SiteServer LBS and method | |
CN104320425A (en) | Method and device for receiving and sending message | |
CN101895437A (en) | Method and equipment of distributed bidirectional forwarding detection (BFD) | |
CN102143138A (en) | Method and device for configuring virtual local area network (VLAN) in live migration process of virtual machine | |
CN1418023A (en) | Back-up method and device for base station controller in radio access network | |
CN103546315A (en) | System, method and equipment for backing up DHCP (dynamic host configuration protocol) server | |
WO2017024697A1 (en) | Cross-network segment message forwarding method for dispatching automation system | |
CN106453672A (en) | Software defined network (SDN) Overlay network packet forwarding methods, and terminals | |
CN103441870A (en) | Intelligent real-time seamless switching two unit standby method | |
CN102710466A (en) | Master and backup board card changeover protection system, and bidirectional forwarding detection seamless handover method and device | |
CN106341249A (en) | Redundant port switching method and device | |
CN103582039A (en) | Mobile phone AT command processing method and equipment in process of coverage loss and system switching | |
CN102523127A (en) | Master server and slave server switching method and system utilizing same | |
CN104038355A (en) | Communication device and main/standby switchover method thereof | |
CN101291290A (en) | Method and apparatus for service retransmitting |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120627 |