CN105743936B - A kind of method and device sending linkage data update instruction - Google Patents
A kind of method and device sending linkage data update instruction Download PDFInfo
- Publication number
- CN105743936B CN105743936B CN201410745175.5A CN201410745175A CN105743936B CN 105743936 B CN105743936 B CN 105743936B CN 201410745175 A CN201410745175 A CN 201410745175A CN 105743936 B CN105743936 B CN 105743936B
- Authority
- CN
- China
- Prior art keywords
- server
- data
- linkage
- data update
- updated
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 88
- 230000009977 dual effect Effects 0.000 claims abstract description 120
- 230000008569 process Effects 0.000 claims description 45
- 230000005540 biological transmission Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000008602 contraction Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of method and devices sending linkage data update instruction, belong to the communications field.The method includes:First server receives the linkage data update instruction that Paas platforms are sent, it by the corresponding data update of Data Identification to be updated of storage is data to be updated that the linkage more new command, which is used to ask a server in dual systems, and first server is any server in dual systems;Determine whether first server is server of the linkage more new command for request;Server if not the linkage more new command for request, then obtain the identification information for the second server that the dual systems is formed with first server;The linkage data update instruction is sent to second server according to the identification information of second server, so that the corresponding data update of the Data Identification to be updated of storage is the data to be updated by the second server.The present invention can be realized is updated data in dual systems.
Description
Technical field
The present invention relates to the communications field, more particularly to a kind of method and device sending linkage data update instruction.
Background technology
With the development of telecom cloud, telecommunication service can be deployed in telecom cloud, telecommunication service to reliability requirement very
Height, so running telecommunication service using dual systems in telecom cloud.Dual systems includes primary server and active service
Device usually runs business by primary server, is backed up to the data of primary server by standby server, to carry
The reliability of high service operation.
It is needing to update the data when carrying out linkage stretching, extension and shrinking between being associated two business in telecom cloud, is introducing two-shipper
After system, the effect of the linkage stretching, extension contraction how being updated the business of directly affecting to data in the server of dual systems
Rate is current urgent problem.
Invention content
Data are updated in dual systems in order to carry out realizing when linkage stretching, extension is shunk between two business, the present invention
Provide a kind of method and device sending linkage data update instruction.The technical solution is as follows:
First aspect, a kind of method sending linkage data update instruction, the method includes:
First server receiving platform is the linkage data update instruction for servicing Paas platforms and sending, and the linkage update refers to
Enable for ask the server in dual systems by the corresponding data update of Data Identification to be updated of storage be it is to be updated
Data, the first server be the dual systems in any server;
The first server determines whether the first server is service of the linkage more new command for request
Device;
Server if not the linkage more new command for request, then the first server obtain and described the
One server forms the identification information of the second server of the dual systems;
The first server sends according to the identification information of the second server to the second server described
Dynamic data update instruction, so that the corresponding data update of the Data Identification to be updated of storage is by the second server
The data to be updated.
With reference to first aspect, in the first possible realization method of first aspect, the linkage more new command is used for
The server of request is the primary server of the dual systems;
Whether the determination first server is server of the linkage more new command for request, including:
Obtain the process being currently running in the first server;
Determine whether the first server is primary server in the dual systems according to the process of the acquisition.
The first possible realization method with reference to first aspect, in second of possible realization method of first aspect,
The process being currently running obtained in the first server, including:
Call the service scenario in the first server;
By running the service scenario, the process being currently running in the first server is obtained.
The possible realization method of with reference to first aspect the first, in the third possible realization method of first aspect
In, the process according to the acquisition determines whether the first server is primary server in dual systems, including:
Determine in the process of the acquisition whether include business process;
If including business process, it is determined that it is the primary server in the dual systems to go out the first server.
With reference to first aspect, in the 4th kind of possible realization method of first aspect, the determination first service
Whether device is server of the linkage more new command for request, including:
The first body of server of the linkage more new command for request is obtained from the linkage data update instruction
Part information;
Obtain the second identity information of the first server;
If first identity information is identical as second identity information, it is determined that the first server is described
Server of the more new command that links for request.
With reference to first aspect, in the 5th kind of possible realization method of first aspect, the method further includes:
If the first server is server of the linkage more new command for request, by the first service
Data to be updated described in the corresponding data update of the Data Identification to be updated stored in device.
The 5th kind of possible realization method with reference to first aspect, in the 6th kind of possible realization method of first aspect
In, it is described will be to be updated described in the corresponding data update of the Data Identification to be updated stored in the first server
Data, including:
Call the data update script in the first server;
By running the data update script, the Data Identification to be updated that will be stored in the first server
Data to be updated described in corresponding data update.
Second aspect, a kind of device sending linkage data update instruction, described device is first server, described first
Server is any server in dual systems, and the first server includes:
Receiving module is the linkage data update instruction for servicing Paas platforms and sending for receiving platform, and the linkage is more
New command is for asking the server in the dual systems by the corresponding data update of Data Identification to be updated of storage
For data to be updated;
Determining module, for determining whether the first server is service of the linkage more new command for request
Device;
Acquisition module then obtains and described for the server if not the linkage more new command for request
One server forms the identification information of the second server of the dual systems;
Sending module, for sending the linkage to the second server according to the identification information of the second server
Data update instructs, so that the corresponding data update of the Data Identification to be updated of storage is institute by the second server
State data to be updated.
In conjunction with second aspect, in the first possible realization method of second aspect, the linkage more new command is used for
The server of request is the primary server of the dual systems;
The determining module includes:
First acquisition unit, for obtaining the process being currently running in the first server;
Second determination unit, for determining whether the first server is the two-shipper system according to the process of the acquisition
Primary server in system.
In conjunction with the first possible realization method of second aspect, in second of possible realization method of second aspect,
The first acquisition unit includes:
Subelement is called, for calling the service scenario in the first server;
Obtain subelement, for by running the service scenario, obtain be currently running in the first server into
Journey.
In conjunction with the first possible realization method of second aspect, in the third possible realization method of second aspect
In, second determination unit includes:
Whether the first determination subelement includes business process in the process for determining the acquisition;
Second determination subelement, if for including business process, it is determined that it is the two-shipper to go out the first server
Primary server in system.
In conjunction with second aspect, in the 4th kind of possible realization method of second aspect, the determining module includes:
Second acquisition unit, for obtaining the linkage more new command for asking from linkage data update instruction
Server the first identity information;
Third acquiring unit, the second identity information for obtaining the first server;
Second determination unit, if identical as second identity information for first identity information, it is determined that institute
It is server of the linkage more new command for request to state first server.
Further include in the 5th kind of possible realization method of second aspect in conjunction with second aspect:
Update module, if being server of the linkage more new command for request for the first server,
By data to be updated described in the corresponding data update of the Data Identification to be updated stored in the first server.
In conjunction with the 5th kind of possible realization method of second aspect, in the 6th kind of possible realization method of second aspect
In, the update module includes:
Call unit, for calling the data update script in the first server;
Updating unit, for waiting for described in by running the data update script, being stored in the first server
Data to be updated described in the corresponding data update of newer Data Identification.
The third aspect, a kind of first server, the first server are any server in dual systems, described the
One server includes:
Receiver is the linkage data update instruction for servicing Paas platforms and sending, the linkage update for receiving platform
Instruction is for asking the server in the dual systems to be by the corresponding data update of Data Identification to be updated of storage
Data to be updated;
Processor, for determining whether the first server is server of the linkage more new command for request;
Server if not the linkage more new command for request then obtains and forms the two-shipper system with the first server
The identification information of the second server of system;
Transmitter, for sending the linkage number to the second server according to the identification information of the second server
According to more new command, so that the corresponding data update of the Data Identification to be updated of storage is described by the second server
Data to be updated.
In embodiments of the present invention, first server is received for asking the server in dual systems to carry out data more
After new linkage data update instruction, determine whether itself is server of the linkage data update request for request, if
It is to be instructed according to the linkage data update and carry out data update, if it is not, then setting up the second service of dual systems with it
Device sends linkage data update instruction to second server, is instructed and carried out according to the linkage data update by second server
Data update.Data are updated in dual systems in this way, carrying out realizing when linkage stretching, extension is shunk between two business, separately
Outside, when first server is not primary server, linkage data update request is directly transmitted to primary by first server
Server carries out data update by primary server, improves the efficiency of data update.
Description of the drawings
Fig. 1-1 is a kind of network architecture schematic diagram provided in an embodiment of the present invention;
Fig. 1-2 is a kind of method flow diagram for transmission linkage data update instruction that the embodiment of the present invention 1 provides;
Fig. 2 is a kind of method flow diagram for transmission linkage data update instruction that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of method flow diagram for transmission linkage data update instruction that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of structure drawing of device for transmission linkage data update instruction that the embodiment of the present invention 4 provides;
Fig. 5 is a kind of first server structure chart that the embodiment of the present invention 5 provides.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
It, at present can be by service deployment beyond the clouds in order to reduce the operation cost of business.High in the clouds can provide fortune for business
Capable server, the server can be virtual machine etc..Beyond the clouds in order to improve the reliability of service operation, adopt beyond the clouds at present
Business is run with dual systems, dual systems includes primary server and standby server, is usually transported by primary server
Industry is engaged in, and standby server backs up primary server, to improve the reliability of business.Beyond the clouds, dual systems from
Logic level is considered as a business network element, externally providing a kind of business.
Wherein, the dual systems for running business is by Paas (Platform-as-a-service, platform service) platform
It sets up, Paas platforms are a cloud platform in high in the clouds, are responsible for being managed the server in high in the clouds.For reliability requirement compared with
High business, Paas platforms can obtain two servers with anti-affinity relation, wherein take in embodiments of the present invention
Business device can be the virtual machine being deployed on host, and two servers of anti-affinity relation are to be deployed on different hosts machine
Two virtual machines.Then two servers are distributed into the business, which forms dual systems by two servers, and
The business is run by the dual systems.
The server in dual systems may carry out service interaction, i.e. the two-shipper system with other business network element beyond the clouds
The business run in system and the business of business network element operation carry out linkage stretching, extension and shrink.During service interaction, business
Network element may will produce the corresponding new data of some Data Identification, and the server in dual systems may also be stored with this
The corresponding data of Data Identification, but the corresponding data of the Data Identification stored in the server are legacy data, at this time industry
Business network element needs the corresponding data update of the Data Identification stored in the server to be the new data.For convenience of description,
The Data Identification is known as to Data Identification to be updated, which is known as to data to be updated.
Referring to network architecture diagram shown in Fig. 1-1, business network element sends linkage data update and asks to give Paas platforms, the connection
Dynamic data update request at least carries the service identification of the business of dual systems operation, data to be updated and number to be updated
According to mark, data update is carried out by the method that following any embodiment provides to trigger Paas platforms and the dual systems.
Embodiment 2
Referring to Fig. 1-2, an embodiment of the present invention provides a kind of methods sending linkage data update instruction, including:
Step 101:First server receives the linkage data update instruction that Paas platforms are sent, and the linkage more new command is used
In ask the server in dual systems by the corresponding data update of Data Identification to be updated of storage be number to be updated
According to first server is any server in dual systems.
Step 102:First server determines whether first server is server of the linkage more new command for request.
Step 103:Server if not the linkage more new command for request, then first server acquisition and first
Server forms the identification information of the second server of dual systems.
Wherein, the identification information of second server can be IP address, MAC Address or the domain name etc. of second server.
Step 104:First server sends the linkage data according to the identification information of second server to second server
More new command, so that the corresponding data update of Data Identification to be updated of storage is data to be updated by second server.
In embodiments of the present invention, first server is received for asking the server in dual systems to carry out data more
After new linkage data update instruction, determine whether itself is server of the linkage data update request for request, if
It is to be instructed according to the linkage data update and carry out data update, if it is not, then setting up the second service of dual systems with it
Device sends linkage data update instruction to second server, is instructed and carried out according to the linkage data update by second server
Data update.Data are updated in dual systems in this way, carrying out realizing when linkage stretching, extension is shunk between two business, separately
Outside, when first server is not primary server, linkage data update request is directly transmitted to primary by first server
Server carries out data update by primary server, improves the efficiency of data update.
Embodiment 2
An embodiment of the present invention provides a kind of methods sending linkage data update instruction.In embodiments of the present invention, double
Primary server in machine system is for running business, and standby server is used to back up primary server, service network
Member simply requests the primary server in dual systems and carries out data update, and referring to Fig. 2, this method includes:
Step 201:Paas platforms receive the linkage data update request that business network element is sent, linkage data update request
Carry service identification, Data Identification to be updated and data to be updated.
Wherein, in the present embodiment, it generates and is waited for more when business network element is interacted with the primary server in dual systems
Then new data ask Paas platforms that the linkage data update is forwarded to ask to the server in dual systems, should with request
Server carries out data update.
Step 202:Paas platforms obtain the dual systems for running the corresponding business of the service identification, into the dual systems
A server send linkage data update instruction, linkage data update instruction carries Data Identification to be updated and to be updated
Data.
Paas platforms, will be in the service identification of the business and the dual systems of establishment when setting up dual systems for business
The address of two servers is stored in service identification and the correspondence of dual systems, i.e., is previously stored in Paas platforms each
The address for each server that the service identification of business and the corresponding dual systems of each business include.
This step can be:Paas platforms are according to the service identification, from service identification and the correspondence of dual systems
The address for obtaining two servers that corresponding dual systems includes selects a server from the address of two servers
Address establish the transmission channel between the server of selection, pass through the transmission channel according to the address of the server of selection
Linkage data update instruction is sent to the server of selection, linkage data update instruction carries Data Identification to be updated and waits for
Newer data.
Wherein, it should be noted that:Since Paas platforms are not aware which of dual systems server is primary clothes
Business device and which server are standby servers, so Paas platforms can randomly choose a server.For the ease of saying
It is bright, the server of Paas platform selectings is known as first server, first server may be the primary server of dual systems,
It may also be the standby server of dual systems.
Step 203:First server receives linkage data update instruction, and linkage data update instruction carries to be updated
Data Identification and data to be updated, obtain the process itself being currently running.
Specifically, first server receives linkage data update instruction, and linkage data update instruction carries to be updated
Data Identification and data to be updated, call itself store service scenario obtaining itself just by running the service scenario
In the process of operation.
The service scenario is the realization code for obtaining the process being currently running in server, so first server is logical
It crosses and runs the service scenario, the process itself being currently running can be got.
Step 204:First server determines whether itself is primary service in the dual systems according to the process of acquisition
Device, if so, step 205 is executed, if it is not, executing step 206.
Specifically, whether it includes business process that first server determines in the process obtained, if including business process,
Itself is determined as the primary server in dual systems, if not including business process, it is determined that it is two-shipper system to go out itself not
Primary server in system.
Wherein, business is run by primary server in dual systems, by standby server come to primary server into
Row backup, so primary server includes the business process for running business, and standby server only includes monitoring process,
The monitoring process, when monitoring out in primary server there are when data variation, synchronizes standby for being monitored to primary server
With server and primary server.So in this step, if first server includes business process, first server
For the primary server in dual systems, if not including business process in first server, first server is not two-shipper
Primary server in system, but the standby server in the dual systems.
Step 205:The corresponding data update of Data Identification to be updated of storage is number to be updated by first server
According to Paas transmission updates as a result, end operation.
Specifically, first server calls the data update script in itself;It, will be certainly by running the data update script
The corresponding data update of the Data Identification to be updated data to be updated of body storage send update as a result, the update to Paas
As a result it is to be updated successfully.
Wherein, which is the realization code for updating the data, so first server should by operation
Data update script, can be by the corresponding data update of Data Identification to be updated of itself storage data to be updated.
Wherein, after Paas platforms receive the update result, which is transmitted to business network element.
Step 206:First server obtains the identification information with the second server of itself composition dual systems.
Wherein, when setting up dual systems, mutual trust can be established between two servers in dual systems and is closed
System.It is that two servers respectively generate a pair of public and private key pair, and are respectively sent to respective public key pair to establish process
Side, to which mutual trusting relationship is established in two server realizations.
This step can be:First server obtains and is established between itself the identification information of the server of trusting relationship,
The identification information of the server is determined as the identification information with the second server of itself composition dual systems.Second server
Identification information can be second server IP address, MAC Address or domain name etc..
Step 207:First server sends linkage data more according to the identification information of second server to second server
New command.
Specifically, first server can be encrypted to obtain close with the private key of itself to linkage data update instruction
Text sends the ciphertext according to the identification information of second server to second server.
Step 208:Second server receives linkage data update instruction, and linkage data update instruction carries to be updated
Data Identification and data to be updated, by itself storage the corresponding data update of Data Identification to be updated be it is to be updated
Data return to update result to first server.
Specifically, second server receives the ciphertext that first server is sent, close to this by the public key of first server
Text is decrypted, and obtains linkage data update instruction, and linkage data update instruction carries Data Identification to be updated and waits for
Newer data, the corresponding data update of Data Identification to be updated by itself storage are data to be updated, to the first clothes
Business device returns to update as a result, the update result is to be updated successfully.
Wherein, after first server receives the update result, which is transmitted to Paas platforms.Paas platforms connect
After receiving the update result, which is transmitted to business network element.
In embodiments of the present invention, first server receives the linkage number for asking primary server to carry out data update
It after more new command, determines whether itself is primary server, data is carried out more if so, being instructed according to the linkage data update
Newly, if it is not, then it is primary server to set up the second server of dual systems with it, the connection is sent to second server
Dynamic data update instruction, is instructed according to the linkage data update by second server and carries out data update.In this way, two business it
Between realize when linkage stretching, extension is shunk and be updated data in dual systems, in addition, when first server is not primary clothes
Be engaged in device when, linkage data update request is directly transmitted to primary server by first server, by primary server into line number
According to update, the efficiency of data update is improved.
Embodiment 3
An embodiment of the present invention provides a kind of methods sending linkage data update instruction.In embodiments of the present invention, double
Primary server in machine system is for running business, and standby server is for backing up primary server, it can also be used to
Operation business, business network element can ask the primary server in dual systems to carry out in data update or request dual systems
Standby server carries out data update, and referring to Fig. 3, this method includes:
Step 301:Paas platforms receive the linkage data update request that business network element is sent, linkage data update request
Carry the first identity information of a server in dual systems, service identification, Data Identification to be updated and to be updated
Data.
Wherein, in the present embodiment, it is generated when business network element is interacted with the server in dual systems to be updated
Data, which may be the primary server in dual systems, it is also possible to for the standby server in dual systems.So
Business network element request Paas platforms forward the linkage data update to ask to carry out data update to the server in dual systems afterwards.
If the server is the primary server in dual systems, the first identity information of the server is primary clothes
Business device, if the server is the standby server in dual systems, the first identity information of the server is active service
Device.
Step 302:Paas platforms obtain the dual systems for running the corresponding business of the service identification, into the dual systems
A server send linkage data update instruction, the linkage data update instruction carry the first identity information, number to be updated
According to mark and data to be updated.
Paas platforms, will be in the service identification of the business and the dual systems of establishment when setting up dual systems for business
The address of two servers is stored in service identification and the correspondence of dual systems, i.e., is previously stored in Paas platforms each
The address for each server that the service identification of business and the corresponding dual systems of each business include.
This step can be:Paas platforms are according to the service identification, from service identification and the correspondence of dual systems
The address for obtaining two servers that corresponding dual systems includes selects a server from the address of two servers
Address establish the transmission channel between the server of selection, pass through the transmission channel according to the address of the server of selection
Linkage data update instruction is sent to the server of selection, linkage data update instruction carries the first identity information, to be updated
Data Identification and data to be updated.
Wherein, it should be noted that:The identity of each server in dual systems, institute are not aware that due to Paas platforms
A server can be randomly choosed with Paas platforms.For convenience of description, the server of Paas platform selectings is known as first
Server, first server may be the corresponding server of the first identity information, it is also possible to not be that the first identity information is corresponding
Server.
Step 303:First server receives linkage data update instruction, and linkage data update instruction carries the first body
Part information, Data Identification to be updated and data to be updated, obtain the second identity information of itself.
Specifically, first server receives linkage data update instruction, and linkage data update instruction carries the first body
Part information, Data Identification to be updated and data to be updated obtain the first identity information from linkage data update instruction,
It logs in the database of itself and obtains the second identity information of itself from database.
Step 304:If the first identity information is identical as the second identity information, first server determines itself to be the connection
Server of the dynamic more new command for request, executes step 305.
Step 305:The corresponding data update of Data Identification to be updated of storage is number to be updated by first server
According to Paas transmission updates as a result, end operation.
Specifically, first server calls the data update script in itself;It, will be certainly by running the data update script
The corresponding data update of the Data Identification to be updated data to be updated of body storage send update as a result, the update to Paas
As a result it is to be updated successfully.
Wherein, which is the realization code for updating the data, so first server should by operation
Data update script, can be by the corresponding data update of Data Identification to be updated of itself storage data to be updated.
Wherein, after Paas platforms receive the update result, which is transmitted to business network element.
Step 306:If the first identity information is different from the second identity information, first server obtains and itself composition
The identification information of the second server of dual systems, and determine that second server is service of the linkage more new command for request
Device executes step 307.
Wherein, dual systems includes two servers of first server and second server, if first server
Second identity information is different from the first identity information, then it is that the linkage more new command is used to ask that can determine first server not
Server, and another server in dual systems, i.e. second server be the linkage more new command for request clothes
Business device.
Wherein, when setting up dual systems, mutual trust can be established between two servers in dual systems and is closed
System.It is that two servers respectively generate a pair of public and private key pair, and are respectively sent to respective public key pair to establish process
Side, to which mutual trusting relationship is established in two server realizations.
This step can be:First server obtains and is established between itself the identification information of the server of trusting relationship,
The identification information of the server is determined as the identification information with the second server of itself composition dual systems.Second server
Identification information can be second server IP address, MAC Address or domain name.
Step 307:First server sends linkage data more according to the identification information of second server to second server
New command.
Specifically, first server can be encrypted to obtain close with the private key of itself to linkage data update instruction
Text sends the ciphertext according to the identification information of second server to second server.
Step 308:Second server receives linkage data update instruction, and linkage data update instruction carries to be updated
Data Identification and data to be updated, by itself storage the corresponding data update of Data Identification to be updated be it is to be updated
Data return to update result to first server.
Specifically, second server receives the ciphertext that first server is sent, close to this by the public key of first server
Text is decrypted, and obtains linkage data update instruction, and linkage data update instruction carries Data Identification to be updated and waits for
Newer data, the corresponding data update of Data Identification to be updated by itself storage are data to be updated, to the first clothes
Business device returns to update as a result, the update result is to be updated successfully.
Wherein, after first server receives the update result, which is transmitted to Paas platforms.Paas platforms connect
After receiving the update result, which is transmitted to business network element.
In embodiments of the present invention, first server is received for asking the server in dual systems to carry out data more
After new linkage data update instruction, determine whether itself is server of the linkage data update instruction for request, if
It is to be instructed according to the linkage data update and carry out data update, if it is not, then setting up the second service of dual systems with it
Device sends linkage data update instruction to second server, is instructed and carried out according to the linkage data update by second server
Data update.Data are updated in dual systems in this way, carrying out realizing when linkage stretching, extension is shunk between two business, separately
Outside, when first server is not server of the linkage data update instruction for request, first server is directly by the connection
Dynamic data update request is transmitted to second server, carries out data update by second server, improves the efficiency of data update.
Embodiment 4
An embodiment of the present invention provides a kind of devices sending linkage data update instruction, which can be first service
Device, first server are any server in dual systems, and referring to Fig. 4, first server includes:
Receiving module 401, the linkage data update instruction for receiving the transmission of aas platforms, the linkage more new command are used for
Ask dual systems in a server by the corresponding data update of Data Identification to be updated of storage be data to be updated;
Determining module 402, for determining whether first server is server of the linkage more new command for request;
Acquisition module 403 then obtains and the first clothes for the server if not the linkage more new command for request
The identification information of the second server for device composition dual systems of being engaged in;
Sending module 404, for sending the linkage data more to second server according to the identification information of second server
New command, so that the corresponding data update of Data Identification to be updated of storage is data to be updated by second server.
Optionally, server of the linkage more new command for asking is the primary server of dual systems;
Determining module 402 includes:
First acquisition unit, for obtaining the process being currently running in first server;
Second determination unit, for determining whether first server is primary clothes in dual systems according to the process of acquisition
Business device.
Optionally, first acquisition unit includes:
Subelement is called, for calling the service scenario in first server;
Subelement is obtained, for by running the service scenario, obtaining the process being currently running in first server.
Optionally, the second determination unit includes:
First determination subelement, for whether determining in the process obtained including business process;
Second determination subelement, if for including business process, it is determined that it is in dual systems to go out first server
Primary server.
Optionally, determining module 402 includes:
Second acquisition unit, for from the linkage data update instruction in obtain the linkage more new command for request clothes
First identity information of business device;
Third acquiring unit, the second identity information for obtaining first server;
Second determination unit, if identical as the second identity information for the first identity information, it is determined that first server
Server for the linkage more new command for request.
Further, first server further includes:
Update module, if being server of the linkage more new command for request for first server, by first
The corresponding data update of Data Identification to be updated that is stored in server data to be updated.
Optionally, update module includes:
Call unit, for calling the data update script in first server;
Updating unit, for by running the data update script, the data to be updated that will be stored in first server
Identify corresponding data update data to be updated.
In embodiments of the present invention, first server is received for asking the server in dual systems to carry out data more
After new linkage data update instruction, determine whether itself is server of the linkage data update request for request, if
It is to be instructed according to the linkage data update and carry out data update, if it is not, then setting up the second service of dual systems with it
Device sends linkage data update instruction to second server, is instructed and carried out according to the linkage data update by second server
Data update.Data are updated in dual systems in this way, carrying out realizing when linkage stretching, extension is shunk between two business, separately
Outside, when first server is not primary server, linkage data update request is directly transmitted to primary by first server
Server carries out data update by primary server, improves the efficiency of data update.
Embodiment 5
Present invention implementation provides a kind of first server, and first server is any server in dual systems, ginseng
See that Fig. 5, first server include:
Receiver 501, the linkage data update instruction for receiving the transmission of Paas platforms, the linkage more new command is for asking
It by the corresponding data update of Data Identification to be updated of storage is data to be updated to seek a server in dual systems;
Processor 502, for determining whether first server is server of the linkage more new command for request;If
It is not server of the linkage more new command for request, then obtains the second server with first server composition dual systems
Identification information;
Transmitter 503, for sending the linkage data update to second server according to the identification information of second server
Instruction, so that the corresponding data update of Data Identification to be updated of storage is data to be updated by second server.
Optionally, server of the linkage more new command for asking is the primary server of dual systems;
Processor 502, which executes, determines whether first server is behaviour of the linkage more new command for the server of request
Make, Ke Yiwei:
Processor 502 is used to obtain the process being currently running in first server;First is determined according to the process of acquisition
Whether server is primary server in dual systems.
Optionally, processor 502 executes the operation for obtaining the process being currently running in first server, Ke Yiwei:
Processor 502 is used to call the service scenario in first server;By running the service scenario, the first clothes are obtained
The process being currently running in business device.
Processor 502 is executed determines whether first server is primary server in dual systems according to the process of acquisition
Operation, Ke Yiwei:
Whether processor 502 is for determining in the process obtained including business process;If including business process, it is determined that
It is the primary server in dual systems to go out first server.
Optionally, processor 502, which executes, determines whether first server is service of the linkage more new command for request
The operation of device, Ke Yiwei:
Processor 502 be used for from the linkage data update instruction in obtain the linkage more new command for request server
The first identity information;Obtain the second identity information of first server;If the first identity information and the second identity information phase
Together, it is determined that first server is server of the linkage more new command for request.
Further, processor 502, if also first server is server of the linkage more new command for request,
Then by the corresponding data update of Data Identification to be updated stored in first server data to be updated.
Optionally, processor 502 executes the corresponding data of Data Identification to be updated that will be stored in first server more
The operation of new data to be updated, Ke Yiwei:
Processor 502 is used to call the data update script in first server;It, will by running the data update script
The corresponding data update of Data Identification to be updated that is stored in first server data to be updated.
In embodiments of the present invention, first server is received for asking the server in dual systems to carry out data more
After new linkage data update instruction, determine whether itself is server of the linkage data update request for request, if
It is to be instructed according to the linkage data update and carry out data update, if it is not, then setting up the second service of dual systems with it
Device sends linkage data update instruction to second server, is instructed and carried out according to the linkage data update by second server
Data update.Data are updated in dual systems in this way, carrying out realizing when linkage stretching, extension is shunk between two business, separately
Outside, when first server is not primary server, linkage data update request is directly transmitted to primary by first server
Server carries out data update by primary server, improves the efficiency of data update.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of method sending linkage data update instruction, which is characterized in that the method includes:
First server receiving platform is the linkage data update instruction for servicing Paas platforms and sending, and the linkage data update refers to
Enable for ask the server in dual systems by the corresponding data update of Data Identification to be updated of storage be it is to be updated
Data, the first server be the dual systems in any server;
The first server determines whether the first server is service of the linkage data update instruction for request
Device;
Server if not the linkage data update instruction for request, then the first server obtain and described the
One server forms the identification information of the second server of the dual systems;
The first server sends the linkage number according to the identification information of the second server to the second server
According to more new command, so that the corresponding data update of the Data Identification to be updated of storage is described by the second server
Data to be updated.
2. the method as described in claim 1, which is characterized in that it is described linkage data update instruction for request server be
The primary server of the dual systems;
Whether the determination first server is server of the linkage data update instruction for request, including:
Obtain the process being currently running in the first server;
Determine whether the first server is primary server in the dual systems according to the process of the acquisition.
3. the method as described in claim 1, which is characterized in that whether the determination first server is the linkage number
Server according to more new command for request, including:
The first body of server of the linkage data update instruction for request is obtained from the linkage data update instruction
Part information;
Obtain the second identity information of the first server;
If first identity information is identical as second identity information, it is determined that the first server is the linkage
Server of the data update instruction for request.
4. the method as described in claim 1, which is characterized in that the method further includes:
If the first server is server of the linkage data update instruction for request, by the first service
The corresponding data of the Data Identification to be updated stored in device, are updated to the data to be updated.
5. method as claimed in claim 4, which is characterized in that described described to be updated by what is stored in the first server
The corresponding data of Data Identification, be updated to the data to be updated, including:
Call the data update script in the first server;
By running the data update script, the Data Identification to be updated stored in the first server is corresponded to
Data, be updated to the data to be updated.
6. a kind of device sending linkage data update instruction, described device is first server, and the first server is double
Any server in machine system, which is characterized in that the first server includes:
Receiving module is the linkage data update instruction for servicing Paas platforms and sending for receiving platform, and the linkage data are more
New command is for asking the server in the dual systems by the corresponding data update of Data Identification to be updated of storage
For data to be updated;
Determining module, for determining whether the first server is service of the linkage data update instruction for request
Device;
Acquisition module then obtains and described for the server if not the linkage data update instruction for request
One server forms the identification information of the second server of the dual systems;
Sending module, for sending the linkage data to the second server according to the identification information of the second server
More new command, so that the corresponding data update of the Data Identification to be updated of storage is described wait for by the second server
Newer data.
7. device as claimed in claim 6, which is characterized in that it is described linkage data update instruction for request server be
The primary server of the dual systems;
The determining module includes:
First acquisition unit, for obtaining the process being currently running in the first server;
Second determination unit, for determining whether the first server is in the dual systems according to the process of the acquisition
Primary server.
8. device as claimed in claim 6, which is characterized in that the determining module includes:
Second acquisition unit, for obtaining the linkage data update instruction from linkage data update instruction for asking
Server the first identity information;
Third acquiring unit, the second identity information for obtaining the first server;
Second determination unit, if identical as second identity information for first identity information, it is determined that described the
One server is server of the linkage data update instruction for request.
9. device as claimed in claim 6, which is characterized in that further include:
Update module, if being server of the linkage data update instruction for request for the first server,
The corresponding data of the Data Identification to be updated that will be stored in the first server, are updated to the number to be updated
According to.
10. device as claimed in claim 9, which is characterized in that the update module includes:
Call unit, for calling the data update script in the first server;
Updating unit runs the data update script for passing through, described to be updated by what is stored in the first server
The corresponding data of Data Identification, be updated to the data to be updated.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410745175.5A CN105743936B (en) | 2014-12-08 | 2014-12-08 | A kind of method and device sending linkage data update instruction |
PCT/CN2015/084001 WO2016090914A1 (en) | 2014-12-08 | 2015-07-14 | Method and device for sending linkage data updating instruction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410745175.5A CN105743936B (en) | 2014-12-08 | 2014-12-08 | A kind of method and device sending linkage data update instruction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105743936A CN105743936A (en) | 2016-07-06 |
CN105743936B true CN105743936B (en) | 2018-10-19 |
Family
ID=56106589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410745175.5A Active CN105743936B (en) | 2014-12-08 | 2014-12-08 | A kind of method and device sending linkage data update instruction |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105743936B (en) |
WO (1) | WO2016090914A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110716945A (en) * | 2019-09-20 | 2020-01-21 | 腾讯音乐娱乐科技(深圳)有限公司 | Data updating method, data updating system, server and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751421A (en) * | 2008-12-08 | 2010-06-23 | 北京中星微电子有限公司 | Anisomerous synchronization method, system and device of database in video monitoring system |
CN102281329A (en) * | 2011-08-02 | 2011-12-14 | 北京邮电大学 | Resource scheduling method and system for platform as a service (Paas) cloud platform |
CN102546796A (en) * | 2011-12-31 | 2012-07-04 | 重庆新媒农信科技有限公司 | Data updating system and method of service server |
CN102984214A (en) * | 2012-11-08 | 2013-03-20 | 华为技术有限公司 | Method and device which are capable of achieving telecom cloud business migration |
CN103780636A (en) * | 2012-10-17 | 2014-05-07 | 阿里巴巴集团控股有限公司 | Cached data processing method and cached data processing system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20120060596A (en) * | 2010-12-02 | 2012-06-12 | 한국전자통신연구원 | Resource management apparatus and method for supporting cloud-based communication of ubiquitous objects |
-
2014
- 2014-12-08 CN CN201410745175.5A patent/CN105743936B/en active Active
-
2015
- 2015-07-14 WO PCT/CN2015/084001 patent/WO2016090914A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101751421A (en) * | 2008-12-08 | 2010-06-23 | 北京中星微电子有限公司 | Anisomerous synchronization method, system and device of database in video monitoring system |
CN102281329A (en) * | 2011-08-02 | 2011-12-14 | 北京邮电大学 | Resource scheduling method and system for platform as a service (Paas) cloud platform |
CN102546796A (en) * | 2011-12-31 | 2012-07-04 | 重庆新媒农信科技有限公司 | Data updating system and method of service server |
CN103780636A (en) * | 2012-10-17 | 2014-05-07 | 阿里巴巴集团控股有限公司 | Cached data processing method and cached data processing system |
CN102984214A (en) * | 2012-11-08 | 2013-03-20 | 华为技术有限公司 | Method and device which are capable of achieving telecom cloud business migration |
Also Published As
Publication number | Publication date |
---|---|
WO2016090914A1 (en) | 2016-06-16 |
CN105743936A (en) | 2016-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11429369B2 (en) | Distributed upgrade in virtualized computing environments | |
US20160366233A1 (en) | Private Cloud as a service | |
US10798218B2 (en) | Environment isolation method and device | |
RU2683630C2 (en) | Method for update of nsd network service descriptor and device | |
WO2016119631A1 (en) | Method for accessing cloud service and access device | |
US11252051B2 (en) | Method, device and computer program product for configuring service instance | |
CN107204873B (en) | Method for switching target domain name resolution server and related equipment | |
CN104580085A (en) | Business data updating method, system, client side and server | |
US9503392B2 (en) | Enhance private cloud system provisioning security | |
CN112445865B (en) | Method and device for automatically deploying block chain network and cloud computing platform | |
CN111404628B (en) | Time synchronization method and device | |
US20180062946A1 (en) | Method and Apparatus for Establishing Network Service Instance | |
US9838482B1 (en) | Maintaining client/server session affinity through load balancers | |
CN112187958A (en) | Method and device for registering, discovering and forwarding microservice | |
CN104735176A (en) | PXE booting method and device and server single board | |
CN105407105A (en) | Method and system for performing equipment authentication on samba service | |
KR20210089113A (en) | A method, an apparatus, an electronic device and a storage medium for communicating between private networks | |
CN106941418B (en) | SSL VPN configuration information synchronization method and device | |
CN111770123B (en) | Communication method, apparatus and storage medium | |
CN108366087B (en) | ISCSI service realization method and device based on distributed file system | |
WO2015027931A1 (en) | Method and system for realizing cross-domain remote command | |
CN105743936B (en) | A kind of method and device sending linkage data update instruction | |
CN105530187B (en) | Physical address acquisition methods and device | |
CN105873234B (en) | Method and device for establishing connection between virtualized network function and network element management system | |
CN111385324A (en) | Data communication method, device, equipment and storage medium |
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 |