WO2014048176A1 - 一种对资源进行同步控制的方法、设备和系统 - Google Patents
一种对资源进行同步控制的方法、设备和系统 Download PDFInfo
- Publication number
- WO2014048176A1 WO2014048176A1 PCT/CN2013/081296 CN2013081296W WO2014048176A1 WO 2014048176 A1 WO2014048176 A1 WO 2014048176A1 CN 2013081296 W CN2013081296 W CN 2013081296W WO 2014048176 A1 WO2014048176 A1 WO 2014048176A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- terminal
- server
- resource file
- resource
- lock
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012217 deletion Methods 0.000 claims description 4
- 230000037430 deletion Effects 0.000 claims description 4
- 230000001360 synchronised effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 9
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1029—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1031—Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Definitions
- the present invention relates to the field of information synchronization control, and in particular, to a method, device and system for synchronously controlling resources.
- the information synchronization control scheme provided is that after the producer prepares the resource, the resource file is sent to the file system or the resource record is inserted into the database; the consumer detects the resource file in the file system or detects the resource in the database. Records to confirm that the producer has prepared the resource and then obtained resources from the producer.
- the database establishes a table corresponding to the inserted resource record, and the server also adjusts the running program according to the inserted resource record, which increases the workload of the device.
- consumers' access to resources is untimed. Consumers can obtain resources at any time. If consumers acquire resources while producers are also updating resources, this will create read-write conflicts that affect the system. stability.
- Embodiments of the present invention provide a method, device, and system for synchronously controlling resources, which solves the problem of read and write conflicts between a producer update resource file and a consumer acquired resource file.
- a method for synchronously controlling a resource, involving a server side includes: the server acquiring an address of the first terminal;
- the server establishes a first terminal list, where the first terminal list records an address of the first terminal;
- the server After the server receives the completed resource update notification message sent by the second terminal, setting an empty state for the first terminal in the first terminal list, so that the first terminal is in the first When the first terminal of a terminal list is in an empty state, The second terminal acquires a resource file;
- the server cancels the clear state of the first terminal in the first terminal list according to the notification of the first terminal.
- a method for synchronously controlling a resource, involving a first terminal side includes: the first terminal queries a server, whether the first terminal in the first terminal list is in an empty state, where the first terminal list records the The address of the first terminal;
- the first terminal When the first terminal is in an empty state, the first terminal obtains a resource file from the second terminal;
- the first terminal After acquiring the resource file, the first terminal notifies the server to cancel the clearing state of the first terminal in the first terminal list.
- a method for synchronously controlling resources, involving a second terminal side includes: after completing the update of the resource file, the second terminal sends a completed resource update notification message to the server, so that the server is in the first terminal list.
- the first terminal is set to clear the state.
- a server comprising:
- An address obtaining unit configured to acquire an address of the first terminal
- a list establishing unit configured to establish a first terminal list, where the first terminal list records an address of the first terminal
- a receiving unit configured to receive a completed resource update notification message sent by the second terminal, where the completed resource update notification message is sent by the second terminal after updating the resource file;
- a setting unit configured to: after receiving the completed resource update notification message sent by the second terminal, set an empty state for the first terminal in the first terminal list, so that the first terminal is in the When the first terminal of the first terminal list is in an empty state, acquiring a resource file to the second terminal;
- a first canceling unit configured to cancel, after the first terminal acquires the resource file, the clearing status of the first terminal in the first terminal list according to the notification of the first terminal.
- a first terminal includes:
- a querying unit configured to query, by the server, whether the first terminal in the first terminal list is in an empty state, where the first terminal list records an address of the first terminal
- a resource file obtaining unit configured to: when the first terminal is in an empty state, the first A terminal acquires a resource file from the second terminal;
- a second canceling unit configured to notify the server to cancel the clearing state of the first terminal in the first terminal list after acquiring the resource file.
- a second terminal includes:
- the resource update notification unit is configured to send a completed resource update notification message to the server after completing the update of the resource file, so that the server sets an empty state for the first terminal in the first terminal list.
- a system for synchronously controlling resources comprising: the server according to any one of the preceding items, a first terminal, and a second terminal.
- a method, device, and system for synchronously controlling a resource according to an embodiment of the present invention, the second terminal notifying the server after the resource file is updated, where the server is the first terminal in the first terminal list Setting an empty state to indicate that the second terminal has completed the resource file update, without the second terminal inserting a resource record into the database to notify the first terminal resource that the update has been completed, and also avoiding that the server is running according to the inserted resource record pair.
- the program is adjusted.
- FIG. 1 is a flowchart of a server side of a method for synchronously controlling resources according to Embodiment 1 of the present invention
- FIG. 2 is a flowchart of a first terminal side of a method for synchronously controlling resources according to Embodiment 1 of the present invention
- FIG. 3 is a flowchart of a method for synchronously controlling resources according to Embodiment 2 of the present invention.
- FIG. 4 is a flowchart of a second terminal performing resource file update according to a method for synchronously controlling resources according to Embodiment 2 of the present invention
- FIG. 5 is a flowchart of a first terminal acquiring a resource file according to a method for synchronously controlling resources according to Embodiment 2 of the present invention
- FIG. 6 is a block diagram of a server according to Embodiment 3 of the present invention.
- FIG. 7 is a block diagram of another server according to Embodiment 3 of the present invention.
- FIG. 8 is a block diagram of another server according to Embodiment 3 of the present invention.
- FIG. 9 is a block diagram of a first terminal according to Embodiment 3 of the present invention.
- FIG. 10 is a block diagram of another first terminal according to Embodiment 3 of the present invention
- FIG. 1 is a block diagram of another first terminal according to Embodiment 3 of the present invention
- FIG. 12 is a block diagram of another second terminal according to Embodiment 3 of the present invention
- FIG. 13 is another block diagram of a second terminal according to Embodiment 3 of the present invention.
- FIG. 14 is a schematic diagram of a system for synchronously controlling resources according to Embodiment 3 of the present invention.
- the application scenario of the embodiment of the present invention includes a server, a first terminal, and a second terminal.
- the first terminal may be specifically a terminal operated by a consumer
- the second terminal may be The terminal operated by the producer.
- the resource file is stored in the second terminal, and the first terminal needs to acquire the resource file in the second terminal.
- the server simultaneously connects the second terminal and the first terminal.
- the embodiment of the invention provides a method for synchronously controlling resources, which is related to the server side. As shown in FIG. 1, the method includes:
- the server acquires the address of the first terminal.
- the server Before the first terminal acquires the resource file, the server establishes a first terminal list, and the address of the first terminal is recorded in the first terminal list.
- the second terminal After the second terminal updates the resource file, it sends a completed resource update notification message to the server.
- the server After the server receives the completed resource update notification message sent by the second terminal, setting an empty state for the address of the first terminal in the first terminal list, so that the first terminal is in the first terminal.
- the address of the first terminal in the list is in the empty state, Obtaining a resource file from the second terminal.
- the clearing state is set for the address of the first terminal in the first terminal list, and specifically, the address of the first terminal in the first terminal list is deleted, so that the first terminal is in the first When the address of the first terminal in a terminal list is deleted, the resource file is obtained from the second terminal.
- the first terminal After the first terminal obtains the resource file, it notifies the server that the resource file is obtained, and after the server receives the notification, cancels the clearing state of the address of the first terminal in the first terminal list.
- the clearing of the address of the first terminal in the first terminal list may be cancelled. Specifically, the address of the first terminal may be re-added to the first terminal list.
- the server obtains the addresses of the respective first terminals, and stores the obtained addresses of the first terminals in the first terminal list. After that, when the second terminal completes the resource update, the completed resource update message will be sent to the server. After receiving the completed resource update notification message, the server sets the clear state for the address of the first terminal in the first terminal list.
- the server sets the clear state for the address of the first terminal in the first terminal list.
- the second terminal notifies the server of the resource file update completion, and the server sets the clear state for the address of the first terminal to indicate that the second terminal has completed the resource file update, without the second terminal
- the database inserts a resource record to inform that the first terminal resource has been updated, and also prevents the server from adjusting the running program according to the inserted resource record.
- the embodiment of the present invention further provides a method for synchronously controlling a resource, which is related to a first terminal side. As shown in FIG. 2, the method includes:
- the first terminal Before obtaining the resource file, the first terminal first queries whether the address of the first terminal in the first list is in an empty state, and determines whether the address of the first terminal in the first list is an empty state. Whether the resource file is updated or not, and then the resource file is acquired. When the address of the first terminal in the first terminal list is in an empty state, Step 202 is performed, otherwise the resource file acquisition action is not performed.
- the address of the first terminal in the first terminal list is in an empty state, indicating that the second terminal has updated the resource file, and the first terminal may obtain the resource file from the second terminal.
- the server is notified to cancel the clearing state of the address of the first terminal in the first terminal list.
- the first terminal After the first terminal acquires the resource file, the first terminal notifies the server to cancel the clearing state of the address of the first terminal in the first terminal list, to indicate that the first terminal has already used resources. File acquisition.
- the second terminal after completing the update of the resource file, the second terminal sends a completed resource update notification message to the server, so that the server sets the address of the first terminal in the first terminal list. Empty the status.
- the embodiment of the invention provides a method for synchronously controlling resources, and the method further includes:
- the server acquires the address of the first terminal, the address of the second terminal, and the address of the resource file in the second terminal. After the address is acquired, the server establishes the first terminal list, and the first terminal The terminal address is stored in the first list. After receiving the completed resource update notification message sent by the second terminal, the server sets the address of the first terminal in the first terminal list to the clear state. .
- the first terminal queries the first terminal list, and when the address of the first terminal in the first terminal list is in an empty state, the server acquires an address of the resource file by using the second terminal, The first terminal acquires a resource file from the second terminal by using an address of the resource file. After the first terminal acquires the resource file, the server cancels the clearing state of the address of the first terminal in the first terminal list according to the notification of the first terminal.
- An embodiment of the present invention provides a method for synchronously controlling a resource, where the second terminal notifies the server after the resource file is updated, and the server sets the clear state of the address of the first terminal in the first terminal list.
- the database needs to establish a resource record corresponding to the insertion. The recorded form, the amount of work added by the server to adjust the running program based on the inserted resource record.
- the embodiment of the invention provides a method for synchronously controlling resources. As shown in FIG. 3, the method includes:
- the server acquires an address of the first terminal.
- the server also acquires the address of the resource file stored in the second terminal from the second terminal.
- the server establishes a first terminal list, where the first terminal list records an address of the first terminal.
- the server receives the completed resource update notification message sent by the second terminal.
- the completed resource update notification message is sent by the second terminal after the update of the resource file is completed.
- the server records an address of the second terminal that has completed the resource update notification message.
- the first terminal is configured to obtain the second terminal and obtain the resource file by using the address of the second terminal recorded by the server.
- the first terminal When detecting, by the first terminal, that the address of the first terminal in the first terminal list is in an empty state, the first terminal acquires a resource file from the second terminal.
- the clearing state is set for the address of the first terminal in the first terminal list, and specifically, the address of the first terminal in the first terminal list is deleted, so that the first terminal is in the first When the address of the first terminal in a terminal list is deleted, the resource file is obtained from the second terminal.
- the first terminal acquires a resource file from the second terminal when the address of the first terminal is in an empty state.
- the address of the second terminal and the address of the resource file may be obtained from the server before the first terminal acquires the resource file from the second terminal.
- the first terminal After obtaining the resource file, the first terminal notifies the server to cancel the clearing state of the address of the first terminal. It should be noted that the clearing of the address of the first terminal in the first terminal list may be cancelled. Specifically, the address of the first terminal may be re-added to the first terminal list.
- the server In the initial state of the system, the server first obtains the addresses of all the first terminals and stores them in the first terminal list. At the same time, the server also obtains the address of the resource file from the second terminal. After that, on the one hand, the second terminal updates the resource file, and on the other hand, the first terminal acquires the resource file from the second terminal. Assuming that the second terminal A performs an update of the resource file, A will send a completed resource update notification message to the server, and the server records the address of A and sets the clear state for the address of the first terminal of the first terminal list.
- first terminal here assumed to be the first terminal B
- B first check whether the address of the first terminal in the server is in the empty state. Since the address of B in the first terminal list is cleared, B obtains the address of A and the address of the resource file from the server, so that the resource file can be obtained from A. After the resource file is obtained, B sends a notification to the server to cause the server to cancel the emptying of the address of B. If the address of B is set to the empty state again, B will read the resource file in A again. If the address of B is not in the first terminal list, it indicates that A has not updated the resource file again, and B will abort. The acquisition action of the resource file.
- the second terminal notifies the server of the resource file update completion, and the server sets the address of the first terminal to be in an empty state, indicating that the second terminal has updated the resource file,
- the terminal may obtain the resource file from the second terminal, and after obtaining the resource file, notify the server to cancel the clearing state of the address of the first terminal.
- the second terminal does not need to insert a resource record into the database to notify the first terminal resource that the update has been completed, and also prevents the server from adjusting the running program according to the inserted resource record, thereby improving the scalability of the system. And improve the stability of the system operation.
- Zookeepe r is a target
- a reliable coordination system for large distributed systems, zookeeper has a lock file feature.
- the user terminal can use the zookeepe r system to create a read lock and a write lock to lock the file.
- the user terminal first creates a write lock to lock the file, any other The user terminal cannot update and read the file.
- a read lock is locked to the file, the user terminal can read the file but cannot update the file.
- the embodiment of the present invention is based on zookeeper.
- a set of synchronous control systems for service development, using the lock feature of zookeepe r in the embodiment of the present invention is specifically:
- a method of creating a write lock and updating the resource file according to the write lock includes the following steps:
- the second terminal creates a write lock before updating the resource file.
- the server sequentially numbers the locks in the order in which the locks are created, and stores them in the lock H record.
- the locks stored in the lock directory are numbered sequentially from small to large in the order in which they were created.
- the lock stored in the lock directory includes a write lock created by the second terminal and a read lock created by the first terminal.
- the server determines whether there is a lock smaller than a write lock number sent by the second terminal.
- the server determines that there is no write lock number or a read lock number that is smaller than a write lock number sent by the second terminal, notify the second terminal to update the resource file.
- the server After the server finishes updating the resource file, the server deletes the write lock corresponding to the second terminal in the lock directory.
- the second terminal After completing the update of the resource file, the second terminal notifies the server to delete the write lock corresponding to the second terminal, and sends a completed resource update notification message to the server, so that the server is in the first terminal list.
- the address of the first terminal is set to the clear state.
- a method of creating a read lock and acquiring the resource file according to the read lock includes the following steps:
- the server sequentially numbers the locks in the order in which the locks are created, and stores them in the lock directory.
- the locks stored in the lock directory are numbered sequentially from small to large in the order in which they were created.
- the lock stored in the lock directory includes a write lock created by the second terminal and a read lock created by the first terminal.
- the server determines whether there is a write lock smaller than a read lock number sent by the first terminal.
- the server determines that there is no write lock smaller than the read lock number sent by the first terminal, notify the first terminal to acquire the resource file from the second terminal.
- the suspension When there is a write lock smaller than the read lock number sent by the first terminal, the suspension will be suspended. A terminal acquires a resource file.
- the server deletes the read lock corresponding to the first terminal in the lock directory.
- the first terminal After completing the obtaining of the resource file, the first terminal notifies the server that the resource file is obtained, so that the server deletes the read lock corresponding to the first terminal, and notifies the server to cancel the clearing state of the address of the first terminal.
- the second terminal creates a write lock before updating the resource file
- the first terminal creates a read lock before acquiring the resource file
- the server sequentially numbers the locks by storing the locks and stores the locks in the lock directory.
- the server determines whether there is a lock smaller than the write lock number sent by the second terminal or whether there is a A write lock with a smaller read lock number sent by the terminal to inform the second terminal whether the resource file can be updated or whether the first terminal can retrieve the resource file.
- a server provided by the embodiment of the present invention, as shown in FIG. 6, includes:
- the address obtaining unit 601 is configured to obtain an address of the first terminal.
- the list establishing unit 602 is configured to establish a first terminal list, where the first terminal list records an address of the first terminal.
- the receiving unit 603 is configured to receive the completed resource update notification message sent by the second terminal, where the completed resource update notification message is sent by the second terminal to complete the update of the resource file.
- the setting unit 604 is configured to: after receiving the completed resource update notification message sent by the second terminal, set an empty state for the address of the first terminal in the first terminal list, to facilitate the first terminal. When the address of the first terminal in the first terminal list is in an empty state, the resource file is obtained from the second terminal.
- the first canceling unit 605 is configured to cancel, after the first terminal acquires the resource file, the clearing state of the address of the first terminal in the first terminal list according to the notification of the first terminal.
- the server as shown in FIG. 7, further includes:
- the lock receiving unit 606 is configured to receive a write lock created by the second terminal, where the write lock is created by the second terminal before the update of the resource file, and is further configured to receive the read lock created by the first terminal; The read lock is created before the first terminal acquires a resource file from the second terminal.
- the server further includes:
- the numbering unit 607 is used to sequentially number the locks in the order of creation and store them in the lock directory.
- the notifying unit 608 is configured to notify the second terminal to update the resource file when there is no write lock number or read lock number smaller than the write lock number sent by the second terminal; When the write lock number smaller than the read lock number sent by the first terminal does not exist, the first terminal is notified to acquire the resource file.
- a deleting unit 609 configured to delete a write lock corresponding to the second terminal in the lock directory after the second terminal completes the update of the resource file; the deleting unit is further configured to be in the first terminal After the resource file acquisition is completed, the read lock corresponding to the first terminal is deleted in the lock directory.
- the server further includes:
- the recording unit 610 is configured to record, after the server receives the completed resource update notification message sent by the second terminal, the address of the second terminal of the completed resource update notification message.
- the resource file address obtaining unit 611 is configured to obtain an address of the resource file, where the resource file is stored in the second terminal, so that the first terminal acquires the resource file according to the address of the resource file.
- a first terminal as shown in FIG. 9, includes:
- the query unit 901 is configured to query, by the server, whether the address of the first terminal in the first terminal list is an empty state, and the first terminal list records an address of the first terminal.
- the resource file obtaining unit 902 is configured to: when the address of the first terminal is in an empty state, the first terminal acquires a resource file from the second terminal.
- the second canceling unit 903 is configured to notify the server to cancel the clearing state of the address of the first terminal in the first terminal list after acquiring the resource file.
- the first terminal further includes:
- a read lock creating unit 904 configured to: when the first terminal acquires resources from the second terminal Before the file, a read lock is created and sent to the server, so that the server sequentially numbers the locks in the order of creation and stores them in the lock directory.
- the resource file obtaining unit 902 further includes: a resource file obtaining subunit 902 1 configured to acquire a resource file from the second terminal according to the notification of the server; the notification is determined by the server not to exist When the first terminal sends a write lock number with a smaller read lock number, it is sent to the first terminal.
- the first terminal further includes:
- the lock deletion notification unit 905 is configured to notify the server that the resource file is obtained after the resource file is obtained from the second terminal, so that the server, after the first terminal completes the resource file acquisition, is in the A read lock corresponding to the first terminal is deleted in the lock directory.
- a second terminal as shown in FIG. 12, includes:
- the resource update notification unit 12 1 is configured to send a completed resource update notification message to the server after the update of the resource file is completed, so that the server clears the address of the first terminal in the first terminal list.
- the second terminal further includes:
- the write lock creation unit 122 is configured to create a write lock and send the lock to the server before the second terminal performs the update of the resource file, so that the server sequentially numbers the locks according to the creation order, and stores them in the lock directory.
- the resource file update unit 12 3 is configured to perform update of the resource file according to the notification of the server; the notification is determined by the server that there is no write lock number smaller than a write lock number sent by the second terminal or When the lock number is read, it is sent to the second terminal.
- the server provided by the embodiment of the present invention, the first terminal and the second terminal, the second terminal notifying the server after the resource file is updated, and the server sets the clear state of the address of the first terminal in the first terminal list to indicate The second terminal has updated the resource file.
- the first terminal detects that the address in the first list is in the empty state
- the first terminal may obtain the resource file from the second terminal, and after obtaining the resource file, notify the server to set the first The address of a terminal is cleared.
- the second terminal does not need to insert a resource record into the database to notify the first terminal resource that the update has been completed, and also prevents the server from adjusting the running program according to the inserted resource record, thereby improving the scalability of the system. And improve the stability of the system operation.
- the second terminal creates a write lock before updating the resource file, and the first terminal pairs Before the source file is acquired, the read lock is created.
- the server sequentially numbers the locks by the lock creation time and stores the locks in the lock directory.
- the server determines whether there is a lock smaller than the write lock number sent by the second terminal or whether there is a write lock smaller than the read lock number sent by the first terminal, to inform the second terminal whether the resource can be used.
- the file is updated or the first terminal can obtain the resource file.
- the resource file is written, the other terminal is prohibited from reading or writing to the same resource file.
- the second terminal is prohibited from writing to the unified resource file, thereby The read/write conflict that occurs when the second terminal updates the resource file and the first terminal acquires the resource file is avoided.
- the embodiment of the present invention further provides a system for synchronously controlling resources.
- the system includes: a server 141, a first terminal 142, and a second terminal 143.
- the second terminal 14 3 notifies the server 141 after the resource file is updated, and the server 141 sets an empty state for the first terminal 142 in the list of the first terminal 142 to indicate the The second terminal 143 has completed the update of the resource file.
- the first terminal 142 detects that the address of the first terminal 142 is in the empty state, the first terminal 142 can obtain the resource file from the second terminal 14 3, and after acquiring the resource file, The notification server 141 cancels the emptying of the address of the first terminal 142.
- the second terminal 14 is not required to insert a resource record into the database to inform the first terminal 142 that the resource has been updated, and the server 141 is also prevented from adjusting the running program according to the inserted resource record, thereby improving the system. Scalability and improved system operation stability.
- the second terminal 143 creates a write lock before updating the resource file
- the first terminal 142 creates a read lock before acquiring the resource file
- the server 141 numbers the locks in the order of the lock creation time and stores the lock in the lock directory.
- the server 141 determines whether there is a lock smaller than the write lock number sent by the second terminal 14 3 or Whether there is a write lock smaller than the read lock number sent by the first terminal 142, to inform the second terminal 14 3 whether the resource file can be updated or whether the first terminal 142 can acquire the resource file.
- the resource file is written, the other terminal is prohibited from reading or writing to the same resource file.
- the second terminal is prohibited from writing to the same resource file, thereby The read/write conflict that occurs when the second terminal updates the resource file and the first terminal acquires the resource file is avoided.
- the present invention has been described by taking the empty state of the address of the terminal as an example.
- the object of the present invention can also be achieved by setting a flag, an identifier, or the like to explain whether the first terminal has acquired the resource file.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US14/431,643 US9380109B2 (en) | 2012-09-29 | 2013-08-12 | Resource synchronization control method, device, and system |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210376133.X | 2012-09-29 | ||
CN201210376133.XA CN103716350B (zh) | 2012-09-29 | 2012-09-29 | 一种对资源进行同步控制的方法、设备和系统 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2014048176A1 true WO2014048176A1 (zh) | 2014-04-03 |
Family
ID=50386950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2013/081296 WO2014048176A1 (zh) | 2012-09-29 | 2013-08-12 | 一种对资源进行同步控制的方法、设备和系统 |
Country Status (3)
Country | Link |
---|---|
US (1) | US9380109B2 (zh) |
CN (1) | CN103716350B (zh) |
WO (1) | WO2014048176A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562648B (zh) * | 2016-07-01 | 2021-04-06 | 北京忆恒创源科技有限公司 | 无锁ftl访问方法与装置 |
CN114242211A (zh) * | 2021-12-20 | 2022-03-25 | 王兆河 | 保障云pacs系统影像数据传输完整性的方法及装置 |
CN116405146B (zh) * | 2023-04-04 | 2024-01-30 | 惠州市德赛智储科技有限公司 | 多bms从机同步控制方法及控制系统 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101795203A (zh) * | 2009-02-03 | 2010-08-04 | 华为软件技术有限公司 | 软件升级数据包的下载方法和装置 |
KR20120002344A (ko) * | 2010-06-30 | 2012-01-05 | (주)나무소프트 | 파일 동기화 방법 및 장치 |
CN102624569A (zh) * | 2012-04-18 | 2012-08-01 | 华为技术有限公司 | 对终端进行升级的方法和系统、网络设备以及终端 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7315926B2 (en) * | 2004-09-21 | 2008-01-01 | Emc Corporation | Lock management for concurrent access to a single file from multiple data mover computers |
WO2007102536A1 (ja) * | 2006-03-08 | 2007-09-13 | Matsushita Electric Industrial Co., Ltd. | 分散ファイル管理システム |
CN101488924B (zh) * | 2009-02-16 | 2011-11-16 | 成都市华为赛门铁克科技有限公司 | 一种元数据的修改方法和元数据服务器 |
-
2012
- 2012-09-29 CN CN201210376133.XA patent/CN103716350B/zh active Active
-
2013
- 2013-08-12 US US14/431,643 patent/US9380109B2/en active Active
- 2013-08-12 WO PCT/CN2013/081296 patent/WO2014048176A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101795203A (zh) * | 2009-02-03 | 2010-08-04 | 华为软件技术有限公司 | 软件升级数据包的下载方法和装置 |
KR20120002344A (ko) * | 2010-06-30 | 2012-01-05 | (주)나무소프트 | 파일 동기화 방법 및 장치 |
CN102624569A (zh) * | 2012-04-18 | 2012-08-01 | 华为技术有限公司 | 对终端进行升级的方法和系统、网络设备以及终端 |
Also Published As
Publication number | Publication date |
---|---|
US9380109B2 (en) | 2016-06-28 |
CN103716350A (zh) | 2014-04-09 |
US20150256614A1 (en) | 2015-09-10 |
CN103716350B (zh) | 2018-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190026190A1 (en) | Restoring data in a hierarchical storage management system | |
US9952783B2 (en) | Data processing method and apparatus, and shared storage device | |
JP4732661B2 (ja) | クライアントのデータベースとサーバーのデータベースとを同期させる方法 | |
US10817498B2 (en) | Distributed transactions in cloud storage with hierarchical namespace | |
JP6564026B2 (ja) | マルチテナントアプリケーションサーバ環境におけるトランザクション回復のためのシステムおよび方法 | |
US20190370362A1 (en) | Multi-protocol cloud storage for big data and analytics | |
US20190370360A1 (en) | Cloud storage distributed file system | |
US10289692B2 (en) | Preserving file metadata during atomic save operations | |
US7953710B2 (en) | Multi-master database synchronization without loss of convergence | |
JP6220850B2 (ja) | データベースへの中間層トランザクションログのインライン委譲をサポートするためのシステムおよび方法 | |
EP3189446A1 (en) | A method, cloud synchronization function means and file system for handling files and directories in a cloud storage service | |
JP6475304B2 (ja) | トランザクション処理方法および装置 | |
JP2005222552A5 (zh) | ||
US9460103B2 (en) | File synchronization method, files synchronization apparatus and electronic device | |
JP6196389B2 (ja) | 分散型ディザスタリカバリファイル同期サーバシステム | |
JP6940645B2 (ja) | レプリカ処理方法、ノード、ストレージシステム、サーバ及び読み取り可能な記憶媒体 | |
WO2014048176A1 (zh) | 一种对资源进行同步控制的方法、设备和系统 | |
US9990378B2 (en) | Opportunistic clearing of sync states associated with a database | |
JP2009251756A (ja) | クライアント装置、分散ファイルシステム、共有リソース多重化方法およびプログラム | |
CN106354830B (zh) | 一种数据库集群节点间数据同步的方法及装置 | |
US20120150924A1 (en) | Apparatus for supporting continuous read/write in asymmetric storage system and method thereof | |
EP1934783A1 (en) | Productivity suite to line of business synchronization mechanism | |
CN108255848B (zh) | 实现条件更新的方法、设备及系统 | |
JP6158361B2 (ja) | 情報処理装置及び方法 | |
JP6336323B2 (ja) | 情報処理装置、制御方法およびプログラム |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13841118 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 14431643 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/08/2015) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 13841118 Country of ref document: EP Kind code of ref document: A1 |