Linkage evaluation method, linkage evaluation device, electronic device, and storage medium
By acquiring and parsing the information configuration table during the linkage between the primary site and the backup site, and evaluating the linkage between the switchover control terminal and the replication product terminal, the problem of message accuracy not being guaranteed in the high availability of dual-active sites is solved, and high availability guarantee for dual-active sites is achieved.
Patent Information
- Application Number
- CN202210874293.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-22
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2042-07-22
AI Technical Summary
In a dual-active site high availability deployment, when the switching control terminal obtains site switching process messages through a complex communication mechanism, it is impossible to determine the accuracy of the returned messages, which makes it impossible to guarantee the high availability of the dual-active site.
During the linkage process between the primary site and the backup site, the information configuration tables generated by the switching control terminal and the replication product terminal are obtained. The first target information and the second target information are parsed respectively. The linkage assessment result is determined based on the parsing result. Through the linkage assessment between the switching control terminal and the replication product terminal, the linkage monitoring and inspection capabilities are improved.
It enables the assessment of the linkage between the switching control terminal and the replication product terminal, ensuring the high availability of dual-active sites, and providing timely feedback on the linkage effect and a basis for handling anomalies.
Smart Images

Figure CN115185802B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of big data and artificial intelligence, in particular to a linkage evaluation method, a linkage evaluation device, an electronic device, a storage medium and a program product. BACKGROUND
[0002] With the development of big data and artificial intelligence technologies, a host computer, i.e. a large computer, has high reliability, high availability and high serviceability. In terms of high availability, the host computer has high-availability protection of subsystems, high-availability protection of disks and high-availability protection of sites.
[0003] In the deployment of site high availability, the influence of site failure is eliminated by deploying a dual-active site, where dual-active is a computer disaster recovery solution that saves resources. In the process of implementing the present disclosure, it is found that after decoupling in the process of site high availability, the switching control end obtains site switching process messages through a complex communication mechanism, but the accuracy of the messages returned in this process cannot be determined, so the safety and reliability of the switching result cannot be guaranteed, and thus the high availability of the dual-active site cannot be guaranteed. SUMMARY
[0004] In view of the above problems, the present disclosure provides a linkage evaluation method, a linkage evaluation device, an electronic device, a storage medium and a program product.
[0005] According to a first aspect of the present disclosure, a linkage evaluation method is provided, comprising:
[0006] In the linkage process of a primary site and a backup site, in the case where it is determined that the primary site has failed, an information configuration table generated by a switching control end and a replication product end is obtained, wherein the switching control end is used to control the replication product end; the replication product end is used to replicate data generated by the primary site to the backup site; the information configuration table includes first target information generated by the switching control end and second target information generated by the replication product end;
[0007] The first target information and the second target information are respectively parsed to obtain a first parsing result and a second parsing result; and
[0008] According to the first parsing result and the second parsing result, a linkage evaluation result is determined.
[0009] According to an embodiment of the present disclosure, the first target information and the second target information are respectively parsed to obtain a first parsing result and a second parsing result, comprising:
[0010] A first time identifier of the first target information and a second time identifier of the second target information are respectively extracted;
[0011] According to the first time identifier, the first parsing result is determined; and
[0012] According to the second time identifier, a second analysis result is determined.
[0013] According to an embodiment of the present disclosure, the linkage evaluation result is determined according to the first analysis result and the second analysis result, including:
[0014] In a case where the first analysis result represents that the switching control end has abnormal linkage in the linkage process, a first linkage evaluation value is obtained according to a preset initial linkage evaluation value;
[0015] In a case where the second analysis result represents that the replication product end has abnormal linkage in the linkage process, a second linkage evaluation value is obtained according to the first linkage evaluation value; and
[0016] The linkage evaluation result is determined according to the second linkage evaluation value.
[0017] According to an embodiment of the present disclosure, the linkage evaluation result is determined according to the first analysis result and the second analysis result, further including:
[0018] In a case where the first analysis result represents that the switching control end has no abnormal linkage in the linkage process, and the second analysis result represents that the replication product end has no abnormal linkage in the linkage process, a third linkage evaluation value is obtained according to a preset rule and a preset initial linkage evaluation value; and
[0019] The linkage evaluation result is determined according to the third linkage evaluation value.
[0020] According to an embodiment of the present disclosure, the replication product end includes N replication resource groups, N being an integer greater than or equal to 2; the information configuration table further includes third target information generated by the replication resource groups in the linkage process and the number of the replication resource groups;
[0021] The linkage evaluation result is determined according to the third linkage evaluation value, including:
[0022] In a case where the third linkage evaluation value matches the preset initial linkage evaluation value, in a case where the number of the replication resource groups does not match the N replication resource groups, a fourth linkage evaluation value is obtained according to the third linkage evaluation value; and
[0023] The linkage evaluation result is determined according to the fourth linkage evaluation value.
[0024] According to an embodiment of the present disclosure, the first target information includes first sub-information and second sub-information; the second target information includes third sub-information and fourth sub-information;
[0025] The method further includes:
[0026] acquire first sub-information generated when the switching control end sends a stop command to the replication product end in a case where it is determined that the primary site has failed;
[0027] acquire third sub-information generated after the replication product end receives the stop command;
[0028] acquire fourth sub-information generated after all replication resource groups of the replication product end complete the stop command;
[0029] acquire second sub-information generated after the switching control end receives a completion notification sent by the replication product end;
[0030] store the first sub-information, the second sub-information, the third sub-information, and the fourth sub-information in an information configuration table.
[0031] According to an embodiment of the present disclosure, the method further includes:
[0032] According to the information configuration table and the linkage evaluation result, an evaluation result report text is obtained.
[0033] A second aspect of the present disclosure provides a linkage evaluation device, comprising:
[0034] The first acquisition module is configured to, in a linkage process of a primary site and a backup site, acquire an information configuration table generated by a switching control end and a replication product end in a case where it is determined that the primary site has failed, wherein the switching control end is configured to control the replication product end; the replication product end is configured to replicate data generated by the primary site to the backup site; and the information configuration table includes first target information generated by the switching control end and second target information generated by the replication product end.
[0035] The analysis module is configured to analyze the first target information and the second target information respectively to obtain first analysis results and second analysis results; and
[0036] The evaluation module is configured to determine a linkage evaluation result according to the first analysis results and the second analysis results.
[0037] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the above-mentioned linkage evaluation method.
[0038] A fourth aspect of the present disclosure further provides a computer-readable storage medium having stored executable instructions, which, when executed by a processor, cause the processor to execute the above-mentioned linkage evaluation method.
[0039] The fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above-mentioned linkage evaluation method.
[0040] According to the embodiments of the present disclosure, in the case of failure of the primary site, the collected information generated by the switching control end and the replication product end is analyzed to obtain the linkage evaluation result, thereby realizing the evaluation of the linkage between the switching control end and the replication product end. Through the evaluation of the linkage between the switching control end and the replication product end, the linkage monitoring and checking capability in the host dual-active is improved, the timely feedback of the dual-active linkage effect is realized, and thus the high availability of the dual-active site is effectively guaranteed. BRIEF DESCRIPTION OF DRAWINGS
[0041] The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments of the present disclosure taken in conjunction with the accompanying drawings, in which:
[0042] Figure 1 A scenario diagram of application of the linkage evaluation method, the linkage evaluation apparatus, the electronic device, the storage medium and the program product according to the embodiments of the present disclosure is schematically shown;
[0043] Figure 2 A flowchart of the linkage evaluation method according to the embodiments of the present disclosure is schematically shown;
[0044] Figure 3 A flowchart of the method of analyzing the first target information and the second target information to obtain the first analysis result and the second analysis result according to the embodiments of the present disclosure is schematically shown;
[0045] Figure 4 A flowchart of the method of determining the linkage evaluation result according to the first analysis result and the second analysis result according to the embodiments of the present disclosure is schematically shown;
[0046] Figure 5 A flowchart of the linkage evaluation method according to another embodiment of the present disclosure is schematically shown;
[0047] Figure 6 A structure block diagram of the linkage evaluation apparatus according to the embodiments of the present disclosure is schematically shown; and
[0048] Figure 7 A block diagram of the electronic device suitable for implementing the linkage evaluation method according to the embodiments of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0049] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood, however, that the description is merely exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description of the embodiments of the present disclosure, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. However, it would be apparent to those skilled in the art that the embodiments of the present disclosure can be practiced without these specific details. In other instances, well-known structures and methods are not described in detail in order to avoid obscuring the concepts of the present disclosure.
[0050] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the present disclosure. As used herein, the term "includes" and tautological expressions thereof, such as "including," means the inclusion of but not limited to, and is not meant to be construed as a functionally limiting the scope of the embodiments.
[0051] All terms used herein (including technical and scientific terms) have the meanings commonly understood by one of ordinary skill in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having meanings consistent with the context of the specification, and should not be interpreted in an idealized or overly formal manner.
[0052] In the case of using expressions similar to "at least one of A, B, and C, etc.", it should generally be interpreted to include at least one of A, B, or C, or a combination thereof (e.g., systems having at least one of A, B, or C, should include but not be limited to systems that have A alone, systems that have B alone, systems that have C alone, systems that have both A and B, systems that have both A and C, systems that have both B and C, and / or systems that have A, B, and C, etc.).
[0053] In the technical solutions of the present disclosure, the acquisition, storage, and application of user personal information comply with relevant laws and regulations, necessary security measures are taken, and the public order and good customs are not violated.
[0054] In the technical solutions of the embodiments of the present disclosure, the authorization or consent of the user is obtained before the user personal information is acquired or collected.
[0055] It is found in the process of implementing the present disclosure that, after decoupling in the process of the high availability of the dual-active site, the switching control end acquires site switching process messages through a complex communication mechanism, but the accuracy of the message return cannot be determined in this process, so the safety and reliability of the switching result cannot be guaranteed, and thus the high availability of the dual-active site cannot be guaranteed.
[0056] The embodiments of this disclosure provide a linkage assessment method, including: during the linkage process between a primary site and a backup site, if it is determined that the primary site has failed, obtaining an information configuration table generated by a switching control terminal and a replication product terminal, wherein the switching control terminal is used to control the replication product terminal; the replication product terminal is used to copy data generated by the primary site to the backup site; the information configuration table includes first target information generated by the switching control terminal and second target information generated by the replication product terminal; parsing the first target information and the second target information respectively to obtain a first parsing result and a second parsing result; and determining a linkage assessment result based on the first parsing result and the second parsing result.
[0057] Figure 1 The diagram illustrates application scenarios of the linkage assessment method, linkage assessment device, electronic device, storage medium, and program product according to embodiments of the present disclosure.
[0058] like Figure 1 As shown, application scenario 100 according to this embodiment may include terminal devices 101, 102, and 103, network 104, and server 105. Network 104 is used as a medium to provide a communication link between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.
[0059] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).
[0060] Terminal devices 101, 102, and 103 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.
[0061] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using terminal devices 101, 102, and 103 (for example only). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.
[0062] It should be noted that the linkage evaluation method provided by the embodiments of the present disclosure can generally be executed by the server 105. Correspondingly, the linkage evaluation apparatus provided by the embodiments of the present disclosure can generally be arranged in the server 105. The linkage evaluation method provided by the embodiments of the present disclosure can also be executed by a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and / or the server 105. Correspondingly, the linkage evaluation apparatus provided by the embodiments of the present disclosure can also be arranged in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and / or the server 105.
[0063] The linkage evaluation method provided by the embodiments of the present disclosure can also be executed by the terminal devices 101, 102, 103. Correspondingly, the linkage evaluation apparatus provided by the embodiments of the present disclosure can generally also be arranged in the terminal devices 101, 102, 103. The linkage evaluation method provided by the embodiments of the present disclosure can also be executed by other terminals different from the terminal devices 101, 102, 103. Correspondingly, the linkage evaluation apparatus provided by the embodiments of the present disclosure can also be arranged in other terminals different from the terminal devices 101, 102, 103.
[0064] It should be understood that, Figure 1 The number of terminal devices, networks and servers in the above scenario is only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
[0065] The linkage evaluation method of the embodiments of the present disclosure will be described in detail below based on the scenario described above. Figure 1 Figures 2 to 5 The linkage evaluation method of the embodiments of the present disclosure will be described in detail below based on the scenario described above.
[0066] Figure 2 A flowchart of the linkage evaluation method according to the embodiments of the present disclosure is schematically shown.
[0067] As shown in Figure 2 The linkage evaluation method 200 of this embodiment includes operations S201-S203.
[0068] In operation S201, in the linkage process between the primary site and the backup site, in the case where it is determined that the primary site has failed, an information configuration table generated by a switching control end and a replication product end is acquired, wherein the switching control end is used to control the replication product end; the replication product end is used to replicate the data generated by the primary site to the backup site; the information configuration table includes first target information generated by the switching control end and second target information generated by the replication product end.
[0069] According to the embodiments of the present disclosure, the first target information can represent the information generated by the switching control end. The second target information can represent the information generated by the replication product end.
[0070] For example, in a case where it is determined that the primary site fails, the switch control end can send a stop command to the replication product end. The replication product end can receive the stop command sent by the switch control end. The replication product end can send a stop command completion to the switch control end after determining that the stop command has been completed. The switch control end can receive the stop command completion sent by the replication product end. The first target information can represent information corresponding to the sending and receiving of the switch control end. The second target information can represent information corresponding to the receiving and sending of the replication product end.
[0071] In operation S202, the first target information and the second target information are parsed respectively to obtain a first parsing result and a second parsing result.
[0072] According to an embodiment of the present disclosure, the first target information and the second target information can include corresponding time identifiers. The first parsing result and the second parsing result can be obtained by parsing the time identifiers corresponding to the first target information and the second target information respectively. The first parsing result and the second parsing result can respectively represent the parsing results of the time identifiers corresponding to the first target information and the second target information.
[0073] For example, the time identifier can be represented as a time stamp. The time stamp of the first target information can be parsed according to the first target information. If the first target information is information corresponding to the sending and receiving of the switch control end, the time stamp is not a null value. If the first target information is not information corresponding to the sending and receiving of the switch control end, the time stamp is a null value. The time stamp of the second target information can be parsed according to the second target information. If the second target information is information corresponding to the receiving and sending of the replication product end, the time stamp is not a null value. If the second target information is not information corresponding to the receiving and sending of the replication product end, the time stamp is a null value.
[0074] In operation S203, a linkage evaluation result is determined according to the first parsing result and the second parsing result.
[0075] According to an embodiment of the present disclosure, the linkage evaluation result can represent whether the linkage between the switch control end and the replication product end is normal.
[0076] For example, in a case where the first parsing result can represent that the time stamp of the first target information is not a null value and the second parsing result can represent that the time stamp of the second target information is also not a null value, a linkage evaluation result that the linkage between the switch control end and the replication product end is normal can be obtained. In a case where the first parsing result can represent that the time stamp of the first target information is not a null value and the second parsing result can represent that the time stamp of the second target information is a null value, a linkage evaluation result that the linkage between the switch control end and the replication product end is not normal can be obtained.
[0077] According to the embodiment of the present disclosure, in the case that the master site fails, the collected information generated by the switching control end and the replication product end is parsed to obtain a linkage evaluation result, thereby realizing evaluation of the linkage of the switching control end and the replication product end. Through the evaluation of the linkage between the switching control end and the replication product end, the linkage monitoring and checking capability in the host dual-active is improved, effective data and judgment basis are provided for evaluating the dual-active high-availability performance, timely feedback of the dual-active linkage effect is realized, and thus the high-availability guarantee work of the dual-active site is effectively completed.
[0078] It should be noted that the present disclosure considers that the switching control end is a communication hub in the host dual-active system, and the operation behaviors of the control replication product end, the master site and the backup site in the dual-active switching. In the master-backup switching process, the data replication from the master site to the backup site is stopped, which can avoid data loss and production problems caused by dual-active switching, and thus compared with the evaluation of the linkage between the switching control end and the master site or the backup site, the evaluation of the linkage between the switching control end and the dual-active replication product end has more practical application significance.
[0079] Figure 3 A method flowchart for respectively parsing the first target information and the second target information to obtain the first parsing result and the second parsing result according to the embodiment of the present disclosure is schematically shown.
[0080] As shown in Figure 3 The method 300 for respectively parsing the first target information and the second target information to obtain the first parsing result and the second parsing result according to the embodiment can include operation S301 to operation S303.
[0081] In operation S301, a first time identifier of the first target information and a second time identifier of the second target information are respectively extracted.
[0082] According to the embodiment of the present disclosure, the time identifier can represent whether the switching control end or the replication product end has truly generated the target information.
[0083] For example, the switching control end or the replication product end generates the target information, and the time identifier can be a normal time stamp. The switching control end or the replication product end does not generate the target information, and the time identifier can be a time stamp of zero.
[0084] In operation S302, the first parsing result is determined according to the first time identifier.
[0085] According to the embodiment of the present disclosure, the first time identifier can represent whether the switching control end has truly generated the first target information. The first parsing result can represent whether the time stamp of the first target information is normal.
[0086] In operation S303, the second parsing result is determined according to the second time identifier.
[0087] According to embodiments of this disclosure, the second time identifier can characterize whether the copying product has actually generated the second target information. The second parsing result can characterize whether the timestamp of the second target information is normal.
[0088] According to the embodiments of this disclosure, determining the parsing result based on the time identifier of the target information is beneficial for determining whether there is a normal linkage process between the switching control terminal and the copying product terminal.
[0089] Figure 4 The flowchart illustrates a method for determining a linkage evaluation result based on a first analysis result and a second analysis result according to an embodiment of the present disclosure.
[0090] like Figure 4 As shown, the method 400 for determining the linkage evaluation result based on the first analysis result and the second analysis result in this embodiment may include operations S401 to S403.
[0091] In operation S401, if it is determined that the first analysis result indicates that the switching control terminal has abnormal linkage during the linkage process, the first linkage evaluation value is obtained according to the preset initial linkage evaluation value.
[0092] According to embodiments of this disclosure, the preset initial linkage evaluation value can be determined based on actual evaluation needs. If the first analysis result indicates that abnormal linkage occurs at the switching control terminal during the linkage process, the value to be deducted for the abnormal linkage can be subtracted from the preset initial linkage evaluation value to obtain the first linkage evaluation value. The value to be deducted for the abnormal linkage can also be determined based on actual evaluation needs.
[0093] For example, the initial linkage evaluation value can be set to 100, and the value to be deducted in case of abnormal linkage can be set to 20, so the first linkage evaluation value can be 80.
[0094] In operation S402, if it is determined that the second analysis result indicates that abnormal linkage has occurred in the linkage process of the copy product end, the second linkage evaluation value is obtained based on the first linkage evaluation value.
[0095] According to an embodiment of this disclosure, when the second analysis result indicates that abnormal linkage occurs during the linkage process on the copy product side, the value to be deducted for the abnormal linkage can be subtracted from the first linkage evaluation value obtained in operation S401 to obtain the second linkage evaluation value.
[0096] For example, when the first linkage evaluation value obtained in operation S401 is 80, and the value to be deducted in the case of abnormal linkage is 20, the second linkage evaluation value can be 60.
[0097] In operation S403, the linkage evaluation result is determined according to the second linkage evaluation value.
[0098] According to the embodiments of the present disclosure, the linkage evaluation result can be determined according to the second linkage evaluation value obtained in operation S402. The linkage evaluation result can be divided into grades according to the actual linkage evaluation value.
[0099] For example, the grades of the linkage evaluation result can include excellent, good, and poor. The excellent grade can indicate that no abnormal linkage occurs in the linkage process. The good grade can indicate that although abnormal linkage occurs in the linkage process, no exception handling is required. The poor grade can indicate that abnormal linkage occurs in the linkage process, and the abnormal reason needs to be determined and handled. When the second linkage evaluation value obtained in operation S401 is 60, the linkage evaluation result can be determined as poor, and the abnormal reason needs to be determined and handled.
[0100] According to the embodiments of the present disclosure, by analyzing the analysis result, in the case of abnormal linkage, the final linkage evaluation value is determined according to the preset initial linkage evaluation value, and the linkage evaluation result is obtained according to the final linkage evaluation value, which is beneficial to determine the analysis of the abnormal reason in the case of abnormal linkage between the switching control end and the replication product end, and further facilitate the abnormal handling.
[0101] Figure 5 A flowchart of a linkage evaluation method according to another embodiment of the present disclosure is schematically shown.
[0102] As Figure 5 shown, the linkage evaluation method 500 of this embodiment can include operation S501 to operation S505.
[0103] It should be noted that the first target information can include first sub-information and second sub-information; and the second target information can include third sub-information and fourth sub-information.
[0104] In operation S501, the first sub-information generated when the switching control end sends a stop command to the replication product end in the case of determining that the master site fails is obtained.
[0105] According to the embodiment of the present disclosure, the collection script can be deployed on the switching control end and the replication product end of the host end, and information of switching start and end can be configured to control the opening and closing of the collection script. When the information of switching start appears on the switching control end, the collection script deployed on the switching control end is automatically triggered to start execution. When the information of switching end appears on the switching control end, the collection script deployed on the switching control end is automatically triggered to stop execution. The first sub-information generated when the switching control end sends a stop command to the replication product end in the case of determining that the master site has a failure can be obtained by using the collection script. The first sub-information can include a first sub-information text and a time identifier corresponding to the first sub-information. For example, the first sub-information text can be represented as GEO4602I.
[0106] According to the embodiment of the present disclosure, the one-key automatic triggering instruction can effectively improve the linkage checking efficiency of the switching control end and the replication product end in the dual-active switching, and further change the manual experience of the tester to the automatic function.
[0107] In operation S502, third sub-information generated after the replication product end receives the stop command is obtained.
[0108] According to the embodiment of the present disclosure, after the replication product end receives the stop command, the collection script deployed on the replication product end can start execution and obtain the third sub-information. The third sub-information can include a third sub-information text and a time identifier corresponding to the third sub-information. For example, the third sub-information text can be represented as ASN7332I.
[0109] In operation S503, fourth sub-information generated after all replication resource groups of the replication product end complete the stop command is obtained.
[0110] According to the embodiment of the present disclosure, the third target information can be generated after the replication resource groups of the replication product end complete the stop command. The third target information can include a third target information text and a time identifier corresponding to the third target information. The third target information text can be represented as ASN7227I. The collection script deployed on the replication product end can obtain the third target information, and the collection script stops execution until all replication resource groups complete the stop command. The fourth sub-information can include a fourth sub-information text and a time identifier corresponding to the fourth sub-information. For example, the fourth sub-information text can be represented as ASN7109I.
[0111] In operation S504, second sub-information generated after the switching control end receives the completed notification sent by the replication product end is obtained.
[0112] According to the embodiment of the present disclosure, after the second sub-information generated by the monitoring script deployed on the switching control end after obtaining the completion notification sent by the replication product end, the information of switching end can appear on the switching control end, which can automatically trigger the monitoring script deployed on the switching control end to stop execution. The second sub-information can include a second sub-information text and a time identifier corresponding to the second sub-information. For example, the second sub-information text can be represented as GEO1582I.
[0113] It should be noted that the time identifier appearing in operation S501 to operation S504 can be represented by the timestamp when the information text is generated, and the time identifier can be represented as 0 when the information text is not generated.
[0114] In operation S505, the first sub-information, the second sub-information, the third sub-information and the fourth sub-information are stored in the information configuration table.
[0115] According to the embodiment of the present disclosure, the first sub-information, the second sub-information, the third sub-information and the fourth sub-information can be written into the information configuration table. For example, according to the timestamp when the information text is generated, according to the time sequence sorting, there can be GEO4602I≤ASN7332I<ASN7227I<ASN7109I≤GEO1582I.
[0116] According to the embodiment of the present disclosure, by obtaining the linkage information of the switching control end and the dual-active replication product end in the linkage process of the primary site and the backup site, the information configuration table is obtained, and the information generated by the switching control end and the replication product end is separated, which is beneficial to analyze the related linkage information and further evaluate the linkage.
[0117] According to the embodiment of the present disclosure, according to the first analysis result and the second analysis result, the linkage evaluation result is determined, which can also include: in the case that the first analysis result represents that the switching control end does not appear abnormal linkage in the linkage process, and the second analysis result represents that the replication product end does not appear abnormal linkage in the linkage process, according to the preset rule and the preset initial linkage evaluation value, a third linkage evaluation value is obtained; and according to the third linkage evaluation value, the linkage evaluation result is determined.
[0118] According to the embodiment of the present disclosure, the preset rule can be determined according to the timestamp of the target information generated by the switching control end and the replication product end. In the case that neither of the analysis results appears abnormal linkage, it can be determined whether the first target information and the second target information satisfy the preset rule. In the case that the preset rule is not satisfied, the third linkage evaluation value can be obtained by deducting the value required to be deducted in the case that the preset rule is not satisfied on the basis of the preset initial linkage evaluation value. The value required to be deducted in the case that the preset rule is not satisfied can also be determined according to the actual evaluation requirement.
[0119] For example, the preset rule can be a sequence of time for the switching control end and the replication product end to generate target information, such as: first sub-information ≤ second sub-information < third sub-information ≤ fourth sub-information.
[0120] According to the embodiments of the present disclosure, in the case of normal linkage, a final linkage evaluation value is determined according to the preset rule and the preset initial linkage evaluation value, and a linkage evaluation result is obtained according to the linkage evaluation value, thereby further ensuring the credibility of the linkage evaluation result between the switching control end and the replication product end.
[0121] According to the embodiments of the present disclosure, the replication product end includes N replication resource groups, and N is an integer greater than or equal to 2; the information configuration table can further include third target information generated by the replication resource groups in the linkage process and the number of replication resource groups.
[0122] In the case where the third linkage evaluation value matches the preset initial linkage evaluation value, in the case where the number of replication resource groups does not match the N replication resource groups, a fourth linkage evaluation value is obtained according to the third linkage evaluation value; and the linkage evaluation result is determined according to the fourth linkage evaluation value.
[0123] According to the embodiments of the present disclosure, when the third linkage evaluation value is the same as the preset initial linkage evaluation value, it can be determined that the third linkage evaluation value matches the preset initial linkage evaluation value. When the number of replication resource groups is the same as the N replication resource groups, it can be determined that the number of replication resource groups matches the N replication resource groups. When the number of replication resource groups matches the N replication resource groups, it can be determined that, in the linkage process, the third target information is not generated by all the N replication resource groups, and there is a replication resource group that does not complete the stop command.
[0124] According to the embodiments of the present disclosure, the fourth linkage evaluation value can be obtained by deducting a value that needs to be deducted in the case where the number of replication resource groups does not match the N replication resource groups from the third linkage evaluation value.
[0125] For example, the preset initial linkage evaluation value can be 100, the third linkage evaluation value can also be 100, and the value that needs to be deducted in the case where the number of replication resource groups does not match the N replication resource groups can be 20, so the fourth linkage evaluation value can be 80.
[0126] According to the embodiment of the present disclosure, in the case of normal linkage and in the case of meeting the preset rule, the third linkage evaluation value matches the preset initial linkage evaluation value. In the case of normal linkage and in the case of not meeting the preset rule, the linkage evaluation value needs to be determined again to obtain the linkage evaluation result, the linkage evaluation result between the control end and the replication product end is switched more accurately, and the evaluation credibility is improved.
[0127] According to still another embodiment of the present disclosure, the linkage evaluation method can further include:
[0128] According to the information configuration table and the linkage evaluation result, an evaluation result report text is obtained.
[0129] According to the embodiment of the present disclosure, the information configuration table and the linkage evaluation result are displayed in the form of an evaluation result report text, the visualization of the linkage evaluation is realized, the abnormal situation in the linkage process is clear, and the abnormality is easy to handle.
[0130] Based on the above linkage evaluation method, the present disclosure further provides a linkage evaluation device. The following will be described in detail in combination with Figure 6 the device.
[0131] Figure 6 The structure block diagram of the linkage evaluation device according to the embodiment of the present disclosure is schematically shown.
[0132] As Figure 6 shown, the linkage evaluation device 600 of the embodiment includes a first acquisition module 610, an analysis module 620, and an evaluation module 630.
[0133] The first acquisition module 610 is configured to acquire an information configuration table generated by a control end and a replication product end in the case of determining that a master site fails in the linkage process of the master site and a backup site, wherein the control end is configured to control the replication product end; the replication product end is configured to replicate data generated by the master site to the backup site; and the information configuration table includes first target information generated by the control end and second target information generated by the replication product end. In an embodiment, the first acquisition module 610 can be configured to perform the operation S201 described above, and details are not repeated here.
[0134] The analysis module 620 is configured to analyze the first target information and the second target information respectively to obtain a first analysis result and a second analysis result. In an embodiment, the analysis module 620 can be configured to perform the operation S202 described above, and details are not repeated here.
[0135] The evaluation module 630 is configured to determine the linkage evaluation result according to the first analysis result and the second analysis result. In an embodiment, the evaluation module 630 can be configured to perform the operation S203 described above, and details are not described herein again.
[0136] According to an embodiment of the present disclosure, the linkage evaluation device 600 can further include a second acquisition module, a third acquisition module, a fourth acquisition module, a fifth acquisition module and a storage module.
[0137] The second acquisition module is configured to acquire first sub-information generated when the switching control end sends a stop command to the replication product end in the case where it is determined that the master site has failed.
[0138] The third acquisition module is configured to acquire third sub-information generated after the replication product end receives the stop command.
[0139] The fourth acquisition module is configured to acquire fourth sub-information generated after all replication resource groups of the replication product end complete the stop command.
[0140] The fifth acquisition module is configured to acquire second sub-information generated after the switching control end receives the completion notification sent by the replication product end.
[0141] The storage module is configured to store the first sub-information, the second sub-information, the third sub-information and the fourth sub-information in an information configuration table.
[0142] According to an embodiment of the present disclosure, the linkage evaluation device 600 can further include a result display module.
[0143] The result display module is configured to obtain an evaluation result report text according to the information configuration table and the linkage evaluation result.
[0144] According to an embodiment of the present disclosure, any of the first obtaining module 610, the parsing module 620 and the evaluating module 630 can be combined in one module, or any of them can be split into multiple modules. Alternatively, at least part of the function of one or more of these modules can be combined with at least part of the function of other modules, and implemented in one module. According to an embodiment of the present disclosure, at least one of the first obtaining module 610, the parsing module 620 and the evaluating module 630 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on board, a system on package, an application specific integrated circuit (ASIC), or any other reasonable way of hardware or firmware that can be integrated or packaged with a circuit, or implemented in any one of software, hardware and firmware or in a proper combination of any of them. Alternatively, at least one of the first obtaining module 610, the parsing module 620 and the evaluating module 630 can be at least partially implemented as a computer program module that can perform corresponding functions when executed.
[0145] Figure 7 A block diagram of an electronic device suitable for implementing the linkage evaluation method according to an embodiment of the present disclosure is schematically shown.
[0146] As shown in Figure 7 The electronic device 700 according to an embodiment of the present disclosure includes a processor 701 that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 702 or loaded from a storage portion 708 into a random access memory (RAM) 703. The processor 701 can include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a special-purpose microprocessor (such as an application specific integrated circuit (ASIC)), and the like. The processor 701 can also include an on-board memory for cache use. The processor 701 can include a single processing unit or multiple processing units for performing different actions of the method processes according to embodiments of the present disclosure.
[0147] In the RAM 703, various programs and data required for the operation of the electronic device 700 are stored. The processor 701, the ROM 702 and the RAM 703 are connected to each other through a bus 704. The processor 701 performs various operations of the method processes according to embodiments of the present disclosure by executing programs in the ROM 702 and / or the RAM 703. It should be noted that the programs can also be stored in one or more memories other than the ROM 702 and the RAM 703. The processor 701 can also perform various operations of the method processes according to embodiments of the present disclosure by executing programs stored in the one or more memories.
[0148] According to an embodiment of the present disclosure, the electronic device 700 can further include an input / output (I / O) interface 705 that is also connected to the bus 704. The electronic device 700 can further include one or more of the following components connected to the I / O interface 705: an input part 706 including, for example, a keyboard and a mouse; an output part 707 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage part 708 including, for example, a hard disk; and a communication part 709 including, for example, a LAN card, a modem, and the like. The communication part 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as necessary. A removable medium 711 such as a magnetic disk, a magneto-optical disk, a semiconductor memory, and the like is attached to the drive 710 as necessary, so that a computer program read therefrom is installed into the storage part 708 as necessary.
[0149] The present disclosure also provides a computer readable storage medium, which can be included in the device / apparatus / system described in the above embodiments; or can exist separately without being assembled into the device / apparatus / system. The above computer readable storage medium carries one or more programs, which when executed, implement the method according to the embodiments of the present disclosure.
[0150] According to an embodiment of the present disclosure, the computer readable storage medium can be a non-volatile computer readable storage medium, for example, which can include, but is not limited to, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any appropriate combination thereof. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, the computer readable storage medium can include one or more of the above-described ROM 702 and / or RAM 703 and / or one or more memories other than the ROM 702 and the RAM 703.
[0151] Embodiments of the present disclosure also include a computer program product, which includes a computer program containing program codes for executing the methods shown in the flowcharts. When the computer program product is run in a computer system, the program codes are used to make the computer system implement the methods provided by the embodiments of the present disclosure.
[0152] The above-described functions of the system / device defined in the system / apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiments of the present disclosure, the system, apparatus, module, unit, etc. described above can be implemented by the computer program modules.
[0153] In one embodiment, the computer program can be stored in a tangible storage medium, such as an optical, magnetic, or other memory on a hard disk drive, solid-state drive, or other storage device. In another embodiment, the computer program can be transmitted over a network, using a wireless or wired transmission medium, and downloaded and installed by a communication portion 709, and / or installed from a removable medium 711. The program code embodied in the computer program can be transmitted using any appropriate medium, including but not limited to wireless, wired, optical, or any suitable combination of the foregoing.
[0154] In such an embodiment, the computer program can be downloaded and installed from a network, using a wireless or wired transmission medium, and / or installed from a removable medium 711. The above-described functions of the system defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiments of the present disclosure, the system, apparatus, module, unit, etc. described above can be implemented by the computer program modules.
[0155] According to the embodiments of the present disclosure, the program code for execution of the computer program provided by the embodiments of the present disclosure can be written in any combination of one or more programming languages, and specifically, can be implemented using a high-level procedural and / or object-oriented programming language, and / or an assembly / machine language. The programming language includes, but is not limited to, a programming language such as Java, C++, Python, "C" language, or a similar programming language. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, connected through the Internet using an Internet service provider).
[0156] The computer program product of the first aspect can include one or more non-transitory computer-readable media storing instructions that, when executed, cause a processor of a computer-based system to perform any of the methods of the first aspect. The computer program product of the first aspect can include one or more non-transitory computer-readable media storing instructions that, when executed, cause a processor of a computer-based system to perform any of the methods of the first aspect.
[0157] Those skilled in the art will understand that the features recited in the various embodiments and / or claims of the present disclosure can be combined or / and integrated in a variety of ways, even if such combinations or integrations are not expressly disclosed in the present disclosure. In particular, the features recited in the various embodiments and / or claims of the present disclosure can be combined and / or integrated in a variety of ways without departing from the spirit and teachings of the present disclosure. All such combinations and / or integrations are within the scope of the present disclosure.
[0158] The above describes embodiments of the present disclosure. However, these embodiments are merely for illustrative purposes, and are not intended to limit the scope of the present disclosure. Although each of the embodiments is described above separately, this does not mean that the measures in each of the embodiments cannot be used advantageously in combination. The scope of the present disclosure is defined by the appended claims and their equivalents. Those skilled in the art can make various substitutions and modifications without departing from the scope of the present disclosure, and all such substitutions and modifications shall fall within the scope of the present disclosure.
Claims
1. A method for evaluating a switchover, comprising: acquiring an information configuration table generated by a switchover control end and a replication product end in a switchover process of a primary site and a backup site, wherein the switchover control end is configured to control the replication product end, the replication product end is configured to replicate data generated by the primary site to the backup site, and the information configuration table comprises first target information generated when the switchover control end sends a stop command to the replication product end and receives a completed stop command sent by the replication product end, and second target information generated when the replication product end receives the stop command sent by the switchover control end and sends the completed stop command to the switchover control end; respectively analyzing the first target information and the second target information to obtain a first analysis result and a second analysis result, wherein the first analysis result indicates whether a timestamp of the first target information is normal, and the second analysis result indicates whether a timestamp of the second target information is normal; and determining a switchover evaluation result according to the first analysis result and the second analysis result.
2. The method of claim 1, wherein, The step of respectively analyzing the first target information and the second target information to obtain a first analysis result and a second analysis result comprises: respectively extracting a first timestamp of the first target information and a second timestamp of the second target information; determining the first analysis result according to the first timestamp; and determining the second analysis result according to the second timestamp.
3. The method of claim 1 or 2, wherein, The step of determining a switchover evaluation result according to the first analysis result and the second analysis result comprises: when it is determined that the first analysis result indicates that the switchover control end has an abnormal switchover in the switchover process, obtaining a first switchover evaluation value according to a preset initial switchover evaluation value; when it is determined that the second analysis result indicates that the replication product end has an abnormal switchover in the switchover process, obtaining a second switchover evaluation value according to the first switchover evaluation value; and determining the switchover evaluation result according to the second switchover evaluation value.
4. The method of claim 1 or 2, wherein, The step of determining a switchover evaluation result according to the first analysis result and the second analysis result further comprises: when it is determined that the first analysis result indicates that the switchover control end does not have an abnormal switchover in the switchover process, and the second analysis result indicates that the replication product end does not have an abnormal switchover in the switchover process, obtaining a third switchover evaluation value according to a preset rule and a preset initial switchover evaluation value; and determining the switchover evaluation result according to the third switchover evaluation value.
5. The method of claim 4, wherein, The replication product end comprises N replication resource groups, and N is an integer greater than or equal to 2; the information configuration table further comprises third target information generated by the replication resource groups in the switchover process and a number of the replication resource groups. The step of determining a switchover evaluation result according to the third switchover evaluation value comprises: In a case where the third linkage evaluation value matches the preset initial linkage evaluation value, in a case where the number of the replication resource groups does not match N replication resource groups, a fourth linkage evaluation value is obtained according to the third linkage evaluation value; and The linkage evaluation result is determined according to the fourth linkage evaluation value.
6. The method of claim 1 or 2, wherein, The first target information includes first sub-information and second sub-information, and the second target information includes third sub-information and fourth sub-information. The method further includes: The first sub-information is obtained, which is generated by the switching control end when the switching control end sends a stop command to the replication product end in a case where the primary site fails; The third sub-information is obtained, which is generated after the replication product end receives the stop command; The fourth sub-information is obtained, which is generated after all replication resource groups of the replication product end complete the stop command; The second sub-information is obtained, which is generated after the switching control end receives the completed notification sent by the replication product end; The first sub-information, the second sub-information, the third sub-information, and the fourth sub-information are stored in the information configuration table.
7. The method of claim 1 or 2, further comprising: An evaluation result report text is obtained according to the information configuration table and the linkage evaluation result.
8. A linkage evaluation device, comprising: A first obtaining module is configured to obtain an information configuration table generated by a switching control end and a replication product end in a linkage process of a primary site and a backup site in a case where the primary site fails, wherein the switching control end is configured to control the replication product end, the replication product end is configured to replicate data generated by the primary site to the backup site, and the information configuration table includes first target information generated by the switching control end when the switching control end sends a stop command to the replication product end and receives a completed stop command sent by the replication product end, and second target information generated by the replication product end when the replication product end receives the stop command sent by the switching control end and sends the completed stop command to the switching control end; An analysis module is configured to analyze the first target information and the second target information respectively to obtain a first analysis result and a second analysis result, wherein the first analysis result represents whether a timestamp of the first target information is normal, and the second analysis result represents whether a timestamp of the second target information is normal; and An evaluation module is configured to determine a linkage evaluation result according to the first analysis result and the second analysis result.
9. An electronic device, comprising: One or more processors; A storage device configured to store one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are caused to execute the method according to any one of claims 1-7.
10. A computer-readable storage medium having stored executable instructions, which, when executed by a processor, cause the processor to execute the method according to any one of claims 1-7.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method for detecting anomalies in a control network
CN102577305A
Separable query transaction data scheduling method and apparatus
CN104616197A
Abnormal information detection method and device for vehicle-mounted equipment
CN114040406A