Abnormal handling method, device and electronic device

By detecting the status of the data synchronization service and instance, determining the target data synchronization service and controlling its operation of abnormal instances, the problem of poor exception handling effect during data synchronization is solved, and processing efficiency and stability are improved.

CN113934566BActive Publication Date: 2025-06-24CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111249121.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-26
Publication Date
2025-06-24
Estimated Expiration
2041-10-26

AI Technical Summary

Technical Problem

During the data synchronization process, when the state of the data synchronization service or data synchronization instance is abnormal, the prior art is difficult to effectively handle, resulting in poor exception handling effects.

Method used

By detecting the current status of each data synchronization service and the data synchronization instance, if an abnormal state is detected, the target data synchronization service is determined from other data synchronization services according to the number of data synchronization instances of other data synchronization services, and the data synchronization instance of its abnormal state is controlled.

Benefits of technology

It effectively solves the problem of target object exceptions, improves the effect of exception handling, and ensures the stability of the data synchronization process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113934566B_ABST
    Figure CN113934566B_ABST
Patent Text Reader

Abstract

The present application provides an exception handling method, apparatus, and electronic device. The method includes: when performing exception handling, first detecting the current status of each data synchronization service and its corresponding data synchronization instance; if it is detected that the current status of a target object is an abnormal status, determining a target data synchronization service from other data synchronization services according to the number of data synchronization instances corresponding to the other data synchronization services respectively; where the object includes a data synchronization service and / or a data synchronization instance, and controlling the target data synchronization service to run the data synchronization instance indicated by the object. In this way, the data synchronization instance indicated by the object in the abnormal status can be determined according to the number of data synchronization instances, thus effectively solving the problem of object abnormality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data processing, and in particular, to an exception handling method, apparatus, and electronic device. Background Art

[0002] With the continuous development of Internet technology, the big data era has arrived, and it has become very important to perform real-time data synchronization. The data synchronization server supports synchronizing data sources in the database to data storage devices such as a search engine (ElasticSearch, ES) to achieve data synchronization.

[0003] Currently, when the data synchronization server performs data synchronization, it is usually configured with multiple data synchronization services. Among them, each data synchronization service corresponds to at least one data synchronization instance, so as to control the corresponding data synchronization instance to run through the data synchronization service, and thus perform data synchronization through the data synchronization instance.

[0004] In the process of controlling the corresponding data synchronization instance to run through the data synchronization service to perform data synchronization, if the data synchronization service or the data synchronization instance is in an abnormal state, how to handle the data synchronization service or data synchronization instance in the abnormal state is an urgent problem to be solved by those skilled in the art. Summary of the Invention

[0005] This application provides an exception handling method, apparatus, and electronic device, which effectively solve the problem of abnormal target objects when performing data synchronization.

[0006] In a first aspect, this application provides an exception handling method, which is applied to a data synchronization server. The data synchronization server has multiple data synchronization services, and each data synchronization service corresponds to at least one data synchronization instance. The exception handling method includes:

[0007] Detect the current status of each data synchronization service and the data synchronization instances corresponding to each data synchronization service.

[0008] If it is detected that the current status of a target object is an abnormal status, determine a target data synchronization service from the other data synchronization services according to the number of data synchronization instances corresponding to each of the other data synchronization services; where the object includes a data synchronization service and / or a data synchronization instance, and the other data synchronization services are the other data synchronization services among the multiple data synchronization services except the data synchronization service indicated by the object.

[0009] Control the target data synchronization service to run the data synchronization instance indicated by the object.

[0010] In a possible implementation, determining a target data synchronization service from the other data synchronization services according to the number of corresponding data synchronization instances of the other data synchronization services includes:

[0011] Determining, from the other data synchronization services, the data synchronization service with the least number of corresponding data synchronization instances according to the number of corresponding data synchronization instances of the other data synchronization services.

[0012] Determining the data synchronization service with the least number of corresponding data synchronization instances as the target data synchronization service.

[0013] In a possible implementation, the method further includes:

[0014] Determining the status of the object in the registration server corresponding to the object.

[0015] If it is determined that the status of the object is the running status and the status of the object in the registration server is the removed status, then determining the current status of the object as the abnormal status.

[0016] In a possible implementation, the method further includes:

[0017] Responding to a touch operation of a user on a web page of data synchronization, determining an operation type of the touch operation for the object; wherein the object includes a data synchronization service and / or a data synchronization instance.

[0018] Performing a corresponding control operation on the object according to the operation type.

[0019] In a possible implementation, the object is the first idle data synchronization instance among the data synchronization instances corresponding to the multiple data synchronization services, and the touch operation is an online operation of the first idle data synchronization instance; wherein performing a corresponding control operation on the object according to the operation type includes:

[0020] Determining the data synchronization service corresponding to the first idle data synchronization instance.

[0021] Controlling the data synchronization service corresponding to the first idle data synchronization instance to run the first idle data synchronization instance.

[0022] In a possible implementation, the object is a new data synchronization instance, and the touch operation is an addition operation of the new data synchronization instance; wherein performing a corresponding control operation on the object according to the operation type includes:

[0023] Determine the number of data synchronization instances corresponding to each of the multiple data synchronization services, and determine the data synchronization service with the least number of corresponding data synchronization instances from the multiple data synchronization services.

[0024] Determine the new data synchronization instance as the data synchronization instance corresponding to the data synchronization service with the least number of corresponding data synchronization instances.

[0025] In a possible implementation manner, the object is the second idle data synchronization instance among the data synchronization instances corresponding to the multiple data synchronization services, and the touch operation is the offline operation of the second idle data synchronization instance; wherein, the performing corresponding control operations on the object according to the operation type includes:

[0026] Determine the data synchronization service corresponding to the second idle data synchronization instance.

[0027] Exclude the second idle data synchronization instance from the data synchronization instances corresponding to the data synchronization service corresponding to the second idle data synchronization instance.

[0028] In a possible implementation manner, the object is the first idle data synchronization service among the multiple data synchronization services, and the touch operation is the online operation of the first idle data synchronization service; wherein, the performing corresponding control operations on the object according to the operation type includes:

[0029] Control the first idle data synchronization service to run the data synchronization instances corresponding to the first idle data synchronization service.

[0030] In a possible implementation manner, the object is a new data synchronization service, and the touch operation is the addition operation of the new data synchronization service; wherein, the performing corresponding control operations on the object according to the operation type includes:

[0031] According to the number of data synchronization instances corresponding to each of the multiple data synchronization services, determine the data synchronization instances to be allocated from the data synchronization instances corresponding to each of the multiple data synchronization services.

[0032] Determine the data synchronization instances to be allocated as the data synchronization instances corresponding to the new data synchronization service.

[0033] In a possible implementation manner, the object is the second idle data synchronization service among the multiple data synchronization services, and the touch operation is the offline operation of the second idle data synchronization service; wherein, the performing corresponding control operations on the object according to the operation type includes:

[0034] Exclude the second idle data synchronization service from the multiple data synchronization services, and exclude the data synchronization instance corresponding to the second idle data synchronization service from the data synchronization instances corresponding to the multiple data synchronization services.

[0035] In a second aspect, the present application provides an exception handling device, and the exception handling device includes:

[0036] A detection unit, configured to detect the current status of each data synchronization service and the data synchronization instance corresponding to each data synchronization service; wherein, the current status includes a running status or an idle status.

[0037] A processing unit, if it is detected that the current status of a target object is an abnormal status, determines a target data synchronization service from the other data synchronization services according to the number of data synchronization instances corresponding to each of the other data synchronization services; wherein, the object includes a data synchronization service and / or a data synchronization instance, and the other data synchronization services are the other data synchronization services among the multiple data synchronization services except the data synchronization service indicated by the object.

[0038] A control unit, configured to control the target data synchronization service to run the data synchronization instance indicated by the object.

[0039] In a possible implementation manner, the processing unit is specifically configured to determine, according to the number of data synchronization instances corresponding to each of the other data synchronization services, the data synchronization service with the least number of corresponding data synchronization instances from the other data synchronization services; and determine the data synchronization service with the least number of corresponding data synchronization instances as the target data synchronization service.

[0040] In a possible implementation manner, the processing unit is specifically configured to determine the status of the object in the registration server corresponding to the object; if it is determined that the status of the object is a running status and the status of the object in the registration server is a removed status, then determine the current status of the object as the abnormal status.

[0041] In a possible implementation manner, the processing unit is specifically configured to, in response to a touch operation of a user on a web page of data synchronization, determine the operation type of the touch operation for the object; wherein, the object includes a data synchronization service and / or a data synchronization instance; and perform a corresponding control operation on the object according to the operation type.

[0042] In a possible implementation manner, the processing unit is specifically configured to determine the data synchronization service corresponding to the first idle data synchronization instance; and control the data synchronization service corresponding to the first idle data synchronization instance to run the first idle data synchronization instance.

[0043] In one possible implementation, the processing unit is specifically configured to determine the number of data synchronization instances corresponding to each of the multiple data synchronization services, and determine the data synchronization service with the least number of corresponding data synchronization instances from the multiple data synchronization services; and determine the new data synchronization instance as the data synchronization instance corresponding to the data synchronization service with the least number of corresponding data synchronization instances.

[0044] In one possible implementation, the processing unit is specifically configured to determine the data synchronization service corresponding to the second idle data synchronization instance; and remove the second idle data synchronization instance from the data synchronization instances corresponding to the data synchronization service corresponding to the second idle data synchronization instance.

[0045] In one possible implementation, the processing unit is specifically configured to control the first idle data synchronization service to run the data synchronization instance corresponding to the first idle data synchronization service.

[0046] In one possible implementation, the processing unit is specifically configured to determine the data synchronization instances to be allocated from the data synchronization instances corresponding to each of the multiple data synchronization services according to the number of data synchronization instances corresponding to each of the multiple data synchronization services; and determine the data synchronization instances to be allocated as the data synchronization instances corresponding to the new data synchronization service.

[0047] In one possible implementation, the processing unit is specifically configured to remove the second idle data synchronization service from the multiple data synchronization services, and remove the data synchronization instances corresponding to the second idle data synchronization service from the data synchronization instances corresponding to the multiple data synchronization services.

[0048] In a third aspect, the present application further provides an electronic device, which includes a processor and a memory; wherein, the memory is used to store a computer program; and the processor is used to read the computer program stored in the memory and execute the exception handling method according to any one of the possible implementations in the first aspect above.

[0049] In a fourth aspect, the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the exception handling method according to any one of the possible implementations in the first aspect above is implemented.

[0050] In a fifth aspect, the present application further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the exception handling method according to any one of the possible implementations in the first aspect above is implemented.

[0051] It can be seen that for the exception handling method, apparatus, and electronic device provided by this application, when performing exception handling, the current status of each data synchronization service and its corresponding data synchronization instance can be detected first; if it is detected that the current status of a target object is an abnormal status, the target data synchronization service can be determined from other data synchronization services according to the number of data synchronization instances corresponding to the other data synchronization services respectively; wherein, the target object includes a data synchronization service and / or a data synchronization instance, and the target data synchronization service is controlled to run the data synchronization instance indicated by the target object. In this way, according to the number of data synchronization instances, the target data synchronization service determined runs the data synchronization instance indicated by the target object in the abnormal status, thereby effectively solving the problem of the target object being abnormal. Description of the Drawings

[0052] Figure 1 is a schematic flowchart of an exception handling method provided by this application;

[0053] Figure 2 is a schematic diagram of a data synchronization server and a registration server provided by this application;

[0054] Figure 3 is a schematic diagram of a web page for data synchronization provided by this application;

[0055] Figure 4 is a schematic structural diagram of an exception handling apparatus provided by this application;

[0056] Figure 5 is a schematic structural diagram of an electronic device provided by this application.

