[go: up one dir, main page]

CN105933379B - A kind of method for processing business, equipment and system - Google Patents

A kind of method for processing business, equipment and system Download PDF

Info

Publication number
CN105933379B
CN105933379B CN201610203775.8A CN201610203775A CN105933379B CN 105933379 B CN105933379 B CN 105933379B CN 201610203775 A CN201610203775 A CN 201610203775A CN 105933379 B CN105933379 B CN 105933379B
Authority
CN
China
Prior art keywords
data
server
state
lock file
primary 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.)
Active
Application number
CN201610203775.8A
Other languages
Chinese (zh)
Other versions
CN105933379A (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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610203775.8A priority Critical patent/CN105933379B/en
Publication of CN105933379A publication Critical patent/CN105933379A/en
Application granted granted Critical
Publication of CN105933379B publication Critical patent/CN105933379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of method for processing business, equipment and system, wherein method includes:When monitoring that data change has occurred, update lock file;By changed data and the updated lock file push to standby server to realize that data are synchronous;When determining that the state of the standby server is switched to master state, oneself state is switched to stand-by state.According to this programme, after data change has occurred in primary server, changed data are directly pushed to standby server to realize that data synchronize, in order to ensure the normal operation of business processing, whether lock file can be utilized to determine the failure of primary server, and when primary server breaks down, oneself state is switched to master state by standby server, oneself state is switched to stand-by state by primary server, to ensure that the normal work of primary server and standby server.

Description

A kind of method for processing business, equipment and system
Technical field
The present invention relates to field of communication technology, more particularly to a kind of method for processing business, equipment and system.
Background technology
In HPC, (in (High Performance Computing, high-performance calculation) cluster, job scheduling service is one A key service is connected using two servers with HPC cluster, using one of server to HPC cluster under normal circumstances Job scheduling is carried out, when the current server breaks down, another server is switched to and continues to carry out operation to HPC cluster Scheduling, in this case it is necessary to ensure the consistency of data in two servers.
Currently, primary server and standby server are total by NFS (Network File System, Network File System) Storage carry is enjoyed in local directory, when data update occurring in primary server, which is deposited to the NFS is shared Chu Zhong, to realize the update of data in standby server, to reach one of data between primary server and standby server Cause property.
However, when the shared storages of NFS are broken down, it can cause primary server and standby server all can not normal work Make, to influence the business of entire cluster.
Invention content
An embodiment of the present invention provides a kind of method for processing business, equipment and system, to ensure primary server and spare The normal work of server.
In a first aspect, an embodiment of the present invention provides a kind of method for processing business, it is applied to primary server, the method Including:
When monitoring that data change has occurred, update lock file;
By changed data and the updated lock file push to standby server to realize that data are synchronous;
When determining that the state of the standby server is switched to master state, oneself state is switched to stand-by state.
Preferably, further comprise:Configure synchronous directory and synchronisation key;
Further comprise:The data corresponding to each directory entry in the synchronous directory are monitored, and are monitoring target When data change has occurred in directory entry, it is determined that monitor that data change has occurred;
It is described that changed data are pushed to standby server, including:By the target directory item and corresponding change Data, the synchronisation key after more are pushed to the standby server, so that the standby server is verifying the synchronization When key is correct, update is synchronized to the data of the target directory item according to the changed data.
Second aspect, the embodiment of the present invention additionally provide a kind of method for processing business, are applied to standby server, set in advance It sets the goal the period, the method includes:
Receive the changed data and lock file of primary server push;
The changed data of synchronized update primary server push, and store the lock file being currently received;
By the lock file being currently received and all lock files for receiving in the current target time section into Row compares, when comparison result includes the lock file being currently received and all lock file all sames, it is determined that described primary Server fail;
Oneself state is switched to master state, and the handover information is notified to the primary server, so that described Its state is switched to stand-by state by primary server.
Preferably, further comprise:Configure synchronous directory and synchronisation key;
The changed data of the synchronized update primary server push, including:According to the synchronisation key to described The key carried in the data of primary server push is verified, and when being verified, is pushed away according to the primary server The target directory item sent and the corresponding changed data of target directory item update the changed data to described same It walks in the target directory item in catalogue.
The third aspect, the embodiment of the present invention additionally provide a kind of primary server, including:
Monitoring unit has occurred data change for monitoring whether, and is triggered more monitoring to have occurred when data change New unit executes corresponding operating;
The updating unit, for updating lock file;
Push unit, for by changed data and the updated lock file push to standby server to realize Data synchronize;
Switch unit, for when determining that the state of the standby server is switched to master state, oneself state to be cut It is changed to stand-by state.
Preferably, further comprise:Dispensing unit, for configuring synchronous directory and synchronisation key;
The monitoring unit, specifically for the data corresponding to each directory entry in the monitoring synchronous directory, and When monitoring that data change has occurred in target directory item, it is determined that monitor that data change has occurred;
The push unit is specifically used for the target directory item and corresponding changed data, the synchronization Key is pushed to the standby server so that the standby server verify the synchronisation key it is correct when, according to described Changed data synchronize update to the data of the target directory item.
Fourth aspect, the embodiment of the present invention additionally provide a kind of standby server, including:
Setup unit, for setting target time section;
Receiving unit, the changed data for receiving primary server push and lock file;
Synchronized update unit, the changed data for the push of synchronized update primary server;
Storage unit, for storing the lock file being currently received;
Comparing unit, for by the lock file being currently received with receive in the current target time section All lock files are compared, when comparison result includes the lock file being currently received and all lock file all sames, then Determine that the primary server breaks down;
Processing unit for oneself state to be switched to master state, and the handover information is notified to the primary clothes Business device, so that its state is switched to stand-by state by the primary server.
Preferably, further comprise:Dispensing unit, for configuring synchronous directory and synchronisation key;
The synchronized update unit is specifically used in the data pushed to the primary server according to the synchronisation key The key of carrying is verified, and when being verified, the target directory item and the mesh pushed according to the primary server The corresponding changed data of directory entry are marked, by changed data update to the target directory in the synchronous directory Xiang Zhong.
5th aspect, the embodiment of the present invention additionally provide a kind of transaction processing system, including above-mentioned primary server and Above-mentioned standby server.
An embodiment of the present invention provides a kind of method for processing business, equipment and systems, and number has occurred in primary server After change, changed data are directly pushed to standby server to realize that data synchronize, in order to ensure business processing Normal operation, it is spare whether lock file can be utilized to determine the failure of primary server, and when primary server breaks down Oneself state is switched to master state by server, and oneself state is switched to stand-by state by primary server, to ensure that The normal work of primary server and standby server.
Description of the drawings
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 technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of method flow diagram provided by one embodiment of the present invention;
Fig. 2 is another method flow diagram provided by one embodiment of the present invention;
Fig. 3 is another method flow diagram provided by one embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of primary server provided by one embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another primary server provided by one embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of standby server provided by one embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another standby server provided by one embodiment of the present invention;
Fig. 8 is transaction processing system structural schematic diagram provided by one embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Referring to FIG. 1, an embodiment of the present invention provides a kind of method for processing business, it is applied to primary server, this method It may comprise steps of:
Step 101:When monitoring that data change has occurred, update lock file.
Step 102:By changed data and the updated lock file push to standby server to realize data It is synchronous.
Step 103:When determining that the state of the standby server is switched to master state, oneself state is switched to standby Use state.
The scheme provided according to embodiments of the present invention directly will change after data change has occurred in primary server Data-pushing afterwards, to realize that data synchronize, in order to ensure the normal operation of business processing, can utilize lock to standby server Whether file determines the failure of primary server, and when primary server breaks down, standby server cuts oneself state It is changed to master state, oneself state is switched to stand-by state by primary server, to ensure that primary server and spare clothes The normal work of business device.
In an embodiment of the invention, in order to reduce the data of data transmission between primary server and standby server Amount, and the safety that data synchronize is improved, it may further include:Configure synchronous directory and synchronisation key;
Further comprise:The data corresponding to each directory entry in the synchronous directory are monitored, and are monitoring target When data change has occurred in directory entry, it is determined that monitor that data change has occurred;
It is described that changed data are pushed to standby server, including:By the target directory item and corresponding change Data, the synchronisation key after more are pushed to the standby server, so that the standby server is verifying the synchronization When key is correct, update is synchronized to the data of the target directory item according to the changed data.
The scheme provided according to embodiments of the present invention can be verified data-pushing side using synchronisation key, to carry The safety that high data synchronize, prevents rogue program from attacking standby server.With by configuring synchronous directory, in synchronization Data change occurs for a few items in catalogue, can only by data change occurs that several be synchronized to standby server, Without synchronizing all data one time every time, so as to improve the efficiency of transmission of data.
Referring to FIG. 2, an embodiment of the present invention provides a kind of method for processing business, it is applied to standby server, this method It may comprise steps of:
Step 201:Set target time section;
Step 202:Receive the changed data and lock file of primary server push;
Step 203:The changed data of synchronized update primary server push, and store the lock text being currently received Part;
Step 204:The lock file being currently received is owned with what is received in the current target time section Lock file is compared, when comparison result includes the lock file being currently received and all lock file all sames, it is determined that The primary server breaks down;
Step 205:Oneself state is switched to master state, and the handover information is notified to the primary server, So that its state is switched to stand-by state by the primary server.
The scheme provided according to embodiments of the present invention, by receiving the changed data of primary server push to realize Data synchronize, and share the failure problems stored without considering, can further improve the safety of data synchronization, in order to Ensure the normal operation of business processing, whether lock file can be utilized to determine the failure of primary server, and in primary server When breaking down, oneself state is switched to master state by standby server, and oneself state is switched to spare by primary server State, to ensure that the normal work of primary server and standby server.
In an embodiment of the invention, in order to reduce the data of data transmission between primary server and standby server Amount, and the safety that data synchronize is improved, further comprise:Configure synchronous directory and synchronisation key;
The changed data of the synchronized update primary server push, including:According to the synchronisation key to described The key carried in the data of primary server push is verified, and when being verified, is pushed away according to the primary server The target directory item sent and the corresponding changed data of target directory item update the changed data to described same It walks in the target directory item in catalogue.
The scheme provided according to embodiments of the present invention can be verified data-pushing side using synchronisation key, to carry The safety that high data synchronize, prevents rogue program from attacking standby server.With by configuring synchronous directory, in synchronization Data change occurs for a few items in catalogue, can only by data change occurs that several be synchronized to standby server, Without synchronizing all data one time every time, so as to improve the efficiency of transmission of data.
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with the accompanying drawings and specific embodiment to this Invention is described in further detail.
As shown in figure 3, an embodiment of the present invention provides a kind of method for processing business, this method may comprise steps of:
Step 301:The configuration of activestandby state is carried out for server mu01 and server mu02.
In order to ensure the normal operation of business processing, especially in HPC cluster, two servers may be used to HPC Cluster carries out job scheduling, and when ensureing one of server fail, another server can substitute the failure Server works.
In the initial state, can be that server mu01 is configured to primary shape for server mu01 and server mu02 State is configured to stand-by state using as standby server using as primary server, for server mu02.
Step 302:The configuration of configuration file is carried out to primary server mu01.
In an embodiment of the invention, primary server mu01 can be configured as follows:The synchronous mesh of configuration Record and synchronisation key.
Wherein, which may include multiple directory entries, be needed to the synchronous directory for characterizing primary server In included each directory entry be monitored.
Wherein, to primary clothes when synchronisation key is for realizing that data synchronize between primary server and standby server What the identity of business device was verified.Due to, when carrying out data interaction, if without authentication, being subject between server To the attack of malice degree or rogue device, threaten to the data safety of server.
In an embodiment of the invention, a kind of following configuration file can be utilized to realize the configuration to primary server:
<Localpath watch="/opt/tsce/server_priv "><!- synchronous directory -->
<Remote ip=" mu02 " name=" scheduler "/><!- remote server -->
</localpath>
<rsync>
<CommonParams params="-artuz "/>
<Auth start=" true " users=" root " passwordfile="/etc/rsync.pas "/>
<UserDefinedPort start=" false " port=" 874 "/><!-- port=874-->
<Timeout start=" false " time=" 100 "/><!-- timeout=100-->
<Ssh start=" false "/>
</rsync>
In an embodiment of the invention, since the state for being related to two-server in the follow-up process switches, It also needs to realize the configuration to server mu02 according to above-mentioned configuration file.
Step 303:The configuration of configuration file is carried out to standby server mu02.
In an embodiment of the invention, standby server mu02 can be configured as follows:The synchronous mesh of configuration Record and synchronisation key.
Wherein, which may include multiple directory entries, need to realize and primary clothes for characterizing standby server Business device synchronizes the data of each directory entry included in the synchronous directory.
Wherein, to primary clothes when synchronisation key is for realizing that data synchronize between primary server and standby server What the identity of business device was verified.Due to, when carrying out data interaction, if without authentication, being subject between server To the attack of malice degree or rogue device, threaten to the data safety of server.
In an embodiment of the invention, a kind of following foot configuration file realization can be utilized to match standby server It sets:
In an embodiment of the invention, since the state for being related to two-server in the follow-up process switches, It also needs to realize the configuration to server mu01 according to above-mentioned configuration file.
Step 304:Server mu01 is when monitoring that data change has occurred, update lock file.
In an embodiment of the invention, server mu01 needs each included by preconfigured synchronous directory A directory entry is monitored data, when monitoring that data change has occurred, needs the attribute information for changing data update Into lock file.
Wherein, which can include but is not limited to following information:Job property, operation ID number, belonging to the operation Resource and operation submission time etc. used in user name, jobs node.
Step 305:The target directory item and corresponding changed data and synchronisation key that data change will have occurred It is pushed to server mu02.
In an embodiment of the invention, in order to ensure that server mu02 can root after server mu01 breaks down According to data normal operation in server mu01, need to carry out data synchronization between two servers.In order to reduce by two servers Between data transmission data volume, server mu01 need to only give the data-pushing changed to server mu02.
Step 306:The synchronisation key that server mu02 sends server mu01 according to the synchronisation key itself configured into Row verification, when being verified, continues to execute next step.
In an embodiment of the invention, if synchronisation key does not pass through, refusal and server mu01 progress data are same Step update.
Step 307:Server mu02 carries out local synchronization update operation according to the changed data received.
In an embodiment of the invention, server mu02 can be according to each mesh in the information of server mu01 push Mark directory entry determines the directory entry that data change has occurred, and changed data are updated into corresponding directory entry, to Realize the synchronized update of local data.
Step 308:Server mu02 stores the lock file being currently received.
Step 309:By the lock file being currently received and all locks received in current target time section text Part is compared, when comparison result includes the lock file being currently received and all lock file all sames, it is determined that service Device mu01 breaks down.
Wherein, which can pre-set, for example, 10s.
Assuming that receiving lock file 1, lock file 2 and lock file 3, clothes altogether in the lock file 10s that distance is currently received Business device mu02 needs to scan this four lock files one by one, and compare the lock file that is currently received whether with lock file 1, File 2 and lock 3 all same of file are locked, if so, determining that failure has occurred in server mu01.
Step 310:Oneself state is switched to master state by server mu02, the work of take over server mu01, and to Server mu02 sends the notice of state switching.
Step 311:Server mu01 is switched to stand-by state according to the notice, by oneself state.
Referring to FIG. 4, an embodiment of the present invention provides a kind of primary servers, including:
Monitoring unit 401 has occurred data change for monitoring whether, and is triggered monitoring to have occurred when data change Updating unit executes corresponding operating;
The updating unit 402, for updating lock file;
Push unit 403, for by changed data and the updated lock file push to standby server with Realize that data synchronize;
Switch unit 404, for when determining that the state of the standby server is switched to master state, by oneself state It is switched to stand-by state.
In an embodiment of the invention, referring to FIG. 5, the primary server may further include:
Dispensing unit 501, for configuring synchronous directory and synchronisation key;
The monitoring unit 401 is specifically used for monitoring the data in the synchronous directory corresponding to each directory entry, and When monitoring that data change has occurred in target directory item, it is determined that monitor that data change has occurred;
The push unit 403 is specifically used for the target directory item and corresponding changed data, described same Step key is pushed to the standby server so that the standby server verify the synchronisation key it is correct when, according to institute It states changed data and update is synchronized to the data of the target directory item.
As shown in fig. 6, an embodiment of the present invention provides a kind of standby servers, including:
Setup unit 601, for setting target time section;
Receiving unit 602, the changed data for receiving primary server push and lock file;
Synchronized update unit 603, the changed data for the push of synchronized update primary server;
Storage unit 604, for storing the lock file being currently received;
Comparing unit 605, for receiving the lock file being currently received in the current target time section To all lock files be compared, include the lock file that is currently received and all lock file all sames in comparison result When, it is determined that the primary server breaks down;
Processing unit 606 for oneself state to be switched to master state, and the handover information is notified to described primary Server, so that its state is switched to stand-by state by the primary server.
In an embodiment of the invention, referring to FIG. 7, the standby server may further include:
Dispensing unit 701, for configuring synchronous directory and synchronisation key;
The synchronized update unit 603 is specifically used for the number pushed to the primary server according to the synchronisation key Verified according to the key of middle carrying, and when being verified, according to the primary server push target directory item and The corresponding changed data of target directory item, by changed data update to the target in the synchronous directory In directory entry.
Referring to FIG. 8, the embodiment of the present invention additionally provides a kind of transaction processing system, including above-mentioned primary server 801 With above-mentioned standby server 802.
To sum up, following advantageous effect at least may be implemented in the embodiment of the present invention:
1, in embodiments of the present invention, after data change has occurred in primary server, directly by changed data Standby server is pushed to realize that data synchronize, in order to ensure the normal operation of business processing, lock file can be utilized to determine Whether the failure of primary server, and when primary server breaks down, oneself state is switched to primary by standby server Oneself state is switched to stand-by state by state, primary server, to ensure that primary server and standby server just Often work.
2, in embodiments of the present invention, by configuring synchronous directory among primary server and standby server, so that Between active/standby server in the update for changing data, only the directory entry changed need to be sent standby server i.e. Can, without being transmitted the current data of all directory entries, so as to reduce the volume of transmitted data between active/standby server.
3, in embodiments of the present invention, by configuring synchronisation key among primary server and standby server, with When making primary server to standby server propelling data, standby server can according to the synchronisation key to primary server into Row authentication improves the safety of data so as to avoid rogue program from being attacked caused by itself.
The contents such as the information exchange between each unit, implementation procedure in above-mentioned apparatus, due to implementing with the method for the present invention Example is based on same design, and particular content can be found in the narration in the method for the present invention embodiment, and details are not described herein again.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non- It is exclusive to include, so that the process, method, article or equipment including a series of elements includes not only those elements, But also include other elements that are not explicitly listed, or further include solid by this process, method, article or equipment Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged Except there is also other identical factors in the process, method, article or apparatus that includes the element.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in computer-readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or light In the various media that can store program code such as disk.
Finally, it should be noted that:The foregoing is merely presently preferred embodiments of the present invention, is merely to illustrate the skill of the present invention Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention, Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.

Claims (7)

1. a kind of method for processing business, which is characterized in that it is applied to primary server, the method includes:
When monitoring that data change has occurred, update lock file;
By changed data and the updated lock file push to standby server to realize that data are synchronous;
When determining that the state of the standby server is switched to master state, oneself state is switched to stand-by state;
Further comprise:Configure synchronous directory and synchronisation key;
Further comprise:The data corresponding to each directory entry in the synchronous directory are monitored, and are monitoring target directory When data change has occurred in item, it is determined that monitor that data change has occurred;
It is described that changed data are pushed to standby server, including:After the target directory item and corresponding change Data, the synchronisation key be pushed to the standby server so that the standby server is verifying the synchronisation key When correct, update is synchronized to the data of the target directory item according to the changed data.
2. a kind of method for processing business, which is characterized in that be applied to standby server, preset target time section, the side Method includes:
Receive the changed data and lock file of primary server push;
The changed data of synchronized update primary server push, and store the lock file being currently received;
The lock file being currently received is compared with all lock files received in the current target time section Compared with when comparison result includes the lock file being currently received and all lock file all sames, it is determined that the primary service Device breaks down;
Oneself state is switched to master state, and the handover information is notified to the primary server, so that described primary Its state is switched to stand-by state by server.
3. according to the method described in claim 2, it is characterized in that,
Further comprise:Configure synchronous directory and synchronisation key;
The changed data of the synchronized update primary server push, including:According to the synchronisation key to described primary The key carried in the data of server push is verified, and when being verified, according to primary server push Target directory item and the corresponding changed data of target directory item, by changed data update to the synchronous mesh In the target directory item in record.
4. a kind of primary server, which is characterized in that including:
Data change has occurred for monitoring whether in monitoring unit, and triggering update is single when monitoring that data change has occurred Member executes corresponding operating;
The updating unit, for updating lock file;
Push unit, for by changed data and the updated lock file push to standby server to realize data It is synchronous;
Switch unit, for when determining that the state of the standby server is switched to master state, oneself state to be switched to Stand-by state;
Further comprise:Dispensing unit, for configuring synchronous directory and synchronisation key;
The monitoring unit is specifically used for monitoring the data in the synchronous directory corresponding to each directory entry, and is monitoring When data change has occurred to target directory item, it is determined that monitor that data change has occurred;
The push unit is specifically used for the target directory item and corresponding changed data, the synchronisation key Be pushed to the standby server so that the standby server verify the synchronisation key it is correct when according to the change after Data update is synchronized to the data of the target directory item.
5. a kind of standby server, which is characterized in that including:
Setup unit, for setting target time section;
Receiving unit, the changed data for receiving primary server push and lock file;
Synchronized update unit, the changed data for the push of synchronized update primary server;
Storage unit, for storing the lock file being currently received;
Comparing unit, for owning the lock file being currently received with what is received in the current target time section Lock file is compared, when comparison result includes the lock file being currently received and all lock file all sames, it is determined that The primary server breaks down;
Processing unit for oneself state to be switched to master state, and the handover information notifies to the primary server, So that its state is switched to stand-by state by the primary server.
6. standby server according to claim 5, which is characterized in that
Further comprise:Dispensing unit, for configuring synchronous directory and synchronisation key;
The synchronized update unit, specifically for being carried in the data that are pushed to the primary server according to the synchronisation key Key verified, and when being verified, the target directory item and the target mesh that are pushed according to the primary server The corresponding changed data of item are recorded, by changed data update to the target directory item in the synchronous directory In.
7. a kind of transaction processing system, which is characterized in that including the primary server and aforesaid right described in the claims 4 It is required that the standby server described in 5 or 6.
CN201610203775.8A 2016-04-01 2016-04-01 A kind of method for processing business, equipment and system Active CN105933379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610203775.8A CN105933379B (en) 2016-04-01 2016-04-01 A kind of method for processing business, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610203775.8A CN105933379B (en) 2016-04-01 2016-04-01 A kind of method for processing business, equipment and system

Publications (2)

Publication Number Publication Date
CN105933379A CN105933379A (en) 2016-09-07
CN105933379B true CN105933379B (en) 2018-10-09

Family

ID=56840412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610203775.8A Active CN105933379B (en) 2016-04-01 2016-04-01 A kind of method for processing business, equipment and system

Country Status (1)

Country Link
CN (1) CN105933379B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066480B (en) * 2016-12-20 2020-08-11 创新先进技术有限公司 Method, system and equipment for managing main and standby databases
CN106657360A (en) * 2016-12-30 2017-05-10 曙光信息产业(北京)有限公司 Synchronization method and system for NIS servers under Linux system
CN108572890A (en) * 2018-04-26 2018-09-25 赵程章 Transaction Information synchronous method and device
CN112995723B (en) * 2019-12-12 2023-09-22 中兴通讯股份有限公司 EPG data management method and EPG server
CN112769903A (en) * 2020-12-24 2021-05-07 青岛奥利普自动化控制系统有限公司 Real-time pushing method and device for equipment data acquisition information and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060391A (en) * 2007-05-16 2007-10-24 华为技术有限公司 Master and spare server switching method and system and master server and spare server
CN102708150A (en) * 2012-04-12 2012-10-03 华为技术有限公司 Method, device and system for asynchronously copying data
CN105141400A (en) * 2015-07-30 2015-12-09 杭州华为数字技术有限公司 High-availability cluster management method and related equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110302265A1 (en) * 2010-06-03 2011-12-08 Microsoft Corporation Leader arbitration for provisioning services

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060391A (en) * 2007-05-16 2007-10-24 华为技术有限公司 Master and spare server switching method and system and master server and spare server
CN102708150A (en) * 2012-04-12 2012-10-03 华为技术有限公司 Method, device and system for asynchronously copying data
CN105141400A (en) * 2015-07-30 2015-12-09 杭州华为数字技术有限公司 High-availability cluster management method and related equipment

Also Published As

Publication number Publication date
CN105933379A (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN105933379B (en) A kind of method for processing business, equipment and system
CN106331098B (en) Server cluster system
CN108134706A (en) Block chain high-availability system mostly living, computer equipment and method
CN104715001B (en) The method and system of write operation is performed for the shared resource in the cluster to data handling system
US7702667B2 (en) Methods and systems for validating accessibility and currency of replicated data
US11520808B2 (en) System and method for synchronizing data between communication devices in a networked environment without a central server
EP3832578A1 (en) Electronic invoice identifier allocation method, and electronic ticket generating method, device and system
EP2273371B1 (en) Failover procedure for server system
KR100491541B1 (en) A contents synchronization system in network environment and a method therefor
CN111459749B (en) Prometheus-based private cloud monitoring method and device, computer equipment and storage medium
CN106850260A (en) A kind of dispositions method and device of virtual resources management platform
CN111045602B (en) Cluster system control method and cluster system
CN111597197B (en) Data reconciliation method and device between databases, storage medium and electronic equipment
CN113190620B (en) Method, device, equipment and storage medium for synchronizing data between Redis clusters
CN111857969A (en) Data disaster recovery reconstruction method, system, device and storage medium
CN114301763B (en) Distributed cluster fault processing method and system, electronic equipment and storage medium
CN116346834A (en) Session synchronization method, device, computing equipment and computer storage medium
CN114153655B (en) Disaster recovery system creation method, disaster recovery method, device, equipment and medium
CN115277379A (en) Distributed lock disaster tolerance processing method and device, electronic equipment and storage medium
CN115174594A (en) Data synchronization method, device, equipment and medium for distributed system
CN109714354B (en) Website security management system and website security control method
CN109462639B (en) Port expansion equipment management method and device
CN114125827A (en) Terminal management method, device and centralized management system
CN112804087A (en) Operation implementation method, device, equipment and storage medium of alliance network
CN111722988A (en) Fault switching method and device for data space nodes

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