Disaster recovery method and device, electronic equipment, chip and storage medium

By judging the load capacity of the standby AS in the NFV network and sharing the tasks to be processed, the problem of low reliability of local disaster recovery processing of virtualized equipment is solved, and the reliability of disaster recovery processing and user service perception are improved.

CN118796519APending Publication Date: 2024-10-18CHINA MOBILE GROUP SICHUAN +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311317398.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In network function virtualization (NFV) application scenarios, the reliability of local disaster recovery processing of virtualized equipment is low, resulting in poor user service perception. Especially when all local ASs fail, the remaining AS capacity is not enough to take over the faulty AS. The user's call may fail during traffic.

Method used

By judging the load capacity of the backup AS with the same priority, and when the load capacity of the backup AS cannot match the current tasks to be processed, ASs with lower priority are used to share the current tasks to be processed to avoid problems caused by insufficient AS processing capabilities. business losses and improve the reliability of disaster recovery processing.

Benefits of technology

It effectively improves the reliability of disaster recovery processing, reduces the duration of IMS service interruption, improves users' business perception, and ensures the normal operation of IMS services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796519A_ABST
    Figure CN118796519A_ABST
Patent Text Reader

Abstract

The invention provides a disaster recovery method and device, electronic equipment, a chip and a storage medium, and the method comprises the steps: responding to a fault of a first application server (AS), judging whether a second AS has the capability of processing a to-be-processed task, and obtaining a first judgment result; the first AS is an AS triggered by the to-be-processed task, and the second AS is an AS with the same priority as the first AS; when the first judgment result shows that the second AS has the capability of processing the to-be-processed task, processing the to-be-processed task by using the second AS; or, when the first judgment result represents that the second AS does not have the capability of processing the to-be-processed task, processing the to-be-processed task by using the second AS and a third AS based on the load capability of the second AS, the priority of the third AS is lower than that of the first AS. According to the scheme provided by the invention, the reliability of the disaster recovery processing result can be improved, so that the service awareness of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a disaster recovery method, device, electronic device, chip and storage medium. Background Art

[0002] In the application scenario of Network Function Virtualization (NFV), virtualized devices often adopt centralized networking mode, and the virtualized devices are centrally configured in different data centers (DC). The specific networking mode is as follows: Figure 1 As shown. Figure 1 As shown in the figure, when DC1 needs to perform disaster recovery due to a failure of an application server (AS) (AS1), in order to reduce the data traffic between different DCs, the local AS (AS2 or AS3) is often selected to take over the IP multimedia system (IMS, Internet Protocol Multimedia Subsystem) and other services of the failed AS. When all local ASs fail, the AS in other DCs (DC2) can be selected to take over the services of DC1.

[0003] However, using local AS for disaster recovery has low reliability and reduces user service perception. Summary of the invention

[0004] The present disclosure provides a disaster recovery method, device, electronic device, chip and storage medium, which can improve the reliability of disaster recovery processing results, thereby improving the service perception of users.

[0005] A first aspect of the present disclosure provides a disaster recovery method, which is applied to an NFV network. The method includes:

[0006] In response to a failure of the first AS, determining whether the second AS has the ability to process the task to be processed, and obtaining a first determination result; the first AS is an AS triggered by the task to be processed, and the second AS is an AS with the same priority as the first AS;

[0007] When the first judgment result indicates that the second AS has the ability to process the task to be processed, using the second AS to process the task to be processed;

[0008] or,

[0009] When the first judgment result indicates that the second AS does not have the ability to process the task to be processed, based on the load capacity of the second AS, the second AS and a third AS are used to process the task to be processed; the third AS is an AS with a lower priority than the first AS.

[0010] In the above scheme, each AS in the same DC has the same priority, and ASs in different DCs have different priorities.

[0011] In the above solution, the step of determining whether the second AS has the capability to process the task to be processed to obtain the first determination result includes:

[0012] Sending a first request to a second AS; wherein the first request is used to obtain a load condition of the second AS;

[0013] receiving first information sent by the second AS in response to the first request;

[0014] Based on the first information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

[0015] In the above solution, the step of determining whether the second AS has the capability to process the task to be processed to obtain the first determination result includes:

[0016] Performing traffic statistics on the second AS to obtain second information;

[0017] Based on the second information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

[0018] In the above solution, the task to be processed includes multiple subtasks, and based on the load capacity of the second AS, the second AS and the third AS are used to process the task to be processed, including:

[0019] Determining a first subtask and a second subtask from the plurality of subtasks based on the load capacity of the second AS;

[0020] The first subtask is processed by the second AS, and the second subtask is processed by the third AS.

[0021] In the above solution, the processing of the to-be-processed task by using the second AS and the third AS based on the load capacity of the second AS includes:

[0022] Determine whether the second AS fails, and obtain a second determination result;

[0023] When the second judgment result indicates that the second AS fails, using the third AS to process the multiple subtasks;

[0024] When the second judgment result indicates that the second AS has not failed, the second AS and the third AS are used to process the task to be processed based on the load capacity of the second AS.

[0025] A second aspect of the present disclosure provides a disaster recovery device, the device comprising:

[0026] A computing unit, configured to, in response to a failure of the first AS, determine whether the second AS has the ability to process the task to be processed, and obtain a first determination result; the first AS is an AS triggered by the task to be processed, and the second AS is an AS with the same priority as the first AS;

[0027] A processing unit is used to use the second AS to process the task to be processed when the first judgment result indicates that the second AS has the ability to process the task to be processed; or, when the first judgment result indicates that the second AS does not have the ability to process the task to be processed, use the second AS and a third AS to process the task to be processed based on the load capacity of the second AS; the third AS is an AS with a lower priority than the first AS.

[0028] The third aspect embodiment of the present disclosure proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect embodiment of the present disclosure, or execute the method described in the second aspect embodiment of the present disclosure.

[0029] The fourth aspect embodiment of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the first aspect embodiment of the present disclosure, or to execute the method described in the second aspect embodiment of the present disclosure.

[0030] The fifth aspect embodiment of the present disclosure proposes a chip, which includes one or more interfaces and one or more processors; the interface is used to receive signals from a memory of an electronic device and send signals to the processor, the signals include computer instructions stored in the memory, and when the processor executes the computer instructions, the electronic device executes the method described in the first aspect embodiment of the present disclosure, or executes the method described in the second aspect embodiment of the present disclosure.

[0031] In summary, the disaster recovery method, device, electronic device, chip and storage medium proposed in the present disclosure, in response to a failure of the first AS, judges whether the second AS has the ability to process the pending task, and obtains a first judgment result; the first AS is the AS triggered by the pending task, and the second AS is the AS with the same priority as the first AS; when the first judgment result indicates that the second AS has the ability to process the pending task, the second AS is used to process the pending task; or, when the first judgment result indicates that the second AS does not have the ability to process the pending task, the second AS and the third AS are used to process the pending task based on the load capacity of the second AS; the third AS is an AS with a lower priority than the first AS. The technical solution provided by the present disclosure, by judging the load capacity of the backup AS of the same priority, and when the load capacity of the backup AS cannot match the current pending task, the AS with a lower priority level is used to share the current pending task, so as to avoid the problem of business loss caused by the inability of the AS processing capacity to carry the pending task, improve the reliability of disaster recovery processing, and thus enhance the user's business perception.

[0032] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0034] Figure 1 It is a schematic diagram of the architecture of the NFV network in the related technology;

[0035] Figure 2 It is a flowchart of an IMS service recovery method in the related art;

[0036] Figure 3 A schematic diagram of a disaster recovery method flow provided for an application embodiment of the present disclosure;

[0037] Figure 4 A flowchart of an IMS service recovery method provided by an application embodiment of the present disclosure;

[0038] Figure 5 A schematic diagram of the structure of a disaster recovery device provided in an embodiment of the present disclosure;

[0039] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0040] Figure 7 A schematic diagram of the chip structure provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0041] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0042] Disaster recovery is also called off-site disaster recovery or geographic disaster recovery. It refers to two sites located in different geographical locations. When one site cannot provide services due to uncontrollable factors such as natural disasters, wars, power failures, etc., the other site can take over the registration and session services. Disaster recovery processing is conducive to improving the reliability of the IMS network, enhancing the ability to handle sudden natural disasters and the network's self-recovery capabilities, and avoiding major disasters such as power failures, natural disasters, equipment failures, etc., which lead to large-scale business interruptions.

[0043] In the related technology, the service AS can adopt the POOL mode to form a network, and the service call session control function (SCSCF, Serving Call Session Control Function) can realize the status detection through the link detection mechanism; the service AS can provide value-added services for IMS users, such as Figure 2 As shown, when SCSCF obtains the list information of the service AS by querying the Domain Name System (DNS), if the AS1 triggered by the current task fails, SCSCF can select other service ASs (such as AS2) from the list information of the service AS to take over the processing task of AS1 to achieve disaster recovery of the equipment. In the NFV regional networking application scenario, the service AS in the local DC has the highest priority. When a service AS fails, SCSCF will select other service ASs in this DC as backup service ASs. Only when all service ASs in the local DC fail will service ASs in other DCs be selected. However, since there are still available ASs in the AS of the local DC, the remaining service AS capacity in the local DC may not be sufficient to take over the traffic of the failed AS. Therefore, user calls may fail, thereby causing damage to the user's IMS service.

[0044] Based on this, in various embodiments of the present disclosure, by judging the load capacity of the backup AS with the same priority, and when the load capacity of the backup AS cannot match the current tasks to be processed, the AS with a lower priority level is used to share the current tasks to be processed, thereby avoiding business losses caused by the AS processing capacity being unable to carry the tasks to be processed, improving the reliability of disaster recovery processing, and thus enhancing the user's business perception.

[0045] Figure 3 A schematic diagram of a disaster recovery method flow chart is provided, which can be applied to electronic equipment, and specifically to SCSCF. Figure 3 As shown, the method may include:

[0046] Step 301: In response to a failure of a first application server AS, determine whether a second AS has the ability to process a pending task, and obtain a first determination result; the first AS is the AS triggered by the pending task, and the second AS is an AS with the same priority as the first AS.

[0047] In actual application, the AS may also be referred to as a service AS, and the embodiments of the present disclosure do not limit this, as long as its functions can still be implemented.

[0048] In one embodiment, the number of the second ASs may be at least one, and when determining whether the second ASs have the capability to process the task to be processed, it may be determined whether all second ASs have the capability to process the task to be processed, that is, whether the total capability of all second ASs matches the capability required by the task to be processed.

[0049] In actual application, the first AS and the second AS may belong to the same DC, that is, the same priority may be configured for different ASs in the same DC, and different priorities may be configured for ASs in different DCs.

[0050] Based on this, in one embodiment, each AS in the same DC has the same priority, and ASs in different DCs have different priorities.

[0051] In actual application, the first AS and the second AS may belong to a first DC, and the third AS may belong to a second DC.

[0052] In actual application, whether the second AS has the ability to process the task to be processed may be determined by whether the current load capacity of the first DC matches the task to be processed.

[0053] In actual application, when a fault occurs in the AS to be triggered, it is possible to first determine, based on the priority of the AS, whether the capabilities provided by the AS with the same priority as the AS triggered by the task to be processed (i.e., the first AS) (i.e., the second AS) match the capabilities required by the task to be processed, that is, whether the current load capacity of the first DC matches the capabilities required by the task to be processed. In this way, when the processing capacity of the second AS is insufficient to undertake the current task to be processed, the task can be shared with an AS of a lower priority, that is, shared with the AS of the second DC for processing, so as to ensure the normal operation of the IMS service.

[0054] In actual application, the SCSCF may detect the current load capacity of the second AS by sending a capability detection request.

[0055] Based on this, in one embodiment, the determining whether the second AS has the capability to process the task to be processed to obtain a first determination result includes:

[0056] Sending a first request to a second AS; wherein the first request is used to obtain a load condition of the second AS;

[0057] receiving first information sent by the second AS in response to the first request;

[0058] Based on the first information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

[0059] In actual application, the first request may also be called a capability detection request or a detection request, and the embodiment of the present disclosure does not limit this, as long as its function can be achieved.

[0060] In actual application, the first information may include at least one of processor capability, memory capability, storage capability and network capability.

[0061] Among them, the processor capability of AS can be evaluated by calling benchmark tools (such as UnixBench, Geekbench, etc.); the memory capability of AS can be evaluated by checking the memory configuration of the server and running memory benchmark tools (such as STREAM, etc.); the storage capability of AS can be evaluated by running storage benchmark tools (such as Iometer, etc.); the network capability of AS can be evaluated by running network benchmark tools (such as Ping, Tcpdump, etc.).

[0062] In actual application, a second request can be sent to each second AS in the first DC, and the current load capacity of each second AS can be determined based on the first information sent by each second AS in response to the second request, so that the current load capacity of the first DC can be calculated based on the current load capacity of each second AS.

[0063] In actual application, the current load capacity of the second AS can also be predicted according to the local static policy.

[0064] Based on this, in one embodiment, the determining whether the second AS has the capability to process the task to be processed to obtain a first determination result includes:

[0065] Performing traffic statistics on the second AS to obtain second information;

[0066] Based on the second information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

[0067] In actual application, the current load condition of the second AS can be determined through the second information, so that the current actual load capacity of the second AS, that is, the processing capacity that can be currently provided, can be calculated according to the expected processing capacity of the second AS and the current load condition.

[0068] In actual application, after receiving a call request, the SCSCF can determine the AS that needs to be triggered, that is, the first AS, according to the call request.

[0069] Based on this, in one embodiment, the method may further include:

[0070] A second request is received; the second request carries the initial filter criteria (IFC) information of the user.

[0071] In actual application, the second request may also be referred to as a user session request or a call request, and the embodiments of the present disclosure do not limit this, as long as the function can be achieved.

[0072] In actual application, IFC information can be included in the user's registration request to indicate the capabilities of the user device and specific service triggering conditions, thereby triggering operations related to specific services; in the application process of IFC information, after receiving the user session request, SCSCF can check whether the triggering criteria in IFC meet the preset conditions, and then trigger the corresponding service according to the matching rules; wherein, the triggering criteria in the IFC information can be any state or condition that meets the service requirements, such as the time, duration, direction of the call, calling party number, called party number, etc. of the call. Once the preset conditions of the matching rule are met, SCSCF can trigger the corresponding service and route the service to the corresponding service platform for processing.

[0073] In actual application, the priority of the AS related to the disaster recovery of the first AS can be configured in the DNS record. After receiving the second request, the SCSCF can determine the AS that needs to be triggered (i.e., the first AS) based on the IFC information, and query the DNS through the AS universal domain name to query the NDS record of the first AS, thereby obtaining the information of the AS that can be used to undertake the disaster recovery task of the first AS, i.e., the information of the second AS and the third AS, specifically, obtaining the priority of the second AS and the third AS; wherein, the priority of the first AS and the second AS can be configured as a first preset value, and the priority of the third AS can be configured as a second preset value, and the first preset value is less than the second preset value; exemplarily, the priority of the first AS and the second AS can be configured as 1, and the priority of the third AS can be configured as 2.

[0074] In actual application, after receiving the second request, SCSCF can first send a call request to the first AS. When the first AS fails, it sends the first request to the second AS with the same priority according to the DNS record to obtain the current load status of the second AS.

[0075] Step 302: When the first judgment result indicates that the second AS has the ability to process the task to be processed, the second AS is used to process the task to be processed; or, when the first judgment result indicates that the second AS does not have the ability to process the task to be processed, based on the load capacity of the second AS, the second AS and a third AS are used to process the task to be processed; the third AS is an AS with a lower priority than the first AS.

[0076] In actual application, when the first judgment result indicates that the second AS does not have the ability to process the tasks to be processed, the task volume that matches the current actual load capacity of the second AS can be predicted based on the current actual load capacity of the second AS, and the tasks to be processed can be divided according to the prediction results. The task volume that exceeds the current load capacity of the second AS is allocated to a lower priority AS for processing, that is, the third AS in the second DC for processing, thereby ensuring the normal operation of the IMS service.

[0077] Based on this, in one embodiment, the task to be processed may include multiple subtasks, and based on the load capacity of the second AS, using the second AS and the third AS to process the task to be processed may include:

[0078] Determining a first subtask and a second subtask from the plurality of subtasks based on the load capacity of the second AS;

[0079] The first subtask is processed by the second AS, and the second subtask is processed by the third AS.

[0080] In actual application, the first subtask may be determined from the plurality of subtasks according to the load capacity of the second AS, and then, the other subtasks except the first subtask may be determined as the second subtask.

[0081] In actual application, in order to improve the reliability and efficiency of disaster recovery processing and avoid affecting the normal operation of disaster recovery services when the second AS also fails, it is possible to first determine whether the second AS has a fault; when the second AS fails, it can be determined that all ASs in the first DC cannot guarantee normal processing. At this time, all tasks to be processed can be assigned to the second DC for processing.

[0082] Based on this, in one embodiment, processing the to-be-processed task by using the second AS and the third AS based on the load capacity of the second AS may include:

[0083] Determine whether the second AS fails, and obtain a second determination result;

[0084] When the second judgment result indicates that the second AS fails, using the third AS to process the multiple subtasks;

[0085] When the second judgment result indicates that the second AS is not faulty, based on the load capacity of the second AS, the second AS and the third AS are used to process the task to be processed.

[0086] In actual application, when the second judgment result indicates that the second AS has not failed, all subtasks can be assigned to the third AS for processing; for example, there is an available second AS in the first DC, but the processing capacity of the second AS is poor. At this time, all subtasks can be assigned to the third AS for processing. For another example, multiple subtasks of the task to be processed are related. If multiple subtasks are assigned to different DCs for processing, it may affect the processing effect. At this time, all subtasks can be assigned to the third AS for processing.

[0087] In summary, the disaster recovery method provided by the embodiment of the present disclosure determines the load capacity of the backup AS with the same priority level, and when the load capacity of the backup AS cannot match the current tasks to be processed, uses the AS with a lower priority level to share the current tasks to be processed, thereby avoiding business losses caused by the AS processing capacity being unable to carry the tasks to be processed, improving the reliability of disaster recovery processing, and thus enhancing users' business perception.

[0088] The technical solution of the present disclosure is further described in detail below in conjunction with specific application examples.

[0089] Figure 4 FIG. 1 is a flow chart of a method for restoring IMS services in an application embodiment of the present disclosure. Figure 4 As shown, the method may include:

[0090] Step 401: After receiving the call request, the SCSCF triggers the service AS according to the user's contracted iFC information.

[0091] Step 402: SCSCF uses the AS universal domain name to query the DNS and obtain the DNS record of the service AS;

[0092] DC1 includes AS1 and AS2, and DC2 includes AS3 and AS4. The DNS records of the service ASs obtained by query are as follows:

[0093] AS1.service.com priority=1;

[0094] AS2.service.com priority=1;

[0095] AS3.service.com priority=2;

[0096] AS4.service.com priority=2.

[0097] Step 403: SCSCF selects AS1 according to the priority and sends the call request to service AS1.

[0098] Step 404: The call request sent to service AS1 fails, and SCSCF determines that AS1 fails, and initiates a capability detection request to service AS2 of the same priority as AS1 to detect the equipment load of AS2.

[0099] Here, the traffic statistics of the current device, that is, the traffic statistics of AS2, can also be obtained according to the local static policy, and adaptive judgment can be made according to the traffic statistics results and the service AS2 processing capability;

[0100] Step 405: When the capacity of AS2 with the same priority as AS is insufficient to bear the disaster recovery service, a call request is sent to the backup regional device AS3 to share the service to the backup regional device AS3.

[0101] The IMS service recovery method provided by the application embodiment of the present disclosure can perform adaptive load sharing according to the capacity of the detected remaining service ASs in the service AS failure scenario, effectively reducing the interruption duration of the IMS service and improving the service perception of the user.

[0102] In order to implement the above-mentioned disaster recovery method, the embodiment of the present disclosure also provides a disaster recovery device. Figure 5 As shown, the apparatus 500 may include:

[0103] The calculation unit 501 is used for determining, in response to a failure of the first AS, whether the second AS has the ability to process the task to be processed, and obtaining a first determination result; the first AS is the AS triggered by the task to be processed, and the second AS is the AS with the same priority as the first AS;

[0104] The processing unit 502 is used to use the second AS to process the task to be processed when the first judgment result indicates that the second AS has the ability to process the task to be processed; or, when the first judgment result indicates that the second AS does not have the ability to process the task to be processed, use the second AS and a third AS to process the task to be processed based on the load capacity of the second AS; the third AS is an AS with a lower priority than the first AS.

[0105] In one embodiment, each AS in the same DC has the same priority, and ASs in different DCs have different priorities.

[0106] In one embodiment, the calculation unit 501 may be specifically used for:

[0107] Sending a first request to a second AS; wherein the first request is used to obtain a load condition of the second AS;

[0108] receiving first information sent by the second AS in response to the first request;

[0109] Based on the first information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

[0110] In one embodiment, the processing unit 502 may be specifically configured to:

[0111] Performing traffic statistics on the second AS to obtain second information;

[0112] Based on the second information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

[0113] In one embodiment, the task to be processed includes multiple subtasks, and the processing unit 502 can be specifically used to:

[0114] Determining a first subtask and a second subtask from the plurality of subtasks based on the load capacity of the second AS;

[0115] The first subtask is processed by the second AS, and the second subtask is processed by the third AS.

[0116] In one embodiment, the processing unit 502 may be specifically configured to:

[0117] Determine whether the second AS fails, and obtain a second determination result;

[0118] When the second judgment result indicates that the second AS fails, using the third AS to process the multiple subtasks;

[0119] When the second judgment result indicates that the second AS has not failed, the second AS and the third AS are used to process the task to be processed based on the load capacity of the second AS.

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

[0121] Based on the hardware implementation of the above program modules, and in order to implement the method of the embodiment of the present disclosure, the embodiment of the present disclosure also provides an electronic device, such as Figure 6 As shown, the electronic device 600 includes:

[0122] Communication interface 601, capable of exchanging information with other devices;

[0123] A processor 602, connected to the communication interface 601 to implement information interaction with other devices, and used to execute the method provided by one or more of the above technical solutions when running a computer program;

[0124] A memory 603 , on which the computer program is stored.

[0125] Specifically, the processor 602 may be configured to:

[0126] In response to a failure of the first AS, determining whether the second AS has the ability to process the task to be processed, and obtaining a first determination result; the first AS is an AS triggered by the task to be processed, and the second AS is an AS with the same priority as the first AS;

[0127] When the first judgment result indicates that the second AS has the ability to process the task to be processed, using the second AS to process the task to be processed;

[0128] or,

[0129] When the first judgment result indicates that the second AS does not have the ability to process the task to be processed, based on the load capacity of the second AS, the second AS and a third AS are used to process the task to be processed; the third AS is an AS with a lower priority than the first AS.

[0130] In one embodiment, each AS in the same DC has the same priority, and ASs in different DCs have different priorities.

[0131] In one embodiment, the processor 602 may be specifically configured to:

[0132] Sending a first request to the second AS using the communication interface 601; the first request is used to obtain the load status of the second AS;

[0133] receiving, using the communication interface, first information sent by the second AS in response to the first request;

[0134] Based on the first information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

[0135] In one embodiment, the processor 602 may be specifically configured to:

[0136] Performing traffic statistics on the second AS to obtain second information;

[0137] Based on the second information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

[0138] In one embodiment, the task to be processed includes multiple subtasks, and the processor 602 may be specifically configured to:

[0139] Determining a first subtask and a second subtask from the plurality of subtasks based on the load capacity of the second AS;

[0140] The first subtask is processed by the second AS, and the second subtask is processed by the third AS.

[0141] In one embodiment, the processor 602 may be specifically configured to:

[0142] Determine whether the second AS fails, and obtain a second determination result;

[0143] When the second judgment result indicates that the second AS fails, using the third AS to process the multiple subtasks;

[0144] When the second judgment result indicates that the second AS has not failed, the second AS and the third AS are used to process the task to be processed based on the load capacity of the second AS.

[0145] It should be noted that the specific processing process of the processor 602 can be understood by referring to the above method.

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

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

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

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

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

[0151] The embodiments of the present disclosure further provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the malware detection method described in the above embodiments of the present disclosure.

[0152] An embodiment of the present disclosure further provides a computer program product, including a computer program, which executes the malware detection method described in the above embodiment of the present disclosure when a processor executes the computer program.

[0153] The embodiment of the present disclosure also provides a chip, which can be seen in Figure 7 Schematic diagram of the chip structure shown. Figure 7 The chip shown includes a processor 701 and an interface circuit 702. The number of the processor 701 can be one or more, and the number of the interface circuit 702 can be one or more.

[0154] Optionally, the chip also includes a memory, which is used to store necessary computer programs and data; the interface circuit 702 is used to receive signals from the memory and send signals to the processor 701, and the signals include computer instructions stored in the memory. When the processor 701 executes the computer instructions, the electronic device executes the malware detection method described in the above embodiments of the present disclosure.

[0155] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0156] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0157] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0158] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processing module, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (control method), a portable computer disk box (magnetic device), RAM, ROM, EPROM or flash memory, a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or otherwise processing in a suitable manner if necessary, and then stored in a computer memory.

[0159] It should be understood that the various parts of the embodiments of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0160] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0161] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0162] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A disaster recovery method, characterized in that: Applied to a network function virtualization NFV network, the method comprises: In response to a failure of the first application server AS, determining whether the second AS has the ability to process the task to be processed, and obtaining a first determination result; the first AS is the AS triggered by the task to be processed, and the second AS is the AS with the same priority as the first AS; When the first judgment result indicates that the second AS has the ability to process the task to be processed, using the second AS to process the task to be processed; or, When the first judgment result indicates that the second AS does not have the ability to process the task to be processed, based on the load capacity of the second AS, the second AS and a third AS are used to process the task to be processed; the third AS is an AS with a lower priority than the first AS.

2. The method according to claim 1, characterized in that: Each AS in the same data center DC has the same priority, but ASs in different DCs have different priorities.

3. The method according to claim 1 or 2, characterized in that: The determining whether the second AS has the capability to process the task to be processed to obtain a first determination result includes: Sending a first request to a second AS; wherein the first request is used to obtain a load condition of the second AS; receiving first information sent by the second AS in response to the first request; Based on the first information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

4. The method according to claim 1 or 2, characterized in that: The determining whether the second AS has the capability to process the task to be processed to obtain a first determination result includes: Performing traffic statistics on the second AS to obtain second information; Based on the second information and the processing capability of the second AS, it is determined whether the second AS has the capability to process the task to be processed.

5. The method according to claim 1 or 2, characterized in that: The task to be processed includes a plurality of subtasks. Based on the load capacity of the second AS, the second AS and the third AS are used to process the task to be processed, including: Determining a first subtask and a second subtask from the plurality of subtasks based on the load capacity of the second AS; The first subtask is processed by the second AS, and the second subtask is processed by the third AS.

6. The method according to claim 5, characterized in that The processing of the to-be-processed task by using the second AS and the third AS based on the load capacity of the second AS includes: Determine whether the second AS fails, and obtain a second determination result; When the second judgment result indicates that the second AS fails, using the third AS to process the multiple subtasks; When the second judgment result indicates that the second AS has not failed, the second AS and the third AS are used to process the task to be processed based on the load capacity of the second AS.

7. A disaster recovery device, characterized in that: The device comprises: A computing unit, configured to, in response to a failure of the first AS, determine whether the second AS has the ability to process the task to be processed, and obtain a first determination result; the first AS is an AS triggered by the task to be processed, and the second AS is an AS with the same priority as the first AS; A processing unit is used to use the second AS to process the task to be processed when the first judgment result indicates that the second AS has the ability to process the task to be processed; or, when the first judgment result indicates that the second AS does not have the ability to process the task to be processed, use the second AS and a third AS to process the task to be processed based on the load capacity of the second AS; the third AS is an AS with a lower priority than the first AS.

8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 6.

10. A chip, characterized in that: It comprises one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from a memory of an electronic device and send the signal to the processor, the signal includes a computer instruction stored in the memory, and when the processor executes the computer instruction, the electronic device executes the method described in any one of claims 1 to 6.