CN113162781B - Service recovery method, device, system and storage medium - Google Patents

Service recovery method, device, system and storage medium Download PDF

Info

Publication number
CN113162781B
CN113162781B CN202010074217.2A CN202010074217A CN113162781B CN 113162781 B CN113162781 B CN 113162781B CN 202010074217 A CN202010074217 A CN 202010074217A CN 113162781 B CN113162781 B CN 113162781B
Authority
CN
China
Prior art keywords
service
recovered
priority data
consumption
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010074217.2A
Other languages
Chinese (zh)
Other versions
CN113162781A (en
Inventor
刘宇飞
张立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN202010074217.2A priority Critical patent/CN113162781B/en
Publication of CN113162781A publication Critical patent/CN113162781A/en
Application granted granted Critical
Publication of CN113162781B publication Critical patent/CN113162781B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a service recovery method, a device, a system and a storage medium. The method comprises the following steps: recovering the service to be recovered according to the current priority data of the service to be recovered; and if the current consumption of any system resource is detected to be larger than the consumption threshold, determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the system resource consumption, and recovering the service to be recovered. According to the embodiment of the application, in the process of recovering the service, the priority data of the service is adjusted in time according to the consumption condition of the system resources, so that the recovery strategy of the service is adjusted, the system resources can recover the service normally and quickly, and the stability of service recovery is ensured.

Description

Service recovery method, device, system and storage medium
Technical Field
The embodiment of the invention relates to the technical field of resource optimization configuration, in particular to a service recovery method, a device, a system and a storage medium.
Background
The service system needs to automatically recover the original service after the system fault is repaired. When the system application scale is not large, the service can be recovered quickly. However, with the development of technology, the functions in the service system are more and more, the equipment access scale is larger and larger, and one service system can manage tens of thousands or even hundreds of thousands of equipment accesses. Under such a large scale access pressure, how to effectively and quickly restore the system function after restarting becomes a difficult problem in the industry at present.
When the service system is restarted due to maintenance or failure, tens of thousands or even hundreds of thousands of devices are synchronously on-line, a large amount of on-line messages of the devices instantly rush into the service system, and huge service recovery pressure is generated, so that the whole system cannot normally operate for a long time and cannot normally provide services.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a system, and a storage medium for service recovery, so as to adjust a service recovery parameter according to detection of a moving target, thereby improving acquisition quality of an image and adaptability of exposure.
In a first aspect, an embodiment of the present invention provides a service recovery method, where the method includes:
recovering the service to be recovered according to the current priority data of the service to be recovered;
and if the current consumption of any system resource is detected to be larger than the consumption threshold, determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the system resource consumption, and recovering the service to be recovered.
In a second aspect, an embodiment of the present invention provides a service recovery apparatus, where the apparatus includes:
the current service recovery module is used for recovering the service to be recovered according to the current priority data of the service to be recovered;
and the priority data adjusting module is used for determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the consumption of the system resources if the current consumption of any one item of system resources is detected to be larger than the consumption threshold, and is used for recovering the service to be recovered.
In a third aspect, an embodiment of the present invention further provides a system, where the system includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the service restoration method according to any one of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service recovery method according to any one of the embodiments of the present invention.
In the embodiment of the invention, the service to be recovered is recovered according to the current priority data of the service to be recovered, so that the system resource orderly recovers the service to be recovered. If the current consumption of any system resource is detected to be larger than the consumption threshold, determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the system resource consumption, and recovering the service to be recovered, so that the priority data to be recovered is adjusted according to the consumption condition of the system resource, the system resource is reasonably configured, the service to be recovered can be normally and quickly recovered by the system resource, and the stability of service recovery is improved.
Drawings
Fig. 1 is a flowchart of a service recovery method according to an embodiment of the present invention;
fig. 2 is a flowchart of a service recovery method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service recovery apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a system according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a service recovery method according to an embodiment of the present invention. The service recovery method provided by this embodiment may be applicable to the case of recovering the service after the system is started, and typically, the embodiment of the present invention may be applicable to the case of adjusting the service recovery policy when the load of the system resource is high in the service recovery process. The method may be specifically performed by a service recovery apparatus, which may be implemented by means of software and/or hardware, which may be integrated in a system. Referring to fig. 1, the method of the embodiment of the present invention specifically includes:
and S110, recovering the service to be recovered according to the current priority data of the service to be recovered.
The service to be recovered may be a service which has a service requirement and is subjected to task processing by the service. When the service system is started, all the devices are on line. For each device, multiple services are included, but not every service currently needs to perform a task. Therefore, only the traffic currently needed to perform the task is recovered. The current priority data is the priority data based on which the current system resource recovers the service to be recovered.
In this embodiment of the present application, before recovering the service to be recovered according to the current priority data of the service to be recovered, the method further includes: and if the current consumption of at least one item of system resource is detected to be less than or equal to the consumption threshold, executing the step of recovering the service to be recovered according to the current priority data of the service to be recovered.
For example, when the service system is started, the devices connected to the service system are started, and the service system is required to recover the services of the started devices. First, it is determined whether a current consumption of at least one system resource exceeds a consumption threshold. If the current system resource redundancy quantity is not exceeded, the current system resource redundancy quantity is high, and the service to be recovered can be recovered normally, so that the priority data of the service to be recovered is not adjusted, and the service to be recovered is recovered according to the current priority data of the service to be recovered. When the service system is started and the service to be restored is started, the current priority data of the service to be restored may be the preset initial priority data, as shown in table 1. For different services to be recovered, the initial priority data are different, so that the system resources can effectively and stably recover the services to be recovered.
TABLE 1
Recovering service names Traffic priority data
Storage service 0.8
Wall-mounted service 0.5
Configuring a delivery service 0.2
Message push service 0.1
And S120, if the current consumption of any system resource is detected to be larger than the consumption threshold, determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the system resource consumption, and recovering the service to be recovered.
For example, as shown in table 2, for the CPU, the consumption threshold may be set to be 70%, that is, when the current consumption of the CPU is greater than 70%, the system resource is considered to be in an overload state, and priority data of the service to be processed needs to be adjusted, so as to adjust the consumption of the system resource by the service to be processed.
TABLE 2
Figure BDA0002378061470000051
The association relationship between the service to be recovered and the system resource consumption may be preset according to actual conditions, as shown in table 3. The set consumption of the at least one system resource allowed can be represented by an allowed consumption of the at least one system resource relative to the parameter of the to-be-recovered traffic.
Illustratively, if the system resource is in an overload state, the current priority data is adjusted according to the incidence relation between the service to be recovered and the system resource consumption to obtain new priority data. For example, if the consumption of the current CPU exceeds the consumption threshold by 70%, and the consumption of the information push service to the CPU is the maximum, the current priority of the information push service may be reduced to obtain new priority data, and the new priority data is used as the current priority data to recover the service to be recovered, thereby reducing the speed of eliminating the CPU and ensuring the normal operation of recovering the service.
TABLE 3
Figure BDA0002378061470000052
Figure BDA0002378061470000061
In the embodiment of the invention, the service to be recovered is recovered according to the current priority data of the service to be recovered, so that the system resource orderly recovers the service to be recovered. If the current consumption of any system resource is detected to be larger than the consumption threshold, determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the system resource consumption, and recovering the service to be recovered, so that the priority data to be recovered is adjusted according to the consumption condition of the system resource, the system resource is reasonably configured, the service to be recovered can be normally and quickly recovered by the system resource, and the stability of service recovery is improved.
Fig. 2 is a flowchart of a service recovery method according to another embodiment of the present invention. For further optimization of the embodiments, details which are not described in detail in the embodiments are described in the embodiments. Referring to fig. 2, the service recovery method provided in this embodiment may include:
s210, recovering the service to be recovered according to the current priority data of the service to be recovered.
In another embodiment of the present application, recovering a service to be recovered according to current priority data of the service to be recovered includes: determining the number of the services to be recovered processed in unit time according to the current priority data of the services to be recovered; and recovering the service to be recovered according to the number of the services to be recovered processed in unit time.
Illustratively, according to the priority data of the service to be recovered, the recovery speed of each service to be recovered is determined, so as to ensure that the service to be processed with a high priority can be recovered more quickly.
Determining the number of the services to be recovered processed in unit time according to the current priority data of the services to be recovered, wherein the method comprises the following steps: determining the recovery time of the service to be recovered according to the current priority data of the service to be recovered; the recovery time of the service to be recovered with the higher priority in the current priority data is shorter than the recovery time of the service to be recovered with the lower priority in the current priority data; and determining the number of the services to be recovered processed in unit time according to the total number of the services to be recovered and the recovery time.
For example, since the number of each service to be recovered is different and the recovery speed for recovering each service to be processed is different, if the number of the services to be recovered is set according to the priority, it is not always guaranteed that the services to be recovered with the higher priority are completed faster, and therefore, the number of the services to be recovered processed in the unit time needs to be determined according to the actual number of the services to be recovered and the recovery time. As shown in table 4. In the embodiment of the present application, there is a case where, for the initial priority data, the initial priority of the storage service is higher than the initial priority of the wall-up service, but since the time consumption of the storage service is long, the traffic volume is small, the time consumption of the wall-up service is short, and the traffic volume is large, even if the processing volume per unit time of the storage service is smaller than the processing volume per unit time of the wall-up service, the total time consumption for recovering the storage service can be smaller than the total time consumption for processing the wall-up service, so as to achieve faster recovery completion.
TABLE 4
Resource type Storage service Wall-mounted service Configuring a delivery service Message push service
Number of services to be restored/s 150 200 200 50
S220, determining a priority data adjustment coefficient of the service to be recovered according to the sum of the consumption of the service to be recovered on at least one item of system resources and the sum of the consumption of the service to be recovered on the overloaded system resources; wherein the overload system resource is a system resource whose current consumption is greater than the consumption threshold.
For example, because the consumption of the system resource by part of the services to be restored is large, the system resource may be in an overload state, and therefore, the priority data adjustment coefficient of the services to be restored may be determined according to the sum of the consumption of at least one item of system resource by the services to be restored and the sum of the consumption of the overload system resource by the services to be restored, so that the priority corresponding to the services to be processed with large consumption of the overload system resource is reduced, and the consumption speed of the overload system resource is reduced.
In another embodiment of the present application, determining a priority data adjustment coefficient of a service to be recovered according to a sum of consumption amounts of the service to be recovered on at least one of the system resources and a sum of consumption amounts of the service to be recovered on an overloaded system resource includes: subtracting the sum of the consumption of the service to be recovered on at least one item of system resources from the sum of the consumption of the service to be recovered on the current overload system resources to obtain the normal consumption of the service to be recovered on the system resources; and dividing the normal consumption by the sum of the consumption of at least one item of system resources by the service to be recovered to obtain a priority data adjustment coefficient of the service to be recovered.
Illustratively, the priority data adjustment coefficient c is determined according to the following formula:
Figure BDA0002378061470000081
for example, if the current overload system resource is CPU and network, the priority data adjustment coefficient c for the storage service is:
Figure BDA0002378061470000082
and S230, determining new priority data of the service to be recovered according to the priority data adjustment coefficient and the current priority data, and recovering the service to be recovered.
Exemplarily, determining new priority data of the service to be recovered according to the priority data adjustment coefficient and the current priority data includes: and taking the product of the priority data adjustment coefficient and the current priority data as new priority data of the service to be recovered.
Specifically, for the storage service, since it is determined that the priority data adjustment coefficient c is 0.6, the current priority of the storage service is multiplied by the priority data adjustment coefficient, so as to obtain new priority data w =0.6 × 0.8=0.48. The method comprises the steps of adjusting the current priority data of the service to be recovered according to the sum of the consumption of at least one item of system resources by the service to be recovered and the sum of the consumption of the overload system resources by the service to be recovered, so that the priority data of the service to be recovered, which has large resource consumption by the overload system, is reduced, the current service to be recovered can be normally recovered by the system resources, and the stability of the system is kept.
Correspondingly, if the priority of the service to be recovered is reduced, the number of the services to be recovered processed in unit time corresponding to the service to be recovered can be correspondingly reduced, so that the system resources can recover other services to be recovered more quickly, overload of the system resources due to overlarge consumption of the system resources by the service to be recovered is avoided, the processing of the whole service to be recovered is influenced, and the normal operation of the recovery process is ensured.
According to the technical scheme of the embodiment of the invention, the priority data adjustment coefficient of the service to be recovered is determined according to the sum of the consumption of the service to be recovered on at least one item of system resources and the consumption of the service to be recovered on the overload system resources, and the new priority data of the service to be recovered is determined according to the priority data adjustment coefficient and the current priority data and is used for recovering the service to be recovered, so that the priority corresponding to the service to be processed with large resource consumption of the overload system is reduced, the consumption of the overload system resources is reduced, the system resources can normally recover the current service to be recovered, and the stability of the system is kept.
Fig. 3 is a schematic structural diagram of a service restoration apparatus according to an embodiment of the present invention. The device can be suitable for adjusting the service recovery parameters, typically, the embodiment of the invention can be used for the condition of recovering the service record after the system is started, and typically, the embodiment of the invention can be suitable for the condition of adjusting the service recovery strategy when the load of the system resources is higher in the service recovery process. The apparatus may be implemented by software and/or hardware, and the apparatus may be integrated in a system. Referring to fig. 3, the apparatus specifically includes:
a current service recovery module 310, configured to recover a service to be recovered according to current priority data of the service to be recovered;
the priority data adjusting module 320 is configured to determine, if it is detected that the current consumption of any one of the system resources is greater than the consumption threshold, new priority data of the service to be recovered according to the current priority data and the association relationship between the service to be recovered and the consumption of the system resources, and use the new priority data to recover the service to be recovered.
In this embodiment, the priority data adjusting module 320 includes:
the adjustment coefficient determining unit is used for determining the priority data adjustment coefficient of the service to be recovered according to the sum of the consumption of the service to be recovered on at least one item of system resources and the sum of the consumption of the service to be recovered on the overload system resources; wherein the overload system resource is a system resource of which the current consumption is greater than the consumption threshold;
and the new priority data determining unit is used for determining new priority data of the service to be recovered according to the priority data adjusting coefficient and the current priority data.
In an embodiment of the present application, the adjustment coefficient determining unit includes:
the normal consumption determining subunit is used for subtracting the sum of the consumption of the service to be recovered on at least one item of system resources from the sum of the consumption of the service to be recovered on the current overload system resources to obtain the normal consumption of the service to be recovered on the system resources;
and the coefficient determining subunit is used for dividing the normal consumption by the sum of the consumption of the service to be recovered on at least one item of system resource to obtain the priority data adjustment coefficient of the service to be recovered.
In an embodiment of the present application, the new priority data determining unit includes:
and the product determining subunit is used for taking the product of the priority data adjustment coefficient and the current priority data as new priority data of the service to be recovered.
In an embodiment of the present application, the apparatus further includes:
and the system resource detection module is used for executing the step of recovering the service to be recovered according to the current priority data of the service to be recovered if the current consumption of at least one item of system resource is detected to be less than or equal to the consumption threshold.
In this embodiment of the present application, the current service recovering module 310 includes:
a unit time processing quantity determining unit, configured to determine, according to the current priority data of the service to be recovered, a quantity of processing the service to be recovered in a unit time;
and the recovery unit is used for processing the service to be recovered according to the number of the services to be recovered processed in unit time.
In an embodiment of the present application, the unit for determining the processing amount per unit time includes:
a recovery time determining subunit, configured to determine, according to the current priority data of the service to be recovered, the recovery time of the service to be recovered; the recovery time of the service to be recovered with the higher priority in the current priority data is shorter than the recovery time of the service to be recovered with the lower priority in the current priority data;
and the quantity determining subunit is used for determining the quantity of the services to be recovered processed in unit time according to the total quantity of the same services to be recovered and the recovery time.
According to the technical scheme of the embodiment of the invention, the service to be recovered is recovered through the current service recovery module according to the current priority data of the service to be recovered, so that the system resources orderly recover the service to be recovered. If the priority data adjusting module detects that the current consumption of any system resource is larger than the consumption threshold, determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the system resource consumption, and recovering the service to be recovered, so that the priority data to be recovered is adjusted according to the consumption condition of the system resource, the system resource is reasonably configured, the service to be recovered can be normally and quickly recovered by the system resource, and the stability of service recovery is improved.
Fig. 4 is a schematic structural diagram of a system according to an embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary system 412 suitable for use in implementing embodiments of the present invention. The system 412 shown in fig. 4 is only an example and should not impose any limitations on the functionality or scope of use of embodiments of the present invention.
As shown in fig. 4, system 412 includes: one or more processors 416; a memory 428, configured to store one or more programs, when the one or more programs are executed by the one or more processors 416, so that the one or more processors 416 implement the service recovery method provided in the embodiment of the present invention, including:
recovering the service to be recovered according to the current priority data of the service to be recovered;
and if the current consumption of any system resource is detected to be larger than the consumption threshold, determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the consumption of the system resource, and recovering the service to be recovered.
Is expressed in the form of a general-purpose system. The components of system 412 may include, but are not limited to: one or more processors or processors 416, a system memory 428, and a bus 418 that couples the various system components (including the system memory 428 and the processors 416).
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
System 412 typically includes a variety of computer system readable storage media. These storage media may be any available storage media that can be accessed by system 412 and includes both volatile and nonvolatile storage media, removable and non-removable storage media.
The system memory 428 may include computer system readable storage media in the form of volatile memory, such as Random Access Memory (RAM) 430 and/or cache memory 432. The system 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic storage media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In these cases, each drive may be connected to bus 418 by one or more data storage media interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 462 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 462 generally perform the functions and/or methodologies of the described embodiments of the invention.
The system 412 may also communicate with one or more external systems 414 (e.g., keyboard, pointing system, display 426, etc.), with one or more systems that enable a user to interact with the system 412, and/or with any systems (e.g., network card, modem, etc.) that enable the system 412 to communicate with one or more other computing systems. Such communication may occur via input/output (I/O) interfaces 422. Moreover, system 412 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via network adapter 420. As shown, network adapter 420 communicates with the other modules of system 412 over bus 418. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with system 412, including but not limited to: microcode, system drives, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 416 performs various functional applications and data processing, such as implementing a service restoration method provided by embodiments of the present invention, by executing at least one of the other programs stored in the system memory 428.
One embodiment of the present invention provides a storage medium containing computer-executable instructions which, when executed by a computer processor, are operable to perform a method of service recovery comprising:
recovering the service to be recovered according to the current priority data of the service to be recovered;
and if the current consumption of any system resource is detected to be larger than the consumption threshold, determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the system resource consumption, and recovering the service to be recovered.
Computer storage media for embodiments of the present invention can take the form of any combination of one or more computer-readable storage media. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the invention, a computer readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or system. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A method for service restoration, the method comprising:
recovering the service to be recovered according to the current priority data of the service to be recovered;
if the current consumption of any system resource is detected to be larger than a consumption threshold, determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the consumption of the system resource, wherein the new priority data is used for recovering the service to be recovered;
determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the system resource consumption, wherein the determining comprises the following steps:
determining a priority data adjustment coefficient of the service to be recovered according to the sum of the consumption of at least one item of system resources by the service to be recovered and the sum of the consumption of the overload system resources by the service to be recovered; wherein the overloaded system resource is a system resource whose current consumption is greater than the consumption threshold;
and determining new priority data of the service to be recovered according to the priority data adjustment coefficient and the current priority data.
2. The method of claim 1, wherein determining the priority data adjustment factor for the traffic to be restored according to the sum of the consumption of the at least one system resource by the traffic to be restored and the consumption of the overloaded system resource by the traffic to be restored comprises:
subtracting the sum of the consumption of the service to be recovered on at least one item of system resources from the sum of the consumption of the service to be recovered on the current overload system resources to obtain the normal consumption of the service to be recovered on the system resources;
and dividing the normal consumption by the sum of the consumption of at least one item of system resources by the service to be recovered to obtain a priority data adjustment coefficient of the service to be recovered.
3. The method of claim 1, wherein determining new priority data of the service to be recovered according to the priority data adjustment coefficient and the current priority data comprises:
and taking the product of the priority data adjustment coefficient and the current priority data as new priority data of the service to be recovered.
4. The method of claim 1, wherein before recovering the service to be recovered according to the current priority data of the service to be recovered, the method further comprises:
and if the current consumption of at least one item of system resource is detected to be less than or equal to the consumption threshold, executing the step of recovering the service to be recovered according to the current priority data of the service to be recovered.
5. The method according to any one of claims 1 to 4, wherein recovering the service to be recovered according to the current priority data of the service to be recovered comprises:
determining the number of the services to be recovered processed in unit time according to the current priority data of the services to be recovered;
and recovering the service to be recovered according to the number of the services to be recovered processed in unit time.
6. The method of claim 5, wherein determining the amount of processing traffic to be recovered per unit time based on the current priority data of the traffic to be recovered comprises:
determining the recovery time of the service to be recovered according to the current priority data of the service to be recovered; the recovery time of the service to be recovered with the higher priority in the current priority data is shorter than the recovery time of the service to be recovered with the lower priority in the current priority data;
and determining the number of the services to be recovered processed in unit time according to the total number of the services to be recovered and the recovery time.
7. An apparatus for traffic restoration, the apparatus comprising:
the current service recovery module is used for recovering the service to be recovered according to the current priority data of the service to be recovered;
the priority data adjusting module is used for determining new priority data of the service to be recovered according to the current priority data and the incidence relation between the service to be recovered and the consumption of the system resources if the current consumption of any one item of system resources is detected to be larger than a consumption threshold value, and the new priority data is used for recovering the service to be recovered;
the priority data adjusting module comprises:
the adjustment coefficient determining unit is used for determining the priority data adjustment coefficient of the service to be recovered according to the sum of the consumption of the service to be recovered on at least one item of system resources and the sum of the consumption of the service to be recovered on the overload system resources; wherein the overloaded system resource is a system resource whose current consumption is greater than the consumption threshold;
and the new priority data determining unit is used for determining new priority data of the service to be recovered according to the priority data adjusting coefficient and the current priority data.
8. A service recovery system, characterized in that the service recovery system comprises: one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of traffic restoration as recited in any of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a method of service restoration according to any one of claims 1-6.
CN202010074217.2A 2020-01-22 2020-01-22 Service recovery method, device, system and storage medium Active CN113162781B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010074217.2A CN113162781B (en) 2020-01-22 2020-01-22 Service recovery method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010074217.2A CN113162781B (en) 2020-01-22 2020-01-22 Service recovery method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN113162781A CN113162781A (en) 2021-07-23
CN113162781B true CN113162781B (en) 2023-02-28

Family

ID=76881600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010074217.2A Active CN113162781B (en) 2020-01-22 2020-01-22 Service recovery method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN113162781B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960341A (en) * 2006-09-29 2007-05-09 华为技术有限公司 Service restoration method
CN101321115A (en) * 2007-06-07 2008-12-10 华为技术有限公司 Method and system for establishing business route, and node equipment
CN101582837A (en) * 2008-05-12 2009-11-18 华为技术有限公司 Service access control method, wireless access system and access control device
CN101594685A (en) * 2008-05-29 2009-12-02 中国移动通信集团上海有限公司 Allocation of radio resources and service priority are determined method, Apparatus and system
CN101645847A (en) * 2009-08-25 2010-02-10 中兴通讯股份有限公司 Method and system for improving service resumption speed in transmission network
CN103248510A (en) * 2012-02-14 2013-08-14 中兴通讯股份有限公司 Method and device for automatic recovery and reactivation of business
CN106685572A (en) * 2016-12-29 2017-05-17 重庆邮电大学 Cycle stepping recovery method based on bandwidth fairness in WDM optical network
CN107391317A (en) * 2017-09-14 2017-11-24 郑州云海信息技术有限公司 A kind of method, apparatus of data recovery, equipment and computer-readable recording medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960341A (en) * 2006-09-29 2007-05-09 华为技术有限公司 Service restoration method
CN101321115A (en) * 2007-06-07 2008-12-10 华为技术有限公司 Method and system for establishing business route, and node equipment
CN101582837A (en) * 2008-05-12 2009-11-18 华为技术有限公司 Service access control method, wireless access system and access control device
CN101594685A (en) * 2008-05-29 2009-12-02 中国移动通信集团上海有限公司 Allocation of radio resources and service priority are determined method, Apparatus and system
CN101645847A (en) * 2009-08-25 2010-02-10 中兴通讯股份有限公司 Method and system for improving service resumption speed in transmission network
CN103248510A (en) * 2012-02-14 2013-08-14 中兴通讯股份有限公司 Method and device for automatic recovery and reactivation of business
CN106685572A (en) * 2016-12-29 2017-05-17 重庆邮电大学 Cycle stepping recovery method based on bandwidth fairness in WDM optical network
CN107391317A (en) * 2017-09-14 2017-11-24 郑州云海信息技术有限公司 A kind of method, apparatus of data recovery, equipment and computer-readable recording medium

Also Published As

Publication number Publication date
CN113162781A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
US9489138B1 (en) Method and apparatus for reliable I/O performance anomaly detection in datacenter
CN110413432B (en) Information processing method, electronic equipment and storage medium
US11675645B2 (en) System and method for tracking memory corrected errors by frequency of occurrence while reducing dynamic memory allocation
US20200057714A1 (en) Testing data changes in production systems
CN114647363A (en) Method, electronic device and computer program product for data processing
CN110069217B (en) Data storage method and device
US8065569B2 (en) Information processing apparatus, information processing apparatus control method and control program
CN110502345A (en) A kind of overload protection method, device, computer equipment and storage medium
CN111858393B (en) Memory page management method, memory page management device, medium and electronic equipment
CN113162781B (en) Service recovery method, device, system and storage medium
CN111506450A (en) Method, apparatus and computer program product for data processing
US20100049920A1 (en) Dynamically adjusting write cache size
CN114936106A (en) Method, device and medium for processing host fault
CN111090627B (en) Log storage method and device based on pooling, computer equipment and storage medium
CN103685359A (en) Data processing method and device
CN113946376A (en) Load adjustment method and device, electronic equipment and storage medium
US20200073759A1 (en) Maximum data recovery of scalable persistent memory
CN107480004B (en) Fault recovery method and device and computer equipment
CN112328423A (en) Processing method, device and storage medium for search service loophole
US7770054B2 (en) Apparatus, system, and method to prevent queue stalling
CN111542048A (en) Method and device for restarting acquisition function of code detection equipment, server and storage medium
CN112306371A (en) Method, apparatus and computer program product for storage management
CN114281604B (en) Data recovery method and device, electronic equipment and storage medium
JP2014170448A (en) Replication system, job processing system, replication method and program
CN112257004B (en) Method, device, server and storage medium for page backup

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant