CN106487469B - A kind of timing node switching method and system - Google Patents

A kind of timing node switching method and system Download PDF

Info

Publication number
CN106487469B
CN106487469B CN201610903353.1A CN201610903353A CN106487469B CN 106487469 B CN106487469 B CN 106487469B CN 201610903353 A CN201610903353 A CN 201610903353A CN 106487469 B CN106487469 B CN 106487469B
Authority
CN
China
Prior art keywords
time
data center
node
operational order
equipment
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.)
Active
Application number
CN201610903353.1A
Other languages
Chinese (zh)
Other versions
CN106487469A (en
Inventor
郑伟涛
郭懿心
韦德志
梁轲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN201610903353.1A priority Critical patent/CN106487469B/en
Publication of CN106487469A publication Critical patent/CN106487469A/en
Application granted granted Critical
Publication of CN106487469B publication Critical patent/CN106487469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0641Change of the master or reference, e.g. take-over or failure of the master

Abstract

The invention proposes a kind of timing node switching method and systems, multiple switching service processes carry out the change operation of preemptive type to the timing node of data center, failure of some switching service processes has no effect on the completion of timing node switching task, even if the cheap common hardware of use cost executes switching service and nor affects on the whole success rate for switching task.Switch service processes and data center and all periodically independently carries out time synchronization with time service server, and, switching service processes and data center also pass through the correctness for carrying out the system time of equipment where time check further ensures respectively mutually, to further improve the reliability of timing node switching.

Description

A kind of timing node switching method and system
Technical field
The present invention relates to data processing field more particularly to a kind of timing node switching method and systems.
Background technique
The management of today's society, timing node has been penetrated into as one of data management and the important content of engineering management The every field of national life, common timing node include (making within 12 hours) on the half, date (making for 24 hours), week (7*24 Hour system), Month And Year.The importance of one of main contents as timing node management, timing node accurately switched is not sayed And explain, however, there are some defects for existing timing node switching method, by taking the date switches as an example:
(1) it in relevant industries of the business dependent on the date, for the reliability for guaranteeing date switching, is cut for realizing the date The host data base and pre-set programs for changing operation require to operate in the high-end server of high-performance high reliability, to guarantee The low probability of malfunction of date handoff procedure and the high reliability of date switching result, it is excessively high that this is bound to cause cost.
(2) date handover operation need to ensure that the date switches backward, and realize the host of date handover operation and need according to net Network time execution date handover operation, if since technical reason results in time of the network time variation slowly and in host data base Variation is fast, the network time backward time with host data base, then according to network time to the date in host data base into Row switching is then likely to cause the date and retracts forward, to mistake occur.
Summary of the invention
In order to solve the above-mentioned technical problem, it the invention proposes a kind of timing node switching method and system, enables to The switching of timing node is established in more stringent time synchronization and verification scheme, by multiple switching service processes to data The timing node at center carries out the change operation of preemptive type, and the failure of some switching service processes has no effect on timing node switching The completion of task, to guarantee the correctness and reliability of timing node switching.
The present invention is specifically to be realized with following technical solution:
A kind of timing node switching method, which comprises
Timing requests the standard time to time service server;
The system time of equipment where maintaining switching service processes and the system time of equipment where data center with The standard time is consistent;
Timing verifies the system time of equipment where switching service processes;
Whether the system time of equipment reaches the time point for opening switching service where monitoring switching service processes;
When reaching the time point for opening switching service, object time node is calculated according to the system time;
Operational order is generated according to the object time node;The operational order is used for the current time of data center Node is switched to the object time node;
The operational order is transmitted to data center;The data center can receive multiple switching service processes simultaneously To the change operation of the timing node of the data center.
A kind of timing node switching system, comprising: multiple switch service modules, each switch service module with number According to center communication connection, the data center can receive multiple switch service modules to the when segmentum intercalaris of the data center simultaneously The change operation of point;
Time service server, for providing the standard time, each switch service module and data center with it is described Time service server communication connection;
The data center includes:
Standard time request module requests the standard time to time service server for timing;
Time synchronization module, the system time for equipment where maintaining data center are consistent with the standard time;
The switch service module includes:
Standard time request unit requests the standard time to time service server for timing;
Time synchronization unit, system time and the standard time one for equipment where maintaining switching service processes It causes;
Time check unit is verified for system time of the timing to equipment where switching service processes;
Whether monitoring unit, the system time for equipment where monitoring switching service processes reach for opening switching clothes The time point of business;
Object time node computing unit, for when reach open switching service time point when, when according to the system Between calculate object time node;
Operational order generation unit generates operational order according to the object time node;The operational order is used for will The current time node of data center is switched to the object time node;
Operational order transmission unit, for the operational order to be transmitted to data center.
A kind of timing node switching method provided by the invention and system, have the following beneficial effects:
(1) multiple switching service processes carry out the change operation of preemptive type to the timing node of data center, some switching The failure of service processes has no effect on the completion of timing node task.Segmentum intercalaris when even if the cheap common hardware of use cost executes Point switching service nor affects on the success rate of whole switching task.
(2) switch service processes and data center all periodically independently to when the third party's progress for being capable of providing the standard time Between it is synchronous, also, switch service processes and data center also passes through and carries out time check mutually and further ensure respective system The correctness of system time, to further improve the reliability of timing node switching.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow chart of timing node switching method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the first method of calibration provided in an embodiment of the present invention;
Fig. 3 is the flow chart of second of method of calibration provided in an embodiment of the present invention;
Fig. 4 is the flow chart for the date switching method that another embodiment of the present invention provides;
Fig. 5 is the time data interaction schematic diagram that another embodiment of the present invention provides;
Fig. 6 is the flow chart that the data center that another embodiment of the present invention provides executes operational order;
Fig. 7 is the specific execution method flow diagram for the operational order that another embodiment of the present invention provides;
Fig. 8 is the timing node switching system block diagram that another embodiment of the present invention provides;
Fig. 9 is the switch service module block diagram that another embodiment of the present invention provides;
Figure 10 is the time check unit block diagram that another embodiment of the present invention provides;
Figure 11 is data center's block diagram that another embodiment of the present invention provides;
Figure 12 is the execution module block diagram that another embodiment of the present invention provides;
Figure 13 is the terminal schematic diagram that another embodiment of the present invention provides;
Figure 14 is the server schematic diagram that another embodiment of the present invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art without creative labor it is obtained it is all its His embodiment, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a kind of timing node switching methods, as shown in Figure 1, which comprises
S101. timing requests the standard time to time service server.
S102. the system time of equipment where the system time of equipment where maintaining switching service processes and data center It is consistent with the standard time.
The standard time that time service server provides is the authoritative time, and any and authoritative Time Inconsistency time is mistake , therefore, whether switch service processes or data center on the basis of the standard time, maintains switching service processes place The system time of equipment is consistent with the standard time where the system time of equipment and data center.
S103. timing verifies the system time of equipment where switching service processes.
Specifically, the verification includes the first verification and second of verification.
As shown in Fig. 2, the first verification includes:
P1. the system time of equipment where request data center;
P2. the system of equipment where the system time of equipment where obtaining the switching service processes and the data center The time of time phase difference;
If P3. the time of the difference is greater than preset first threshold;
P4. the first warning message is then generated.
First threshold can be configured according to actual needs, and preferably 30 seconds.
If generating the first warning message, where the system time of equipment where illustrating data center and switching service processes The system time difference of equipment is larger, due to equipment where the system time and switching service processes of equipment where data center System time is not the authoritative time, therefore, after receiving the first warning message, is intervened by operation maintenance personnel and carries out time adjustment: if The system time mistake of equipment where data center, the then system time of equipment where adjusting data center;If switching service into The system time mistake of equipment where journey, the then system time of equipment where adjusting the switching service processes;If wrong, The system time of equipment where data center and the system time of equipment where switching service processes are both needed to adjust.
As shown in figure 3, second of verification includes:
T1. the system time of equipment where requesting other switching service processes;
T2. equipment where the system time of equipment where obtaining the switching service processes and other switching service processes The time of system time difference;
If T3. the time of the difference is greater than preset second threshold;
T4. the second warning message is then generated.
Second threshold can be configured according to actual needs, can be identical or different with first threshold, and preferably 30 seconds.
Further, the second warning message can be identical or different with the first warning message.
If generating the second warning message, the system time of equipment and other switchings where illustrating the switching service processes The system time difference of equipment where service processes is larger, due to the system time of equipment where the switching service processes and its The system time of equipment is not the authoritative time where it switches service processes, therefore, after receiving the second warning message, by O&M Personnel, which intervene, carries out time adjustment: if the system time mistake of equipment where the switching service processes, adjusts the switching The system time of equipment where service processes;If the system time mistake of equipment, adjusts it where other switching service processes The system time of equipment where it switches service processes;If wrong, where the switching service processes when system of equipment Between be both needed to adjust with the system times of equipment where other switching service processes.
S104. whether the system time of equipment reaches the time for opening switching service where monitoring switching service processes Point.
In the present embodiment, the time point for opening switching service is the critical point of timing node.If timing node For the date, the timing node switching is date switching, then the time point for opening switching service can be 23 points 59 minutes 59 seconds;If timing node is half, carry out switching for primary half day per more than half days (i.e. 12 hours), then opens the time of switching service Point can for 11 points 59 seconds 59 minutes.
Specifically, the time for opening switching service can be obtained by preset mode, can also pass through touching The mode of hair obtains.
If preset mode, then in switching service processes setting for identify it is described for opens that switching services when Between the parameter put if the system time of equipment is identical as the value of the parameter where switching service processes switch service processes The system time of place equipment is the time point reached for opening switching service.
If the mode of triggering, then the switching service processes being capable of the triggering that issues of other processes of real-time reception or equipment Signal, if receiving the trigger signal, with receive the trigger signal time be for opens switching service when Between point, directly execution step S105.
S105. when reaching the time point for opening switching service, object time node is calculated according to the system time.
Specifically, object time node described in the present embodiment is next time that the system time will jump to Node.Switch if the date, then the object time node is next day on date where the system time;It was cut if half day It changes, then the object time node is next half day of half day where the system time.
S106. operational order is generated according to the object time node;The operational order is used for working as data center Preceding timing node is switched to the object time node.
S107. the operational order is transmitted to data center;The data center can receive multiple switching clothes simultaneously Change operation of the business process to the timing node of the data center.
The switching service processes are used to the current time node of data center being switched to the object time node, respectively It is independent of each other between a switching service processes.The data center can receive multiple switching service processes in the data simultaneously The change operation of the timing node of heart record.Respectively the independent timing node to data center carries out each switching service processes Switching, as long as having a switching service processes handover success, the only equal handover failure of all switching service processes, in data The timing node switching of the heart can just malfunction.
As it can be seen that each handover process switches the preemptive type that is switched to of the timing node of data center in the present embodiment, The reliability of switching can effectively be promoted.Further, the switching of timing node is with reliable time synchronization and time check machine It is made as premise, can effectively ensure that the correctness of timing node switching.
Another embodiment of the present invention provides a kind of date switching methods.Date switching is widely used in financial field With many engineering fields.
By taking financial field as an example, date switching (day cuts) will be switched to subsequent work day work at present day, and interest calculates The correct date is all relied on etc. relevant finance activities, and date switching too early, too late or retract, all can be to Faculty of Finance The operating of system causes tremendous influence.Error in data occurs for less serious case, influences user experience, severe one causes a large amount of monetary losses.For Guarantee reliable correctly progress date switching, it usually needs dependent on professional solution and run the solution High-performance equipment, by taking more common IBM solution as an example, IBM solution is needed using IBM mainframe, such as IBM Z Serial host, price must be packaged purchase in 10,000,000 RMB ranks, IBM solution and relevant device, and price is very high It is expensive.
To reduce date switching surfaces and providing the service of cutting of good day same as the prior art, the embodiment of the present invention is provided Date switching method, the method for the present embodiment are not needed dependent on special hardware, and common computer can be realized, with For computer composed by X86-based processor chips component, price is in 100,000 RMB ranks, it is seen that the present embodiment The method can greatly save date switching surfaces.
A kind of date switching method provided in this embodiment, on the basis for carrying out reliable time synchronization and time check On, as shown in figure 4, further including following step:
S201. whether the system time of equipment reaches the time for opening switching service where monitoring switching service processes Point.
Specifically, the switching service processes are used to the current date of data center being switched to the target date.This It is used to open the critical point that the time point for cutting service day is date switching in embodiment, can be old ending in one day.
S202. when reaching the time point for opening switching service, target date is calculated according to the system time.
Specifically, the target date is next day on date in the system time.
S203. the current date of data center is obtained.
The data center can receive multiple switching service processes simultaneously and grasp to the change on the date of the data center Make.
S204. the target date is compared with the current date of the data center:
If S205. the target date is next day of the current date of the data center, operational order is generated, and The operational order is transmitted to the data center;The operational order is used to the date of data center being switched to target day Phase.
If the target date is next day of the current date of the data center, determine data center works as the day before yesterday Phase also rests on old one day, not yet switches over, and therefore, sends operational order and carries out date change.
If S206. the target date is consistent with the current date of the data center, do nothing.
If the target date is the current date of the data center, determine that the current date of data center has been Therefore new one day is done nothing by other switching service processes successful switch.
S207. otherwise, it is determined that switching service is abnormal.
If the target date neither the data center current date, nor the data center works as the day before yesterday Next day of phase illustrates that the process of operation switching service breaks down, operation maintenance personnel intervention can be notified to repair switching service processes. The failure of the service processes of discovery switching in time, to further guarantee the reliability of date switching.
Further, as shown in figure 5, multiple switching service processes can be sent out to the data center simultaneously in the present embodiment Cloth operational order, the equal independent operating of each switching service processes are independent of each other, on a host each independently to number each other Operational order is issued according to center.When data center current date by successful switch be target date after, it is other switching service into The operational order of Cheng Fabu is performed both by failure.
Specifically, data center does not carry out read protection to the date of self record, and therefore, each switching service processes are equal The current date of data center can be read, data center is possible to receive from different switching service processes sendings Operational order.Data center is according to the method that operational order cut day as shown in fig. 6, including the following steps:
A1. the operational order is lined up according to the sequencing for receiving operational order;
A2. the operational order is sequentially executed.
The execution method of the operational order as shown in fig. 7, comprises:
B1. after receiving operational order, the current date in the operational order is parsed.
The operational order includes current date and target date;The current date is to generate cutting for the operational order Change the current date of the place equipment of service processes.
Whether the current date of current date and data center that B2. the parameter indicates is consistent.
The current date of the place equipment of switching service processes consistent with the current date of data center is in the data The heart executes the premise for the operational order that the switching service processes issue.If inconsistent, illustrate that switching service processes place sets Standby system time and the system time of equipment where the data center are not consistent, illustrate to switch service processes in S203 There is the date of mistake or data center by other switching service processes successful switch, no matter which kind of situation, is all not required to Redo instruction.
B3. if it is not, not executing the operational order.
The operational order is issued by switching service processes, if current date and data center that the parameter indicates are local Current date it is not consistent, then according to switching service processes where equipment system time calculate object time naturally also simultaneously It can not be suitable for data center, therefore, the current date of itself will not be changed to the object time by data center.
B4. the operational order is executed.
The execution method of the operational order can guarantee that data center can only execute legal operational order.Legal behaviour In instructing, the current date for switching the place equipment of service processes is consistent with the current date of data center, thus switches clothes Target date in the operational order of business process publication is next day of the current date of data center, it is accordingly possible to ensure Date switches backward, and the date is avoided to retract forward, further improves the correctness and safety of date switching.
Date switching method provided in this embodiment is carrying out the basis of reliable time synchronization and time check On, realize that the reliable date switches to data center's Stand-alone distribution operational order by each handover process, further, this reality The method for executing operating instructions for applying the data center of middle offer can be avoided the date and retract forward, further promote date switching knot The reliability of fruit.
A kind of timing node switching system is present embodiments provided, as shown in Figure 8, comprising:
Multiple switch service modules 401, each switch service module 401 with 402 communication connection of data center, institute Change of multiple switch service modules 401 to the timing node of the data center 402 can be received simultaneously by stating data center 402 Operation.
Further, the system also includes:
Time service server 403, for providing the standard time;Each switch service module 401 and data center 402 It is interacted with time service server 403, carries out time synchronization;Meanwhile switch service module 401 is to other switch service modules 401 And data center 402 initiates time check.
As shown in figure 9, the switch service module 401 includes:
Whether monitoring unit 4011 reaches use for the system time for monitoring 401 place equipment of switch service module In the time point for opening switching service;
Object time node computing unit 4012, for when reach open switching service time point when, according to the system The system time calculates object time node;
Operational order generation unit 4013, for generating operational order according to the object time node;The operation refers to It enables for the current time node of data center 402 to be switched to the object time node;
Operational order transmission unit 4014, for the operational order to be transmitted to data center 402.
Monitoring unit 4011, object time node computing unit 4012, operational order generation unit 4013 and operational order Transmission unit 4014 switches for realizing specific timing node to be serviced.
Further, further includes:
Acquiring unit 4018, for obtaining the current time node of data center 402;
Comparing unit 4019, for comparing the object time node and the current time node of the data center Compared with.
Acquiring unit 4018 and comparing unit 4019 are used to obtain working as the object time node and the data center The comparison result of preceding timing node, according to the comparison result generate operational order can data center timing node It in the case where being switched, avoids generating unnecessary operational order, promotes switching service execution efficiency.
Standard time request unit 4015 requests the standard time to time service server for timing;
Time synchronization unit 4016, for maintaining the system time of 401 place equipment of switch service module and the standard Time consistency;
Time check unit 4017 is verified for system time of the timing to 401 place equipment of switch service module.
Standard time request unit 4015, time synchronization unit 4016 and time check unit 4017 are for guaranteeing switching clothes The correctness of the system time for 401 place equipment of module of being engaged in.
Specifically, the time check unit 4017 such as Figure 10, comprising:
First request subelement 40171, the system time for 402 place equipment of request data center;
First comparing subunit 40172, system time and institute for the 401 place equipment of switch service module State the system time of 402 place equipment of data center;
First alarm part-unit 40173, for generating the first warning message.
First request subelement 40171, the first comparing subunit 40172 and the first alarm part-unit 40173 are for carrying out Mutual school between the system time of the 402 place equipment of system time and data center of 401 place equipment of switch service module It tests.
Second request subelement 40174, for requesting the system time of other 401 place equipment of switch service module;
Second comparing subunit 40175, for the system time of the 401 place equipment of switch service module and its The system time of its 401 place equipment of switch service module;
Second alarm part-unit 40176, for generating the second warning message.
Second request subelement 40174, the second comparing subunit 40175 and the second alarm part-unit 40176 are for carrying out Between the system time of the 401 place equipment of system time and other switch service modules of 401 place equipment of switch service module Mutual verification.
As shown in figure 11, the data center 402 includes:
Standard time request module 4021 requests the standard time to time service server for timing;
Time synchronization module 4022, for maintaining the system time of 402 place equipment of data center and the standard time Unanimously.
What standard time request module 4021 and time synchronization module 4022 were used to guarantee 402 place equipment of data center is The correctness of system time.
Command reception module 4023, for receiving operational order;
Sorting module 4024, for will arrange according to the sequencing for receiving operational order the operational order Team;
Execution module 4025, for sequentially executing the operational order.
The execution module 4025 is as shown in figure 12, comprising:
Resolution unit 40251 parses the current time section in the operational order after receiving operational order Point;
Comparing unit 40252, the current time node for the current time node and data center.
Execution module 4025 ensures the correctness of timing node switching by resolution unit 40251 and comparing unit 40252, Not time of origin node rollback phenomenon.
The present embodiment is based on similarly inventive concept, provides a kind of timing node switching system, the present embodiment can be used The method provided in realization above-described embodiment
The embodiment of the invention also provides a kind of storage mediums.Optionally, in the present embodiment, above-mentioned storage medium can be with Program code performed by the method for timing node switching is realized for saving above-described embodiment.
Optionally, in the present embodiment, above-mentioned storage medium can be located in multiple network equipments of computer network At least one network equipment.
Optionally, in the present embodiment, storage medium is arranged to store the program code for executing following steps:
The first step periodically requests the standard time to time service server;
Second step, where the system time of equipment where maintaining switching service processes and data center when the system of equipment Between it is consistent with the standard time;
Third step periodically verifies the system time of equipment where switching service processes;
4th step, monitoring switching service processes where equipment system time whether reach for opens switching service when Between point;
5th step calculates object time node according to the system time when reaching the time point for opening switching service;
6th step generates operational order according to the object time node;The operational order is used for data center Current time node is switched to the object time node;
The operational order is transmitted to data center by the 7th step;The data center can receive multiple switchings simultaneously Change operation of the service processes to the timing node of the data center.
Optionally, storage medium is also configured to store the program code for executing following steps:
Before the generation operational order according to the object time node, further includes:
The first step obtains the current time node of data center;
The object time node is compared by second step with the current time node of the data center;
Third step, if the object time node be the data center current time node it is next when segmentum intercalaris Point then generates operational order, and the operational order is transmitted to the data center.
Optionally, storage medium is also configured to store the program code for executing following steps:
Before the generation operational order according to the object time node, further includes:
The first step, if the object time node is consistent with the current time node of the data center, without appointing What is operated;
Second step, otherwise, it is determined that switching service is abnormal.
Optionally, storage medium is also configured to store the program code for executing following steps:
After it is object time node that the current time node of data center is by successful switch, other switching service processes hairs The operational order of cloth is performed both by failure.
Optionally, storage medium is also configured to store the program code for executing following steps:
The first step is lined up the operational order according to the sequencing for receiving operational order;
Second step sequentially executes the operational order.
Optionally, storage medium is also configured to store the program code for executing following steps:
The first step after receiving operational order, parses the current time node in the operational order;The operation refers to Enable includes current time node and object time node;The current time node is the switching service for generating the operational order The timing node of the place equipment of process;
Whether the current time node of second step, the current time node and data center is consistent;
Third step, if it is not, not executing the operational order.
Optionally, storage medium is also configured to store the program code for executing following steps:
The timing carries out verification to the system time of equipment where switching service processes
The first step, the system time of equipment where request data center;
Second step, equipment where the system time of equipment where obtaining the switching service processes and the data center The time of system time difference;
Third step, if the time of the difference is greater than preset first threshold;
4th step then generates the first warning message.
Optionally, storage medium is also configured to store the program code for executing following steps:
The timing verifies the system time of equipment where switching service processes further include:
The first step, the system time of equipment where requesting other switching service processes;
Second step, the system time of equipment and other switching service processes place are set where obtaining the switching service processes The time of standby system time difference;
Third step, if the time of the difference is greater than preset second threshold;
4th step then generates the second warning message.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or The various media that can store program code such as CD.
Referring to Figure 13, the embodiment of the present invention also provides a kind of terminal, and the terminal includes in timing node switching system Switch service module.The terminal can be the terminal devices such as mobile terminal.Optionally, in the present embodiment, which can also To be terminal, any one computer terminal in terminal group may be replaced by.
Optionally, in the present embodiment, above-mentioned terminal or mobile terminal can be located at the multiple of computer network At least one network equipment in the network equipment.
Optionally, Figure 13 is the structural block diagram of terminal according to an embodiment of the present invention.As shown in figure 13, which can wrap It includes: one or more (one is only shown in figure) processor, memory and transmitting devices.
Wherein, memory can be used for storing software program and module, and processor is stored in memory by operation Software program and module, thereby executing various function application and data processing.Memory may include high speed random access memory, It can also include nonvolatile memory, such as one or more magnetic storage device, flash memory or other nonvolatile solid states Memory.In some instances, memory can further comprise the memory remotely located relative to processor, these are remotely deposited Reservoir can pass through network connection to terminal or mobile terminal.The example of above-mentioned network include but is not limited to internet, Intranet, local area network, mobile radio communication and combinations thereof.
Above-mentioned transmitting device is used to that data to be received or sent via a network.Above-mentioned network specific example can wrap Include cable network and wireless network.In an example, transmitting device includes a network adapter, can pass through cable and its His network equipment is connected to communicate with internet or local area network with router.In an example, transmitting device is Radio-frequency module is used to wirelessly be communicated with internet.
Wherein, specifically, memory storage is for carrying out the program switched for realizing timing node.
Processor can call the information and application program of memory storage by transmitting device, to execute following step:
The first step periodically requests the standard time to time service server;
Second step, where the system time of equipment where maintaining switching service processes and data center when the system of equipment Between it is consistent with the standard time;
Third step periodically verifies the system time of equipment where switching service processes;
4th step, monitoring switching service processes where equipment system time whether reach for opens switching service when Between point;
5th step calculates object time node according to the system time when reaching the time point for opening switching service;
6th step generates operational order according to the object time node;The operational order is used for data center Current time node is switched to the object time node;
The operational order is transmitted to data center by the 7th step;The data center can receive multiple switchings simultaneously Change operation of the service processes to the timing node of the data center.
Optionally, processor also stores the program code for executing following steps:
Before the generation operational order according to the object time node, further includes:
The first step obtains the current time node of data center;
The object time node is compared by second step with the current time node of the data center;
Third step, if the object time node be the data center current time node it is next when segmentum intercalaris Point then generates operational order, and the operational order is transmitted to the data center.
Optionally, processor also stores the program code for executing following steps:
Before the generation operational order according to the object time node, further includes:
The first step, if the object time node is consistent with the current time node of the data center, without appointing What is operated;
Second step, otherwise, it is determined that switching service is abnormal.
Optionally, storage medium is also configured to store the program code for executing following steps:
After it is object time node that the current time node of data center is by successful switch, other switching service processes hairs The operational order of cloth is performed both by failure.
Optionally, processor also stores the program code for executing following steps:
The first step is lined up the operational order according to the sequencing for receiving operational order;
Second step sequentially executes the operational order.
Optionally, processor also stores the program code for executing following steps:
The first step after receiving operational order, parses the current time node in the operational order;The operation refers to Enable includes current time node and object time node;The current time node is the switching service for generating the operational order The timing node of the place equipment of process;
Whether the current time node of second step, the current time node and data center is consistent;
Third step, if it is not, not executing the operational order.
Optionally, processor also stores the program code for executing following steps:
The timing carries out verification to the system time of equipment where switching service processes
The first step, the system time of equipment where request data center;
Second step, equipment where the system time of equipment where obtaining the switching service processes and the data center The time of system time difference;
Third step, if the time of the difference is greater than preset first threshold;
4th step then generates the first warning message.
Optionally, processor also stores the program code for executing following steps:
The timing verifies the system time of equipment where switching service processes further include:
The first step, the system time of equipment where requesting other switching service processes;
Second step, the system time of equipment and other switching service processes place are set where obtaining the switching service processes The time of standby system time difference;
Third step, if the time of the difference is greater than preset second threshold;
4th step then generates the second warning message.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in a readable storage medium.Based on this understanding, technical solution of the present invention essence On all or part of the part that contributes to existing technology or the technical solution can be with the shape of software product in other words Formula embodies, which is stored in a storage medium, including some instructions are used so that one or more is moved Dynamic terminal or computer equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
Referring to Figure 14, the embodiment of the present invention also provides a kind of server.The server 700 can be due to configuration or performance be different Generate bigger difference, may include one or more central processing units (central processing units, CPU) 722 (for example, one or more processors) and memory 732, one or more storage application programs 742 or The storage medium 730 (such as one or more mass memory units) of data 744.Wherein, memory 732 and storage medium 730 can be of short duration storage or persistent storage.The program for being stored in storage medium 730 may include one or more modules (diagram is not shown), each module may include to the series of instructions operation in server.Further, central processing unit 722 can be set to communicate with storage medium 730, and the series of instructions behaviour in storage medium 730 is executed on server 700 Make.Server 700 can also include one or more power supplys 726, one or more wired or wireless network interfaces 750, one or more input/output interfaces 758, and/or, one or more operating systems 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..For carrying out timing node in above-described embodiment The performed step of switching can be based on server architecture shown in the Figure 14.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and as independent product When selling or using, it can store in above-mentioned computer-readable storage medium.Based on this understanding, skill of the invention Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme The form of part product embodies, which is stored in a storage medium, including some instructions are used so that one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) execute each embodiment institute of the present invention State all or part of the steps of method.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, described Installation practice is only schematical, such as institute The division of unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple lists Member or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, Shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, unit or module Indirect coupling or communication connection, can be electrically or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (14)