[0057] Through the above-mentioned drawings, specific embodiments of this application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. Detailed Embodiments

[0058] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. On the contrary, they are merely examples of devices and methods consistent with some aspects of this application as detailed in the appended claims.

[0059] In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. Here, A and B can be singular or plural. In the written description of the present application, the character " / " generally represents an "or" relationship between the front and back associated objects.

[0060] The technical solution provided by the present application can be applied to the scenario of data synchronization. The data synchronization server supports synchronizing the data source in the database to a data storage such as a search engine (ElasticSearch, ES) to achieve data synchronization. Currently, when the data synchronization server performs data synchronization, it is usually configured with multiple data synchronization services. Among them, each data synchronization service corresponds to at least one data synchronization instance, and the corresponding data synchronization instance is controlled to run through the data synchronization service, so as to perform data synchronization through the data synchronization instance. Among them, the database can include a Mysql database, a Sqlserver database, or a Sqlite database, etc., and the data storage can include a search engine data storage, a Kafka data storage, or an Hbase data storage, etc.

[0061] Currently, in the process of controlling the corresponding data synchronization instance to run through the data synchronization service to perform data synchronization, when the status of the data synchronization service is abnormal, other data synchronization services in the data synchronization server adopt a preemption mode to preempt the data synchronization instance corresponding to the abnormal status data synchronization service and control it to run the data synchronization instance corresponding to the abnormal status data synchronization service; or, when the status of the data synchronization instance is abnormal, other data synchronization services in the data synchronization server adopt a preemption mode to preempt the abnormal status data synchronization instance and control it to run the abnormal status data synchronization instance.

[0062] However, adopting the above-mentioned preemption mode will result in a poor exception handling effect. For example, if the data synchronization service that successfully preempts using the preemption mode has a large number of currently corresponding controlled data synchronization instances, it will affect the operation of the data synchronization instance in the abnormal status, resulting in a poor exception handling effect.

[0063] Therefore, in order to effectively solve the exception problem, when processing the data synchronization instances corresponding to the data synchronization services in an abnormal state, or the data synchronization instances in an abnormal state, in order to improve the exception handling effect, the number of data synchronization instances corresponding to each data synchronization service can be considered, and one of the data synchronization services can be selected, which can be denoted as the target data synchronization service, and used to control the data synchronization instances corresponding to the data synchronization services in an abnormal state, or the data synchronization instances in an abnormal state, so as to effectively solve the exception problem.

[0064] Based on the above technical concept, the present application provides an exception handling method. Next, the implementation process of the exception handling method provided by the present application will be described in detail in combination with specific application scenarios. It can be understood that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0065] Figure 1 FIG. is a schematic flowchart of an exception handling method provided by the present application. The exception handling method can be executed by a software device and / or a hardware device. The hardware device can be an exception handling device. For example, please refer to Figure 1 As shown, the exception handling method can include:

[0066] S101. Detect the current states of each data synchronization service and the data synchronization instances corresponding to each data synchronization service.

[0067] Among them, the number of data synchronization instances corresponding to each data synchronization service can be the same or different, and can be specifically set according to actual needs. Here, the present application does not limit the number of data synchronization instances corresponding to each data synchronization service.

[0068] For example, the data synchronization service can be a Canal aggregation program, or other data synchronization services, such as a data transfer service program (Digital Theatre System, DTS), etc., and can be specifically set according to actual needs. When the data synchronization service is a Canal aggregation program, the data synchronization instance is a Canal tool, and the corresponding Canal tool is controlled by the Canal aggregation program to achieve data synchronization. The present application takes the Canal aggregation program and its corresponding Canal tool as an example for illustration, but does not mean that the present application is only limited thereto.

[0069] Taking the Canal aggregator for the data synchronization service as an example, for each Canal aggregator for the data synchronization service, the Canal aggregator and its corresponding at least one data synchronization instance can be registered in the registration server; correspondingly, the registration server will create respective nodes for the Canal aggregator and its corresponding at least one data synchronization instance, and monitor the respective states of the Canal aggregator and its corresponding at least one data synchronization instance. By way of example, the registration server is a Zookeeper registration server, which can be referred to Figure 2 as shown Figure 2 is a schematic diagram of a data synchronization server and a registration server provided by this application. Combining Figure 2 it can be seen that assuming there are three data synchronization services in the data synchronization server, namely data synchronization service 1, data synchronization service 2, and data synchronization service 3, and data synchronization service 1 corresponds to 1 data synchronization instance 1, data synchronization service 2 corresponds to 2 data synchronization instances, namely data synchronization instance 2 and data synchronization instance 3, and data synchronization service 3 corresponds to 3 data synchronization instances, namely data synchronization instance 1, data synchronization instance 2, and data synchronization instance 3, then these three data synchronization services and their corresponding data synchronization instances will be registered in the registration server; correspondingly, the registration server will create respective nodes for these three data synchronization services and their corresponding six data synchronization instances, that is, a total of 9 nodes will be created.

[0070] By way of example, when detecting the current states of each data synchronization service and the data synchronization instances corresponding to each data synchronization service, the states of each data synchronization service monitored by the registration server and the data synchronization instances corresponding to each data synchronization service can be combined to jointly determine whether there is an abnormality; if an object, such as a data synchronization service and / or a data synchronization instance, is in a running state in the data synchronization server and the node created by the registration server for this object exists, then it is determined that the state of this object is a normal state; in the normal state, the corresponding operations can be continued according to the current state of this object.

[0071] If a target object, such as a data synchronization service and / or a data synchronization instance, is in a running state in the data synchronization server and the node created by the registration server for this object is removed, then it is determined that the state of this object is an abnormal state, and then the following S102 is correspondingly executed:

[0072] S102: If it is detected that the current state of the target object is an abnormal state, then determine the target data synchronization service from other data synchronization services according to the number of data synchronization instances corresponding to each other data synchronization service.

