A method, device and equipment for evaluating service dual-active capability and a storage medium
By automating the acquisition and analysis of traffic scheduling monitoring items for business services, the problem of low efficiency and poor accuracy in service active-active capability assessment in existing technologies has been solved, achieving efficient and accurate service active-active capability assessment.
Patent Information
- Application Number
- CN202210744213.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2042-06-27
AI Technical Summary
In existing technologies, the assessment of the dual-active capability of business services is inefficient and inaccurate, mainly because the service list maintained manually is fixed and cannot guarantee the integrity and dynamic changes of services.
By automating the acquisition of the target service list, the traffic scheduling monitoring items for each target service to each scheduling room during the contingency plan exercise are determined. Based on the traffic scheduling monitoring items, the dual-active capability index parameters are determined, thereby realizing the automated assessment of the service dual-active capability.
This improves the efficiency and accuracy of service active-active capability assessment, ensures the integrity of service assessment, and avoids recurring issues caused by manual maintenance.
Smart Images

Figure CN115293497B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, specifically to a method, apparatus, device, and storage medium for evaluating the dual-active capability of a service. Background Technology
[0002] To ensure high availability of various business services within a business system, a corresponding active-active mechanism is typically configured for each service to guarantee continuous operation without downtime. Therefore, effectively evaluating the active-active capability of business services has become an urgent problem to solve.
[0003] Currently, the common approach to analyze the active-active capability of services is to conduct contingency drills on various services within the business system. This involves operations personnel maintaining a service list. Then, by manually reviewing the traffic monitoring graphs of each service during the contingency drills, it is determined whether any service can perform complete traffic scheduling across different data centers during the drills, thereby analyzing the service's active-active capability.
[0004] However, due to the large number of services to be evaluated and the cumbersome traffic scheduling and troubleshooting process for each service, the evaluation efficiency of service active-active capability is extremely low. Moreover, the manually maintained service list is relatively fixed, while the online services are dynamically changing, which makes it impossible to guarantee the completeness of services during the active-active capability evaluation, thus reducing the accuracy of the evaluation. Summary of the Invention
[0005] This application provides a method, apparatus, device, and storage medium for evaluating active-active service capabilities, thereby automating the evaluation of active-active service capabilities, ensuring the efficiency and integrity of the evaluation, and improving the accuracy of the evaluation.
[0006] In a first aspect, embodiments of this application provide a method for evaluating the dual-active capability of a service, the method comprising:
[0007] In response to a service investigation request, obtain the corresponding list of target services;
[0008] Determine the traffic scheduling and monitoring items for each target service in the target service list for each scheduling room during the contingency plan exercise;
[0009] Based on the traffic scheduling monitoring items, determine the corresponding active-active capability index parameters.
[0010] Secondly, embodiments of this application provide an apparatus for evaluating the dual-active capability of a service, the apparatus comprising:
[0011] The service acquisition module is used to retrieve the corresponding list of target services in response to service investigation requests;
[0012] The monitoring item determination module is used to determine the traffic scheduling monitoring items for each target service in the target service list facing each scheduling room during the contingency plan exercise.
[0013] The active-active capability assessment module is used to determine the corresponding active-active capability index parameters based on the traffic scheduling monitoring items.
[0014] Thirdly, embodiments of this application provide an electronic device, which includes:
[0015] A processor and a memory, the memory being used to store a computer program, and the processor being used to invoke and run the computer program stored in the memory to perform the method for evaluating the dual-active capability of the service provided in the first aspect of this application.
[0016] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program that causes a computer to perform a method for evaluating service dual-active capability as provided in the first aspect of this application.
[0017] Fifthly, embodiments of this application provide a computer program product, including a computer program / instruction, characterized in that, when the computer program / instruction is executed by a processor, it implements a method for evaluating the dual-active capability of a service as provided in the first aspect of this application.
[0018] This application provides a method, apparatus, device, and storage medium for evaluating service active-active capability. Upon receiving each service investigation request, a target service list is retrieved, ensuring service integrity during the active-active capability evaluation and avoiding the problem of manually maintained, relatively fixed service lists. Then, the traffic scheduling monitoring items for each target service in the target service list towards each scheduling room during contingency plan drills are determined, thereby identifying the corresponding active-active capability index parameters. This achieves automated evaluation of service active-active capability, ensuring high efficiency and improving accuracy. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 A flowchart illustrating a method for evaluating service active-active capability is shown in an embodiment of this application;
[0021] Figure 2A flowchart illustrating another method for evaluating service active-active capability in an embodiment of this application;
[0022] Figure 3 A schematic block diagram illustrating an apparatus for evaluating active-active service capability, as shown in an embodiment of this application;
[0023] Figure 4 This is a schematic block diagram of an electronic device shown in an embodiment of this application. Detailed Implementation
[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0026] Considering that manually maintaining a service list and manually checking the traffic scheduling of each service during contingency drills to assess the service's active-active capability results in extremely low assessment efficiency and incomplete service evaluation, this application proposes an automated scheme for assessing service active-active capability. By obtaining the target service list each time a service check request is received, service integrity is ensured during the assessment. Furthermore, automated assessment ensures high efficiency and improves the accuracy of the service active-active capability evaluation.
[0027] Figure 1 This is a flowchart illustrating a method for evaluating service active-active capability, as shown in an embodiment of this application. (Refer to...) Figure 1 The method may specifically include the following steps:
[0028] S110, in response to a service investigation request, retrieves the corresponding list of target services.
[0029] In this application, in order to ensure the relevance of the service active-active capability assessment, corresponding assessment operations are usually performed for different types of services within the business system to determine the active-active capability of each type of service.
[0030] Furthermore, when assessing the active-active capability of a certain type of service, it is first necessary to identify all the services required for this assessment from the business system. Therefore, when assessing the active-active capability of a certain type of service, a service investigation request is usually proactively initiated to investigate the corresponding services within the business system.
[0031] According to one or more embodiments of this application, after each service investigation request is received, the target service of a specific type that needs to be evaluated in the business system will be automatically obtained once, thereby obtaining the corresponding target service list.
[0032] For example, the target service in this application may include, but is not limited to, various first-level services within the business system that are directly dependent on and whose service anomalies directly impact the business, or first-level services that directly affect the business's ability to mitigate losses. This application does not limit the type of target service.
[0033] It should be understood that the various services within a business system are typically managed uniformly by a service management platform. Therefore, each time a service troubleshooting request is received, the target service is retrieved from the service management platform to obtain the corresponding list of target services.
[0034] As an optional implementation in this application, to ensure the accuracy of the target service acquisition, the scope of services to be evaluated, such as the product line information to which the service belongs, is typically entered manually before initiating a service investigation request. Then, the corresponding service investigation operation is triggered manually, generating the service investigation request in this application. This service investigation request will then carry the product line information of the target service.
[0035] Therefore, when responding to a service investigation request and obtaining the corresponding target service list, this application typically parses the service investigation request to obtain the corresponding product line information, which is used to represent the service scope of this active-active capability assessment. Then, it retrieves all target services under this product line information from the service management platform to obtain the corresponding target service list.
[0036] It should be noted that, in order to accurately distinguish each target service in the target service list, this application will use Baidu Naming Service (BNS) to register each target service and other operations to obtain the identification information of each target service, which can be recorded as bns1, bns2, ..., bnsN, etc.
[0037] S120, determine the traffic scheduling and monitoring items for each target service in the target service list for each scheduling room during the contingency plan exercise.
[0038] In this application, the assessment of the active-active capability of the target service is typically conducted based on contingency plan drills for the target service. Furthermore, during these drills for various services within the business system, corresponding traffic scheduling operations are usually performed between different data centers supported by that service. Then, by analyzing whether the service's traffic can be completely redirected from any data center to other data centers, it is determined whether the service can still operate normally if any data center fails, thereby assessing the service's active-active capability.
[0039] Therefore, the service active-active capability assessment scheme provided in this application will be implemented after contingency planning and drills are conducted on various services within the business system. The scheduling data center targeted by any service in this application can be any of the data centers involved in traffic scheduling for that service during the contingency planning and drills.
[0040] Furthermore, during the contingency plan drills, this application will use a monitoring platform to monitor in real time the traffic changes of each service within the business service when traffic is scheduled between different scheduling data centers, recording these changes as traffic scheduling monitoring items for that service to each scheduling data center. The monitoring platform can store the traffic scheduling monitoring items for each service to each scheduling data center during the contingency plan drills in the corresponding database for accurate retrieval during subsequent service active-active capability assessments.
[0041] Therefore, after determining the list of target services that need to be evaluated, the traffic scheduling monitoring items for each target service to each scheduling room during the contingency plan exercise can be directly retrieved from the database of the monitoring platform based on the real-time monitoring of the traffic scheduling of each target service between different scheduling rooms during the contingency plan exercise.
[0042] As an optional implementation scheme in this application, the traffic scheduling monitoring item for each target service to each scheduling room during the contingency plan exercise can be determined in the following way:
[0043] 1) For each target service in the target service list, determine the traffic scheduling monitoring diagram for that target service during the contingency plan exercise.
[0044] To visually represent the changes in traffic scheduling for each service within the business system during the contingency plan exercise, the monitoring platform can directly use graphics to draw the traffic change status of each service in different scheduling data centers, which is recorded as the traffic scheduling monitoring chart for that service during the contingency plan exercise.
[0045] Therefore, after obtaining the list of target services, for each target service in the list, the traffic scheduling monitoring graph of that target service during the contingency plan exercise can be directly obtained from the monitoring platform. This traffic scheduling monitoring graph will distinguish the scheduling data centers for that target service during the contingency plan exercise, and include the traffic change status of that target service towards each scheduling data center during the contingency plan exercise.
[0046] 2) From the traffic scheduling monitoring chart, determine the total scheduling traffic of the target service to each scheduling room and the residual traffic to each scheduling room after the completion of the contingency plan exercise.
[0047] After obtaining the traffic scheduling monitoring chart for each target service during the contingency plan exercise, the total service traffic at the start time of traffic scheduling for each target service in each scheduling data center can be directly determined from the traffic scheduling monitoring chart, which serves as the total scheduled traffic of the target service to each scheduling data center. Furthermore, the traffic scheduling monitoring chart can also determine the remaining unscheduled traffic of the target service in each scheduling data center after the completion of the contingency plan exercise, which serves as the residual traffic of the target service to each scheduling data center after the completion of the contingency plan exercise.
[0048] On the other hand, regarding the total scheduling traffic of the target service to each scheduling room, this application can also obtain the total scheduling traffic of the target service to each scheduling room by calculating the sum of the traffic already scheduled away from each scheduling room and the remaining traffic of that scheduling room after the target service completes the contingency plan exercise.
[0049] It should be noted that before initiating a service investigation request, this application will manually set the start and end times of traffic scheduling between different scheduling data centers during the contingency plan drills, based on the drill schedules for each service within the business system. Then, manually triggering the corresponding service investigation operation will generate the service investigation request in this application. This service investigation request will also include the start and end times of traffic scheduling between different scheduling data centers for the target service during the contingency plan drills.
[0050] Furthermore, for each scheduling room that the target service faces during the contingency plan exercise, the traffic scheduling monitoring items of the target service facing that scheduling room can be found directly according to the start and end time points of traffic scheduling in that scheduling room.
[0051] Furthermore, for each traffic scheduling monitoring item under each target service, the identification information of the target service and the product line information to which it belongs can be combined and stored in the message table provided by the BNS service (which can be denoted as the bns_info table).
[0052] S130 determines the corresponding active-active capability index parameters based on the traffic scheduling monitoring items.
[0053] After determining the traffic scheduling monitoring items for each target service to each scheduling data center during the contingency plan exercise, for each target service, the traffic scheduling monitoring items for each scheduling data center can be investigated to determine whether the target service can completely schedule the traffic in each scheduling data center to other data centers when performing traffic scheduling for each scheduling data center during the contingency plan exercise.
[0054] In this application, if a target service can completely redirect traffic from each scheduling data center to other data centers during contingency plan drills, it indicates that the target service can switch to other data centers and continue operating normally even if any scheduling data center fails. Therefore, if the results of the traffic scheduling monitoring items for a target service to each scheduling data center indicate that the target service can completely redirect traffic from each scheduling data center to other data centers during contingency plan drills, then it can be determined that the target service has high availability across different scheduling data centers.
[0055] However, if a target service cannot completely redirect traffic from one or more scheduling data centers to other data centers during contingency plan drills, it indicates that even if the service switches to other data centers after a failure in one of the scheduling data centers, incomplete traffic flow may still prevent the target service from functioning properly. Therefore, if the results of monitoring traffic scheduling for a target service across each scheduling data center indicate that the target service cannot completely redirect traffic from one or more scheduling data centers to other data centers during contingency plan drills, it can be determined that the target service lacks high availability across different scheduling data centers.
[0056] As an exemplary solution in this application, the investigation results of traffic scheduling monitoring items for any target service facing each scheduling room, taking the scheduling rooms facing the target service including two rooms, hba and hbb, as an example, can be represented by the following data structure fields:
[0057]
[0058] Among them, 1)ProductName: The name of the product line to which the target service belongs.
[0059] 2) NameSpace: The DNS identifier information for the target service.
[0060] 3) Metrics: Traffic scheduling monitoring information for the target service.
[0061] 4) HbaRemainFlow: Residual traffic in the HBA data center that was not scheduled away after the traffic from the HBA data center was dispatched to the HBB data center.
[0062] 5) HbbRemainFlow: Residual traffic in the hbb data center that was not dispatched after the traffic from the hbb data center was dispatched to the hba data center.
[0063] 6) HbaTotalFlow: The total traffic flow between the HBA and HBB data centers after the traffic from the HBA data center is routed to the HBB data center.
[0064] 7) HbbTotalFlow: The total traffic flow between the HBB and HBB data centers after the traffic from the HBB data center is routed to the HBA data center.
[0065] 8) HbaIsEmpty: After traffic from the HBA data center is routed to the HBB data center, can the HBA data center switch to empty traffic?
[0066] 9)HbbIsEmpty: After traffic from the hbb data center is scheduled to the hba data center, can the hbb data center switch to empty traffic?
[0067] 10) IsEmpty: After the target service completes the traffic scheduling of the two data centers mentioned above, does the target service have high availability, that is, can the target service clear the traffic?
[0068] 11) IsCheck: Whether the target service is included in the investigation.
[0069] Therefore, following the same steps described above, the traffic scheduling and monitoring items of each target service facing each scheduling room during the contingency plan exercise can be checked in turn to determine whether each target service has high availability in different scheduling rooms.
[0070] Furthermore, based on whether each target service has high availability in different scheduling data centers, the overall active-active capability of each target service within the business system can be comprehensively analyzed, thereby determining the corresponding active-active capability index parameters.
[0071] For example, the active-active capability metric parameter in this application can be the proportion of target services with high availability among all target services.
[0072] The technical solution provided in this application obtains a target service list each time a service investigation request is received, ensuring service integrity during the service active-active capability assessment and avoiding the problem of a relatively fixed service list maintained manually. Then, it determines the traffic scheduling monitoring items for each target service in the target service list facing each scheduling room during the contingency plan exercise, thereby determining the corresponding active-active capability index parameters. This achieves automated assessment of service active-active capability, ensuring the efficiency and accuracy of the assessment.
[0073] As an optional implementation scheme in this application, in order to ensure the accuracy of the evaluation of the service's active-active capability, this application will determine whether each target service can cut off traffic in each scheduling data center during the contingency plan exercise based on the traffic scheduling monitoring items of each target service to each scheduling data center, thereby comprehensively analyzing the overall active-active capability of the target service. Figure 2 As shown, this application provides a detailed explanation of the specific process for determining the corresponding dual-active capability index parameters based on traffic scheduling monitoring items.
[0074] Figure 2 This is a flowchart illustrating another method for evaluating the dual-active capability of a service, as shown in an embodiment of this application.
[0075] Reference Figure 2 The method may specifically include the following steps:
[0076] S210, in response to a service investigation request, retrieves the corresponding list of target services.
[0077] S220, determine the traffic scheduling and monitoring items for each target service in the target service list for each scheduling room during the contingency plan exercise.
[0078] S230, for each target service in the target service list, determine the traffic cut-off status of the target service in each scheduling room based on the traffic scheduling monitoring items of the target service to each scheduling room during the contingency plan exercise.
[0079] According to one or more embodiments of this application, for each target service in the target service list, after obtaining the traffic scheduling monitoring item of the target service to each scheduling room, the total scheduling traffic of the target service to each scheduling room and the residual traffic to each scheduling room after the completion of the contingency plan exercise can be determined according to the traffic scheduling changes of the target service in each scheduling room during the contingency plan exercise.
[0080] Then, by analyzing the scheduling ratio between the residual traffic and the total scheduled traffic for each scheduling data center, it is determined whether the target service can completely schedule the traffic of each scheduling data center to other data centers. Furthermore, based on this, it is analyzed whether the target service can completely cut off the traffic of each scheduling data center when performing traffic scheduling, thereby determining the traffic cut-off status of the target service in each scheduling data center.
[0081] As an exemplary solution in this application, the traffic cutoff status of each target service in each scheduling room can be determined using the following steps for each target service in the target service list:
[0082] 1) Based on the traffic scheduling monitoring items of the target service for each scheduling room during the contingency plan exercise, determine the residual traffic scheduling ratio of the target service for each scheduling room.
[0083] As can be seen from the above, the traffic scheduling monitoring items of the target service for each scheduling room during the contingency plan exercise can include the total scheduling traffic of the target service for each scheduling room and the residual traffic for each scheduling room after the completion of the contingency plan exercise.
[0084] Furthermore, by calculating the proportion of the residual traffic of the target service to each scheduling room in the total scheduling traffic of that scheduling room, the residual traffic scheduling proportion of the target service to each scheduling room can be obtained.
[0085] In other words, for each scheduling data center targeted by the target service, the value of residual traffic / total scheduling traffic is used as the criterion for determining whether the target service can cut off traffic in each scheduling data center (that is, whether it has dual-active capability in each scheduling data center). This can ensure that the dual-active capability evaluation standard for different target services is consistent in different scheduling data centers, thereby improving the accuracy of service dual-active capability evaluation.
[0086] 2) If the proportion of residual traffic scheduled for each scheduling room for the target service is less than the preset cut-off threshold, then it is determined that the target service has been cut off in that scheduling room.
[0087] The preset cutoff threshold in this application represents the traffic cutoff boundary value for a target service within a certain scheduling data center. This preset cutoff threshold can be 1%.
[0088] For each target service in the target service list, if the proportion of residual traffic scheduled for each scheduling room is less than the preset cut-off threshold, it means that the residual traffic remaining after the target service completes the traffic scheduling for the contingency plan exercise in that scheduling room is extremely small relative to the total scheduled traffic and can be almost ignored. Therefore, it is considered that the target service can cut off traffic when scheduling traffic in that scheduling room, and thus it is determined that the target service has been cut off in that scheduling room.
[0089] 3) If the proportion of residual traffic scheduled for each scheduling room for the target service is greater than or equal to the preset cut-off threshold, then it is determined that the target service is not cut off in that scheduling room.
[0090] For each target service in the target service list, if the proportion of residual traffic scheduled for each scheduling room is greater than or equal to the preset cut-off threshold, it indicates that the residual traffic remaining after the target service completes the traffic scheduling for the contingency plan exercise in that scheduling room is relatively large compared to the total scheduled traffic. Therefore, it is considered that the target service cannot cut off traffic when scheduling traffic in that scheduling room, and thus it is determined that the target service has not cut off traffic in that scheduling room.
[0091] By following the same steps described above, the traffic cutoff status of each target service in each scheduling room can be determined.
[0092] It should be noted that, because some target services in the target service list have strong real-time requirements for the normal operation of business systems, such as primary / standby services, the active-active capability of these target services needs to be evaluated periodically during normal business operation, without the need for evaluation through contingency plan drills. Furthermore, business systems typically maintain a priority list (denoted as speciallist) to cache the BNS identifier information of these target services.
[0093] Therefore, when checking traffic scheduling monitoring items for each target service in the target service list, the target services of this type can be filtered out by determining whether the target service is cached in the speciallist table. Then, when executing the service active-active capability assessment scheme based on contingency plan drills in this application, such target services can be directly marked as disconnected. Furthermore, traffic scheduling monitoring items are checked for other target services in the target service list besides such target services.
[0094] S240 determines the corresponding active-active capability parameters based on the traffic cut-off status of each target service in each scheduling room.
[0095] For each target service in the target service list, after determining the traffic off-peak status of that target service in each scheduling data center, it is possible to determine whether each target service is highly available in each scheduling data center. Then, based on whether each target service has high availability, the dual-active capability of the target services is comprehensively evaluated to obtain the corresponding dual-active capability index parameters.
[0096] As an exemplary solution in this application, the target service's disconnection rate can be used to represent the overall active-active capability index parameter of the target service. Therefore, this application determines the corresponding active-active capability index parameter based on the traffic disconnection status of each target service in each scheduling data center, which can be achieved through the following steps:
[0097] 1) Determine the off-load status of each target service based on the traffic off-load status in each scheduling room.
[0098] In this application, for each target service, if the traffic cutoff status of the target service is cutoff in every scheduling data center, then the cutoff status of the target service is determined to be cutoff. However, if the traffic cutoff status of the target service is not cutoff in at least one scheduling data center, then the cutoff status of the target service is determined to be not cutoff.
[0099] 2) Determine the corresponding cutoff rate based on the number of target services that have been cut off and the total number of target services.
[0100] After reviewing each target service in the target service list, the number of target services that have been disconnected and the total number of target services can be determined. Then, the ratio between the number of disconnected target services and the total number of target services is calculated to obtain the corresponding disconnection rate.
[0101] Furthermore, due to performance limitations of the monitoring platform, during contingency plan drills, monitoring of traffic scheduling changes for certain target services in each scheduling data center may be missed. This would prevent the acquisition of traffic scheduling monitoring items for each scheduling data center, thus preventing the target service from participating in the subsequent investigation steps during the active-active capability assessment. This means that some target services in the target service list have not undergone the investigation for active-active capability assessment. Therefore, this application can also use the investigation rate of target services to represent the comprehensive active-active capability index parameter of the target services. Thus, in this application, determining the corresponding active-active capability index parameter based on traffic scheduling monitoring items can also be achieved using the following steps: determining the corresponding investigation rate based on the number of target services with non-empty traffic scheduling monitoring items and the total number of target services.
[0102] After investigating each target service in the target service list, the number of target services with non-empty traffic scheduling monitoring items and the total number of target services can be determined. Then, the ratio between the number of target services with non-empty traffic scheduling monitoring items and the total number of target services is calculated to obtain the corresponding investigation rate.
[0103] In addition, in order to uniformly manage the investigation results of each target service in the target service list during the dual-active capability assessment, this application can record the investigation structure of each target service in the following format: BNS identification information of each target service, product line to which it belongs, whether the service is disconnected, whether it is disconnected in scheduling room 1, ..., whether it is disconnected in scheduling room n, residual traffic in scheduling room 1, ..., residual traffic in scheduling room n, total traffic when disconnected in scheduling room 1, ..., total traffic when disconnected in scheduling room n, and whether it is investigated.
[0104] By recording the corresponding data for each target service in the above format in sequence, unified management of the target service investigation results can be achieved.
[0105] The technical solution provided in this application obtains a target service list each time a service investigation request is received, ensuring service integrity during the service active-active capability assessment and avoiding the problem of a relatively fixed service list maintained manually. Then, it determines the traffic scheduling monitoring items for each target service in the target service list facing each scheduling room during the contingency plan exercise, thereby determining the corresponding active-active capability index parameters. This achieves automated assessment of service active-active capability, ensuring the efficiency and accuracy of the assessment.
[0106] Figure 3 This is a schematic block diagram illustrating an apparatus for evaluating the dual-active capability of a service, as shown in an embodiment of this application.
[0107] like Figure 3 As shown, the device 300 may include:
[0108] The service acquisition module 310 is used to obtain the corresponding list of target services in response to service investigation requests;
[0109] The monitoring item determination module 320 is used to determine the traffic scheduling monitoring item for each target service in the target service list facing each scheduling room during the contingency plan exercise.
[0110] The dual-active capability assessment module 330 is used to determine the corresponding dual-active capability index parameters based on the traffic scheduling monitoring items.
[0111] According to one or more embodiments of this application, the dual-active capability assessment module 330 may include:
[0112] The data center off-line judgment unit is used to determine the traffic off-line status of each target service in the target service list based on the traffic scheduling monitoring items of the target service to each scheduling data center during the contingency plan exercise.
[0113] The active-active capability assessment unit is used to determine the corresponding active-active capability index parameters based on the traffic cut-off status of each target service in each scheduling data center.
[0114] According to one or more embodiments of this application, the data center disconnection determination unit can be specifically used for:
[0115] Based on the traffic scheduling monitoring items of the target service for each scheduling room during the contingency plan exercise, determine the residual traffic scheduling ratio of the target service for each scheduling room.
[0116] If the proportion of residual traffic scheduled for each scheduling room for the target service is less than the preset cut-off threshold, then it is determined that the target service has been cut off in that scheduling room.
[0117] If the proportion of residual traffic scheduled for each scheduling room for the target service is greater than or equal to the preset cut-off threshold, then it is determined that the target service is not cut off in that scheduling room.
[0118] According to one or more embodiments of this application, the dual-active capability assessment unit can be specifically used for:
[0119] The off-load status of each target service is determined based on the traffic off-load status of each scheduling room.
[0120] The corresponding cutoff rate is determined based on the number of target services that have been cut off and the total number of target services.
[0121] According to one or more embodiments of this application, the dual-active capability assessment module 330 can also be specifically used for:
[0122] The investigation rate determination module is used to determine the corresponding investigation rate based on the number of target services that are not empty and the total number of target services in the traffic scheduling monitoring item.
[0123] According to one or more embodiments of this application, the monitoring item determination module 320 may be specifically used for:
[0124] For each target service in the target service list, determine the traffic scheduling monitoring diagram for that target service during the contingency plan exercise;
[0125] From the traffic scheduling monitoring graph, determine the total scheduling traffic of the target service to each scheduling room and the residual traffic to each scheduling room after the completion of the contingency plan exercise.
[0126] According to one or more embodiments of this application, the service acquisition module 310 may be specifically used for:
[0127] Parse the service investigation request to obtain the corresponding product line information;
[0128] Obtain the target services under the product line information to obtain the target service list.
[0129] In this embodiment, upon receiving each service investigation request, a target service list is retrieved to ensure service integrity during active-active capability assessment and avoid the problem of a relatively fixed manually maintained service list. Then, the traffic scheduling monitoring items for each target service in the target service list towards each scheduling data center during contingency plan drills are determined. This determines the corresponding active-active capability index parameters, enabling automated assessment of active-active capability, ensuring the efficiency of the assessment, and improving its accuracy.
[0130] It should be understood that the device embodiments and method embodiments can correspond to each other, and similar descriptions can be referred to the method embodiments. To avoid repetition, further details will not be provided here. Specifically, Figure 3 The apparatus 300 shown can execute the method embodiments provided in this application, and the foregoing and other operations and / or functions of each module in the apparatus 300 are respectively for implementing the corresponding processes in the various methods of the embodiments of this application. For the sake of brevity, they will not be described in detail here.
[0131] The apparatus 300 of this application embodiment has been described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that this functional module can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the method disclosed in this application embodiment can be directly embodied as being executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above method embodiments.
[0132] Figure 4 This is a schematic block diagram of an electronic device 400 shown in an embodiment of this application.
[0133] like Figure 4 As shown, the electronic device 400 may include:
[0134] The system includes a memory 410 and a processor 420. The memory 410 stores computer programs and transfers the program code to the processor 420. In other words, the processor 420 can retrieve and run the computer program from the memory 410 to implement the methods described in the embodiments of this application.
[0135] For example, the processor 420 can be used to execute the above-described method embodiments according to instructions in the computer program.
[0136] In some embodiments of this application, the processor 420 may include, but is not limited to:
[0137] General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0138] In some embodiments of this application, the memory 410 includes, but is not limited to:
[0139] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0140] In some embodiments of this application, the computer program may be divided into one or more modules, which are stored in the memory 410 and executed by the processor 420 to perform the method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the electronic device.
[0141] like Figure 4 As shown, the electronic device may also include:
[0142] Transceiver 430, which can be connected to processor 420 or memory 410.
[0143] The processor 420 can control the transceiver 430 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 430 may include a transmitter and a receiver. The transceiver 430 may further include antennas, and the number of antennas may be one or more.
[0144] It should be understood that the various components in the electronic device are connected through a bus system, which includes a data bus, a power bus, a control bus, and a status signal bus.
[0145] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a computer, enables the computer to perform the methods of the above-described method embodiments. Alternatively, this application also provides a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods of the above-described method embodiments.
[0146] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0147] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0148] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0149] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0150] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for evaluating service dual-active capability, characterized in that, The method comprises the steps of: in response to a service troubleshooting request, obtaining a corresponding target service list; determining the traffic scheduling monitoring items of each target service in the target service list facing each dispatching machine room during the pre-plan exercise; determining the corresponding dual-active capability index parameters according to the traffic scheduling monitoring items; determining the corresponding dual-active capability index parameters according to the traffic scheduling monitoring items, comprising: for each target service in the target service list, determining the traffic offload state of the target service in each dispatching machine room according to the traffic scheduling monitoring items of the target service facing each dispatching machine room during the pre-plan exercise; determining the corresponding dual-active capability index parameters according to the traffic offload state of each target service in each dispatching machine room; determining the corresponding dual-active capability index parameters according to the traffic scheduling monitoring items, comprising: determining the residual traffic scheduling proportion of the target service facing each dispatching machine room according to the traffic scheduling monitoring items of the target service facing each dispatching machine room during the pre-plan exercise; if the residual traffic scheduling proportion of the target service facing each dispatching machine room is less than a preset offload threshold, it is determined that the target service has been offloaded in the dispatching machine room; if the residual traffic scheduling proportion of the target service facing each dispatching machine room is greater than or equal to the preset offload threshold, it is determined that the target service has not been offloaded in the dispatching machine room; determining the corresponding dual-active capability index parameters according to the traffic offload state of each target service in each dispatching machine room, comprising: determining the offload state of the target service according to the traffic offload state of each target service in each dispatching machine room; determining the offload rate according to the number of offloaded target services and the total number of target services; determining the corresponding dual-active capability index parameters according to the traffic scheduling monitoring items, further comprising: determining the troubleshooting rate according to the number of target services with non-empty traffic scheduling monitoring items and the total number of target services; the offload rate is the ratio between the number of offloaded target services and the total number of target services; the troubleshooting rate is the ratio between the number of target services with non-empty traffic scheduling monitoring items and the total number of target services.
2. The method of claim 1, wherein, determining the traffic scheduling monitoring items of each target service in the target service list facing each dispatching machine room during the pre-plan exercise, comprising: for each target service in the target service list, determining the traffic scheduling monitoring graph of the target service during the pre-plan exercise; determining the total traffic scheduling of the target service facing each dispatching machine room and the residual traffic of the target service facing each dispatching machine room after completing the pre-plan exercise from the traffic scheduling monitoring graph.
3. The method of claim 1, wherein, in response to a service troubleshooting request, obtaining a corresponding target service list, comprising: parsing the service troubleshooting request to obtain corresponding product line information; obtaining target services under the product line information to obtain the target service list.
4. An apparatus for evaluating service dual-homing capability, characterized in that, The method comprises the steps of: a service obtaining module for obtaining a corresponding target service list in response to a service troubleshooting request; The monitoring item determination module is configured to determine a traffic scheduling monitoring item of each target service in the target service list facing each dispatching room during the pre-plan rehearsal; The dual-active capability evaluation module is configured to determine a corresponding dual-active capability index parameter according to the traffic scheduling monitoring item; The determination of the corresponding dual-active capability index parameter according to the traffic scheduling monitoring item includes: For each target service in the target service list, a traffic bypass state of the target service in each dispatching room is determined according to the traffic scheduling monitoring item of the target service facing each dispatching room during the pre-plan rehearsal; A corresponding dual-active capability index parameter is determined according to the traffic bypass state of each target service in each dispatching room; The determination of the traffic bypass state of the target service in each dispatching room according to the traffic scheduling monitoring item of the target service facing each dispatching room during the pre-plan rehearsal includes: A residual traffic scheduling proportion of the target service facing each dispatching room is determined according to the traffic scheduling monitoring item of the target service facing each dispatching room during the pre-plan rehearsal; If the residual traffic scheduling proportion of the target service facing each dispatching room is less than a preset bypass threshold, it is determined that the target service has bypassed in the dispatching room; If the residual traffic scheduling proportion of the target service facing each dispatching room is greater than or equal to the preset bypass threshold, it is determined that the target service has not bypassed in the dispatching room; The determination of the corresponding dual-active capability index parameter according to the traffic bypass state of each target service in each dispatching room includes: A bypass state of each target service is determined according to the traffic bypass state of each target service in each dispatching room; A bypass rate is determined according to a number of target services that have bypassed and a total number of target services; The determination of the corresponding dual-active capability index parameter according to the traffic scheduling monitoring item further includes: An investigation rate is determined according to a number of target services with non-empty traffic scheduling monitoring items and a total number of target services; The bypass rate is a ratio between the number of target services that have bypassed and the total number of target services; The investigation rate is a ratio between the number of target services with non-empty traffic scheduling monitoring items and the total number of target services.
5. An electronic device, comprising: The method includes: A processor and a memory, the memory is configured to store a computer program, and the processor is configured to invoke and run the computer program stored in the memory to execute the method for evaluating the dual-active capability of a service according to any one of claims 1-3.
6. A computer readable storage medium characterized by, A computer program is stored, and the computer program causes a computer to execute the method for evaluating the dual-active capability of a service according to any one of claims 1-3.
Citation Information
Patent Citations
Quality of service for device assisted services
CN102362539A
Dual-active data center IT continuity capability assessment method and device and storage medium
CN114219339A