1. a kind of timing node switching method, which is characterized in that the described method includes:
Timing requests the standard time to time service server;
The system time of equipment where maintaining switching service processes and the system time of equipment where data center with it is described Standard time is consistent;
Timing verifies the system time of equipment where switching service processes;
Whether the system time of equipment reaches the time point for opening switching service where monitoring switching service processes;
When reaching the time point for opening switching service, object time node is calculated according to the system time;
Operational order is generated according to the object time node, the operational order is used for the current time node of data center It is switched to the object time node;
The operational order is transmitted to data center, the data center can receive multiple switching service processes to institute simultaneously State the change operation of the timing node of data center.
2. the method according to claim 1, wherein described generate operational order according to the object time node Before, further includes:
Obtain the current time node of data center;
The object time node is compared with the current time node of the data center;
If the object time node is next timing node of the current time node of the data center, operation is generated Instruction, and the operational order is transmitted to the data center.
3. according to the method described in claim 2, it is characterized in that, described generate operational order according to the object time node Before, further includes:
If the object time node is consistent with the current time node of the data center, do nothing;
Otherwise, it is determined that the switching service is abnormal.
4. according to the method described in claim 1, it is characterized by:
After it is object time node that the current time node of data center is by successful switch, other switching service processes publications Operational order is performed both by failure.
5. according to the method described in claim 4, it is characterized by further comprising:
The operational order is lined up according to the sequencing for receiving operational order;
Sequentially execute the operational order.
6. according to the method described in claim 5, it is characterized by:
After receiving operational order, the current time node in the operational order is parsed;The operational order includes current Timing node and object time node;The current time node is to set where generating the switching service processes of the operational order Standby timing node;
Whether the current time node for comparing the current time node and data center is consistent;
If it is not, not executing the operational order.
7. the method according to claim 1, wherein system of the timing to equipment where switching service processes Time carries out verification
The system time of equipment where request data center;
The system time and the system time phase of equipment where the data center of equipment where obtaining the switching service processes The time of difference;
If the time of the difference is greater than preset first threshold;
Then generate the first warning message.
8. the method according to claim 1, wherein system of the timing to equipment where switching service processes Time is verified further include:
The system time of equipment where requesting other switching service processes;
Where the system time of equipment where obtaining the switching service processes and other switching service processes when the system of equipment Between time for differing;
If the time of the difference is greater than preset second threshold;
Then generate the second warning message.
9. a kind of timing node switching system characterized by comprising multiple switch service modules, each switching service For module with data center's communication connection, the data center can receive multiple switch service modules in the data simultaneously The change operation of the timing node of the heart;
Time service server, for providing the standard time, each switch service module and data center with the time service Server communication connection;
The data center includes:
Standard time request module requests the standard time to time service server for timing;
Time synchronization module, the system time for equipment where maintaining data center are consistent with the standard time;
The switch service module includes:
Standard time request unit requests the standard time to time service server for timing;
Time synchronization unit, the system time for equipment where maintaining switch service module are consistent with the standard time;
Time check unit is verified for system time of the timing to equipment where switch service module;
Whether monitoring unit, the system time for equipment where monitoring switch service module reach for opening switching service Time point;
Object time node computing unit, for when reach open switching service time point when, according to the system time meter Calculate object time node;
Operational order generation unit, for generating operational order according to the object time node, the operational order is used for will The current time node of data center is switched to the object time node;
Operational order transmission unit, for the operational order to be transmitted to data center.
10. system according to claim 9, which is characterized in that the switch service module further include:
Acquiring unit, for obtaining the current time node of data center;
Comparing unit, for the object time node to be compared with the current time node of the data center.
11. system according to claim 9, which is characterized in that the data center further include:
Command reception module, for receiving operational order;
Sorting module, for will be lined up according to the sequencing for receiving operational order to the operational order;
Execution module, for sequentially executing the operational order.
12. system according to claim 11, which is characterized in that the execution module includes:
Resolution unit parses the current time node in the operational order after receiving operational order;
Comparing unit, the current time node for the current time node and data center.
13. system according to claim 9, which is characterized in that the time check unit includes:
First request subelement, the system time for equipment where request data center;
First comparing subunit, for the system time of equipment and the institute of data center where the switch service module In the system time of equipment;
First alarm part-unit, for generating the first warning message.
14. system according to claim 9, which is characterized in that the time check unit includes:
Second request subelement, the system time for equipment where requesting other switch service modules;
Second comparing subunit services mould for the system time of equipment where the switch service module and other switchings The system time of equipment where block;
Second alarm part-unit, for generating the second warning message.
CN201610903353.1A 2016-10-17 2016-10-17 A kind of timing node switching method and system Active CN106487469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610903353.1A CN106487469B (en) 2016-10-17 2016-10-17 A kind of timing node switching method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610903353.1A CN106487469B (en) 2016-10-17 2016-10-17 A kind of timing node switching method and system

Publications (2)

Publication Number Publication Date
CN106487469A CN106487469A (en) 2017-03-08
CN106487469B true CN106487469B (en) 2019-01-11

Family

ID=58270805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610903353.1A Active CN106487469B (en) 2016-10-17 2016-10-17 A kind of timing node switching method and system

Country Status (1)

Country Link
CN (1) CN106487469B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175116B (en) * 2019-05-05 2023-07-25 中国银行股份有限公司 Test date switching method, device and system
CN112486249B (en) * 2020-11-30 2021-09-03 掌阅科技股份有限公司 Time synchronization method, computing device and computer storage medium
CN114090605A (en) * 2021-11-30 2022-02-25 中国建设银行股份有限公司 Daily cutting method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5291528A (en) * 1991-05-01 1994-03-01 Ncr Corporation Circuit for glitch-free switching of asynchronous clock sources
CN101661408A (en) * 2009-09-14 2010-03-03 四川川大智胜软件股份有限公司 Distributed real-time data replication synchronizing method
CN102567081A (en) * 2010-12-07 2012-07-11 腾讯科技(深圳)有限公司 Multi-process-based global setting method and multi-process-based global setting system
CN103294561A (en) * 2012-03-05 2013-09-11 腾讯科技(深圳)有限公司 Process running method and device
CN103905397A (en) * 2012-12-28 2014-07-02 腾讯科技(深圳)有限公司 Data synchronization method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5291528A (en) * 1991-05-01 1994-03-01 Ncr Corporation Circuit for glitch-free switching of asynchronous clock sources
CN101661408A (en) * 2009-09-14 2010-03-03 四川川大智胜软件股份有限公司 Distributed real-time data replication synchronizing method
CN102567081A (en) * 2010-12-07 2012-07-11 腾讯科技(深圳)有限公司 Multi-process-based global setting method and multi-process-based global setting system
CN103294561A (en) * 2012-03-05 2013-09-11 腾讯科技(深圳)有限公司 Process running method and device
CN103905397A (en) * 2012-12-28 2014-07-02 腾讯科技(深圳)有限公司 Data synchronization method and system

