Data synchronization method and device, first controller, storage medium and computer program product

By determining the domain or cluster where the function instance is located based on the call chain in the cross-domain distributed computing scenario, the connection and synchronization between data managers is realized, which solves the problems of large data synchronization communication volume and high delay in the cross-domain distributed computing scenario. , improving data synchronization efficiency.

CN118796943APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410606847.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-15
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing data synchronization methods have the problems of large communication volume and high latency in cross-domain distributed computing scenarios, and fail to effectively solve the data management synchronization requirements in cross-domain distributed computing scenarios.

Method used

By determining the domain or cluster where the corresponding function instance is located in the first controller according to the call chain, the connection and data synchronization with the data manager of the adjacent domain or cluster are realized, and the data synchronization in the cross-domain distributed computing scenario is reduced. Traffic volume and latency.

Benefits of technology

By quickly determining the controllers that need to be synchronized, data synchronization in cross-domain distributed computing scenarios is achieved, communication volume and delay are reduced, and data synchronization efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796943A_ABST
    Figure CN118796943A_ABST
Patent Text Reader

Abstract

The invention discloses a data synchronization method and device, a first controller, a storage medium and a computer program product, and the method comprises the steps that the first controller carries out data synchronization with a second controller and / or a third controller according to a call chain of a first request; wherein the call chain is used for indicating a first sequence, and the first sequence is composed of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is a controller of a first domain or a first cluster in the first sequence; different controllers are used for managing data of different domains or different clusters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a data synchronization method, device, first controller, storage medium and computer program product. Background Art

[0002] Serverless computing is a new cloud computing paradigm that manages lifecycles at the function level and features high elasticity and fine granularity. Cross-domain distributed computing is the future evolution of serverless computing. Cross-domain distributed computing involves data management synchronization, but the data synchronization methods in related technologies do not take into account cross-domain distributed computing scenarios, resulting in large communication traffic and high latency in data synchronization in cross-domain distributed computing scenarios. Summary of the invention

[0003] To solve related technical problems, embodiments of the present application provide a data synchronization method, device, first controller, storage medium and computer program product.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a data synchronization method, which is applied to a first controller. The method includes:

[0006] Synchronize data with the second controller and / or the third controller according to the call chain of the first request;

[0007] Among them, the call chain is used to indicate a first sequence, which consists of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or different clusters.

[0008] In the above solution, synchronizing data with the second controller and / or the third controller according to the call chain of the first request includes:

[0009] When the data manager in the first controller is in a triggered state, performing data synchronization with the second controller and / or the third controller; or

[0010] When the data manager in the first controller is in a triggered state, data synchronization is performed through the data manager in the first controller, the data manager in the second controller and / or the data manager in the third controller; a data manager is used to manage the data of a domain or cluster.

[0011] In the above scheme, the method further includes:

[0012] When the data manager in the first controller is in a triggered state, establishing a connection between the data manager in the first controller and a data manager in a second controller located after the first controller according to the call chain of the first request; or

[0013] When the first controller is located behind the second controller and the data manager in the first controller is in a triggered state, a connection is established between the data manager in the first controller and the data manager in the third controller according to the call chain of the first request.

[0014] In the above solution, the data synchronization with the second controller and / or the third controller includes:

[0015] performing selective data synchronization with the second controller and / or the third controller; and / or

[0016] First data sent by the third controller is received, where the first data represents all parameters and corresponding values ​​managed by the third controller.

[0017] In the above solution, the second controller is located after the first controller; the data synchronization with the second controller and / or the third controller includes one or more of the following:

[0018] Sending second data to a second controller, the second data representing parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence;

[0019] receiving a first parameter sent by a second controller, where the first parameter represents a parameter used by a function instance corresponding to the second controller in the first sequence;

[0020] receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances;

[0021] sending third data to the second controller;

[0022] Fourth data is sent to the second controller, where the fourth data represents all parameters and corresponding values ​​managed by the first controller.

[0023] In the above solution, the second controller is located before the first controller; the data synchronization with the second controller and / or the third controller includes one or more of the following:

[0024] receiving fifth data sent by the second controller, where the fifth data represents parameters and corresponding values ​​used by the corresponding function instance of the second controller in the first sequence;

[0025] Sending a second parameter to a second controller, where the second parameter represents a parameter used by a function instance corresponding to the first controller in the first sequence;

[0026] receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances;

[0027] sending third data to the second controller;

[0028] Requesting the third controller to obtain a value of a third parameter, where the third parameter represents a parameter of unknown value in the second parameter, and the second parameter represents a parameter used by the function instance corresponding to the first controller in the first sequence;

[0029] Sending sixth data to the third controller, where the sixth data represents a difference set between the second data and the third data, where the second data represents parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence, and the third data represents the same parameters and corresponding values ​​used by the function instances corresponding to the first controller and the second controller in the first sequence;

[0030] The seventh data sent by the second controller is received, where the seventh data represents all parameters managed by the second controller and corresponding values.

[0031] In the above solution, the first controller is a controller of the second domain or cluster in the first sequence; and data synchronization with the third controller includes:

[0032] Sending second data to the third controller, the second data representing parameters and corresponding values ​​used by the corresponding function instance of the first controller in the first sequence; and / or

[0033] Eighth data sent by the third controller is received, where the eighth data represents the same parameters and corresponding values ​​used by the third controller and the first controller in the corresponding function instances in the first sequence.

[0034] In the above scheme, the method further comprises:

[0035] When one or more of the following conditions are met, the data manager in the first controller is triggered:

[0036] forwarding the first request to a first computing node according to the first information and the call chain, where a function instance corresponding to the domain or cluster to which the first controller belongs in the first sequence is deployed on the first computing node, wherein the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters;

[0037] Start a first function instance; wherein the first function instance is deployed in a first domain or a first cluster, and the first domain or the first cluster represents the closest domain or cluster in the first sequence that is located before the domain or cluster to which the first controller belongs.

[0038] In the above scheme, before forwarding the first request to the first computing node, the method also includes: when the first controller is the controller in the first domain or the first cluster in the first sequence, assigning a global identifier to the call chain and inserting the global identifier into the first request.

[0039] In the above scheme, the method further includes:

[0040] receiving second information sent by the fourth controller or a data manager in the fourth controller; or

[0041] In the case where the first controller is the controller of the last domain or cluster in the first sequence, second information is sent to all controllers or data managers related to the first sequence; wherein,

[0042] The second information is used to instruct deletion of data related to the call chain; the fourth controller represents the controller of the last domain or cluster in the first sequence.

[0043] In the above scheme, the method further includes:

[0044] The first request and first information sent by the scheduler are received, where the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters.

[0045] The embodiment of the present application also provides a data synchronization device, including:

[0046] A synchronization unit is used to synchronize data with the second controller and / or the third controller according to the call chain of the first request; wherein,

[0047] The call chain is used to indicate a first sequence, which consists of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or different clusters.

[0048] The embodiment of the present application further provides a first controller, comprising: a processor and a communication interface; wherein:

[0049] The processor is used to synchronize data with the second controller and / or the third controller according to the call chain of the first request; wherein,

[0050] The call chain is used to indicate a first sequence, which is a sequence consisting of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or different clusters.

[0051] The embodiment of the present application further provides a first controller, comprising a processor and a memory for storing a computer program that can be run on the processor.

[0052] Wherein, the processor is used to execute the steps of any of the above methods when running the computer program.

[0053] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0054] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of any of the above methods when executed by a processor.

[0055] In the data synchronization method, device, first controller, storage medium and computer program product provided in the embodiments of the present application, the first controller performs data synchronization with the second controller and / or the third controller according to the call chain of the first request, wherein the call chain is used to indicate a first sequence, the first sequence is composed of the function instance called by the first request and the corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or clusters. In the above scheme, since different controllers manage data in different domains or clusters, any controller can quickly determine the domain or cluster where each function instance called by the first request is located according to the call chain of the first request, thereby quickly determining the controller that needs to perform data synchronization. Therefore, the first controller performs data synchronization according to the call chain of the first request, which can reduce the communication volume and latency of data synchronization in cross-domain distributed computing scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1An example of a system architecture for data synchronization in a cross-domain distributed computing scenario applicable to embodiments of the present application;

[0057] Figure 2 A schematic diagram of a data synchronization method flow provided in an embodiment of the present application;

[0058] Figure 3 This is an example of a controller in the first domain or the first cluster in the call chain of the first request of an embodiment of the present application processing the first request;

[0059] Figure 4 This is a flowchart of a data synchronization method according to an embodiment of the present application;

[0060] Figure 5 This is a schematic diagram of the structure of a data synchronization device according to an embodiment of the present application;

[0061] Figure 6 This is a schematic diagram of the structure of the first controller of an embodiment of the present application. DETAILED DESCRIPTION

[0062] In the cross-domain distributed computing scenario, the distribution of data status is amplified, and the complexity of data sharing between cross-domain status tasks is enhanced. Data management synchronization is one of the key issues facing cross-domain computing.

[0063] Currently, programming frameworks usually use stateless computing to support application operation. On the one hand, this puts forward specific requirements for application architecture design and programming mode, and on the other hand, it also limits the availability of computing platforms. Therefore, supporting data sharing and synchronization in Serverless is the key to meeting application needs and building complex applications. Different from providing data sharing and synchronization within a specific scope (in the cluster, cloud, etc.), the communication volume and latency of cross-domain data management synchronization will become key points.

[0064] The data synchronization method in the related art does not take into account the cross-domain distributed computing scenario, and there are problems of large communication volume and high latency in data management synchronization in the cross-domain distributed computing scenario.

[0065] Based on this, in various embodiments of the present application, the first controller synchronizes data with the second controller and / or the third controller according to the call chain of the first request, wherein the call chain is used to indicate a first sequence, and the first sequence is composed of the function instance called by the first request and the corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or clusters. In the above scheme, since different controllers manage data in different domains or clusters, any controller can quickly determine the domain or cluster where each function instance called by the first request is located according to the call chain of the first request, thereby quickly determining the controller that needs to synchronize data. Therefore, the first controller synchronizes data according to the call chain of the first request, which can reduce the communication volume and latency of data synchronization in cross-domain distributed computing scenarios.

[0066] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0067] First, in order to better illustrate the data synchronization method provided in the embodiment of the present application, Figure 1 An example of a system architecture for data synchronization in a cross-domain distributed computing scenario to which the embodiments of the present application are applicable.

[0068] like Figure 1 As shown, the data synchronization system includes multiple domains or multiple clusters; each domain or each cluster may include a gateway, a scheduler, one or more computing nodes, a controller, and may also include a storage unit or memory; the number of controllers in a domain or a cluster may be one or more, and multiple may be understood as two or more. Among them, the gateway and the scheduler can communicate with each other, the scheduler and the controller can communicate with each other, the controller and the computing node can communicate with each other, and the controller and the computing node can communicate with the storage unit or memory respectively. The gateway, scheduler, computing node, controller, storage unit or memory can all be understood as logical entities; the controller can be described as a control unit or an electronic device, and the electronic device includes a terminal and / or a server.

[0069] The gateway is used to receive a first request from the outside, and send or forward the received first request to the scheduler. The first request can be understood as a service request or a function call request.

[0070] The scheduler is used to receive the first request sent by the gateway, select a function instance for processing the received first request, and forward the first request to the controller, that is, the scheduler is used to schedule the received first request to the relevant function instance for processing. For example, the scheduler can split the first request into tasks, select a function instance for the split tasks, obtain the call chain of the first request, forward the first request and the call chain of the first request to the controller, and the call chain of the first request can be carried in the first request; the call chain of the first request is used to indicate the first sequence, and the first sequence is composed of the function instance called by the first request and the corresponding domain or cluster, or the first sequence is composed of the function instance called by the first request and the domain or cluster where the computing node to which the function instance belongs is located. It should be noted that the scheduler of any domain or any cluster can also cooperate with the schedulers of other domains or other clusters to realize the topological awareness of the function instance, that is, to perceive the function instances deployed on the computing nodes in each domain or each cluster. The scheduler may store first information, and the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters in the data synchronization system. For example, the first information includes function instances deployed on all computing nodes in each domain or each cluster in the data synchronization system. The scheduler may send the first information to a controller in the domain or cluster to which the scheduler belongs.

[0071] The controller is used to receive the first request forwarded by the scheduler, forward the received first request to the function instance in the computing node for processing according to the first information and the call chain of the first request, and is responsible for cross-domain data synchronization and data management. The controller may include a function call recorder and a data manager. The function call recorder is used to receive the first request. The function call recorder can also maintain the global identifier (ID, Identifier) ​​of the call chain of the first request, and record the relevant information of the function instance called by the first request in the domain or cluster to which the controller belongs, such as the identifier of the function instance called by the first request, the number of calls of the function instance, etc.; the data manager is responsible for data synchronization and management. The data manager in each domain or cluster can synchronize data with the data manager in the adjacent domain or cluster, and can also synchronize data with the data manager of the first domain or the first cluster in the call chain of the first request. The global identifier of the call chain of the first request is used to identify or recognize the call chain of the first request.

[0072] Compute nodes are used to deploy and run function instances and manage computing resources. One or more function instances can be deployed in one compute node. Function instances deployed in different compute nodes in the same domain or cluster can be partially identical or completely different. Function instances that are partially identical can be deployed in compute nodes in different domains or clusters. Storage units or memories are used to store data.

[0073] The data synchronization method is described below with reference to the accompanying drawings and embodiments.

[0074] The embodiment of the present application provides a data synchronization method, which is applied to a first controller. The first controller generally refers to a controller of any domain or any cluster. The first controller can be understood as a logical entity. The first controller can be described as a control unit or an electronic device. The electronic device includes a terminal and / or a server. Figure 2 As shown, the method includes:

[0075] Step 201: Synchronize data with the second controller and / or the third controller according to the call chain of the first request.

[0076] Among them, the call chain is used to indicate a first sequence, which consists of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or different clusters.

[0077] Here, the first controller determines the second controller and / or the third controller according to the call chain of the first request, and synchronizes data with the second controller and / or the third controller. Wherein, in the case where the first controller is the controller of the first domain or the first cluster in the first sequence indicated by the call chain of the first request, the first controller can determine the second controller according to the call chain of the first request, and synchronize data with the second controller, or the first controller can also determine the second controller according to the first relationship and the call chain of the first request, the first relationship at least includes the corresponding relationship between the controller and the domain or cluster, and synchronize data with the second controller; in the case where the first controller is not the controller of the first domain or the first cluster in the first sequence indicated by the call chain of the first request, the first controller determines the second controller and / or the third controller according to the call chain of the first request, and synchronizes data with the second controller and / or the third controller, or the first controller can also determine the second controller and / or the third controller according to the first relationship and the call chain of the first request, and synchronize data with the second controller and / or the third controller. For example, if the second controller is the controller of the first domain or the first cluster in the first sequence indicated by the call chain of the first request, the first controller synchronizes data with the second controller. If neither the first controller nor the second controller is the controller of the first domain or the first cluster in the first sequence indicated by the call chain of the first request, then the first controller can synchronize data with the second controller and / or the third controller. The first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence indicated by the call chain of the first request; in the first sequence, the domain or cluster to which the first controller belongs can be located before or after the domain or cluster to which the second controller belongs; the first controller can also determine the second sequence based on the first sequence and the first relationship; the first relationship at least includes the corresponding relationship between the controller and the domain or cluster, the second sequence is composed of the controllers included in the first sequence, and in the second sequence, the first controller can be located before or after the second controller. In the case where two adjacent function instances in the first sequence correspond to the same domain or the same cluster, only one corresponding controller can be retained in the second sequence. The first controller and the second controller generally refer to the controllers of any two adjacent domains or clusters in the first sequence.

[0078] The method by which the first controller determines the second controller and / or the third controller may be:

[0079] Method 1: The first controller can determine the domain or cluster to which the first controller belongs, for example, the domain or cluster to which the first controller belongs is determined based on the first relationship, the first relationship at least including the correspondence between the controller and the domain or cluster; the first sequence is determined based on the call chain of the first request; the second function instance that needs to be run by the computing node in the domain or cluster to which the first controller belongs is determined based on the first sequence, and the third function instance is determined, the second function instance and the third function instance correspond to different domains or different clusters in the first sequence, and the third function instance is closest to the second function instance; the domain or cluster corresponding to the third function instance is determined in the first sequence, and the second controller of the domain or cluster corresponding to the third function instance is determined based on the first relationship. Among them, in the first sequence, the third function instance can be located before the second function instance, or it can be located after the second function instance. That is, the third function instance can be the closest function instance corresponding to a different domain or different cluster located after or before the second function in the first sequence.

[0080] Method 2: The first controller determines the domain or cluster to which the first controller belongs, and determines the second function instance that is currently called by the first request in the domain or cluster to which the first controller belongs; determines the first sequence based on the call chain of the first request; determines the third function instance in the first sequence based on the first sequence, the domain or cluster to which the first controller belongs, and the determined second function instance, and determines the second controller of the domain or cluster corresponding to the third function instance based on the first relationship. The second function instance and the third function instance correspond to different domains or different clusters in the first sequence. When the domain or cluster to which the first controller belongs corresponds to only one function instance in the first sequence, and / or the domain or cluster to which the first controller belongs is the first domain or the first cluster in the first sequence, the first controller can determine the second function instance that is currently called by the first request in the domain or cluster to which the first controller belongs based on the call chain of the first request. When the domain or cluster to which the first controller belongs corresponds to at least two function instances in the first sequence, and / or the domain or cluster to which the first controller belongs corresponds to at least two identical function instances in the first sequence, the first controller can determine the second function instance currently called by the first request in the domain or cluster to which the first controller belongs based on the third information and the call chain of the first request; the third information represents the number of times the first controller receives the first request, or represents the relevant information of the function instance called by the first request in the domain or cluster to which the first controller belongs recorded by the first controller, and the relevant information of the called function instance includes the identifier of the function instance called by the first request in the domain or cluster to which the first controller belongs, and / or the number of times the function instance is called. The first controller can also determine the second function instance currently called by the first request in the domain or cluster to which the first controller belongs based on the domain or cluster to which the controller sending the first request belongs, and the call chain of the first request.

[0081] It should be noted that the first request can be a business request or a function call request; the first request can be initiated by the terminal or from other domains or clusters. For example, the first request can be sent by a scheduler or controller or computing node of other domains or other clusters.

[0082] Before the first controller performs data synchronization with the second controller and / or the third controller according to the call chain of the first request, it is necessary to first receive the first request and the first information. Based on this, in one embodiment, the method further includes:

[0083] The first request and first information sent by the scheduler are received, where the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters.

[0084] Here, the scheduler and the first controller belong to the same domain or the same cluster. The first information is used to forward the first request to a computing node in the domain or cluster to which the first controller belongs.

[0085] It should be noted that when the first controller receives the first request and the first information, before performing data synchronization, the first controller can also determine the function instance deployed on the computing node in the domain or cluster to which the first controller belongs based on the first information; based on the call chain of the first request and the function instance deployed on the computing node in the domain or cluster to which the first controller belongs, the first request is sent to the relevant computing node in the domain or cluster to which the first controller belongs, so that the relevant computing node processes the first request through the corresponding function instance.

[0086] In order to further reduce the communication volume or data transmission volume of data synchronization, a data manager can be deployed in the controller, and data synchronization is performed when the data manager in the first controller is in a triggered state. Based on this, in one embodiment, the data synchronization with the second controller and / or the third controller according to the call chain of the first request includes:

[0087] When the data manager in the first controller is in a triggered state, performing data synchronization with the second controller and / or the third controller; or

[0088] When the data manager in the first controller is in a triggered state, data synchronization is performed through the data manager in the first controller, the data manager in the second controller and / or the data manager in the third controller; a data manager is used to manage the data of a domain or cluster.

[0089] Here, the first controller can trigger the data manager in the first controller when the computing node in the domain or cluster to which the first controller belongs processes the first request through the relevant function instance; the data manager in the first controller can also be triggered when the first controller receives the first request or the first controller sends the first request to the computing node in the domain or cluster to which the first controller belongs. When the data manager in the first controller is in a triggered state, data synchronization is performed with the second controller and / or the third controller. Wherein, when the first controller is the controller of the first domain or the first cluster in the first sequence, the first controller synchronizes data with the second controller; when the first controller is not the controller of the first domain or the first cluster in the first sequence, the first controller synchronizes data with the second controller and / or the third controller.

[0090] When the data manager in the first controller is in a triggered state, the first controller can also synchronize data with the data manager in the second controller and / or the data manager in the third controller through the data manager in the first controller; wherein a data manager is used to manage the data of a domain or cluster, and the data manager is also used to synchronize data with other data managers. When the first controller is the controller of the first domain or the first cluster in the first sequence, the data manager in the first controller synchronizes data with the data manager in the second controller; when the first controller is not the controller of the first domain or the first cluster in the first sequence, the data manager in the first controller synchronizes data with the data manager in the second controller and / or the data manager in the third controller.

[0091] On the basis that the data manager is responsible for data synchronization, before data synchronization, a connection between the data managers needs to be established so that the controllers can synchronize data in a timely manner, thereby further reducing the delay of data synchronization. Based on this, in one embodiment, the method further includes:

[0092] When the data manager in the first controller is in a triggered state, establishing a connection between the data manager in the first controller and a data manager in a second controller located after the first controller according to the call chain of the first request; or

[0093] When the first controller is located behind the second controller and the data manager in the first controller is in a triggered state, a connection is established between the data manager in the first controller and the data manager in the third controller according to the call chain of the first request.

[0094] Here, when the data manager in the first controller is in a triggered state, the second controller and / or the third controller can be determined according to the call chain of the first request or according to the first relationship and the call chain of the first request, and the relative position relationship between the first controller and the second controller can be determined, and the relative position relationship between the first controller and the second controller includes that the first controller is located before the second controller, or the first controller is located after the second controller. Among them, if in the first sequence, the domain or cluster to which the first controller belongs is located before the domain or cluster to which the second controller belongs, then the first controller is located before the second controller; if in the first sequence, the domain or cluster to which the first controller belongs is located after the domain or cluster to which the second controller belongs, then the first controller is located after the second controller.

[0095] When the first controller is located before the second controller and the data manager in the first controller is in a triggered state, a connection is established between the data manager in the first controller and the data manager in the second controller located after the first controller, so that the data manager in the first controller synchronizes data with the data manager in the second controller. The first controller may be a controller of the first domain or the first cluster in the first sequence, or a controller of a non-first domain or a non-first cluster in the first sequence.

[0096] When the first controller is located after the second controller and the data manager in the first controller is in a triggered state, after the first controller determines the third controller according to the call chain of the first request, the first controller can establish a connection between the data manager in the first controller and the data manager in the third controller so that the data manager in the first controller and the data manager in the third controller perform data synchronization. In actual application, in order to reduce the communication volume of data synchronization, the first controller can establish a connection between the data manager in the first controller and the data manager in the third controller when it is necessary to obtain data from the third controller. For example, when the second controller cannot provide the first controller with the parameters and / or parameter values ​​used by the relevant function instances in the domain or cluster to which the first controller belongs when processing the first request, a connection is established between the data manager in the first controller and the data manager in the third controller so that the data manager in the first controller and the data manager in the second controller perform data synchronization, thereby obtaining the parameters and / or parameter values ​​required by the first controller. Parameters and / or parameter values ​​can be collectively referred to as data.

[0097] In order to further reduce the communication volume or data transmission volume of data synchronization, the first controller can synchronize data with the second controller and / or the third controller when the data manager in the first controller is in a triggered state. Based on this, in one embodiment, the method further includes:

[0098] When one or more of the following conditions are met, the data manager in the first controller is triggered:

[0099] forwarding the first request to a first computing node according to the first information and the call chain, where a function instance corresponding to the domain or cluster to which the first controller belongs in the first sequence is deployed on the first computing node, wherein the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters;

[0100] Start a first function instance; wherein the first function instance is deployed in a first domain or a first cluster, and the first domain or the first cluster represents the closest domain or cluster in the first sequence that is located before the domain or cluster to which the first controller belongs.

[0101] Here, the first controller can determine the function instance deployed on the computing node in the domain or cluster to which the first controller belongs based on the first information; according to the call chain of the first request and the function instance deployed on the computing node in the domain or cluster to which the first controller belongs, the first request is sent to the first computing node in the domain or cluster to which the first controller belongs, so that the first computing node processes the first request through the corresponding function instance. In the case where the first controller forwards the first request to the first computing node, the data manager in the first controller can be triggered.

[0102] Considering that in a data synchronization system, when the function instance in the i-th domain or i-th cluster in the first sequence indicated by the call chain of the first request starts to process the first request, the controller in the i-th domain or i-th cluster can trigger the data manager in the controller of the i+1-th domain or i+1-th cluster in the first sequence, so that the data manager in the controller of the i-th domain or i-th cluster performs data pre-synchronization with the data manager in the controller of the i+1-th domain or i+1-th cluster. Therefore, when the computing node in the first domain or the first cluster starts the first function instance, the controller of the first domain or the first cluster triggers the data manager in the first controller, and the first domain or the first cluster represents the nearest different domain or different cluster in the first sequence that is located before the domain or cluster to which the first controller belongs. Among them, when the second controller is located before the first controller, the first domain or the first cluster is the domain or cluster to which the second controller belongs. When the third controller is located before the first controller, and the first controller and the third controller are respectively located in two adjacent domains or clusters in the first sequence, the first domain or the first cluster is the domain or cluster to which the third controller belongs.

[0103] The controller in the first domain or the first cluster in the call chain of any request can assign a global label to the call chain of the request to facilitate subsequent controllers to identify the call chains of different requests and delete the data related to the call chain after calling the last function instance in the corresponding call chain. Based on this, in one embodiment, before forwarding the first request to the first computing node, the method also includes:

[0104] In the case where the first controller is a controller in the first domain or the first cluster in the first sequence, a global identifier is assigned to the call chain, and the global identifier is inserted into the first request.

[0105] Here, the global identifier is unique, and the global identifiers of the call chains of different requests are different. The global identifier of the call chain of the first request can be a hash value determined based on the information carried by the first request. The global identifier of the call chain can be understood as a call chain identifier or a call chain ID, which is used to distinguish different call chains.

[0106] Figure 3 An example of a controller in the first domain or the first cluster in the first sequence processing the first request is shown. Figure 3 As shown, for a controller in any domain or cluster in the first sequence, a first request sent by a scheduler in the corresponding domain or cluster is received, and it is determined whether the received first request carries a global identifier of a call chain of the first request. The global identifier of the call chain of the first request can be called a call chain ID. In the case where the first request does not carry the global identifier of the call chain of the first request, the first function instance of the first sequence of this call is represented. The controller that receives the first request is the controller in the first domain or the first cluster in the first sequence, and the controller can be the first controller. At this time, the controller that receives the first request assigns a global identifier to the call chain of the first request, inserts the assigned global identifier into the first request, and forwards the first request with the inserted global identifier to the relevant computing node in the first domain or the first cluster in the first sequence according to the first information and the call chain of the first request, so that the computing node that receives the first request processes the first request by calling the relevant function instance; when the first controller sends the first request to the computing node, or the computing node starts to process the first request through the relevant function instance, the controller that receives the first request triggers the data manager in the controller, and can also trigger the data manager in the controller located after the controller (for example, the second controller located after the first controller) according to the call chain of the first request; the controller that receives the first request records the parameters and corresponding values ​​used by the function instance called by the relevant computing node.

[0107] In the case where the first request carries the global identifier of the call chain of the first request, it represents the non-first function instance in the first sequence of this call, and the controller that receives the first request is a controller in a non-first domain or a non-first cluster in the first sequence. At this time, the controller that receives the first request forwards the first request to the relevant computing node in the domain or cluster to which the controller belongs according to the first information and the call chain of the first request, so that the computing node that receives the first request processes the first request by calling the relevant function instance; when the first controller sends the first request to the computing node, or the computing node starts to process the first request through the relevant function instance, the controller that receives the first request triggers the data manager in the controller, and can also trigger the data manager in the controller located after the controller (for example, the second controller located after the first controller) according to the call chain of the first request; the controller that receives the first request records the parameters and corresponding values ​​used by the function instance called by the relevant computing node.

[0108] In order to reduce the communication volume of data synchronization and reduce the data transmission delay, in one embodiment, the data synchronization with the second controller and / or the third controller includes:

[0109] performing selective data synchronization with the second controller and / or the third controller; and / or

[0110] First data sent by the third controller is received, where the first data represents all parameters and corresponding values ​​managed by the third controller.

[0111] Here, when the first controller or the second controller is the controller of the first domain or the first cluster in the first sequence, the first controller performs selective data synchronization with the second controller, for example, the data manager in the first controller performs selective data synchronization with the data manager in the second controller; when the first controller is not the controller of the first domain or the first cluster in the first sequence, the first controller performs selective data synchronization with the second controller and / or the third controller, for example, the data manager in the first controller performs selective data synchronization with the data manager in the second controller and / or the data manager in the third controller. Selective data synchronization can be understood as selecting part of the data for synchronization, for example, synchronizing only part of the data, the data including parameters and / or parameter values, thereby reducing the communication volume (data transmission volume) of data synchronization.

[0112] In the case where neither the first controller nor the second controller is the controller of the first domain or the first cluster in the first sequence, the first controller may also perform data synchronization with the third controller and receive first data sent by the third controller, the first data including all parameters managed by the third controller and the value of each parameter. Receiving the first data sent by the third controller may be understood as the first controller performing data pre-synchronization with the third controller, so that the first controller obtains all parameters and parameter values ​​that may be used by the computing nodes in the domain or cluster to which the first controller belongs when calling the relevant function instance to process the first request, so as to reduce data transmission delay.

[0113] Considering that the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence, on the basis that the domain or cluster to which the second controller belongs may be located after the domain or cluster to which the first controller belongs, in order to reduce the communication volume or data transmission volume of data synchronization, in one embodiment, the second controller is located after the first controller; the data synchronization with the second controller and / or the third controller includes one or more of the following:

[0114] Sending second data to a second controller, the second data representing parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence;

[0115] receiving a first parameter sent by a second controller, where the first parameter represents a parameter used by a function instance corresponding to the second controller in the first sequence;

[0116] receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances;

[0117] sending third data to the second controller;

[0118] Fourth data is sent to the second controller, where the fourth data represents all parameters and corresponding values ​​managed by the first controller.

[0119] Here, in the case where the second controller is located behind the first controller, the first controller performs data synchronization or selective data synchronization with the second controller, including one or more of the following:

[0120] Send the second data to the second controller, receive the first parameter sent by the second controller, receive the third data sent by the second controller, and send the third data to the second controller.

[0121] In the case where the first controller is the controller of the first domain or the first cluster in the first sequence, the first controller may further send fourth data to the second controller when performing selective data synchronization with the second controller.

[0122] For example, when the second controller is located after the first controller and the first controller is the controller of the first domain or the first cluster in the first sequence, if the computing node in the domain or cluster to which the first controller belongs calls the relevant function instance to start processing the first request, the data manager in the first controller is triggered, and the data manager in the first controller performs data pre-synchronization with the data manager in the second controller, that is, the data manager in the first controller sends the fourth data to the data manager in the second controller in advance; when the computing node in the domain or cluster to which the first controller belongs calls the relevant function instance to process the first request, the first controller can send the second data to the second controller, and / or receive the first parameter sent by the second controller, and / or receive the third data sent by the second controller; when the computing node in the domain or cluster to which the first controller belongs calls the relevant function instance to process the first request, if the third data is updated, the first controller can also send the third data to the second controller. The first parameter may include some or all of the parameters contained in the third data.

[0123] It should be noted that the function instance corresponding to the first controller in the first sequence can be understood as: the function instance corresponding to the domain or cluster to which the first controller belongs in the call chain of the first sequence or the first request. The function instance corresponding to the second controller in the first sequence can be understood as: the function instance corresponding to the domain or cluster to which the second controller belongs in the call chain of the first sequence or the first request. The second controller is located after the first controller, which can be understood as that in the first sequence, the domain or cluster to which the second controller belongs is located after the domain or cluster to which the first controller belongs.

[0124] Considering that the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence, on the basis that the domain or cluster to which the second controller belongs can be located before the domain or cluster to which the first controller belongs, in order to reduce the communication volume or data transmission volume of data synchronization, in one embodiment, the second controller is located before the first controller; the data synchronization with the second controller and / or the third controller includes one or more of the following:

[0125] receiving fifth data sent by the second controller, where the fifth data represents parameters and corresponding values ​​used by the corresponding function instance of the second controller in the first sequence;

[0126] Sending a second parameter to a second controller, where the second parameter represents a parameter used by a function instance corresponding to the first controller in the first sequence;

[0127] receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances;

[0128] sending third data to the second controller;

[0129] Requesting the third controller to obtain a value of a third parameter, where the third parameter represents a parameter of unknown value in the second parameter, and the second parameter represents a parameter used by the function instance corresponding to the first controller in the first sequence;

[0130] Sending sixth data to the third controller, where the sixth data represents a difference set between the second data and the third data, where the second data represents parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence, and the third data represents the same parameters and corresponding values ​​used by the function instances corresponding to the first controller and the second controller in the first sequence;

[0131] The seventh data sent by the second controller is received, where the seventh data represents all parameters managed by the second controller and corresponding values.

[0132] Here, in the case where the second controller is located behind the first controller, the first controller performs data synchronization or selective data synchronization with the second controller and / or the third controller, including one or more of the following: receiving fifth data sent by the second controller, sending second parameters to the second controller, receiving third data sent by the second controller, and sending third data to the second controller.

[0133] If the second controller is located after the first controller and is the controller of the first domain or the first cluster in the first sequence, the first controller can also perform data pre-synchronization with the second controller, that is, the first controller can also receive the seventh data sent by the second controller.

[0134] If the second controller is located after the first controller, and the third controller is the controller of the first domain or the first cluster in the first sequence, then the first controller can also send the sixth data to the third controller, and / or request the third controller to obtain the value of the third parameter, and receive the third parameter and the value of the third parameter sent by the third controller.

[0135] On the basis that the first controller and the third controller are respectively located in two adjacent domains or clusters in the first sequence, in order to reduce the communication volume or data transmission volume of data synchronization, in one embodiment, the first controller is a controller of the second domain or cluster in the first sequence; and performing data synchronization or selective data synchronization with the third controller includes:

[0136] Sending second data to the third controller, the second data representing parameters and corresponding values ​​used by the corresponding function instance of the first controller in the first sequence; and / or

[0137] Eighth data sent by the third controller is received, where the eighth data represents the same parameters and corresponding values ​​used by the third controller and the first controller in the corresponding function instances in the first sequence.

[0138] Here, in the case where the third controller and the first controller are respectively located in two adjacent domains or clusters in the first sequence, that is, in the first sequence, the domain or cluster to which the third controller belongs is adjacent to the domain or cluster to which the first controller belongs, the first controller can send second data to the third controller, and / or receive eighth data sent by the third controller, thereby realizing data synchronization or selective data synchronization between the first controller and the third controller.

[0139] In order to save data storage resources, when the last function instance in the first sequence indicated by the call chain of the first request has processed the first request, the data related to the call chain of the first request can be deleted. Based on this, in one embodiment, the method further includes:

[0140] receiving second information sent by the fourth controller or a data manager in the fourth controller; or

[0141] In the case where the first controller is the controller of the last domain or cluster in the first sequence, second information is sent to all controllers or data managers related to the first sequence; wherein,

[0142] The second information is used to instruct deletion of data related to the call chain; the fourth controller represents the controller of the last domain or cluster in the first sequence.

[0143] Here, when the computing node in the domain or cluster to which the fourth controller belongs calls the last function instance in the first sequence to process the first request, the fourth controller may send a second message to all controllers related to the first sequence, or the data manager in the fourth controller may send a second message to the data managers in all controllers related to the first sequence, so that all controllers related to the first sequence delete the data related to the call chain of the first request. The data related to the call chain of the first request includes all parameters and corresponding values ​​managed by each controller, for example, all parameters and corresponding values ​​used by each function instance called by the first request managed by the controller. All controllers or data managers related to the first sequence can also be described as all controllers or data managers related to the call chain of the first request. All controllers or data managers related to the first sequence can be understood as all controllers or data managers in all controllers in all domains or all clusters in the first sequence.

[0144] The first controller receives the second information sent by the fourth controller, or the data manager in the first controller receives the second information sent by the data manager in the fourth controller; based on the second information, all parameters and corresponding values ​​used by each function instance called by the first request managed by the first controller are deleted.

[0145] The present application is further described in detail below in conjunction with application examples.

[0146] For the convenience of description, the following example uses a domain or cluster that contains only one controller. One data manager is used to manage the data of one domain or cluster, and different data managers are used to manage the data of different domains or clusters. Figure 4 As shown, the data synchronization method includes:

[0147] Step 401: The data manager in the controller of the i-th domain / cluster in the first sequence is triggered.

[0148] Here, the first sequence is indicated by the call chain of the first request, and the first sequence consists of the function instance called by the first request and the corresponding domain or cluster. When one or more of the following conditions are met, the data manager in the controller of the i-th domain / cluster in the first sequence is triggered:

[0149] The controller of the i-th domain / cluster in the first sequence forwards the first request to the computing node in the i-th domain / cluster in the first sequence according to the first information and the call chain of the first request, where the function instance corresponding to the i-th domain / cluster in the first sequence is deployed;

[0150] Start the function instance corresponding to the i-1th domain / cluster in the first sequence.

[0151] For example, Figure 3As shown, the controller of the i-th domain / cluster in the first sequence receives the first request and the first information sent by the scheduler of the i-th domain / cluster in the first sequence, the first information is used to indicate the function instances deployed on the computing nodes in different domains or different clusters; it is determined whether the received first request carries the global identifier of the call chain of the first request, and the global identifier of the call chain of the first request can be called the call chain ID. In the case where the first request does not carry the global identifier of the call chain of the first request, it represents the first function instance of the current call of the first sequence, and the controller of the i-th domain / cluster in the first sequence is the controller in the first domain or the first cluster in the first sequence. At this time, the controller of the i-th domain / cluster in the first sequence allocates a global identifier for the call chain of the first request, inserts the allocated global identifier into the first request, and forwards the first request with the inserted global identifier to the relevant computing nodes in the i-th domain / cluster in the first sequence according to the first information and the call chain of the first request, so that the computing node receiving the first request processes the first request by calling the relevant function instance.

[0152] When the first request carries the global identifier of the call chain of the first request, the controller of the i-th domain / cluster in the first sequence forwards the first request to the relevant computing node in the i-th domain / cluster in the first sequence, so that the computing node receiving the first request processes the first request by calling the relevant function instance.

[0153] When the first controller sends the first request to the computing node, or the computing node starts to process the first request through the relevant function instance, the controller of the i-th domain / cluster in the first sequence triggers the data manager in the controller, and can also trigger the controller of the i+1-th domain / cluster in the first sequence according to the call chain of the first request; the controller that receives the first request records the parameters and corresponding values ​​used by the function instance called by the relevant computing node.

[0154] Step 402: The controller of the ith domain / cluster in the first sequence determines whether the ith domain / cluster is the first domain / cluster in the first sequence.

[0155] Here, when the i-th domain / cluster is the first domain / cluster in the first sequence, step 403 is executed; when the i-th domain / cluster is not the first domain / cluster in the first sequence, step 406 is executed.

[0156] In one embodiment, the method further comprises:

[0157] When the data manager in the controller of the i-th domain / cluster in the first sequence is in a triggered state, the controller of the i-th domain / cluster in the first sequence may establish a connection between the data manager in the controller and the data manager in the controller of the (i+1)-th domain / cluster in the first sequence according to the call chain of the first request; or

[0158] When the i-th domain / cluster in the first sequence is not the 1st domain / cluster in the first sequence, and the data manager in the controller of the i-th domain / cluster in the first sequence is in a triggered state, the controller of the i-th domain / cluster in the first sequence establishes a connection between the data manager in the controller and the data manager in the controller of the i-th domain / cluster in the first sequence according to the call chain of the first request.

[0159] The controller of the i-th domain / cluster in the first sequence may be the first controller, the second controller or the third controller mentioned above. The first controller and the second controller generally refer to the controllers of any two adjacent domains or clusters in the first sequence.

[0160] Step 403: The controller of the i-th domain / cluster in the first sequence determines whether the ninth data synchronized by the data manager in the controller of the second domain / cluster in the first sequence is received.

[0161] Here, in the case where the i-th domain / cluster is the first domain / cluster in the first sequence, the controller of the second domain / cluster in the first sequence is the controller of the i+1-th domain / cluster in the first sequence. The ninth data represents the parameters and corresponding values ​​used by the function instance corresponding to the second domain / cluster in the first sequence, or represents the parameters used by the function instance corresponding to the second domain / cluster in the first sequence.

[0162] When the controller of the i-th domain / cluster in the first sequence receives the ninth data, step 404 is executed; when the controller of the i-th domain / cluster in the first sequence does not receive the ninth data, step 405 is executed.

[0163] Step 404: The data manager in the controller of the i-th domain / cluster in the first sequence synchronizes the tenth data to the data manager in the controller of the second domain / cluster in the first sequence.

[0164] Here, the tenth data can be understood as: the same parameters (the same parameters are also called intersection) and corresponding values ​​among the parameters used by the ninth data and the function instance corresponding to the i-th domain / cluster in the first sequence. In other words, the tenth data can include: the same parameters and corresponding values ​​used by the function instance corresponding to the i-th domain / cluster in the first sequence and the function instance corresponding to the second domain / cluster.

[0165] like Figure 2As shown, the function instance corresponding to the i-th domain / cluster in the first sequence is function instance 2, and the function instance corresponding to the i+1-th domain / cluster in the first sequence is function instance 4; the ninth data includes at least parameters y and z used by function instance 4, and may also include the value of y and the value of z, for example, the ninth data includes y=1 and z=2; the intersection of the ninth data and the tenth data may include parameter y, and the value of y updated after function instance 2 processes the first request.

[0166] Step 405: The data manager in the controller of the i-th domain / cluster in the first sequence synchronizes the eleventh data to the data manager in the controller of the second domain / cluster in the first sequence.

[0167] Here, the eleventh data represents all parameters and corresponding values ​​managed by the data manager in the controller of the i-th domain / cluster in the first sequence.

[0168] It should be noted that if the controller of the i-th domain / cluster in the first sequence is the first controller above, and the controller of the i+1-th domain / cluster in the first sequence is the second controller above, then the ninth data is the first parameter above, the tenth data is the third data above, and the eleventh data is the fourth data above.

[0169] If the controller of the i-th domain / cluster in the first sequence is the second controller above, and the controller of the i+1-th domain / cluster in the first sequence is the first controller above, then the ninth data represents the parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence, or the ninth data represents the parameters used by the function instance corresponding to the first controller in the first sequence, the tenth data is the third data above, and the eleventh data is the seventh data above.

[0170] If the controller of the i-th domain / cluster in the first sequence is the third controller above, and the controller of the i+1-th domain / cluster in the first sequence is the first controller above, then the ninth data is the second data above, the tenth data is the eighth data above, and the eleventh data is the first data above.

[0171] Step 406: When the ith domain / cluster is not the first domain / cluster in the first sequence, the controller of the ith domain / cluster determines whether the function instance of the domain or cluster starts processing the first request.

[0172] Here, if the function instance of the i-th domain / cluster has not started processing the first request, continue to judge or detect whether the function instance of the current domain or cluster has started processing the first request; if the function instance of the i-th domain / cluster has started processing the first request, execute one or more of steps 407 to 410.

[0173] Step 407: The data manager of the controller of the i-th domain / cluster in the first sequence synchronizes the twelfth data and / or the thirteenth data with the data manager of the controller of the i-1-th domain / cluster in the first sequence.

[0174] Here, the data manager of the controller of the i-th domain / cluster in the first sequence can send twelfth data to the data manager in the controller of the i-1-th domain / cluster in the first sequence, and receive thirteenth data sent by the data manager in the controller of the i-1-th domain / cluster in the first sequence; the twelfth data can represent the parameters and corresponding values ​​used by the function instance corresponding to the i-th domain / cluster in the first sequence, and the thirteenth data can represent the same parameters and corresponding values ​​used by the function instance corresponding to the i-th domain / cluster in the first sequence and the function instance corresponding to the i-1-th domain / cluster.

[0175] It should be noted that if the controller of the i-th domain / cluster in the first sequence is the first controller above, and the controller of the i-1-th domain / cluster in the first sequence is the second controller above, the twelfth data can be the fifth data or the second parameter above, and the thirteenth data can be the third data above.

[0176] If the controller of the i-th domain / cluster in the first sequence is the second controller above, and the controller of the i-1-th domain / cluster in the first sequence is the first controller above, then the twelfth data can be the second data above, and the thirteenth data can be the third data above.

[0177] If the controller of the i-th domain / cluster in the first sequence is the first controller above, and the controller of the i-1-th domain / cluster in the first sequence is the third controller above, then the twelfth data can be the second data above, and the thirteenth data can be the eighth data above.

[0178] Step 408: The data manager of the controller of the i-th domain / cluster in the first sequence synchronizes the twelfth data and / or the fourteenth data with the data manager in the controller of the (i+1)-th domain / cluster in the first sequence.

[0179] Here, the data manager of the controller of the i-th domain / cluster in the first sequence may send twelfth data to the data manager in the controller of the i+1-th domain / cluster in the first sequence, and receive fourteenth data sent by the data manager in the controller of the i+1-th domain / cluster in the first sequence. The twelfth data may represent the parameters and corresponding values ​​used by the function instance corresponding to the i-th domain / cluster in the first sequence, and the fourteenth data may represent the same parameters and corresponding values ​​used by the function instance corresponding to the i-th domain / cluster in the first sequence and the function instance corresponding to the i+1-th domain / cluster.

[0180] For example, Figure 2 As shown, the twelfth data may include parameters x and y used by function instance 2, as well as the value of x and the value of y, and the thirteenth data may include parameter y and the value of y used by function instance 4.

[0181] It should be noted that if the controller of the i-th domain / cluster in the first sequence is the first controller above, and the controller of the i+1-th domain / cluster in the first sequence is the second controller above, the twelfth data can be the second data above, and the fourteenth data can be the third data above.

[0182] If the controller of the i-th domain / cluster in the first sequence is the second controller above, and the controller of the i+1-th domain / cluster in the first sequence is the first controller above, then the twelfth data can be the fifth data or the second parameter above, and the fourteenth data can be the third data above.

[0183] Step 409: The data manager of the controller of the i-th domain / cluster in the first sequence requests the data manager in the controller of the 1-th domain / cluster in the first sequence to synchronize the value of the fourth parameter.

[0184] Here, the data manager of the controller of the i-th domain / cluster in the first sequence may request synchronization or obtain the value of the fourth parameter from the data manager in the controller of the 1st domain / cluster in the first sequence when the thirteenth data sent by the data manager in the controller of the i-1-th domain / cluster in the first sequence does not contain the value of the fourth parameter.

[0185] The fourth parameter can be understood as the parameter of unknown value in the fifth parameter, and the fifth parameter represents the parameter used by the function instance corresponding to the i-th domain / cluster in the first sequence. For example, when the controller of the i-th domain / cluster in the first sequence is the first controller mentioned above, and the controller of the 1st domain / cluster in the first sequence is the third controller mentioned above, the fourth parameter is the third parameter mentioned above, and the fifth parameter is the second parameter mentioned above.

[0186] It should be noted that, when the data manager in the controller of the first domain / cluster in the first sequence cannot provide the value of the fourth parameter, the data manager in the controller of the i-th domain / cluster in the first sequence may request the data managers in the controllers of other domains / clusters in the first sequence to synchronize the value of the fourth parameter. Of course, the data manager in the controller of the first domain / cluster in the first sequence can be used to manage the full amount of data related to the first sequence, that is, all parameters and corresponding values ​​used by all function instances in the first sequence, so that the data manager in the controller related to the first sequence requests the data manager of the controller of the i-th domain / cluster to obtain the value of the parameter with unknown value.

[0187] Step 410: The data manager of the controller of the i-th domain / cluster in the first sequence synchronizes the fifteenth data to the data manager in the controller of the 1-th domain / cluster in the first sequence.

[0188] Here, in the case where the fifteenth data does not exist in the data manager of the controller of the first domain / cluster in the first sequence, the data manager of the controller of the i-th domain / cluster in the first sequence synchronizes the fifteenth data to the data manager of the controller of the first domain / cluster in the first sequence. The fifteenth data can be understood as the difference between the twelfth data and the thirteenth data, that is, the fifteenth data is the data remaining after the thirteenth data is subtracted from the twelfth data. The fifteenth data can also be understood as data unique to the data manager of the controller of the i-th domain / cluster in the first sequence.

[0189] The fifteenth data includes the fourth parameter and the value of the fourth parameter. For example, when the fourth parameter and / or the corresponding value do not exist in the data manager in the controller of the first domain / cluster in the first sequence, the data manager in the controller of the i-th domain / cluster in the first sequence cannot obtain the value of the fourth parameter, and the data manager in the controller of the i-th domain / cluster in the first sequence synchronizes the fifteenth data to the data manager in the controller of the first domain / cluster in the first sequence.

[0190] It should be noted that, when the controller of the i-1th domain / cluster in the first sequence is the first controller above, the controller of the i-th domain / cluster in the first sequence is the first controller above, and the controller of the 1st domain / cluster in the first sequence is the third controller above, the fourth parameter is the third parameter above, and the fifteenth data is the sixth data above.

[0191] It should be noted that, when the controllers of all domains or clusters in the first sequence are in working state, the data managers in the controllers of any two domains or clusters in the first sequence synchronize the same parameters and corresponding values ​​used by the function instances corresponding to any two domains or clusters respectively, and the data manager in the controller of any domain or cluster in the first sequence continuously synchronizes the data unique to the data manager in the controller of the first domain or cluster in the first sequence.

[0192] It should be noted that, when the function instance call corresponding to the last domain or cluster in the first sequence is completed, the data manager in the controller of the last domain or cluster in the first sequence sends second information to the controllers of each domain or cluster in the first sequence, so that the data managers in the controllers of each domain or cluster in the first sequence delete the data related to the call chain of the first request; the second information is used to indicate the deletion of the data related to the call chain of the first request.

[0193] In order to implement the method on the first controller side of the embodiment of the present application, the embodiment of the present application also provides a data synchronization device, which is arranged on the first controller, such as Figure 5 As shown, the device comprises:

[0194] The synchronization unit 501 is used to synchronize data with the second controller and / or the third controller according to the call chain of the first request; wherein,

[0195] The call chain is used to indicate a first sequence, which consists of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or different clusters.

[0196] In one embodiment, the synchronization unit 501 is specifically used for:

[0197] When the data manager in the first controller is in a triggered state, performing data synchronization with the second controller and / or the third controller; or

[0198] When the data manager in the first controller is in a triggered state, data synchronization is performed through the data manager in the first controller, the data manager in the second controller and / or the data manager in the third controller; a data manager is used to manage the data of a domain or cluster.

[0199] In one embodiment, the device further comprises:

[0200] a first establishing unit, configured to establish, when the data manager in the first controller is in a triggered state, a connection between the data manager in the first controller and a data manager in a second controller located after the first controller according to a call chain of the first request; or

[0201] The second establishing unit is used to establish a connection between the data manager in the first controller and the data manager in the third controller according to the call chain of the first request when the first controller is located behind the second controller and the data manager in the first controller is in a triggered state.

[0202] In one embodiment, the synchronization unit 501 is specifically used for:

[0203] performing selective data synchronization with the second controller and / or the third controller; and / or

[0204] First data sent by the third controller is received, where the first data represents all parameters and corresponding values ​​managed by the third controller.

[0205] In one embodiment, the second controller is located after the first controller; the synchronization unit 501 is specifically used for one or more of the following:

[0206] Sending second data to a second controller, the second data representing parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence;

[0207] receiving a first parameter sent by a second controller, where the first parameter represents a parameter used by a function instance corresponding to the second controller in the first sequence;

[0208] receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances;

[0209] sending third data to the second controller;

[0210] Fourth data is sent to the second controller, where the fourth data represents all parameters and corresponding values ​​managed by the first controller.

[0211] In one embodiment, the second controller is located before the first controller; the synchronization unit 501 is specifically used for one or more of the following:

[0212] receiving fifth data sent by the second controller, where the fifth data represents parameters and corresponding values ​​used by the corresponding function instance of the second controller in the first sequence;

[0213] Sending a second parameter to a second controller, where the second parameter represents a parameter used by a function instance corresponding to the first controller in the first sequence;

[0214] receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances;

[0215] sending third data to the second controller;

[0216] Requesting the third controller to obtain a value of a third parameter, where the third parameter represents a parameter of unknown value in the second parameter, and the second parameter represents a parameter used by the function instance corresponding to the first controller in the first sequence;

[0217] Sending sixth data to the third controller, where the sixth data represents a difference set between the second data and the third data, where the second data represents parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence, and the third data represents the same parameters and corresponding values ​​used by the function instances corresponding to the first controller and the second controller in the first sequence;

[0218] The seventh data sent by the second controller is received, where the seventh data represents all parameters managed by the second controller and corresponding values.

[0219] In one embodiment, the first controller is a controller of a second domain or cluster in the first sequence; the synchronization unit 501 is specifically configured to send second data to the third controller, the second data representing parameters and corresponding values ​​used by a function instance corresponding to the first controller in the first sequence; and / or

[0220] Eighth data sent by the third controller is received, where the eighth data represents the same parameters and corresponding values ​​used by the third controller and the first controller in the corresponding function instances in the first sequence.

[0221] In one embodiment, the device further comprises:

[0222] A triggering unit, configured to trigger the data manager in the first controller when one or more of the following conditions are met:

[0223] forwarding the first request to a first computing node according to the first information and the call chain, where a function instance corresponding to the domain or cluster to which the first controller belongs in the first sequence is deployed on the first computing node, wherein the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters;

[0224] Start a first function instance; wherein the first function instance is deployed in a first domain or a first cluster, and the first domain or the first cluster represents the closest domain or cluster in the first sequence that is located before the domain or cluster to which the first controller belongs.

[0225] In one embodiment, the device further comprises:

[0226] A management unit is configured to allocate a global identifier to the call chain and insert the global identifier into the first request when the first controller is a controller in the first domain or the first cluster in the first sequence.

[0227] In one embodiment, the device further comprises:

[0228] A first receiving unit is configured to receive second information sent by a fourth controller or a data manager in the fourth controller; or

[0229] A sending unit, used to send second information to all controllers or data managers related to the first sequence when the first controller is the controller of the last domain or cluster in the first sequence; wherein the second information is used to indicate deletion of data related to the call chain; and the fourth controller represents the controller of the last domain or cluster in the first sequence.

[0230] In one embodiment, the device further comprises:

[0231] The second receiving unit is used to receive the first request and first information sent by the scheduler, where the first information is used to indicate the function instances deployed on computing nodes in different domains or different clusters.

[0232] In actual application, the synchronization unit 501, the first establishment unit, the second establishment unit, the first receiving unit, the sending unit and the second receiving unit can be implemented by a processor in the data synchronization device combined with a communication interface, and the trigger unit and the management unit can be implemented by a processor in the data synchronization device.

[0233] It should be noted that: the above embodiment provides a data synchronization device, and only uses the division of the above program modules as an example to illustrate when performing data synchronization. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the data synchronization device and the data synchronization method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0234] Based on the hardware implementation of the above program module, and in order to implement the method of the first controller side of the embodiment of the present application, the embodiment of the present application also provides a first controller, such as Figure 6 As shown, the first controller 600 includes:

[0235] Communication interface 601, capable of exchanging information with other network nodes;

[0236] The processor 602 is connected to the communication interface 601 to implement information exchange with other network nodes, and is used to execute the method provided by one or more technical solutions of the first controller side when running the computer program. The computer program is stored in the memory 603.

[0237] Specifically, the processor 602 is used to synchronize data with the second controller and / or the third controller according to the call chain of the first request; wherein,

[0238] The call chain is used to indicate a first sequence, which consists of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or different clusters.

[0239] In one embodiment, the processor 602 is specifically configured to:

[0240] When the data manager in the first controller is in a triggered state, performing data synchronization with the second controller and / or the third controller; or

[0241] When the data manager in the first controller is in a triggered state, data synchronization is performed through the data manager in the first controller, the data manager in the second controller and / or the data manager in the third controller; a data manager is used to manage the data of a domain or cluster.

[0242] In one embodiment, the processor 602 is further configured to:

[0243] When the data manager in the first controller is in a triggered state, establishing a connection between the data manager in the first controller and a data manager in a second controller located after the first controller according to the call chain of the first request; or

[0244] When the first controller is located behind the second controller and the data manager in the first controller is in a triggered state, a connection is established between the data manager in the first controller and the data manager in the third controller according to the call chain of the first request.

[0245] In one embodiment, the processor 602 is specifically configured to:

[0246] performing selective data synchronization with the second controller and / or the third controller; and / or

[0247] First data sent by the third controller is received, where the first data represents all parameters and corresponding values ​​managed by the third controller.

[0248] In one embodiment, the second controller is located after the first controller; the communication interface 601 is used for one or more of the following:

[0249] Sending second data to a second controller, the second data representing parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence;

[0250] receiving a first parameter sent by a second controller, where the first parameter represents a parameter used by a function instance corresponding to the second controller in the first sequence;

[0251] receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances;

[0252] sending third data to the second controller;

[0253] Fourth data is sent to the second controller, where the fourth data represents all parameters and corresponding values ​​managed by the first controller.

[0254] In one embodiment, the second controller is located before the first controller; the communication interface 601 is used for one or more of the following:

[0255] receiving fifth data sent by the second controller, where the fifth data represents parameters and corresponding values ​​used by the corresponding function instance of the second controller in the first sequence;

[0256] Sending a second parameter to a second controller, where the second parameter represents a parameter used by a function instance corresponding to the first controller in the first sequence;

[0257] receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances;

[0258] sending third data to the second controller;

[0259] Requesting the third controller to obtain a value of a third parameter, where the third parameter represents a parameter of unknown value in the second parameter, and the second parameter represents a parameter used by the function instance corresponding to the first controller in the first sequence;

[0260] Sending sixth data to the third controller, where the sixth data represents a difference set between the second data and the third data, where the second data represents parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence, and the third data represents the same parameters and corresponding values ​​used by the function instances corresponding to the first controller and the second controller in the first sequence;

[0261] The seventh data sent by the second controller is received, where the seventh data represents all parameters managed by the second controller and corresponding values.

[0262] In one embodiment, the first controller is a controller of a second domain or cluster in the first sequence; the communication interface 601 is used to send second data to the third controller, the second data representing parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence; and / or

[0263] Eighth data sent by the third controller is received, where the eighth data represents the same parameters and corresponding values ​​used by the third controller and the first controller in the corresponding function instances in the first sequence.

[0264] In one embodiment, the processor 602 is further configured to trigger the data manager in the first controller when one or more of the following conditions are met:

[0265] forwarding the first request to a first computing node according to the first information and the call chain, where a function instance corresponding to the domain or cluster to which the first controller belongs in the first sequence is deployed on the first computing node, wherein the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters;

[0266] Start a first function instance; wherein the first function instance is deployed in a first domain or a first cluster, and the first domain or the first cluster represents the closest domain or cluster in the first sequence that is located before the domain or cluster to which the first controller belongs.

[0267] In one embodiment, the processor 602 is further configured to, when the first controller is a controller in the first domain or the first cluster in the first sequence, assign a global identifier to the call chain and insert the global identifier into the first request.

[0268] In one embodiment, the communication interface 601 is also used to receive second information sent by a fourth controller or a data manager in the fourth controller; or to send second information to all controllers or data managers related to the first sequence when the first controller is the controller of the last domain or cluster in the first sequence; wherein the second information is used to indicate deletion of data related to the call chain; and the fourth controller represents the controller of the last domain or cluster in the first sequence.

[0269] In one embodiment, the communication interface 601 is further used to receive the first request and first information sent by the scheduler, where the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters.

[0270] It should be noted that the specific processing process of the processor 602 and the communication interface 601 can be understood by referring to the above method.

[0271] Of course, in actual application, the various components in the first controller 600 are coupled together through the bus system 604. It can be understood that the bus system 604 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 604 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 6 Various buses are labeled as bus system 604 .

[0272] The memory 603 in the embodiment of the present application is used to store various types of data to support the operation of the first controller 600. Examples of such data include: any computer program used to operate on the first controller 600.

[0273] The method disclosed in the above embodiment of the present application can be applied to the processor 602, or implemented by the processor 602. The processor 602 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor 602 or an instruction in the form of software. The above-mentioned processor 602 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 602 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the memory 603, and the processor 602 reads the information in the memory 603 and completes the steps of the above method in combination with its hardware.

[0274] In an exemplary embodiment, the first controller 600 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.

[0275] It can be understood that the memory (memory 603) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0276] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, a memory 603 storing a computer program, and the computer program can be executed by a processor 602 of the first controller 600 to complete the steps of the first controller side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0277] Illustratively, an embodiment of the present application further provides a computer program product, including a computer program, and the computer program can be executed by the processor 602 of the first controller 600 to complete the steps of any of the aforementioned methods.

[0278] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0279] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0280] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A data synchronization method, characterized in that: Applied to a first controller, the method comprises: According to the call chain of the first request, data synchronization is performed with the second controller and / or the third controller; wherein, The call chain is used to indicate a first sequence, which consists of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or clusters.

2. The method according to claim 1, characterized in that The step of synchronizing data with the second controller and / or the third controller according to the call chain of the first request includes: When the data manager in the first controller is in a triggered state, performing data synchronization with the second controller and / or the third controller; or When the data manager in the first controller is in a triggered state, data synchronization is performed through the data manager in the first controller, the data manager in the second controller and / or the data manager in the third controller; a data manager is used to manage the data of a domain or cluster.

3. The method according to claim 2, characterized in that The method further comprises: When the data manager in the first controller is in a triggered state, establishing a connection between the data manager in the first controller and a data manager in a second controller located after the first controller according to the call chain of the first request; or When the first controller is located behind the second controller and the data manager in the first controller is in a triggered state, a connection is established between the data manager in the first controller and the data manager in the third controller according to the call chain of the first request.

4. The method according to any one of claims 1 to 3, characterized in that: The step of performing data synchronization with the second controller and / or the third controller includes: performing selective data synchronization with the second controller and / or the third controller; and / or First data sent by the third controller is received, where the first data represents all parameters and corresponding values ​​managed by the third controller.

5. The method according to any one of claims 1 to 3, characterized in that: The second controller is located behind the first controller; and the data synchronization with the second controller and / or the third controller includes one or more of the following: Sending second data to a second controller, the second data representing parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence; receiving a first parameter sent by a second controller, where the first parameter represents a parameter used by a function instance corresponding to the second controller in the first sequence; receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances; sending third data to the second controller; Fourth data is sent to the second controller, where the fourth data represents all parameters and corresponding values ​​managed by the first controller.

6. The method according to any one of claims 1 to 3, characterized in that: The second controller is located before the first controller; the data synchronization with the second controller and / or the third controller includes one or more of the following: receiving fifth data sent by the second controller, where the fifth data represents parameters and corresponding values ​​used by the corresponding function instance of the second controller in the first sequence; Sending a second parameter to a second controller, where the second parameter represents a parameter used by a function instance corresponding to the first controller in the first sequence; receiving third data sent by the second controller, where the third data represents the same parameters and corresponding values ​​used by the first controller and the second controller in the first sequence in the corresponding function instances; sending third data to the second controller; Requesting the third controller to obtain a value of a third parameter, where the third parameter represents a parameter of unknown value in the second parameter, and the second parameter represents a parameter used by the function instance corresponding to the first controller in the first sequence; Sending sixth data to the third controller, where the sixth data represents a difference set between the second data and the third data, where the second data represents parameters and corresponding values ​​used by the function instance corresponding to the first controller in the first sequence, and the third data represents the same parameters and corresponding values ​​used by the function instances corresponding to the first controller and the second controller in the first sequence; The seventh data sent by the second controller is received, where the seventh data represents all parameters managed by the second controller and corresponding values.

7. The method according to any one of claims 1 to 3, characterized in that: The first controller is a controller of a second domain or cluster in the first sequence; Data synchronization with a third controller includes: Sending second data to the third controller, the second data representing parameters and corresponding values ​​used by the corresponding function instance of the first controller in the first sequence; and / or Eighth data sent by the third controller is received, where the eighth data represents the same parameters and corresponding values ​​used by the third controller and the first controller in the corresponding function instances in the first sequence.

8. The method according to claim 2 or 3, characterized in that: The method further comprises: When one or more of the following conditions are met, the data manager in the first controller is triggered: forwarding the first request to a first computing node according to the first information and the call chain, where a function instance corresponding to the domain or cluster to which the first controller belongs in the first sequence is deployed on the first computing node, wherein the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters; Start a first function instance; wherein the first function instance is deployed in a first domain or a first cluster, and the first domain or the first cluster represents the closest domain or cluster in the first sequence that is located before the domain or cluster to which the first controller belongs.

9. The method according to claim 8, characterized in that Before forwarding the first request to the first computing node, the method further includes: In the case where the first controller is a controller in the first domain or the first cluster in the first sequence, a global identifier is assigned to the call chain, and the global identifier is inserted into the first request.

10. The method according to claim 1, characterized in that The method further comprises: receiving second information sent by the fourth controller or a data manager in the fourth controller; or In the case where the first controller is the controller of the last domain or cluster in the first sequence, second information is sent to all controllers or data managers related to the first sequence; wherein, The second information is used to instruct deletion of data related to the call chain; the fourth controller represents the controller of the last domain or cluster in the first sequence.

11. The method according to any one of claims 1 to 3, 9 to 10, characterized in that: The method further comprises: The first request and first information sent by the scheduler are received, where the first information is used to indicate function instances deployed on computing nodes in different domains or different clusters.

12. A data synchronization device, characterized in that: include: A synchronization unit is used to synchronize data with the second controller and / or the third controller according to the call chain of the first request; wherein, The call chain is used to indicate a first sequence, where the first sequence consists of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; The third controller is a controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data of different domains or different clusters.

13. A first controller, characterized in that: include: Processor and communication interface; wherein, The processor is used to synchronize data with the second controller and / or the third controller according to the call chain of the first request; wherein, The call chain is used to indicate a first sequence, which is a sequence consisting of a function instance called by the first request and a corresponding domain or cluster; the first controller and the second controller are respectively located in two adjacent domains or clusters in the first sequence; the third controller is the controller of the first domain or the first cluster in the first sequence; different controllers are used to manage data in different domains or different clusters.

14. A first controller, characterized in that: comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 11.

15. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.

16. A computer program product comprising a computer program, characterized in that The computer program implements the steps of the method according to any one of claims 1 to 11 when executed by a processor.