[0073] Among them, the target object includes a data synchronization service and / or a data synchronization instance. Other data synchronization services refer to the other data synchronization services among multiple data synchronization services except the data synchronization service indicated by the target object. When the target object is a data synchronization service, the data synchronization service it indicates is the data synchronization service itself. When the target object is a data synchronization instance, the data synchronization service it indicates is the data synchronization service corresponding to the data synchronization instance.

[0074] Exemplarily, the number of target objects can be one or multiple, and can be specifically set according to actual needs. It can be understood that when the number of target objects is multiple, the corresponding processing method is similar to that when the number of target objects is one. Here, this application will take the number of target objects being multiple as an example for illustration, but it does not mean that this application is only limited to this.

[0075] Exemplarily, when determining the target data synchronization service from other data synchronization services according to the number of data synchronization instances corresponding to each of the other data synchronization services, the data synchronization service with the least number of corresponding data synchronization instances can be determined from other data synchronization services according to the number of data synchronization instances corresponding to each of the other data synchronization services; and the data synchronization service with the least number of corresponding data synchronization instances is determined as the target data synchronization service. In this way, by subsequently running the data synchronization instance indicated by the target object through the target data synchronization service with the smallest number of running data synchronization instances, not only can the load of other data synchronization services be balanced, but also the running efficiency of the data synchronization instance indicated by the target object can be improved.

[0076] It can be understood that when determining the target data synchronization service from other data synchronization services according to the number of data synchronization instances corresponding to each of the other data synchronization services, in addition to determining the data synchronization service with the least number of corresponding data synchronization instances as the target data synchronization service, the data synchronization service with the second least number of corresponding data synchronization instances can also be determined as the target data synchronization service, which can be specifically set according to actual needs. Here, this application only takes the data synchronization service with the least number of corresponding data synchronization instances as the target data synchronization service for illustration, but it does not mean that this application is only limited to this.

[0077] For example, assume that there are three data synchronization services in the data synchronization server, namely data synchronization service 1, data synchronization service 2, and data synchronization service 3. Data synchronization service 1 corresponds to 1 data synchronization instance, data synchronization service 2 corresponds to 2 data synchronization instances, and data synchronization service 3 corresponds to 3 data synchronization instances. When it is detected that the status of data synchronization service 3 is an abnormal status, then according to the number of data synchronization instances corresponding to data synchronization service 1 and data synchronization service 2 respectively, determine the data synchronization service with the fewest corresponding instances from data synchronization service 1 and data synchronization service 2, that is, data synchronization service 1, and determine data synchronization service 1 as the target data synchronization service.

[0078] For another example, assume that there are three data synchronization services in the data synchronization server, namely data synchronization service 1, data synchronization service 2, and data synchronization service 3. Data synchronization service 1 corresponds to 1 data synchronization instance, data synchronization service 2 corresponds to 2 data synchronization instances, and data synchronization service 3 corresponds to 3 data synchronization instances. If the status of one of the data synchronization instances corresponding to data synchronization service 3 is an abnormal status, then according to the number of data synchronization instances corresponding to data synchronization service 1 and data synchronization service 2 respectively, determine data synchronization service 1 with the fewest corresponding instances from data synchronization service 1 and data synchronization service 2, and determine data synchronization service 1 as the target data synchronization service. For the determination methods of the other two data synchronization instances corresponding to data synchronization service 3, they are similar to the above determination method and will not be elaborated here.

[0079] In this way, when the status of the target object is detected to be abnormal, the target data synchronization service can be controlled to run the data synchronization instance indicated by the target object, that is, execute the following S103:

[0080] S103. Control the target data synchronization service to run the data synchronization instance indicated by the target object.

[0081] Exemplarily, when the target object is a data synchronization instance, the data synchronization instance it indicates is the data synchronization instance itself; when the target object is a data synchronization service, the data synchronization instance it indicates is the data synchronization instance corresponding to the data synchronization service.

[0082] For example, when the target object is a data synchronization instance, assume that there are three data synchronization services in the data synchronization server, namely data synchronization service 1, data synchronization service 2, and data synchronization service 3. Data synchronization service 1 corresponds to 1 data synchronization instance, data synchronization service 2 corresponds to 2 data synchronization instances, and data synchronization service 3 corresponds to 3 data synchronization instances. If one of the data synchronization instances corresponding to data synchronization service 3 is in an abnormal state, the data synchronization server can determine, according to the number of data synchronization instances corresponding to data synchronization service 1 and data synchronization service 2 respectively, the data synchronization service 1 with the least number of corresponding instances from data synchronization service 1 and data synchronization service 2, and determine data synchronization service 1 as the target data synchronization service. The data synchronization server controls data synchronization service 1 to run the data synchronization instance in the abnormal state.

[0083] For example, when the target object is a data synchronization service, assume that there are three data synchronization services in the data synchronization server, namely data synchronization service 1, data synchronization service 2, and data synchronization service 3, and data synchronization service 1 corresponds to 1 data synchronization instance, data synchronization service 2 corresponds to 2 data synchronization instances, and data synchronization service 3 corresponds to 3 data synchronization instances. When it is detected that the state of data synchronization service 3 is abnormal, the data synchronization server can determine, according to the number of data synchronization instances corresponding to data synchronization service 1 and data synchronization service 2 respectively, the data synchronization service 1 with the least number of corresponding instances from data synchronization service 1 and data synchronization service 2, and determine data synchronization service 1 as the target data synchronization service. The data synchronization server controls data synchronization service 1 to run the data synchronization instance corresponding to the data synchronization service in the abnormal state. The control method for the other two data synchronization instances corresponding to data synchronization service 3 is similar to the above control method and will not be elaborated here.

[0084] It can be seen that in this application, during exception handling, the current states of each data synchronization service and its corresponding data synchronization instances can be detected first; if it is detected that the current state of the target object is abnormal, the target data synchronization service can be determined from other data synchronization services according to the number of data synchronization instances corresponding to other data synchronization services respectively; among them, the target object includes a data synchronization service and / or a data synchronization instance, and the target data synchronization service is controlled to run the data synchronization instance indicated by the target object. In this way, the target data synchronization service determined according to the number of data synchronization instances can run the data synchronization instance indicated by the target object in the abnormal state, thus effectively solving the problem of the target object being abnormal.

[0085] Based on the above Figure 1In the illustrated embodiment, in addition to processing abnormal target objects, for the convenience of users to control relevant operations of the data synchronization service and / or data synchronization instance, such as online operations, new operations, or offline operations, in this application, considering that the data synchronization service and / or data synchronization instance are registered in the registration server, the registration server will generate node information corresponding to the data synchronization service and / or data synchronization instance, and relevant operations can be displayed on the web page of data synchronization. In this way, users can touch relevant operations on this web page to control the relevant operations executed by the data synchronization service and / or data synchronization instance, thereby improving the user experience. For example, please refer to Figure 3 as shown Figure 3 is a schematic diagram of a web page for data synchronization provided by this application. It can be seen that Figure 3 it not only includes online operations, new operations, and offline operations of the data synchronization service, but also includes online operations, new operations, and offline operations of the data synchronization instance. Of course, it can also be other operations, such as query operations and log viewing operations of the data synchronization service and / or data synchronization instance.

[0086] For example, when a user performs a click operation on the web page of data synchronization, in response to this touch operation of the user, determine the operation type of the object targeted by the touch operation, where the object includes the data synchronization service and / or data synchronization instance; then, according to the operation type, perform a corresponding control operation on the target object. In this way, users can directly control the object through the control operation, improving the user experience.

[0087] For example, the touch operation can be a click operation, a swipe operation, or other touch operations, which can be specifically set according to actual needs. Here, this application will take the click operation as an example for illustration, but it does not mean that this application is only limited to this.

[0088] For example, when the object of the user's touch operation is a data synchronization instance, the operation types for the data synchronization instance can include at least three operations: the online operation of the data synchronization instance, the new operation of the data synchronization instance, and the offline operation of the data synchronization instance. Of course, it can also include other relevant operations of the data synchronization instance, which can be specifically set according to actual needs. Here, this application will take these three operations as an example for illustration, but it does not mean that this application is only limited to this.

[0089] For example, when the object of the user's touch operation is the first idle data synchronization instance among the data synchronization instances corresponding to multiple data synchronization services, and the touch operation is the online operation of the first idle data synchronization instance, the data synchronization service corresponding to the first idle data synchronization instance can be determined first. Here, the data synchronization service corresponding to the first idle data synchronization instance can be understood as the data synchronization service corresponding to the first idle data synchronization instance during registration, and the data synchronization service corresponding to the first idle data synchronization instance is controlled to run the first idle data synchronization instance, so that the first idle data synchronization instance can be controlled to go online.

[0090] For example, assume that there are three data synchronization services in the data synchronization server, namely Data Synchronization Service 1, Data Synchronization Service 2, and Data Synchronization Service 3. Data Synchronization Service 1 corresponds to 1 data synchronization instance, Data Synchronization Service 2 corresponds to 2 data synchronization instances, and Data Synchronization Service 3 corresponds to 3 data synchronization instances. If one of the data synchronization instances 2-1 corresponding to Data Synchronization Service 2 is in an idle state, then this data synchronization instance 2-1 is recorded as the first idle data synchronization instance. When the touch operation is the online operation of this data synchronization instance 2-1, the data synchronization server can control Data Synchronization Service 1, Data Synchronization Service 2, and Data Synchronization Service 3 to respectively determine whether the online data synchronization instance 2-1 is the data synchronization instance corresponding to it. When it is determined that the data synchronization instance 2-1 is the corresponding service, the data synchronization server controls Data Synchronization Service 2 to run the data synchronization instance 2-1, so as to control the first idle data synchronization instance to perform the online operation.

[0091] For example, after the first idle data synchronization instance goes online, the status of the first idle data synchronization instance can be updated in the registration server correspondingly, and the status of the first idle data synchronization instance is changed to the online status.

[0092] For example, when the object of the user's touch operation is a new data synchronization instance, and the touch operation is the addition operation of the new data synchronization instance, the number of data synchronization instances corresponding to each of the multiple data synchronization services can be determined first, and the data synchronization service corresponding to the least number of data synchronization instances can be determined from the multiple data synchronization services, and the new data synchronization instance is determined as the data synchronization instance corresponding to the data synchronization service with the least number of corresponding data synchronization instances.

[0093] For example, a new data synchronization instance refers to a data synchronization instance whose node information does not exist among the existing data synchronization instance nodes in the registration server currently, then this data synchronization instance is determined as a new data synchronization instance.

[0094] For example, assume that there are three data synchronization services in the data synchronization server, namely data synchronization service 1, data synchronization service 2, and data synchronization service 3. Data synchronization service 1 corresponds to 1 data synchronization instance, data synchronization service 2 corresponds to 2 data synchronization instances, and data synchronization service 3 corresponds to 3 data synchronization instances. If there is a new data synchronization instance and the touch operation is an addition operation for this new data synchronization instance, the data server can first determine the number of data synchronization instances corresponding to each of data synchronization service 1, data synchronization service 2, and data synchronization service 3, and determine from the three data synchronization services the data synchronization service with the least number of corresponding data synchronization instances, that is, data synchronization service 1, and determine the new data synchronization instance as the data synchronization instance corresponding to data synchronization service 1.

[0095] Exemplarily, after adding a data synchronization instance, the status of the new data synchronization instance can be updated in the registration server correspondingly, and the status of the new data synchronization instance can be changed to the added status.

[0096] Exemplarily, when the object of the user's touch operation is the second idle data synchronization instance among the data synchronization instances corresponding to multiple data synchronization services and the touch operation is a decommissioning operation for the second idle data synchronization instance, the data synchronization service corresponding to the second idle data synchronization instance can be determined first; here, the data synchronization service corresponding to the second idle data synchronization instance can be understood as the data synchronization service corresponding to the second idle data synchronization instance during registration, and the second idle data synchronization instance can be removed from the data synchronization instances corresponding to the data synchronization service corresponding to the second idle data synchronization instance, so that the second idle data synchronization instance can be controlled to go offline.

[0097] For example, assume that there are three data synchronization services in the data synchronization server, namely data synchronization service 1, data synchronization service 2, and data synchronization service 3. Data synchronization service 1 corresponds to 1 data synchronization instance, data synchronization service 2 corresponds to 2 data synchronization instances, and data synchronization service 3 corresponds to 3 data synchronization instances. If one of the data synchronization instances 3-2 corresponding to data synchronization service 3 is in an idle state, then this data synchronization instance 3-2 is recorded as the second idle data synchronization instance. When the touch operation is a decommissioning operation for this data synchronization instance 3-2, the data synchronization server can control data synchronization service 1, data synchronization service 2, and data synchronization service 3 to respectively determine whether the decommissioned data synchronization instance 3-2 is the data synchronization instance corresponding to it. When it is determined that data synchronization service 3 is the data synchronization service corresponding to data synchronization instance 3-2, then data synchronization instance 3-2 is removed from the three instances corresponding to data synchronization service 3, so as to control the second idle data synchronization instance to perform the decommissioning operation.

[0098] Exemplarily, after the second idle data synchronization instance goes offline, the status of the second idle data synchronization instance can be updated correspondingly in the registration server, and the status of the second idle data synchronization instance is updated to the offline status.

[0099] Exemplarily, when the object of the user's touch operation is the data synchronization service, the operation types for the data synchronization service can include at least three operations: the online operation of the data synchronization service, the new operation of the data synchronization service, and the offline operation of the data synchronization service. Of course, it can also include other related operations of the data synchronization service, which can be specifically set according to actual needs. Here, this application takes these three operations as examples for illustration, but it does not mean that this application is only limited to this.

[0100] Exemplarily, when the object of the user's touch operation is the first idle data synchronization service among multiple data synchronization services, and the touch operation is the online operation of the first idle data synchronization service, the data synchronization server can control the first idle data synchronization service to run the data synchronization instance corresponding to the first idle data synchronization service, so as to control the first idle data service to go online.

[0101] For example, assume that there are three data synchronization services in the data synchronization server, namely data synchronization service 1, data synchronization service 2, and data synchronization service 3. Data synchronization service 1 corresponds to 1 data synchronization instance, data synchronization service 2 corresponds to 2 data synchronization instances, and data synchronization service 3 corresponds to 3 data synchronization instances. If data synchronization service 2 is in an idle state, then data synchronization service 2 is recorded as the first idle data synchronization service. When the touch operation is the online operation of data synchronization service 2, the data synchronization server controls data synchronization service 1, data synchronization service 2, and data synchronization service 3 to respectively determine whether the online data synchronization service 2 is itself. When it is determined that it is data synchronization service 2, the data synchronization server controls data synchronization service 2 and runs the data synchronization instance corresponding to data synchronization service 2, so as to control the first idle data synchronization service to perform the online operation.

[0102] Exemplarily, after the first idle data synchronization service goes online, the first idle data synchronization instance service can be updated correspondingly in the registration server to be online, and the status of the first idle data synchronization service is changed to the online status.

[0103] Exemplarily, when the object of the user's touch operation is the new data synchronization service, and the touch operation is the new operation of the new data synchronization service, the data synchronization instance to be allocated can be determined first according to the number of data synchronization instances corresponding to each of the multiple data synchronization services from the data synchronization instances corresponding to each of the multiple data synchronization services; and the data synchronization instance to be allocated is determined as the data synchronization instance corresponding to the new data synchronization service.

[0104] Exemplarily, a new data synchronization service means that when the node information of the data synchronization service does not exist among the existing data synchronization service nodes of the registration server, the data synchronization service is determined to be a new data synchronization service.

[0105] For example, assume that there are three data synchronization services in the data synchronization server, namely Data Synchronization Service 1, Data Synchronization Service 2, and Data Synchronization Service 3, and Data Synchronization Service 1 corresponds to 1 data synchronization instance, Data Synchronization Service 2 corresponds to 2 data synchronization instances, and Data Synchronization Service 3 corresponds to 3 data synchronization instances. Additionally, if there is a new data synchronization service, when the touch operation is an addition operation for the new data synchronization service, the data server can first determine the number of data synchronization instances corresponding to each of Data Synchronization Service 1, Data Synchronization Service 2, and Data Synchronization Service 3, determine one of the data synchronization instances corresponding to Data Synchronization Service 3 as the data synchronization instance to be allocated, and determine one of the data synchronization instances corresponding to Data Synchronization Service 3 as the data synchronization instance corresponding to the new data synchronization service.

[0106] Exemplarily, after adding a new data synchronization service, the status of the new data synchronization instance can be updated correspondingly in the registration server, and the status of the new data synchronization service can be changed to the added status.

[0107] Exemplarily, when the object of the user's touch operation is the second idle data synchronization service among multiple data synchronization services and the touch operation is a decommissioning operation for the second idle data synchronization service, the second idle data synchronization service can be removed from the multiple data synchronization services, and the data synchronization instances corresponding to the second idle data synchronization service can be removed from the data synchronization instances corresponding to the multiple data synchronization services, so as to control the second idle data synchronization service to be decommissioned.

[0108] For example, assume that there are three data synchronization services in the data synchronization server, namely Data Synchronization Service 1, Data Synchronization Service 2, and Data Synchronization Service 3, and Data Synchronization Service 1 corresponds to 1 data synchronization instance, Data Synchronization Service 2 corresponds to 2 data synchronization instances, and Data Synchronization Service 3 corresponds to 3 data synchronization instances. If Data Synchronization Service 3 is in an idle state, then Data Synchronization Service 3 is recorded as the second idle data synchronization service. When the touch operation is a decommissioning operation for Data Synchronization Service 3, the data synchronization server can control Data Synchronization Service 1, Data Synchronization Service 2, and Data Synchronization Service 3 to respectively determine whether the decommissioned Data Synchronization Service 3 is itself. When Data Synchronization Service 3 is determined, Data Synchronization Service 3 is removed. Correspondingly, the data synchronization instances corresponding to Data Synchronization Service 3 are removed, so as to control the second idle data synchronization service to perform a decommissioning operation.

[0109] Exemplarily, after the second idle data synchronization service goes offline, the status of the second idle data synchronization service can be updated in the registration server correspondingly, and the status of the second idle data synchronization service can be changed to the offline status.

[0110] It can be understood that the data synchronization web page provided in this application is only illustrated by taking the six touch operations of the above-mentioned data synchronization service going online, data synchronization service adding, data synchronization service going offline, data synchronization instance going online, data synchronization instance adding, and data synchronization instance going offline as examples, but it does not mean that this application is only limited to this.

[0111] In this way, the user can directly perform touch operations on the data synchronization instance and / or data synchronization service on the data synchronization web page through touch operations, so as to control the relevant operations performed by the data synchronization service and / or data synchronization instance, thereby improving the user experience.

[0112] Figure 4 It is a schematic structural diagram of an exception handling device 40 provided in this application. Exemplarily, reference can be made to Figure 4 As shown, the exception handling device 40 may include:

[0113] A detection unit 401, configured to detect the current status of the data synchronization instances corresponding to each data synchronization service.

[0114] A processing unit 402, if it is detected that the current status of a target object is an abnormal status, determines a target data synchronization service from other data synchronization services according to the number of data synchronization instances corresponding to each of the other data synchronization services; where the object includes a data synchronization service and / or a data synchronization instance, and the other data synchronization services are the other data synchronization services except the data synchronization service indicated by the object among the multiple data synchronization services.

[0115] A control unit 403, configured to control the target data synchronization service to run the data synchronization instance indicated by the object.

[0116] Optionally, the processing unit 402 is specifically configured to determine the data synchronization service with the least number of corresponding data synchronization instances from other data synchronization services according to the number of data synchronization instances corresponding to each of the other data synchronization services; and determine the data synchronization service with the least number of corresponding data synchronization instances as the target data synchronization service.

[0117] Optionally, the processing unit 402 is specifically configured to determine the status of the object in the registration server corresponding to the object; if it is determined that the status of the object is the running status and the status of the object in the registration server is the removed status, then determine that the current status of the object is an abnormal status.

[0118] Optionally, the processing unit 402 is specifically configured to determine the operation type of the touch operation on the object in response to the user's touch operation on the web page of data synchronization; where the object includes a data synchronization service and / or a data synchronization instance; and perform corresponding control operations on the object according to the operation type.

[0119] Optionally, the processing unit 402 is specifically configured to determine the data synchronization service corresponding to the first idle data synchronization instance; and control the data synchronization service corresponding to the first idle data synchronization instance to run the first idle data synchronization instance.

[0120] Optionally, the processing unit 402 is specifically configured to determine the number of data synchronization instances corresponding to each of the multiple data synchronization services, and determine the data synchronization service with the least number of corresponding data synchronization instances from the multiple data synchronization services; and determine the new data synchronization instance as the data synchronization instance corresponding to the data synchronization service with the least number of corresponding data synchronization instances.

[0121] Optionally, the processing unit 402 is specifically configured to determine the data synchronization service corresponding to the second idle data synchronization instance; and remove the second idle data synchronization instance from the data synchronization instances corresponding to the data synchronization service corresponding to the second idle data synchronization instance.

[0122] Optionally, the processing unit 402 is specifically configured to control the first idle data synchronization service to run the data synchronization instance corresponding to the first idle data synchronization service.

[0123] Optionally, the processing unit 402 is specifically configured to determine the data synchronization instance to be allocated from the data synchronization instances corresponding to each of the multiple data synchronization services according to the number of data synchronization instances corresponding to each of the multiple data synchronization services; and determine the data synchronization instance to be allocated as the data synchronization instance corresponding to the new data synchronization service.

[0124] Optionally, the processing unit 402 is specifically configured to remove the second idle data synchronization service from the multiple data synchronization services, and remove the data synchronization instances corresponding to the second idle data synchronization service from the data synchronization instances corresponding to the multiple data synchronization services.

[0125] The exception handling device 40 provided by the present application can execute the technical solution of the exception handling method in any of the above embodiments. The implementation principle and beneficial effects are similar to those of the exception handling method. For details, please refer to the implementation principle and beneficial effects of the exception handling method, which will not be elaborated here.

[0126] Figure 5 It is a schematic structural diagram of an electronic device 50 provided by the present application. For example, please refer to Figure 5 As shown, the electronic device 50 may include a processor 501 and a memory 502, where:

[0127] A memory for storing a computer program.

[0128] A processor for reading the computer program stored in the memory and executing the exception handling method in any of the above embodiments according to the computer program in the memory.

[0129] Optionally, the memory 502 can be either independent or integrated with the processor 501. When the memory 502 is a device independent of the processor 501, the electronic device 50 may further include: a bus for connecting the memory 502 and the processor 501.

[0130] Optionally, this embodiment further includes: a communication interface, which can be connected to the processor 501 through a bus. The processor 501 can control the communication interface to implement the functions of obtaining and sending of the above electronic device 50.

[0131] The electronic device 50 shown in this application can execute the technical solution of the exception handling method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the exception handling method. For details, refer to the implementation principle and beneficial effects of the exception handling method, which will not be elaborated here.

[0132] This application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, the technical solution of the exception handling method in any of the above embodiments is implemented. Its implementation principle and beneficial effects are similar to those of the exception handling method. For details, refer to the implementation principle and beneficial effects of the exception handling method, which will not be elaborated here.

[0133] This application also provides a computer program product, including a computer program. When the computer program is executed by the processor, the technical solution of the exception handling method in any of the above embodiments is implemented. Its implementation principle and beneficial effects are similar to those of the exception handling method. For details, refer to the implementation principle and beneficial effects of the exception handling method, which will not be elaborated here.

[0134] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections between each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical or other forms.

[0135] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, the functional units in each embodiment of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units.

[0136] The above integrated modules implemented in the form of software functional modules can be stored in a computer-readable storage medium. The above software functional modules stored in a storage medium include several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods in each embodiment of the present application.

[0137] It should be understood that the above processor can be a central processing unit (English: Central Processing Unit, abbreviated as: CPU), and can also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated as: DSP), application specific integrated circuits (English: Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0138] The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory, and can also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disc, etc.

[0139] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience in representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.

[0140] The above computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disc. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0141] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. An exception handling method, characterized in that, Applied to a data synchronization server, where there are multiple data synchronization services in the data synchronization server, and each data synchronization service corresponds to at least one data synchronization instance. The method includes: Detect the current status of each data synchronization service and the data synchronization instances corresponding to each data synchronization service; If it is detected that the current status of a target object is an abnormal status, then determine, according to the number of data synchronization instances corresponding to other data synchronization services respectively, the data synchronization service with the least number of corresponding data synchronization instances from the other data synchronization services; determine the data synchronization service with the least number of corresponding data synchronization instances as the target data synchronization service; where the target object includes a data synchronization service and / or a data synchronization instance, and the other data synchronization services are the other data synchronization services among the multiple data synchronization services except the data synchronization service indicated by the target object; Control the target data synchronization service to run the data synchronization instance indicated by the target object.

2. The method according to claim 1, wherein The method further includes: Determine the status of the target object in the registration server corresponding to the object; If it is determined that the status of the target object is a running status and the status of the target object in the registration server is a removed status, then determine the current status of the target object as the abnormal status.

3. The method according to claim 1 or 2, characterized in that, The method further includes: In response to a touch operation by a user on a web page for data synchronization, determine the operation type of the touch operation for the target object; Perform a corresponding control operation on the target object according to the operation type.

4. The method according to claim 3, wherein The target object is the first idle data synchronization instance among the data synchronization instances corresponding to the multiple data synchronization services, and the touch operation is the online operation of the first idle data synchronization instance; Wherein, performing a corresponding control operation on the target object according to the operation type includes: Determine the data synchronization service corresponding to the first idle data synchronization instance; Control the data synchronization service corresponding to the first idle data synchronization instance to run the first idle data synchronization instance.

5. The method according to claim 3, wherein The target object is a new data synchronization instance, and the touch operation is the addition operation of the new data synchronization instance; Wherein, performing a corresponding control operation on the target object according to the operation type includes: Determine the number of data synchronization instances corresponding to each of the multiple data synchronization services respectively, and determine the data synchronization service with the least number of corresponding data synchronization instances from the multiple data synchronization services; Determine the new data synchronization instance as the data synchronization instance corresponding to the data synchronization service with the least number of corresponding data synchronization instances.

6. The method according to claim 3, wherein The target object is the second idle data synchronization instance among the data synchronization instances corresponding to the multiple data synchronization services, and the touch operation is the offline operation of the second idle data synchronization instance; Wherein, performing a corresponding control operation on the target object according to the operation type includes: Determine the data synchronization service corresponding to the second idle data synchronization instance; Exclude the second idle data synchronization instance from the data synchronization instances corresponding to the data synchronization service corresponding to the second idle data synchronization instance.

7. The method according to claim 3, wherein The target object is the first idle data synchronization service among the multiple data synchronization services, and the touch operation is the online operation of the first idle data synchronization service; Among them, the performing a corresponding control operation on the target object according to the operation type includes: Control the first idle data synchronization service to run the data synchronization instance corresponding to the first idle data synchronization service.

8. The method according to claim 3, characterized in that, The target object is a new data synchronization service, and the touch operation is the addition operation of the new data synchronization service; Among them, the performing a corresponding control operation on the target object according to the operation type includes: Determine the data synchronization instances to be allocated from the data synchronization instances corresponding to each of the multiple data synchronization services according to the number of data synchronization instances corresponding to each of the multiple data synchronization services; Determine the data synchronization instances to be allocated as the data synchronization instances corresponding to the new data synchronization service.

9. The method according to claim 3, wherein The target object is the second idle data synchronization service among the multiple data synchronization services, and the touch operation is the offline operation of the second idle data synchronization service; Among them, the performing a corresponding control operation on the target object according to the operation type includes: Exclude the second idle data synchronization service from the multiple data synchronization services, and exclude the data synchronization instances corresponding to the second idle data synchronization service from the data synchronization instances corresponding to the multiple data synchronization services.

10. An exception handling device, characterized in that, Applied to a data synchronization server, where there are multiple data synchronization services in the data synchronization server, and each data synchronization service corresponds to at least one data synchronization instance. The exception handling device includes: A detection unit for detecting the current status of each data synchronization service and the data synchronization instances corresponding to each data synchronization service; among them, the current status includes a running status or an idle status; A processing unit, if it detects that the current status of a target object is an abnormal status, then determines the data synchronization service with the least number of corresponding data synchronization instances from the other data synchronization services according to the number of data synchronization instances corresponding to each of the other data synchronization services; determines the data synchronization service with the least number of corresponding data synchronization instances as the target data synchronization service; among them, the target object includes a data synchronization service and / or a data synchronization instance, and the other data synchronization services are the other data synchronization services among the multiple data synchronization services except the data synchronization service indicated by the target object; A control unit for controlling the target data synchronization service to run the data synchronization instance indicated by the target object.

11. An electronic device, characterized in that, Includes a processor and a memory; among them, The memory is used to store a computer program; The processor is used to read the computer program stored in the memory and execute the exception handling method according to any one of claims 1-9 above based on the computer program in the memory.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the exception handling method described in any one of the above claims 1-9 is implemented.

13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the exception handling method described in any one of the above claims 1-9 is implemented.

Citation Information

Patent Citations

  • Real-time service system based on Elasticsearch

    CN111460024A

  • Graph management method and device, data storage method and device, data query method and device and storage medium

    CN112035579A