Also Published As

Publication number Publication date
CN106487469A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN106487469B (en) A kind of timing node switching method and system
CN110830324B (en) Method and device for detecting network connectivity of data center and electronic equipment
CN105677673B (en) Method for processing business, apparatus and system
CN110275680B (en) Double-control double-active storage system
CN109634730A (en) Method for scheduling task, device, computer equipment and storage medium
Xia et al. Performance and availability modeling of ITSystems with data backup and restore
CN114357495B (en) Prediction machine under-chain aggregation method, device, equipment and medium based on block chain
CN111160873A (en) Batch processing device and method based on distributed architecture
CN108259227A (en) A kind of method of data synchronization of two-node cluster hot backup interlock system
CN110457176A (en) For the monitoring method of distributed system, device, storage medium and electronic equipment
CN101820359A (en) Fault processing method and equipment for network equipment
CN108243055A (en) A kind of container cloud is found and Accreditation System and method automatically
US8954576B2 (en) Test analysis system of network and analysis method thereof
CN109921897B (en) Triggering method and device for workload certification calculation, calculating equipment and storage medium
CN110119314A (en) A kind of server calls method, apparatus, server and storage medium
EP3660679B1 (en) Data backup method, device and system
CN111628903B (en) Monitoring method and monitoring system for transaction system running state
CN109213701A (en) Control method, system, equipment and the storage medium of the peripheral hardware of shared I O board
US20160182177A1 (en) Techniques for synchronized execution of a command at network fabric nodes
CN116346834A (en) Session synchronization method, device, computing equipment and computer storage medium
CN109062758A (en) A kind of server system delay machine processing method, system, medium and equipment
CN107976570A (en) Power consumption test method, device and medium during a kind of storage system data backup
CN104113932B (en) A kind of method and apparatus of AP equipment reconnection
CN110086660B (en) Data processing method and device
CN109522158A (en) A kind of disaster-tolerant backup method and relevant apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant