WO2022078243A1 - 信息同步方法及装置 - Google Patents

信息同步方法及装置 Download PDF

Info

Publication number
WO2022078243A1
WO2022078243A1 PCT/CN2021/122668 CN2021122668W WO2022078243A1 WO 2022078243 A1 WO2022078243 A1 WO 2022078243A1 CN 2021122668 W CN2021122668 W CN 2021122668W WO 2022078243 A1 WO2022078243 A1 WO 2022078243A1
Authority
WO
WIPO (PCT)
Prior art keywords
target information
target
identifier
acquisition
information
Prior art date
Application number
PCT/CN2021/122668
Other languages
English (en)
French (fr)
Inventor
陈佼
杨志伟
Original Assignee
北京沃东天骏信息技术有限公司
北京京东世纪贸易有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京沃东天骏信息技术有限公司, 北京京东世纪贸易有限公司 filed Critical 北京沃东天骏信息技术有限公司
Publication of WO2022078243A1 publication Critical patent/WO2022078243A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5682Policies or rules for updating, deleting or replacing the stored data

Definitions

  • the embodiments of the present application relate to the field of computer technologies, and in particular, to an information synchronization method and apparatus.
  • the current server system generally adopts a distributed cluster design, and improves the overall throughput of the system by horizontally expanding the scale of the service cluster.
  • a server cluster the problem of loading and synchronizing memory data between multiple servers is generally solved by the following methods:
  • the server starts, the information in the database corresponding to the server cluster is pulled in batches, and the pulled information is loaded into the memory.
  • a server instance receives a write request, it first updates the memory data of the server, and then updates the database records.
  • Other service instances in the cluster periodically poll the database and load the updated data into the local memory.
  • the server starts, the information in the database corresponding to the server cluster is pulled in batches, and the pulled information is loaded into the memory.
  • a server instance processes a write request, it first updates the memory data of the server; at the same time, it forwards the write request to other server instances in the cluster, thereby keeping the memory data of server instances in the cluster synchronized.
  • the embodiments of the present application provide an information synchronization method and apparatus.
  • an embodiment of the present application provides an information synchronization method, including: determining an identifier of target information in a centralized cache, wherein the centralized cache stores all the target information in the server cluster, and each target information set There is an identifier representing the sequence; according to the identifier of the updated identifier and the target information, from the identifier of the target information stored in the centralized cache, the identifier of the target information that is not updated by the target server in the server cluster is determined, wherein the updated identifier is The identifier of the updated target information in the target server; according to the identifier of the unupdated target information, the unupdated target information is synchronized to the target server.
  • the identifier is a serial number representing the sequence through an incremental relationship; the above-mentioned synchronizing the unupdated target information to the target server according to the identifier of the unupdated target information includes: performing the following acquisition operations until the target server acquires all Unupdated target information: determine the difference between the maximum sequence number in the updated identification and the maximum sequence number in the identification of the unupdated target information; determine the smaller value of the difference and the preset acquisition quantity as the target quantity, From the unupdated target information, obtain the target information of the target number starting from the sequence number following the maximum sequence number in the updated identification; synchronize the maximum sequence number in the updated identification to the maximum sequence number corresponding to the target information of the target number.
  • the above method before determining the identifier of the target information in the centralized cache, the above method further includes: determining a process of synchronizing the unupdated target information to the target server according to the user's preset static configuration file or dynamic configuration instruction The configuration information in , where the configuration information includes: the preset number of acquisitions for the acquisition operation, the subject of the acquired target information, and the number of concurrent acquisition threads for the acquisition operation.
  • the above method further includes: in response to determining that the acquisition operation is performed concurrently by a plurality of acquisition threads, determining a delay time for each acquisition thread of the plurality of acquisition threads within a preset time length; Each acquisition thread in the thread executes the acquisition thread according to the delay time corresponding to the acquisition thread.
  • the above method further includes: in response to determining to perform a storage operation, suspending an acquisition operation, wherein the storage operation represents storing the unupdated target information acquired so far in the memory of the target server; in response to determining The store operation is successfully completed, and the fetch operation is restarted.
  • the above method further includes: in response to determining that the target server has received the write operation, determining an identifier of the target information represented by the write operation from the centralized cache, and loading the target information into the centralized cache.
  • an embodiment of the present application provides an information synchronization apparatus, including: a first determination unit configured to determine an identifier of target information in a centralized cache, wherein the centralized cache stores all the information in the server cluster. target information, each target information is provided with an identifier representing the sequence; the second determining unit is configured to determine the target information in the server cluster from the identifiers of the target information stored in the centralized cache according to the updated identifier and the identifier of the target information.
  • the identifier of the unupdated target information of the target server wherein the updated identifier is the identifier of the updated target information in the target server;
  • the synchronization unit is configured to synchronize the unupdated target information to the target server according to the identifier of the unupdated target information. target server.
  • the identifier is a sequence number representing the sequence through an increasing relationship; the synchronization unit is further configured to: perform the following acquisition operation until the target server acquires all the target information that has not been updated: determine the maximum sequence number in the updated identifier and The difference between the maximum serial numbers in the identifiers of the unupdated target information; the smaller value of the difference and the preset acquisition quantity is determined as the target quantity, and from the unupdated target information, the Target information of the target number starting with the sequence number following the maximum sequence number; synchronize the maximum sequence number in the updated identifier to the maximum sequence number corresponding to the target information of the target number.
  • the above-mentioned apparatus further includes: a configuration unit configured to: determine the configuration information in the process of synchronizing the unupdated target information to the target server according to the user's preset static configuration file or dynamic configuration instruction, wherein , the configuration information includes: the preset number of acquisitions for the acquisition operation, the subject of the acquired target information, and the number of concurrent acquisition threads for the acquisition operation.
  • the above apparatus further includes: a delay unit configured to, in response to determining that the acquisition operation is performed concurrently by a plurality of acquisition threads, determine a delay time for each acquisition thread of the plurality of acquisition threads within a preset time length ; For each acquisition thread in the multiple acquisition threads, execute the acquisition thread according to the delay time corresponding to the acquisition thread.
  • a delay unit configured to, in response to determining that the acquisition operation is performed concurrently by a plurality of acquisition threads, determine a delay time for each acquisition thread of the plurality of acquisition threads within a preset time length ; For each acquisition thread in the multiple acquisition threads, execute the acquisition thread according to the delay time corresponding to the acquisition thread.
  • the above apparatus further includes: a storage unit configured to suspend the acquisition operation in response to determining to perform a storage operation, wherein the storage operation represents storing the unupdated target information acquired so far to the target server's In memory; in response to determining that the store operation completed successfully, restart the fetch operation.
  • a storage unit configured to suspend the acquisition operation in response to determining to perform a storage operation, wherein the storage operation represents storing the unupdated target information acquired so far to the target server's In memory; in response to determining that the store operation completed successfully, restart the fetch operation.
  • the above apparatus further includes: a loading unit, configured to, in response to determining that the target server receives the write operation, determine from the centralized cache an identifier of the target information represented by the write operation, and load the target information into the centralized cache in the cache.
  • a loading unit configured to, in response to determining that the target server receives the write operation, determine from the centralized cache an identifier of the target information represented by the write operation, and load the target information into the centralized cache in the cache.
  • an embodiment of the present application provides a computer-readable medium on which a computer program is stored, wherein the method described in any implementation manner of the first aspect is implemented when the program is executed by a processor.
  • an embodiment of the present application provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, when the one or more programs are processed by the one or more processors Execution causes one or more processors to implement a method as described in any implementation form of the first aspect.
  • the information synchronization method and device determine the identifier of the target information in the centralized cache, wherein the centralized cache stores all the target information in the server cluster, and each target information has a sequence representing the sequence of the target information. Identification; according to the updated identification and the identification of the target information, from the identification of the target information stored in the centralized cache, determine the identification of the target information that has not been updated by the target server in the server cluster, wherein the updated identification is that the target server has been updated.
  • the identifier of the target information is synchronized to the target server, thereby providing an information synchronization method for server clusters, in which all the targets of the server cluster are stored in the centralized cache.
  • each target server performs information synchronization and updating according to its own updated identifier, and each target server is independent of each other and does not affect each other, which improves the efficiency of information synchronization.
  • FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application may be applied;
  • Fig. 2 is a flowchart according to an embodiment of the information synchronization method of the present application
  • FIG. 3 is a schematic diagram of an application scenario of the information synchronization method according to the present embodiment.
  • FIG. 4 is a flow chart of yet another embodiment of an information synchronization method according to the present application.
  • FIG. 5 is a structural diagram of an embodiment of an information synchronization apparatus according to the present application.
  • FIG. 6 is a schematic structural diagram of a computer system suitable for implementing the embodiments of the present application.
  • FIG. 1 shows an exemplary architecture 100 to which the information synchronization method and apparatus of the present application may be applied.
  • the system architecture 100 may include terminal devices 101 , 102 , and 103 , a network 104 and a server cluster 105 .
  • the network 104 is the medium used to provide the communication link between the terminal devices 101 , 102 , 103 and the server cluster 105 .
  • the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
  • the terminal devices 101, 102, and 103 may be hardware devices or software that support network connection for data interaction and data processing.
  • the terminal devices 101, 102, 103 are hardware, they can be various electronic devices that support network connection, information interaction, display, processing and other functions, including but not limited to smart phones, tablet computers, e-book readers, laptops laptops and desktop computers, etc.
  • the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented, for example, as multiple software or software modules for providing distributed services, or as a single software or software module. There is no specific limitation here.
  • the server cluster 105 may include servers that provide various services, for example, a background processing server that receives user write operations on the terminal devices 101, 102, and 103 and performs information synchronization.
  • the background processing server determines the identifier of the target information in the centralized cache, wherein all the target information in the server cluster is stored in the centralized cache, and each target information is provided with an identifier representing the sequence; Identification, from the identification of the target information stored in the centralized cache, determine the identification of the target information that has not been updated by the target server in the server cluster, wherein the updated identification is the identification of the updated target information in the target server;
  • the identifier of the target information to synchronize the unupdated target information to the target server.
  • server cluster 105 may be a cloud server.
  • the server cluster can be hardware or software.
  • the server When the server is hardware, it can be implemented as a distributed server cluster composed of multiple servers.
  • the server cluster When the server cluster is software, it can be implemented as a plurality of software or software modules (eg, software or software modules for providing distributed services). There is no specific limitation here.
  • each part for example, each unit, sub-unit, module, sub-module
  • each part for example, each unit, sub-unit, module, sub-module
  • each part for example, each unit, sub-unit, module, sub-module
  • each part for example, each unit, sub-unit, module, sub-module
  • each part for example, each unit, sub-unit, module, sub-module
  • each part for example, each unit, sub-unit, module, sub-module included in the information synchronization apparatus may all be provided in the servers in the server cluster.
  • the numbers of terminal devices, networks and server clusters in FIG. 1 are merely illustrative. There can be any number of terminal devices, networks, and server clusters according to implementation needs.
  • the system architecture may only include the electronic device (such as a server cluster or terminal device) on which the information synchronization method runs.
  • a flow 200 of an embodiment of an information synchronization method is shown, including the following steps:
  • Step 201 Determine the identifier of the target information in the centralized cache.
  • the execution body of the information synchronization method may determine the identifier of the target information in the centralized cache.
  • the centralized cache stores all the target information in the server cluster, and each target information is provided with an identifier representing the sequence.
  • the server cluster may be a distributed server cluster that expands the scale (number of servers) of the server cluster horizontally to improve the overall throughput of the system.
  • Each server cluster has a corresponding centralized cache, and the centralized cache centrally caches the target information of all servers in the server cluster.
  • the target information can be any information involved in the server cluster.
  • the target information may be information input by a user based on a write operation.
  • the centralized management of the target information in the server cluster through the centralized cache can ensure the consistency of the information that all servers in the server cluster need to synchronize; when there is too much cached data and the centralized cache needs to be expanded, the The cache server scales horizontally.
  • each target information in the centralized cache is provided with an identifier that is distinguished from other target information and represents the sequence of the other target information.
  • the logo can be any type of logo, including but not limited to logos such as geometric figures and characters.
  • the sequence corresponding to the characters can be set in the execution body or the electronic device communicatively connected with the execution body, and the corresponding IDs can be set for the target information in the centralized cache according to the preset sequence.
  • the identifier may be a sequence number representing the sequence through an incremental relationship. The larger the number represented by the serial number, the later the time for the centralized cache to obtain the target information.
  • Step 202 according to the updated identifier and the identifier of the target information, from the identifiers of the target information stored in the centralized cache, determine the identifier of the target information that is not updated by the target server in the server cluster.
  • the above-mentioned execution body may determine the identifier of the target information that is not updated by the target server in the server cluster from the target information stored in the centralized cache according to the updated identifier and the identifier of the target information.
  • the updated identifier is the identifier of the updated target information in the target server.
  • the target server can be any server in the server cluster. It can be understood that the target server may be the above-mentioned execution body.
  • the above executive body may compare the updated identifier with the identifier of the target information in the centralized cache, and when the identifier of the target information in the centralized cache has an identifier that does not exist in the updated identifier, determine that the centralized cache Stored in the target server is the target information updated synchronously.
  • the identifier of the target information corresponding to the identifier that exists in the identifiers of the target information in the centralized cache but does not exist in the updated identifiers may be determined as the identifier of the target information that has not been updated by the target server.
  • Step 203 Synchronize the unupdated target information to the target server according to the identifier of the unupdated target information.
  • the above-mentioned execution body may synchronize the unupdated target information to the target server according to the identifier of the unupdated target information.
  • the above-mentioned execution body may determine the target information that has not been updated by the target server according to the identifier of the target information that has not been updated. Then, the above-mentioned execution body may synchronize the unupdated target information to the target server.
  • the following acquisition operations are performed until the target server all acquires the unupdated target information:
  • the difference between the maximum sequence number in the updated identification and the maximum sequence number in the identification of the unupdated target information is determined.
  • the target information corresponding to the largest sequence number in the updated identifier is the target information updated by the target server at the latest time.
  • the target information corresponding to the largest sequence number in the identifier of the updated target information is the target information with the latest time among the target information to be updated by the target server.
  • the maximum sequence number in the identifier of the target information that is not updated by the target server in the determined centralized cache is 205, and the acquisition time of the corresponding target information is "2020.10.6 13:10:56"; it has been updated
  • the maximum sequence number in the identification is 185, and the corresponding time is "2020.10.6 13:10:46".
  • the acquisition time is "2020.10.6 13:10:46” - "2020.10.6 13:10:56”
  • the target information with serial numbers 186-205 is the target information that has not been updated by the target server.
  • the smaller value of the difference and the preset acquisition quantity is determined as the target quantity, and from the unupdated target information, the target information of the target quantity starting from the sequence number following the largest sequence number in the updated identifier is acquired .
  • the preset acquisition quantity may be a quantity specifically set according to the actual situation.
  • the acquisition of target information can avoid the waste of running resources caused by acquiring the target information according to the preset acquisition quantity of 15.
  • the maximum sequence number in the updated identifier is synchronized to the maximum sequence number corresponding to the target information of the target quantity.
  • the above-mentioned execution body needs to synchronize the maximum sequence number in the updated identifier to the maximum sequence number corresponding to the target information of the target quantity.
  • the executing body updates the identifier of the updated information to 200; after completing the second obtaining operation, the executing body updates the identifier of the updated information to 205.
  • the above-mentioned executive body can determine that the target server all obtains the unupdated target. information.
  • FIG. 4 is a schematic diagram 400 of an application scenario of the information synchronization method according to this embodiment.
  • multiple users perform information interaction with the server cluster 401 through terminal devices respectively.
  • a centralized cache 4011 and a plurality of servers 4012 , 4013 , 4014 and 4015 are provided in the server cluster 401 .
  • the centralized cache 4011 can receive target information input by multiple users in the server cluster through terminal devices, and each target information is provided with an identifier representing a sequence. For the target information input by the user, each server in the server cluster needs to update the target information in the centralized cache 4011 synchronously.
  • the server 4012 first determines the identifier of the target information in the centralized cache. Then, according to the updated identifier and the identifier of the target information, from the identifiers of the target information stored in the centralized cache, determine the identifier of the target information that has not been updated by the target server 4012 in the server cluster, wherein the updated identifier is an identifier that has been updated in the target server. The identifier of the updated target information. Finally, the unupdated target information is synchronized to the target server 4012 according to the identifier of the unupdated target information.
  • the identifier of the target information in the centralized cache is determined, wherein the centralized cache stores all the target information in the server cluster, and each target information is provided with an identifier representing the sequence; According to the updated identifier and the identifier of the target information, the identifier of the target information that is not updated by the target server in the server cluster is determined from the identifiers of the target information stored in the centralized cache, wherein the updated identifier is the updated target in the target server.
  • the identification of the information according to the identification of the unupdated target information, the unupdated target information is synchronized to the target server, thereby providing an information synchronization method for the server cluster, and all the target information of the server cluster is stored in the centralized cache, In the entire server cluster, each target server updates information synchronously according to its own updated identifier, and each target server is independent of each other and does not affect each other, which improves the efficiency of information synchronization.
  • the above-mentioned execution body may also determine the target to be not updated according to the user's preset static configuration file or dynamic configuration instruction Configuration information in the process of synchronizing information to the target server, where the configuration information includes: the preset acquisition quantity of the acquisition operation, the subject of the acquired target information, and the number of concurrent acquisition threads of the acquisition operation.
  • the preset number of acquisitions is used to represent the amount of target information that can be acquired by performing one acquisition operation; the subject of the target information is used to indicate the subject of the target information acquired when the above-mentioned execution subject performs the acquisition operation; the number of concurrent acquisition threads is used to represent the execution The number of fetch threads to execute concurrently during fetch operations.
  • the execution body determines a delay time for each acquisition thread in the plurality of acquisition threads within a preset time length; For each acquisition thread in the plurality of acquisition threads, the acquisition thread is executed according to the delay time corresponding to the acquisition thread.
  • the preset time length can be specifically set according to the actual situation.
  • the number of concurrently executing fetch threads is proportional to a preset length of time. By randomly delaying concurrently executing fetch threads, the concurrent access pressure of the centralized cache is reduced.
  • the execution subject suspends the acquisition operation in response to determining to perform the storage operation, wherein the storage operation represents storing the unupdated target information acquired so far in the memory of the target server in; in response to determining that the store operation completed successfully, the fetch operation is restarted.
  • the storage operation and the acquisition operation cannot be performed at the same time, but the storage operation and the acquisition operation are performed alternately, so as to prevent the acquisition and storage of the target information from causing statistical errors when the storage operation and the acquisition operation are performed at the same time, and the information synchronization is improved. accuracy.
  • the execution body determines the identifier of the target information represented by the write operation from the centralized cache, and loads the target information into the centralized cache. in cache.
  • FIG. 5 a schematic flow 500 of another embodiment of the information synchronization method according to the present application is shown, including the following steps:
  • Step 501 Determine the configuration information in the process of synchronizing the unupdated target information to the target server according to the user's preset static configuration file or dynamic configuration instruction.
  • the configuration information includes: the preset number of acquisitions for the acquisition operation, the subject of the acquired target information, and the number of concurrent acquisition threads for the acquisition operation.
  • Step 502 Determine the identifier of the target information in the centralized cache.
  • the centralized cache stores all the target information in the server cluster, and each target information is provided with a serial number representing the sequence through an increasing relationship.
  • Step 503 according to the updated identifier and the identifier of the target information, from the identifiers of the target information stored in the centralized cache, determine the identifier of the target information that is not updated by the target server in the server cluster.
  • the updated identifier is the identifier of the updated target information in the target server.
  • Step 504 perform the following acquisition operations until the target server acquires all the target information that has not been updated:
  • Step 5041 Determine the difference between the maximum sequence number in the updated identification and the maximum sequence number in the identification of the unupdated target information.
  • Step 5042 the smaller value of the difference and the preset acquisition quantity is determined as the target quantity, and from the unupdated target information, the target information of the target quantity starting from the serial number after the maximum serial number in the updated identification is obtained. .
  • Step 5043 Synchronize the maximum sequence number in the updated identifier to the maximum sequence number corresponding to the target information of the target quantity.
  • the process 500 of the information synchronization method in this embodiment specifically describes the sequence represented by the serial number of each target information in the centralized cache, and the Synchronization of information in server clusters. In this way, the convenience and accuracy of information synchronization in this embodiment are further improved.
  • the present disclosure provides an embodiment of an information synchronization apparatus.
  • the apparatus embodiment corresponds to the method embodiment shown in FIG. 2 .
  • the apparatus may Used in various electronic devices.
  • the information synchronization apparatus includes: a first determining unit 601 configured to determine an identifier of target information in a centralized cache, wherein the centralized cache stores all the target information in the server cluster, and each Each target information is provided with an identifier representing the sequence; the second determining unit 602 is configured to, according to the updated identifier and the identifier of the target information, from the identifiers of the target information stored in the centralized cache, determine that the target server in the server cluster is not The identifier of the updated target information, wherein the updated identifier is the identifier of the updated target information in the target server; the synchronization unit 603 is configured to synchronize the unupdated target information to the target server according to the identifier of the unupdated target information .
  • the identifier is a serial number representing the sequence through an incremental relationship; the synchronization unit 603 is further configured to: perform the following acquisition operation until the target server all acquires the unupdated target information: determine The difference between the maximum sequence number in the updated identification and the maximum sequence number in the identification of the target information that has not been updated; the smaller value of the difference and the preset acquisition quantity is determined as the target quantity, and the target information that has not been updated , obtain the target information of the target number starting from the sequence number following the maximum sequence number in the updated identification; synchronize the maximum sequence number in the updated identification to the maximum sequence number corresponding to the target information of the target number.
  • the above-mentioned apparatus further includes: a configuration unit (not shown in the figure), configured to: according to a user's preset static configuration file or dynamic configuration instruction, determine whether to update the unupdated The configuration information in the process of synchronizing the target information to the target server, wherein the configuration information includes: the preset acquisition quantity of the acquisition operation, the subject of the acquired target information, and the number of concurrent acquisition threads of the acquisition operation.
  • a configuration unit (not shown in the figure), configured to: according to a user's preset static configuration file or dynamic configuration instruction, determine whether to update the unupdated The configuration information in the process of synchronizing the target information to the target server, wherein the configuration information includes: the preset acquisition quantity of the acquisition operation, the subject of the acquired target information, and the number of concurrent acquisition threads of the acquisition operation.
  • the above-mentioned apparatus further includes: a delay unit (not shown in the figure) configured to, in response to determining that the acquisition operation is performed concurrently by a plurality of acquisition threads, within a preset time length A delay time is determined for each acquisition thread in the multiple acquisition threads; for each acquisition thread in the multiple acquisition threads, the acquisition thread is executed according to the delay time corresponding to the acquisition thread.
  • a delay unit (not shown in the figure) configured to, in response to determining that the acquisition operation is performed concurrently by a plurality of acquisition threads, within a preset time length A delay time is determined for each acquisition thread in the multiple acquisition threads; for each acquisition thread in the multiple acquisition threads, the acquisition thread is executed according to the delay time corresponding to the acquisition thread.
  • the above-mentioned apparatus further includes: a storage unit (not shown in the figure) configured to, in response to determining to perform a storage operation, suspend the acquisition operation, wherein the storage operation characterization will expire by The currently acquired unupdated target information is stored in the memory of the target server; in response to determining that the storage operation is successfully completed, the acquisition operation is restarted.
  • a storage unit (not shown in the figure) configured to, in response to determining to perform a storage operation, suspend the acquisition operation, wherein the storage operation characterization will expire by The currently acquired unupdated target information is stored in the memory of the target server; in response to determining that the storage operation is successfully completed, the acquisition operation is restarted.
  • the above-mentioned apparatus further includes: a loading unit (not shown in the figure), configured to, in response to determining that the target server has received the write operation, determine from the centralized cache where the write operation is located. The identification of the represented target information, and the target information is loaded into the centralized cache.
  • a loading unit (not shown in the figure), configured to, in response to determining that the target server has received the write operation, determine from the centralized cache where the write operation is located. The identification of the represented target information, and the target information is loaded into the centralized cache.
  • the first generating unit in the information synchronization apparatus determines the identifier of the target information in the centralized cache, wherein the centralized cache stores all the target information in the server cluster, and each target information has a sequence of representations the identifier of the target information; the second generation unit determines the identifier of the target information not updated by the target server in the server cluster from the identifier of the target information stored in the centralized cache according to the identifier of the updated identifier and the target information, wherein the updated identifier is The identifier of the updated target information in the target server; the synchronization unit synchronizes the unupdated target information to the target server according to the identifier of the unupdated target information, thereby providing an information synchronization method for server clusters, a centralized cache All target information of the server cluster is stored in the server cluster. In the entire server cluster, each target server updates the information synchronously according to its own updated ID.
  • the target servers are independent of each other and do not affect each other, which improves the efficiency of
  • FIG. 7 it shows a schematic structural diagram of a computer system 700 suitable for implementing the devices of the embodiments of the present application (eg, devices 101 , 102 , 103 , and 105 shown in FIG. 1 ).
  • the device shown in FIG. 7 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
  • a computer system 700 includes a processor (eg, CPU, central processing unit) 701 that can be loaded into random access memory (RAM) according to a program stored in a read only memory (ROM) 702 or from a storage section 708
  • the program in 703 executes various appropriate actions and processes.
  • various programs and data necessary for the operation of the system 700 are also stored.
  • the processor 701 , the ROM 702 and the RAM 703 are connected to each other through a bus 704 .
  • An input/output (I/O) interface 705 is also connected to bus 704 .
  • the following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 708 including a hard disk, etc. ; and a communication section 709 including a network interface card such as a LAN card, a modem, and the like. The communication section 709 performs communication processing via a network such as the Internet.
  • a drive 710 is also connected to the I/O interface 705 as needed.
  • a removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication portion 709 and/or installed from the removable medium 711 .
  • the computer program is executed by the processor 701, the above-mentioned functions defined in the method of the present application are performed.
  • the computer-readable medium of the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for performing the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional procedures, or a combination thereof programming language - such as "C" or a similar programming language.
  • the program code may execute entirely on the client computer, partly on the client computer, as a stand-alone software package, partly on the client computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the client computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner.
  • the described unit may also be provided in the processor, for example, it may be described as: a processor including a first generation unit, a second generation unit and a synchronization unit.
  • the names of these units do not constitute a limitation on the unit itself under certain circumstances, for example, the synchronization unit can also be described as "according to the identifier of the unupdated target information, synchronize the unupdated target information to the target server. unit".
  • the present application also provides a computer-readable medium.
  • the computer-readable medium may be included in the device described in the above embodiments, or may exist alone without being assembled into the device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the apparatus, the computer equipment: determines the identifier of the target information in the centralized cache, wherein the centralized cache stores the All the target information in the server cluster, each target information has an identifier representing the sequence; according to the updated identifier and the identifier of the target information, from the identifiers of the target information stored in the centralized cache, it is determined that the target server in the server cluster is not The identifier of the updated target information, wherein the updated identifier is the identifier of the updated target information in the target server; according to the identifier of the unupdated target information, the unupdated target information is synchronized to the target server.

Landscapes

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

Abstract

本申请公开了一种信息同步方法及装置。方法的一具体实施方式包括:确定集中式缓存中的目标信息的标识,其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识;根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器。本实施方式提供了一种针对于服务器集群的信息同步方法,集中式缓存中存储服务器集群的所有目标信息,提高了信息同步的效率。

Description

信息同步方法及装置
本专利申请要求于2020年10月16提交的、申请号为202011110808.7、发明名称为“信息同步方法及装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。
技术领域
本申请实施例涉及计算机技术领域,具体涉及一种信息同步方法及装置。
背景技术
当前的服务端系统一般采用分布式集群设计,通过横向扩展服务集群规模,提高系统整体吞吐量。在服务器集群中,一般通过如下方法解决多服务器之间内存数据加载与同步的问题:
一、在服务器启动时,批量拉取服务器集群对应的数据库中的信息,并将拉取到的信息加载到内存中。启动完成后,当一个服务器实例接收到写请求时,首先更新本服务器内存数据,再更新数据库记录,集群中的其他服务实例定期轮询数据库,加载更新数据到本地内存中。
二、在服务器启动时,批量拉取服务器集群对应的数据库中的信息,并将拉取到的信息加载到内存中。启动完成后,当一个服务器实例当处理写请求时,先更新本服务器内存数据;同时将写请求转发给集群中的其他服务器实例,从而保持集群中的服务器实例内存数据同步。
发明内容
本申请实施例提出了一种信息同步方法及装置。
第一方面,本申请实施例提供了一种信息同步方法,包括:确定集中式缓存中的目标信息的标识,其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;根 据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识;根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器。
在一些实施例中,标识为通过递增关系表征先后顺序的序号;上述根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器,包括:执行如下获取操作,直至目标服务器全部获取未更新的目标信息:确定已更新标识中的最大序号与未更新的目标信息的标识中的最大序号之间的差值;将差值与预设获取数量中的较小值确定为目标数量,从未更新的目标信息中,获取从已更新标识中的最大序号的后一序号开始的、目标数量的目标信息;将已更新标识中的最大序号同步至目标数量的目标信息对应的最大序号。
在一些实施例中,在确定集中式缓存中的目标信息的标识之前,上述方法还包括:根据用户的预设静态配置文件或动态配置指令,确定将未更新的目标信息同步至目标服务器的过程中的配置信息,其中,配置信息包括:获取操作的预设获取数量、获取的目标信息的主题、获取操作的并发获取线程数量。
在一些实施例中,上述方法还包括:响应于确定获取操作由多个获取线程并发执行,在预设时间长度内为多个获取线程中的每个获取线程确定延迟时间;针对于多个获取线程中的每个获取线程,根据该获取线程对应的延迟时间执行该获取线程。
在一些实施例中,上述方法还包括:响应于确定执行存储操作,暂停获取操作,其中,存储操作表征将截止到目前所获取的未更新的目标信息存储至目标服务器的内存中;响应于确定成功完成存储操作,重新开启获取操作。
在一些实施例中,上述方法还包括:响应于确定目标服务器接收到写操作,从集中式缓存中确定写操作所表征的目标信息的标识,并将目标信息加载至集中式缓存中。
第二方面,本申请实施例提供了一种信息同步装置,包括:第一确定单元,被配置成确定集中式缓存中的目标信息的标识,其中,集 中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;第二确定单元,被配置成根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识;同步单元,被配置成根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器。
在一些实施例中,标识为通过递增关系表征先后顺序的序号;同步单元,进一步被配置成:执行如下获取操作,直至目标服务器全部获取未更新的目标信息:确定已更新标识中的最大序号与未更新的目标信息的标识中的最大序号之间的差值;将差值与预设获取数量中的较小值确定为目标数量,从未更新的目标信息中,获取从已更新标识中的最大序号的后一序号开始的、目标数量的目标信息;将已更新标识中的最大序号同步至目标数量的目标信息对应的最大序号。
在一些实施例中,上述装置还包括:配置单元,被配置成:根据用户的预设静态配置文件或动态配置指令,确定将未更新的目标信息同步至目标服务器的过程中的配置信息,其中,配置信息包括:获取操作的预设获取数量、获取的目标信息的主题、获取操作的并发获取线程数量。
在一些实施例中,上述装置还包括:延迟单元,被配置成响应于确定获取操作由多个获取线程并发执行,在预设时间长度内为多个获取线程中的每个获取线程确定延迟时间;针对于多个获取线程中的每个获取线程,根据该获取线程对应的延迟时间执行该获取线程。
在一些实施例中,上述装置还包括:存储单元,被配置成响应于确定执行存储操作,暂停获取操作,其中,存储操作表征将截止到目前所获取的未更新的目标信息存储至目标服务器的内存中;响应于确定成功完成存储操作,重新开启获取操作。
在一些实施例中,上述装置还包括:加载单元,被配置成响应于确定目标服务器接收到写操作,从集中式缓存中确定写操作所表征的目标信息的标识,并将目标信息加载至集中式缓存中。
第三方面,本申请实施例提供了一种计算机可读介质,其上存储 有计算机程序,其中,程序被处理器执行时实现如第一方面任一实现方式描述的方法。
第四方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面任一实现方式描述的方法。
本申请实施例提供的信息同步方法及装置,通过确定集中式缓存中的目标信息的标识,其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识;根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器,从而提供了一种针对于服务器集群的信息同步方法,集中式缓存中存储服务器集群的所有目标信息,整个服务器集群中,各目标服务器根据自身的已更新标识进行信息同步更新,各目标服务器之间相互独立,各不影响,提高了信息同步的效率。
附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:
图1是本申请的一个实施例可以应用于其中的示例性系统架构图;
图2是根据本申请信息同步方法的一个实施例的流程图;
图3是根据本实施例的信息同步方法的应用场景的示意图;
图4是根据本申请的信息同步方法的又一个实施例的流程图;
图5是根据本申请的信息同步装置的一个实施例的结构图;
图6是适于用来实现本申请实施例的计算机系统的结构示意图。
具体实施方式
下面结合附图和实施例对本申请作进一步的详细说明。可以理解 的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。
图1示出了可以应用本申请的信息同步方法及装置的示例性架构100。
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器集群105。网络104用以在终端设备101、102、103和服务器集群105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。
终端设备101、102、103可以是支持网络连接从而进行数据交互和数据处理的硬件设备或软件。当终端设备101、102、103为硬件时,其可以是支持网络连接,信息交互、显示、处理等功能的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现成例如用来提供分布式服务的多个软件或软件模块,也可以实现成单个软件或软件模块。在此不做具体限定。
服务器集群105可以包括提供各种服务的服务器,例如接收用户在终端设备101、102、103上的写操作操作,进行信息同步的后台处理服务器。后台处理服务器确定集中式缓存中的目标信息的标识,其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识;根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器。作为示例,服务器集群105可以是云端服务器。
需要说明的是,服务器集群可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群。当服务器集群为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务的软件或软件模块)。在此不做具体限定。
还需要说明的是,本公开的实施例所提供的信息同步方法可以由服务器集群中的服务器执行。相应地,信息同步装置包括的各个部分(例如各个单元、子单元、模块、子模块)可以全部设置于服务器集群中的服务器中。
应该理解,图1中的终端设备、网络和服务器集群的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器集群。当信息同步方法运行于其上的电子设备不需要与其他电子设备进行数据传输时,该系统架构可以仅包括信息同步方法运行于其上的电子设备(例如服务器集群或终端设备)。
继续参考图2,示出了信息同步方法的一个实施例的流程200,包括以下步骤:
步骤201,确定集中式缓存中的目标信息的标识。
本实施例中,信息同步方法的执行主体(例如图1中的服务器集群中的服务器)可以确定集中式缓存中的目标信息的标识。其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识。
服务器集群可以是通过横向扩展服务器集群规模(服务器数量),以提高系统整体吞吐量的分布式服务器集群。每个服务器集群对应设有集中式缓存,集中式缓存中集中缓存有服务器集群中所有的服务器的目标信息。目标信息可以是服务器集群所涉及的任意信息。作为示例,目标信息可以是用户基于写操作所输入的信息。
通过集中式缓存对服务器集群中的目标信息进行集中管理,能保证服务器集群中的所有服务器所需同步的信息的一致性;当缓存数据过多需要对集中式缓存进行扩容时,可以方便地对缓存服务器进行水平扩展。
本实施例中,对集中式缓存中的每个目标信息都设有区分于其他目标信息、并且表征与其他的目标信息的先后顺序的标识。
其中,标识可以是任意类型的标识,包括但不限于是几何图形、字符等标识。以字符标识为例,可以在上述执行主体或者与上述执行主体通信连接的电子设备中设置字符对应的先后顺序,并根据预先设置的先后顺序为集中式缓存中的目标信息设置对应的标识。
在本实施例的一些可选的实现方式中,标识可以是通过递增关系表征先后顺序的序号。序号所表征的数字越大,表征集中式缓存获取目标信息的时间越靠后。
步骤202,根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识。
本实施例中,上述执行主体可以根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息中,确定服务器集群中的目标服务器未更新的目标信息的标识。其中,已更新标识为目标服务器中已更新的目标信息的标识。目标服务器可以是服务器集群中的任一服务器。可以理解,目标服务器可以是上述执行主体。
作为示例,上述执行主体可以将已更新标识与集中式缓存中的目标信息的标识进行对比,当集中式缓存中的目标信息的标识中存在已更新标识中未存在的标识时,确定集中式缓存中存储有目标服务器为同步更新的目标信息。此时,可以将集中式缓存中的目标信息的标识中存在的、已更新标识中未存在的标识对应的目标信息的标识,确定为目标服务器未更新的目标信息的标识。
步骤203,根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器。
本实施例中,上述执行主体可以根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器。
作为示例,首先,上述执行主体基于标识的唯一性,可以根据未更新的目标信息的标识,确定出目标服务器未更新的目标信息。然后,上述执行主体可以将未更新的目标信息同步至目标服务器。
在本实施例的一些可选的实现方式中,针对于以序号形式表征的标识,执行如下获取操作,直至目标服务器全部获取未更新的目标信息:
第一,确定已更新标识中的最大序号与未更新的目标信息的标识中的最大序号之间的差值。
本实现方式中,由于序号通过递增关系表征集中式缓存获取目标信息的先后顺序,因此,已更新标识中的最大序号所对应的目标信息就是目标服务器所更新的时间最靠后的目标信息,未更新的目标信息的标识中的最大序号对应的目标信息就是目标服务器所需更新的目标信息中时间最靠后的目标信息。当两者之间的差值大于0时,可以确定集中式缓存中存在目标服务器未更新的目标信息。
作为示例,所确定的集中式缓存中存在的目标服务器未更新的目标信息的标识中的最大序号为205,其对应的目标信息的获取时间为“2020.10.6 13:10:56”;而已更新标识中的最大序号为185,其对应的时间为“2020.10.6 13:10:46”。则获取时间为“2020.10.6 13:10:46”—“2020.10.6 13:10:56”,序号为186—205的目标信息为目标服务器未更新的目标信息。
第二,将差值与预设获取数量中的较小值确定为目标数量,从未更新的目标信息中,获取从已更新标识中的最大序号的后一序号开始的、目标数量的目标信息。
本实现方式中,预设获取数量可以是根据实际情况具体设置的数量。通过将差值与预设获取数量中的较小值确定为目标数量,进行获取操作,可以防止上述执行主体浪费运行资源。
继续参考上述第一步骤中的示例,上述预设获取数量为15。则在第一次获取操作中,差值(205-185=20)与预设获取数量15中的较小值为预设获取数量15,则可以根据预设获取数量15进行序号186—200的目标信息的获取。由于在获取序号186—200的目标信息后,目标服务器还有序号为201—205的目标信息未同步更新。需要执行第二次获取操作。
执行第二次获取操作时,差值(205-200=5)与预设获取数量15 中的较小值为差值5,则上述执行主体只需根据预设获取数量5进行序号201—205的目标信息的获取,避免根据预设获取数量15进行目标信息的获取带来的运行资源的浪费。
第三,将已更新标识中的最大序号同步至目标数量的目标信息对应的最大序号。
在每次获取操作之后,上述执行主体需要将已更新标识中的最大序号同步至目标数量的目标信息对应的最大序号。
作为示例,完成上述第一次获取操作后,上述执行主体将已更新信息的标识更新为200;完成上述第二次获取操作后,上述执行主体将已更新信息的标识更新为205。
可以理解,本实现方式中,当已更新标识中的最大序号与未更新的目标信息的标识中的最大序号之间的差值为零时,上述执行主体可以确定目标服务器全部获取未更新的目标信息。
继续参见图4,图4是根据本实施例的信息同步方法的应用场景的一个示意图400。在图4的应用场景中,多个用户分别通过终端设备与服务器集群401进行信息交互。在服务器集群401中设有集中式缓存4011和多个服务器4012、4013、4014、4015。其中,集中式缓存4011可以接收多个用户通过终端设备在服务器集群中输入的目标信息,每个目标信息设有表征先后顺序的标识。针对于用户输入的目标信息,服务器集群中的各服务器需要同步更新集中式缓存4011中的目标信息。在目标服务器4012的信息同步过程中,服务器4012首先确定集中式缓存中的目标信息的标识。然后,根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器4012未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识。最后,根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器4012。
本公开的上述实施例提供的方法,通过确定集中式缓存中的目标信息的标识,其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;根据已更新标识与目标 信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识;根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器,从而提供了一种针对于服务器集群的信息同步方法,集中式缓存中存储服务器集群的所有目标信息,整个服务器集群中,各目标服务器根据自身的已更新标识进行信息同步更新,各目标服务器之间相互独立,各不影响,提高了信息同步的效率。
在本实施例的一些可选的实现方式中,在确定集中式缓存中的目标信息的标识之前,上述执行主体还可以根据用户的预设静态配置文件或动态配置指令,确定将未更新的目标信息同步至目标服务器的过程中的配置信息,其中,配置信息包括:获取操作的预设获取数量、获取的目标信息的主题、获取操作的并发获取线程数量。
预设获取数量用于表征执行一次获取操作所能获取的目标信息的数量;目标信息的主题用于指示上述执行主体执行获取操作时所获取的目标信息的主体;并发获取线程数量用于表征执行获取操作时并发执行的获取线程数量。通过预设静态配置文件或动态配置指令,用户可以灵活设置信息同步过程中的各配置参数,以提高信息同步过程的灵活性。
在本实施例的一些可选的实现方式中,上述执行主体响应于确定获取操作由多个获取线程并发执行,在预设时间长度内为多个获取线程中的每个获取线程确定延迟时间;针对于多个获取线程中的每个获取线程,根据该获取线程对应的延迟时间执行该获取线程。
可以理解,预设时间长度可以根据实际情况具体设定。作为示例,并发执行的获取线程数量与预设时间长度成正比。通过对并发执行的获取线程进行随机延迟,减小了集中式缓存的并发访问压力。
在本实施例的一些可选的实现方式中,上述执行主体响应于确定执行存储操作,暂停获取操作,其中,存储操作表征将截止到目前所获取的未更新的目标信息存储至目标服务器的内存中;响应于确定成功完成存储操作,重新开启获取操作。
本实现方式中,存储操作与获取操作不能同时执行,而是存储操作与获取操作交替执行,以防止同时执行存储操作与获取操作时,造成目标信息的获取与存储的统计失误,提高了信息同步的准确性。
在本实施例的一些可选的实现方式中,上述执行主体响应于确定目标服务器接收到写操作,从集中式缓存中确定写操作所表征的目标信息的标识,并将目标信息加载至集中式缓存中。
继续参考图5,示出了根据本申请的信息同步方法的另一个实施例的示意性流程500,包括以下步骤:
步骤501,根据用户的预设静态配置文件或动态配置指令,确定将未更新的目标信息同步至目标服务器的过程中的配置信息。
其中,配置信息包括:获取操作的预设获取数量、获取的目标信息的主题、获取操作的并发获取线程数量。
步骤502,确定集中式缓存中的目标信息的标识。
其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有通过递增关系表征先后顺序的序号。
步骤503,根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识。
其中,已更新标识为目标服务器中已更新的目标信息的标识。
步骤504,执行如下获取操作,直至目标服务器全部获取未更新的目标信息:
步骤5041,确定已更新标识中的最大序号与未更新的目标信息的标识中的最大序号之间的差值。
步骤5042,将差值与预设获取数量中的较小值确定为目标数量,从未更新的目标信息中,获取从已更新标识中的最大序号的后一序号开始的、目标数量的目标信息。
步骤5043,将已更新标识中的最大序号同步至目标数量的目标信息对应的最大序号。
从本实施例中可以看出,与图2对应的实施例相比,本实施例中 的信息同步方法的流程500具体说明了通过集中式缓存中各目标信息的序号所表征的先后顺序,进行服务器集群中的信息同步。如此,进一步提高了本实施例信息同步的便利性和准确度。
继续参考图6,作为对上述各图所示方法的实现,本公开提供了一种信息同步装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。
如图6所示,信息同步装置包括:包括:第一确定单元601,被配置成确定集中式缓存中的目标信息的标识,其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;第二确定单元602,被配置成根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识;同步单元603,被配置成根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器。
在本实施例的一些可选的实现方式中,标识为通过递增关系表征先后顺序的序号;同步单元603,进一步被配置成:执行如下获取操作,直至目标服务器全部获取未更新的目标信息:确定已更新标识中的最大序号与未更新的目标信息的标识中的最大序号之间的差值;将差值与预设获取数量中的较小值确定为目标数量,从未更新的目标信息中,获取从已更新标识中的最大序号的后一序号开始的、目标数量的目标信息;将已更新标识中的最大序号同步至目标数量的目标信息对应的最大序号。
在本实施例的一些可选的实现方式中,上述装置还包括:配置单元(图中未示出),被配置成:根据用户的预设静态配置文件或动态配置指令,确定将未更新的目标信息同步至目标服务器的过程中的配置信息,其中,配置信息包括:获取操作的预设获取数量、获取的目标信息的主题、获取操作的并发获取线程数量。
在本实施例的一些可选的实现方式中,上述装置还包括:延迟单元(图中未示出),被配置成响应于确定获取操作由多个获取线程并发 执行,在预设时间长度内为多个获取线程中的每个获取线程确定延迟时间;针对于多个获取线程中的每个获取线程,根据该获取线程对应的延迟时间执行该获取线程。
在本实施例的一些可选的实现方式中,上述装置还包括:存储单元(图中未示出),被配置成响应于确定执行存储操作,暂停获取操作,其中,存储操作表征将截止到目前所获取的未更新的目标信息存储至目标服务器的内存中;响应于确定成功完成存储操作,重新开启获取操作。
在本实施例的一些可选的实现方式中,上述装置还包括:加载单元(图中未示出),被配置成响应于确定目标服务器接收到写操作,从集中式缓存中确定写操作所表征的目标信息的标识,并将目标信息加载至集中式缓存中。
本实施例中,信息同步装置中的第一生成单元确定集中式缓存中的目标信息的标识,其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;第二生成单元根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识;同步单元根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器,从而提供了一种针对于服务器集群的信息同步方法,集中式缓存中存储服务器集群的所有目标信息,整个服务器集群中,各目标服务器根据自身的已更新标识进行信息同步更新,各目标服务器之间相互独立,各不影响,提高了信息同步的效率。
下面参考图7,其示出了适于用来实现本申请实施例的设备(例如图1所示的设备101、102、103、105)的计算机系统700的结构示意图。图7示出的设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。
如图7所示,计算机系统700包括处理器(例如CPU,中央处理器)701,其可以根据存储在只读存储器(ROM)702中的程序或者从 存储部分708加载到随机访问存储器(RAM)703中的程序而执行各种适当的动作和处理。在RAM703中,还存储有系统700操作所需的各种程序和数据。处理器701、ROM702以及RAM703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。
以下部件连接至I/O接口705:包括键盘、鼠标等的输入部分706;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分707;包括硬盘等的存储部分708;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分709。通信部分709经由诸如因特网的网络执行通信处理。驱动器710也根据需要连接至I/O接口705。可拆卸介质711,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器710上,以便于从其上读出的计算机程序根据需要被安装入存储部分708。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分709从网络上被下载和安装,和/或从可拆卸介质711被安装。在该计算机程序被处理器701执行时,执行本申请的方法中限定的上述功能。
需要说明的是,本申请的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信 号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,程序设计语言包括面向目标的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如”C”语言或类似的程序设计语言。程序代码可以完全地在客户计算机上执行、部分地在客户计算机上执行、作为一个独立的软件包执行、部分在客户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到客户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本申请各种实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现, 也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器,包括第一生成单元、第二生成单元和同步单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,同步单元还可以被描述为“根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器的单元”。
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该计算机设备:确定集中式缓存中的目标信息的标识,其中,集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;根据已更新标识与目标信息的标识,从集中式缓存存储的目标信息的标识中,确定服务器集群中的目标服务器未更新的目标信息的标识,其中,已更新标识为目标服务器中已更新的目标信息的标识;根据未更新的目标信息的标识,将未更新的目标信息同步至目标服务器。
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。

Claims (14)

  1. 一种信息同步方法,包括:
    确定集中式缓存中的目标信息的标识,其中,所述集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;
    根据已更新标识与所述目标信息的标识,从所述集中式缓存存储的目标信息的标识中,确定所述服务器集群中的目标服务器未更新的目标信息的标识,其中,所述已更新标识为所述目标服务器中已更新的目标信息的标识;
    根据所述未更新的目标信息的标识,将所述未更新的目标信息同步至所述目标服务器。
  2. 根据权利要求1所述的方法,其中,所述标识为通过递增关系表征先后顺序的序号;
    所述根据所述未更新的目标信息的标识,将所述未更新的目标信息同步至所述目标服务器,包括:
    执行如下获取操作,直至所述目标服务器全部获取所述未更新的目标信息:
    确定已更新标识中的最大序号与所述未更新的目标信息的标识中的最大序号之间的差值;
    将所述差值与预设获取数量中的较小值确定为目标数量,从所述未更新的目标信息中,获取从已更新标识中的最大序号的后一序号开始的、所述目标数量的目标信息;
    将已更新标识中的最大序号同步至所述目标数量的目标信息对应的最大序号。
  3. 根据权利要求2所述的方法,其中,在所述确定集中式缓存中的目标信息的标识之前,还包括:
    根据用户的预设静态配置文件或动态配置指令,确定将所述未更 新的目标信息同步至所述目标服务器的过程中的配置信息,其中,所述配置信息包括:所述获取操作的预设获取数量、获取的目标信息的主题、所述获取操作的并发获取线程数量。
  4. 根据权利要求3所述的方法,其中,还包括:
    响应于确定所述获取操作由多个获取线程并发执行,在预设时间长度内为所述多个获取线程中的每个获取线程确定延迟时间;
    针对于所述多个获取线程中的每个获取线程,根据该获取线程对应的延迟时间执行该获取线程。
  5. 根据权利要求2所述的方法,其中,还包括:
    响应于确定执行存储操作,暂停所述获取操作,其中,所述存储操作表征将截止到目前所获取的未更新的目标信息存储至所述目标服务器的内存中;
    响应于确定成功完成所述存储操作,重新开启所述获取操作。
  6. 根据权利要求1所述的方法,其中,还包括:
    响应于确定所述目标服务器接收到写操作,从所述集中式缓存中确定所述写操作所表征的目标信息的标识,并将所述目标信息加载至所述集中式缓存中。
  7. 一种信息同步装置,包括:
    第一确定单元,被配置成确定集中式缓存中的目标信息的标识,其中,所述集中式缓存中存储有服务器集群中所有的目标信息,每个目标信息设有表征先后顺序的标识;
    第二确定单元,被配置成根据已更新标识与所述目标信息的标识,从所述集中式缓存存储的目标信息的标识中,确定所述服务器集群中的目标服务器未更新的目标信息的标识,其中,所述已更新标识为所述目标服务器中已更新的目标信息的标识;
    同步单元,被配置成根据所述未更新的目标信息的标识,将所述 未更新的目标信息同步至所述目标服务器。
  8. 根据权利要求7所述的装置,其中,所述标识为通过递增关系表征先后顺序的序号;
    所述同步单元,进一步被配置成:执行如下获取操作,直至所述目标服务器全部获取所述未更新的目标信息:确定已更新标识中的最大序号与所述未更新的目标信息的标识中的最大序号之间的差值;将所述差值与预设获取数量中的较小值确定为目标数量,从所述未更新的目标信息中,获取从已更新标识中的最大序号的后一序号开始的、所述目标数量的目标信息;将已更新标识中的最大序号同步至所述目标数量的目标信息对应的最大序号。
  9. 根据权利要求8所述的装置,其中,还包括:
    配置单元,被配置成:根据用户的预设静态配置文件或动态配置指令,确定将所述未更新的目标信息同步至所述目标服务器的过程中的配置信息,其中,所述配置信息包括:所述获取操作的预设获取数量、获取的目标信息的主题、所述获取操作的并发获取线程数量。
  10. 根据权利要求9所述的装置,其中,还包括:
    延迟单元,被配置成响应于确定所述获取操作由多个获取线程并发执行,在预设时间长度内为所述多个获取线程中的每个获取线程确定延迟时间;针对于所述多个获取线程中的每个获取线程,根据该获取线程对应的延迟时间执行该获取线程。
  11. 根据权利要求8所述的装置,其中,还包括:
    存储单元,被配置成响应于确定执行存储操作,暂停所述获取操作,其中,所述存储操作表征将截止到目前所获取的未更新的目标信息存储至所述目标服务器的内存中;响应于确定成功完成所述存储操作,重新开启所述获取操作。
  12. 根据权利要求7所述的装置,其中,还包括:
    加载单元,被配置成响应于确定所述目标服务器接收到写操作,从所述集中式缓存中确定所述写操作所表征的目标信息的标识,并将所述目标信息加载至所述集中式缓存中。
  13. 一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-6中任一所述的方法。
  14. 一种电子设备,包括:
    一个或多个处理器;
    存储装置,其上存储有一个或多个程序,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-6中任一所述的方法。
PCT/CN2021/122668 2020-10-16 2021-10-08 信息同步方法及装置 WO2022078243A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011110808.7 2020-10-16
CN202011110808.7A CN113783916B (zh) 2020-10-16 2020-10-16 信息同步方法及装置

Publications (1)

Publication Number Publication Date
WO2022078243A1 true WO2022078243A1 (zh) 2022-04-21

Family

ID=78835072

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/122668 WO2022078243A1 (zh) 2020-10-16 2021-10-08 信息同步方法及装置

Country Status (2)

Country Link
CN (1) CN113783916B (zh)
WO (1) WO2022078243A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553895A (zh) * 2022-04-24 2022-05-27 浙江中控技术股份有限公司 一种数据同步方法、系统、存储介质及电子设备
CN115914399A (zh) * 2022-09-29 2023-04-04 京东科技信息技术有限公司 请求数据发送方法、装置、设备、介质和程序产品

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080270629A1 (en) * 2007-04-27 2008-10-30 Yahoo! Inc. Data snychronization and device handling using sequence numbers
CN103369051A (zh) * 2013-07-22 2013-10-23 中安消技术有限公司 一种数据服务器集群系统及数据同步方法
CN103716384A (zh) * 2013-12-17 2014-04-09 创新科存储技术(深圳)有限公司 跨数据中心实现云存储数据同步的方法和装置
CN104283956A (zh) * 2014-09-30 2015-01-14 腾讯科技(深圳)有限公司 强一致性分布式数据存储方法、装置及系统
CN104954101A (zh) * 2015-07-24 2015-09-30 湖北文理学院 基于同步ack的多终端数据同步方法
CN108322533A (zh) * 2018-01-31 2018-07-24 广州鼎甲计算机科技有限公司 基于操作日志的分布式集群节点间配置同步方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035865B (zh) * 2009-09-30 2013-04-17 阿里巴巴集团控股有限公司 数据存储及数据寻址方法、系统和设备
JP2013065104A (ja) * 2011-09-15 2013-04-11 Toshiba Corp 負荷分散システム、データアクセス装置、及び負荷分散方法
CN104468163B (zh) * 2013-09-18 2018-11-09 腾讯科技(北京)有限公司 容灾网络组网的方法、装置及容灾网络
US9613046B1 (en) * 2015-12-14 2017-04-04 Netapp, Inc. Parallel optimized remote synchronization of active block storage
CN110019256A (zh) * 2017-08-03 2019-07-16 北京京东尚科信息技术有限公司 数据处理方法和装置
CN110597673B (zh) * 2019-09-25 2021-04-30 腾讯科技(深圳)有限公司 存储系统的容灾方法、装置、设备及计算机可读存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080270629A1 (en) * 2007-04-27 2008-10-30 Yahoo! Inc. Data snychronization and device handling using sequence numbers
CN103369051A (zh) * 2013-07-22 2013-10-23 中安消技术有限公司 一种数据服务器集群系统及数据同步方法
CN103716384A (zh) * 2013-12-17 2014-04-09 创新科存储技术(深圳)有限公司 跨数据中心实现云存储数据同步的方法和装置
CN104283956A (zh) * 2014-09-30 2015-01-14 腾讯科技(深圳)有限公司 强一致性分布式数据存储方法、装置及系统
CN104954101A (zh) * 2015-07-24 2015-09-30 湖北文理学院 基于同步ack的多终端数据同步方法
CN108322533A (zh) * 2018-01-31 2018-07-24 广州鼎甲计算机科技有限公司 基于操作日志的分布式集群节点间配置同步方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553895A (zh) * 2022-04-24 2022-05-27 浙江中控技术股份有限公司 一种数据同步方法、系统、存储介质及电子设备
CN114553895B (zh) * 2022-04-24 2022-07-22 浙江中控技术股份有限公司 一种数据同步方法、系统、存储介质及电子设备
CN115914399A (zh) * 2022-09-29 2023-04-04 京东科技信息技术有限公司 请求数据发送方法、装置、设备、介质和程序产品

Also Published As

Publication number Publication date
CN113783916A (zh) 2021-12-10
CN113783916B (zh) 2022-12-27

Similar Documents

Publication Publication Date Title
US12019652B2 (en) Method and device for synchronizing node data
CN110019350B (zh) 基于配置信息的数据查询方法和装置
WO2022078243A1 (zh) 信息同步方法及装置
CN109657174B (zh) 用于更新数据的方法和装置
CN109388626B (zh) 用于向业务分配编号的方法和装置
CN109245908B (zh) 一种主从集群切换的方法和装置
US10216556B2 (en) Master database synchronization for multiple applications
CN111309747A (zh) 数据同步方法、系统和装置
CN113094430B (zh) 一种数据处理方法、装置、设备以及存储介质
CN111338834B (zh) 数据存储方法和装置
CN111782235A (zh) 一种数据升级、查询方法和装置
CN111309366B (zh) 一种管理注册核心的方法、装置、介质和电子设备
CN110795495A (zh) 数据处理方法、装置、电子设备及计算机可读介质
CN112115149A (zh) 一种提供数据的方法和装置
CN110019059B (zh) 一种定时同步的方法和装置
CN112084254A (zh) 一种数据同步方法和系统
CN112148705A (zh) 数据迁移的方法和装置
CN115454666A (zh) 消息队列集群间的数据同步方法和装置
CN112422648B (zh) 数据同步方法和系统
CN113742376A (zh) 一种同步数据的方法、第一服务器以及同步数据的系统
US20180032553A1 (en) Augmenting database schema using information from multiple sources
CN114968936B (zh) 一种基于数据湖的时间线获取方法、装置、执行节点
CN113761049B (zh) 读写分离下的数据同步方法和装置
CN116975012A (zh) 文件同步方法、文件更新方法、装置、电子设备和介质
CN112749042B (zh) 一种应用运行方法和装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21879288

Country of ref document: EP

Kind code of ref document: A1