CN114090037A - Service degradation method, device, computer equipment and storage medium - Google Patents

Service degradation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114090037A
CN114090037A CN202111339026.5A CN202111339026A CN114090037A CN 114090037 A CN114090037 A CN 114090037A CN 202111339026 A CN202111339026 A CN 202111339026A CN 114090037 A CN114090037 A CN 114090037A
Authority
CN
China
Prior art keywords
degradation
information
target
service
monitoring
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.)
Granted
Application number
CN202111339026.5A
Other languages
Chinese (zh)
Other versions
CN114090037B (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202111339026.5A priority Critical patent/CN114090037B/en
Publication of CN114090037A publication Critical patent/CN114090037A/en
Application granted granted Critical
Publication of CN114090037B publication Critical patent/CN114090037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Abstract

The present disclosure provides a service degradation method, apparatus, computer device and storage medium, wherein the method comprises: acquiring monitoring information of a monitoring index of a target service in at least one service scene in real time; determining degradation configuration information of the target service; the degradation configuration information is used for indicating an index configuration threshold value of a monitoring index of the target service in each service scene; determining degradation proportion information of the target service aiming at each business scene based on the degradation configuration information and the monitoring information; and performing degradation operation on the target service according to the degradation proportion information.

Description

Service degradation method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for service degradation, a computer device, and a storage medium.
Background
With the development of internet services, the demands of users and business parties on the quality of service are also higher and higher. In the related art, in order to guarantee the service quality when the service of the application program fails, the service is generally degraded in an artificial degradation manner, so that the service quality is guaranteed as much as possible by the service degradation manner.
However, the manual degradation method requires time for decision making, so that there is a certain delay in the manual degradation method, and therefore the manual degradation method is prone to have a problem of slow execution speed, thereby resulting in poor service experience for users. If the service cannot be degraded in time, economic losses due to decision making and operation delays may also occur for the business side.
Disclosure of Invention
The embodiment of the disclosure at least provides a service degradation method, a service degradation device, computer equipment and a storage medium.
In a first aspect, an embodiment of the present disclosure provides a service degradation method, including: acquiring monitoring information of a monitoring index of a target service in at least one service scene in real time; determining degradation configuration information of the target service; the degradation configuration information is used for indicating an index configuration threshold value of a monitoring index of the target service in each service scene; determining degradation proportion information of the target service aiming at each business scene based on the degradation configuration information and the monitoring information; and performing degradation operation on the target service according to the degradation proportion information.
In an optional embodiment, the performing a downgrading operation on the target service according to the downgrade ratio information includes: determining a target degradation strategy corresponding to the degradation proportion information; and performing degradation operation on the target service according to the target degradation strategy, wherein different degradation proportion information corresponds to at least different degradation strategies.
In an optional embodiment, the determining, based on the degradation configuration information and the monitoring information, degradation proportion information of the target service for each of the traffic scenarios includes: based on the monitoring information, calculating degradation evaluation information of the target service relative to monitoring indexes under each business scene; determining an index configuration threshold value of a monitoring index corresponding to the degradation evaluation information to obtain a target index configuration threshold value; comparing the degradation evaluation information with the target index configuration threshold value to obtain a target comparison result; and determining the degradation proportion information of the target service aiming at each business scene according to the target comparison result.
In an optional embodiment, the target metric threshold includes: an index threshold upper limit value and an index threshold lower limit value; the determining, according to the target comparison result, degradation proportion information of the target service for each service scenario includes: under the condition that the degradation evaluation information is determined to be smaller than the index threshold upper limit value and larger than the index threshold lower limit value according to the target comparison result, determining an upper limit difference value between the degradation evaluation information and the index threshold upper limit value and a total difference value between the threshold upper limit value and the index threshold lower limit value; and determining the degradation proportion information according to the upper limit difference value and the total difference value. And calculating the degradation evaluation information and the target index configuration threshold value to obtain the degradation proportion information.
In an optional implementation manner, the determining, according to the target comparison result, degradation proportion information of the target service for each service scenario includes: and determining that the degradation proportion information of the target service for the corresponding service scene is a target proportion value under the condition that the degradation evaluation information is determined to be larger than the upper limit value of the index threshold according to the target comparison result.
In an optional embodiment, the method further comprises: after monitoring information of monitoring indexes of a target service in each service scene is acquired, carrying out exception verification on the monitoring information to obtain an exception verification result; and determining degradation proportion information of the target service aiming at each service scene based on the degradation configuration information and the monitoring information under the condition that the monitoring information does not contain abnormal monitoring information according to the abnormal checking result.
In an optional implementation manner, the monitoring information includes a plurality of pieces of sub-monitoring information obtained by collecting the monitoring index at a plurality of collection times; the method further comprises the following steps: determining variation trend information of the plurality of pieces of sub-monitoring information; and under the condition that the change trend information is determined to meet the preset trend change requirement, performing degradation operation on the target service based on the degradation proportion information.
In an optional embodiment, the method further comprises: after determining degradation configuration information for the target service, determining intervention indication information based on the degradation configuration information; and under the condition that the degradation state of the target service is determined to be allowed to execute degradation operation based on the intervention indication information, executing a step of determining degradation proportion information of the target service for each business scene based on the degradation configuration information and the monitoring information.
In an optional embodiment, the number of the monitoring indexes is multiple, and one monitoring index corresponds to one degradation proportion information; the performing of the downgrading operation on the target service according to the downgrade proportion information includes: sequencing the degradation proportion information according to preset sequencing parameters to obtain a target sequencing result; wherein the preset sorting parameters include: monitoring the numerical information size corresponding to the priority and/or degradation proportion information of the index; determining target degradation proportion information in a plurality of degradation proportion information according to the target sorting result; and performing degradation operation on the target service according to the target degradation proportion information.
In an optional embodiment, the performing a downgrading operation on the target service includes: and determining a target notification object corresponding to the downgrading operation, and sending downgrading notification information of the downgrading operation to the target notification object.
In an optional embodiment, the method further comprises: after a degradation ending instruction of the degradation operation is detected, calculating degradation stop loss information of the degradation operation; and determining degradation evaluation information of the degradation operation based on the degradation stop loss information.
In an optional embodiment, the method further comprises: acquiring a state identifier of the target service; and performing degradation operation on the target service based on the degradation proportion information under the condition that the target service is determined not to be in the degradation state based on the state identification.
In a second aspect, an embodiment of the present disclosure further provides a service degradation apparatus, including: the acquisition module is used for acquiring monitoring information of monitoring indexes of the target service in at least one service scene in real time; a first determining module, configured to determine degradation configuration information of the target service; the degradation configuration information is used for indicating an index configuration threshold value of a monitoring index of the target service in each service scene; a second determining module, configured to determine, based on the degradation configuration information and the monitoring information, degradation proportion information of the target service for each service scenario; a downgrade module to perform a downgrade operation on the target service based on the downgrade proportion information.
In a third aspect, an embodiment of the present disclosure further provides a computer device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the first aspect described above, or any possible implementation of the first aspect.
In a fourth aspect, this disclosed embodiment also provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps in the first aspect or any one of the possible implementation manners of the first aspect.
The embodiment of the disclosure provides a service degradation method, a service degradation device, computer equipment and a storage medium. In the embodiment of the disclosure, after the monitoring information of the target service in each service scene is collected, the degradation proportion information of the target service in each service scene is determined through the monitoring information and the degradation configuration information of the target service, and then the degradation operation is performed on the target service according to the degradation proportion information, so that the automatic degradation of the target service can be realized, and the technical problem of long degradation delay time existing in the existing manual degradation mode can be solved through the automatic degradation of the target service, thereby reducing the economic loss of a service party; meanwhile, by determining the degradation proportion information and executing the degradation operation on the target service according to the degradation proportion information, the degradation operation can be triggered on the target service through different triggering modes, so that the economic loss of a business side can be further reduced.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
FIG. 1 illustrates a flow chart of a method for service degradation provided by an embodiment of the present disclosure;
FIG. 2a is a flow chart illustrating another method of service degradation provided by an embodiment of the present disclosure;
FIG. 2b is a flowchart illustrating a downgrading operation performed on a target service based on downgrading ratio information in another service downgrading method provided by an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a service downgrading apparatus provided by an embodiment of the present disclosure;
fig. 4 shows a schematic diagram of a computer device provided by an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The term "and/or" herein merely describes an associative relationship, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of A, B, C, and may mean including any one or more elements selected from the group consisting of A, B and C.
Research shows that the manual degradation mode needs decision time, so that the mode often has a certain delay, and the problem of low execution speed easily occurs in the manual degradation mode, so that the service experience of a user is poor. If the service cannot be degraded in time, additional losses due to decision making and operation delays may also occur for the business side.
Based on the above research, the present disclosure provides a service degradation method, apparatus, computer device, and storage medium. In the embodiment of the disclosure, after the real-time monitoring information of the target service in at least one service scene is collected, the degradation proportion information of the target service in each service scene is determined through the monitoring information and the degradation configuration information of the target service, and then the degradation operation is performed on the target service according to the degradation proportion information, so that the automatic degradation of the target service can be realized, and the technical problem of long degradation delay time existing in the existing manual degradation mode can be solved through the automatic degradation of the target service, thereby reducing the economic loss of a service party; meanwhile, by determining the degradation proportion information and executing the degradation operation on the target service according to the degradation proportion information, the degradation operation can be triggered on the target service through different triggering modes, so that the economic loss of a business side can be further reduced.
To facilitate understanding of the present embodiment, first, a detailed description is given of a service degradation method disclosed in the embodiments of the present disclosure, and an execution subject of the service degradation method provided in the embodiments of the present disclosure is generally a computer device with certain computing capability, and the computer device can provide a service for a user through a terminal device and can perform service degradation when a service fails. In some possible implementations, the service downgrading method may be implemented by a processor calling computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of a service degradation method provided in the embodiment of the present disclosure is shown, where the method includes steps S101 to S107, where:
s101: and acquiring monitoring information of the monitoring index of the target service in at least one service scene in real time.
In the embodiment of the disclosure, firstly, the operation condition of the current service in each service scene can be monitored in real time through the monitoring service, so as to obtain the monitoring information of the monitoring index of the target service in each service scene.
Here, the monitoring service may be a dotting service openapi, and the monitoring information may be obtained by dotting and monitoring the operating state of the target service in at least one service scene by the dotting service according to the monitoring index. In specific implementation, a data acquisition request can be sent to the dotting service through the degrading service, so that monitoring information of monitoring indexes of the target service in each service scene is requested to be acquired. The degraded service is a service deployed by-pass with the target service, and the degraded service can provide degraded operation for one or more target services.
By bypassing the deployment of the degraded services, decoupling between the degraded services and online traffic (e.g., target services) can be achieved, which can improve maintainability of the degraded services.
It should be understood that the above-mentioned various business scenarios may be business scenarios of providing services for users in a target service.
In the embodiment of the present disclosure, the monitoring indexes corresponding to the target service in different service scenarios may be the same or different, and the present disclosure does not specifically limit this.
S103: determining degradation configuration information of the target service; the degradation configuration information is used for indicating an index configuration threshold of a monitoring index of the target service in each business scene.
In the embodiment of the present disclosure, first, downgrade configuration information preset for a target service is obtained. The monitoring index of the target service in each service scenario may set a corresponding index configuration threshold, where the index configuration threshold may include at least one of the following information: index checking rules and threshold information.
Specifically, the index verification rule is used for verifying whether the monitoring information corresponding to each monitoring index is abnormal information; the threshold information is used to indicate an upper limit value and a lower limit value of an index threshold corresponding to the monitoring index.
Here, the index configuration thresholds of the monitoring indexes for the target service under different traffic scenarios are different.
S105: and determining degradation proportion information of the target service aiming at each business scene based on the degradation configuration information and the monitoring information.
In the embodiment of the present disclosure, after the monitoring information is obtained, the monitoring information of each monitoring index of the target service in each service scenario may be calculated, so as to obtain a calculation result corresponding to each monitoring index.
Since the monitoring information includes the sub-monitoring information respectively acquired at different acquisition times, when the monitoring information is calculated, the overall sub-monitoring information can be comprehensively calculated, so that a calculation result corresponding to each monitoring index is obtained by calculation, and a specific calculation process will be described in the following embodiment.
After the calculation result is obtained, the degradation proportion information of the target service for each service scenario can be determined by combining the calculation result and the index configuration threshold value of each corresponding service scenario in the degradation configuration information.
S107: and performing degradation operation on the target service according to the degradation proportion information.
In the embodiment of the present disclosure, after the degradation proportion information is determined, a degradation operation may be performed on the target service according to the degradation proportion information.
In an alternative embodiment, the degradation proportion information may be used to indicate the proportion of the target service that is degraded for the user request when performing the degradation operation.
In specific implementation, the request response operation may be executed when the user requests the target service in the corresponding service scenario based on the degradation ratio information.
For example, the target service is denoted as a, and the service scenario corresponding to the target service a includes scenario B1 and scenario B2. If the degradation proportion information of the target service A for the business scenario B1 is 100%, the server of the target service does not respond 100% for the user request; if the degradation proportion of the target service indicated by the degradation proportion information is 50%, the server of the target service responds to 50% of the user request.
In the embodiment of the disclosure, after the monitoring information of the target service in each service scene is collected, the degradation proportion information of the target service in each service scene is determined through the monitoring information and the degradation configuration information of the target service, and then the degradation operation is performed on the target service according to the degradation proportion information, so that the automatic degradation of the target service can be realized, and the technical problem of long degradation delay time existing in the existing manual degradation mode can be solved through the automatic degradation of the target service, thereby reducing the economic loss of a service party; meanwhile, by determining the degradation proportion information and executing the degradation operation on the target service according to the degradation proportion information, the degradation operation can be triggered on the target service through different triggering modes, so that the economic loss of a business side can be further reduced.
For step S101, a data acquisition request is first sent to the dotting service by the downgrading service at each preset time period to request to acquire monitoring information, where the data acquisition request carries relevant information of a target service and scene information of a service scene corresponding to the target service, which is requested to be acquired.
The dotting service is a service which is arranged in the server and is used for monitoring the monitoring indexes of the target service in each service scene, and the monitoring information of the monitoring indexes can be acquired in an off-line asynchronous mode through the dotting service.
After the degraded service acquires the monitoring information returned by the dotting service, the degraded service can determine the degraded configuration information of the target service.
In specific implementation, the downgrade service may search, according to the identification information of the target service, the downgrade configuration information matched with the identification information in the database.
After the degradation configuration information is found, the degradation proportion information of the target service for each service scene can be determined based on the degradation configuration information and the monitoring information.
For step S105, based on the degradation configuration information and the monitoring information, determining degradation proportion information of the target service for each service scenario, specifically including the following processes:
s1051: and calculating degradation evaluation information of the target service relative to the monitoring indexes under each business scene based on the monitoring information.
S1052: and determining an index configuration threshold value of the monitoring index corresponding to the degradation evaluation information to obtain a target index configuration threshold value.
S1053: comparing the degradation evaluation information with the target index configuration threshold value to obtain a target comparison result; and determining the degradation proportion information of the target service aiming at each business scene according to the target comparison result.
In the embodiment of the present disclosure, after the monitoring information is obtained, degradation evaluation information of each monitoring index in each service scenario of the target service may be calculated based on the monitoring information.
For example, the target service is marked as a, any one of the business scenarios corresponding to the target service a is marked as B, and the monitoring index corresponding to the business scenario B includes a monitoring index C1 and a monitoring index C2.
At this time, for the monitoring index C1 and the monitoring index C2 in the service scenario B, after the target service a satisfies the degradation triggering condition, the degradation evaluation information R of the monitoring index C1 may be determined1And degradation evaluation information R of the monitoring index C22. The degradation triggering condition may be that the server responds to the user request abnormally or is in a critical state of responding abnormally.
In specific implementation, the monitoring information includes sub-monitoring information respectively acquired at different acquisition times, so that when the monitoring information is calculated, all the sub-monitoring information can be comprehensively calculated, and degradation evaluation information of each monitoring index can be calculated.
Here, for each monitoring index, a corresponding comprehensive calculation method is correspondingly set, and at this time, degradation evaluation information of the corresponding monitoring index may be calculated for the comprehensive calculation method.
Determining the degradation evaluation information R1And degradation evaluation information R2Then, the degradation evaluation information R can be determined in the degradation configuration information1And degradation evaluation information R2And obtaining the threshold value information in the index configuration threshold values of the corresponding monitoring indexes C1 and C2, thereby obtaining the target index configuration threshold value. The target index configuration threshold is used to indicate an upper index threshold value and a lower index threshold value of the corresponding monitoring index, for example, the target index configuration threshold may include an upper index threshold value H and a lower index threshold value L.
After the target index configuration threshold is determined, the degradation evaluation information and the target index configuration threshold can be compared, so that a target comparison result is obtained.
For example, assume that the target metric configuration threshold of the monitoring metric C1 includes a metric threshold upper limit value H1 and a metric threshold lower limit value L1, and the target metric configuration threshold of the monitoring metric C2 includes a metric threshold upper limit value H2 and a metric threshold lower limit value L2. When the degradation evaluation information is compared with the target index configuration threshold, the degradation evaluation information R may be compared with the target index configuration threshold1Comparing the target value with an index threshold upper limit value H1 and an index threshold lower limit value L1 to obtain a target comparison result M1; and degradation evaluation information R2And comparing the target value with the index threshold upper limit value H2 and the index threshold lower limit value L2 to obtain a target comparison result M2.
After the target comparison result is obtained, the specific determination process will be described in the following embodiments according to the degradation ratio information of the target service for each service scenario.
As can be seen from the above description, in the embodiment of the present disclosure, degradation evaluation information of the target service with respect to each monitoring index in each service scenario is calculated, and then a threshold is configured according to the degradation evaluation information and an index corresponding to the monitoring index, so as to determine degradation ratio information of the target service for each service scenario, thereby implementing degradation evaluation on each monitoring index, and further determining the degradation ratio information using the degradation evaluation information of each monitoring index more accurately.
In the embodiment of the present disclosure, when the target index configuration threshold includes an index threshold upper limit value and an index threshold lower limit value of the corresponding monitoring index, the foregoing step determines, according to the target comparison result, degradation proportion information of the target service for each service scenario, specifically including the following several cases, which are described in the following cases.
The first condition is as follows:
under the condition that the degradation evaluation information is determined to be smaller than the index threshold upper limit value and larger than the index threshold lower limit value according to the target comparison result, determining an upper limit difference value between the degradation evaluation information and the index threshold upper limit value and a total difference value between the threshold upper limit value and the index threshold lower limit value; and determining the degradation proportion information according to the upper limit difference value and the total difference value. .
For example, the target service is marked as a, any one of the business scenarios corresponding to the target service a is marked as B, and the monitoring index corresponding to the business scenario B is marked as including the monitoring index C1. Degradation evaluation information R corresponding to monitoring index C11The target index configuration threshold of the monitoring index C1 includes an index threshold upper limit value H1 and an index threshold lower limit value L1.
If the target comparison result determines that L1 is not more than R1H1 ≦ H, the degradation evaluation information R is determined1Is smaller than the upper limit value H1 of the index threshold and is larger than the lower limit value L1 of the index threshold, then the degradation evaluation information and the target index configuration threshold can be calculated according to the preset algorithm to obtain the degradation proportion information P1
In an alternative embodiment, the preset algorithm may be
Figure BDA0003351733320000121
Therefore, the degradation ratio information for the monitoring index C1
Figure BDA0003351733320000122
Case two:
and determining that the degradation proportion information of the target service for the corresponding service scene is a target proportion value under the condition that the degradation evaluation information is determined to be larger than the upper limit value of the index threshold according to the target comparison result.
In the embodiment of the present disclosure, the information platform for providing general information for users is taken as an example, wherein the upper limit of the index threshold in the service scene of news information is H1The degradation evaluation information is R1. Aiming at the service scene, when the degradation evaluation information is greater than the upper limit value of the index threshold, the preset degradation proportion information is 1, wherein the degradation proportion information is 1, which is used for representing that when the degradation evaluation information is greater than the upper limit value of the index threshold, the service scene of the news information in the information platform is opposite to the service sceneThe user requests 100% no response.
For example, the target service is marked as a, any one of the business scenarios corresponding to the target service a is marked as B, and the monitoring index corresponding to the business scenario B is marked as including the monitoring index C1. Degradation evaluation information R corresponding to monitoring index C11The target index configuration threshold of the monitoring index C1 includes an index threshold upper limit value H1 and an index threshold lower limit value L1.
If R is determined according to the target comparison result1If the target service is greater than H1, the degradation ratio information of the target service for the monitoring index C1 under the corresponding traffic scenario may be set as a target ratio value, where the target ratio value may be set as 1.
Besides 1, the target proportion value may be set to other values, and the target proportion value may be adaptively set according to the actual usage scenario, for example, the target proportion value may be preset to 0.8.
Case three:
and determining that the degradation proportion information of the target service for the corresponding service scene is a designated numerical value under the condition that the degradation evaluation information is determined to be smaller than the lower limit value of the index threshold according to the target comparison result. Here, the designated value may be selected to be 0 or other value close to zero, which is not specifically limited by the present disclosure.
The degradation proportion information is determined through the situations, so that the accuracy of the degradation proportion information can be improved, and more accurate degradation proportion information can be obtained.
In an optional implementation manner, in S107, performing a downgrading operation on the target service based on the downgrading proportion information includes the following specific steps:
s1071, determining a target degradation strategy corresponding to the degradation proportion information.
S1072, performing degradation operation on the target service according to the target degradation strategy, wherein different degradation proportion information corresponds to at least different degradation strategies.
In the embodiment of the present disclosure, when the values of the degradation proportion information are different results, the corresponding target degradation policies are different. Here, the target downgrading policy may contain at least one of the following information: the degradation time, the maximum duration of degradation, and the notification object of the degradation operation.
For example, when the degradation proportion information is 0.4, the corresponding target degradation policy may be: in a time period indicated by the degradation time and the maximum degradation duration, performing a degradation operation according to a proportion of 0.4, for example, a user discards 40% of all requests initiated by the user for the target service in a corresponding business scenario, or responds to 60% of all requests; meanwhile, the degradation notification information may also be sent to a notification object of the degradation operation.
As can be seen from the above description, in the embodiment of the present disclosure, different degradation proportion information corresponds to different target degradation strategies, so that the degradation operation is more flexible, the degradation cost caused by the degradation operation is greatly reduced, and the use experience of the user is improved.
In this embodiment of the present disclosure, when the number of monitoring indexes is multiple and one monitoring index corresponds to one degradation ratio information, S107, performs a degradation operation on the target service according to the degradation ratio information, specifically including the following processes:
(1) sequencing the degradation proportion information according to preset sequencing parameters to obtain a target sequencing result; wherein the preset sorting parameters include: and monitoring the numerical information size corresponding to the priority and/or degradation ratio information of the index.
(2) And determining target degradation proportion information in the plurality of degradation proportion information according to the target sorting result.
(3) And performing degradation operation on the target service according to the target degradation proportion information.
In the embodiment of the present disclosure, when the target service includes a plurality of service scenarios, each service scenario corresponds to one monitoring index, and therefore, each service scenario should correspond to one degradation ratio information.
In the embodiment of the present disclosure, if the number of the monitoring indexes of the target service in the corresponding service scenario is multiple, for each monitoring index, the corresponding degradation proportion information may be determined in the manner described above, so as to obtain multiple degradation proportion information.
After the degradation proportion information is obtained, the degradation proportion information can be sequenced according to preset sequencing parameters, so that a target sequencing result is obtained; and determining target degradation proportion information in the target sorting result, and performing degradation operation on the target service based on the target degradation proportion information.
In the embodiment of the present disclosure, a plurality of the degradation proportion information may be sorted in the following ways.
The first method is as follows: and sorting the degradation proportion information according to the priority of the monitoring index.
In the embodiment of the present disclosure, a priority label may be preset for each monitoring index in a corresponding service scenario, so as to determine the priority of each monitoring index according to the priority label.
Then, the degradation proportion information corresponding to each monitoring index can be sorted according to the priority of the monitoring index, so that a target sorting result is obtained.
After the target sorting result is obtained, the degradation proportion information of the monitoring index with the highest priority can be selected from the target sorting result as the target degradation proportion information.
The second method comprises the following steps: and sorting the degradation proportion information according to the numerical information size corresponding to the degradation proportion information.
In the embodiment of the disclosure, the degradation proportion information of each monitoring index can be sorted according to the sequence from small to large, so as to obtain a target sorting result.
Specifically, if the degradation ratio information P is provided1Is 0.65, degradation ratio information P2Is 0.75, then the comparison result is P2>P1Degradation ratio information P2Should be located in the degradation ratio information P1Previously, therefore, the target ordering result was { P2,P1}。
After the target sorting result is obtained, the largest degradation proportion information in the target sorting result can be selected as the target degradation proportion information.
The third method comprises the following steps: and sequencing according to the priority of the monitoring index and the numerical information corresponding to the degradation proportion information.
In the embodiment of the present disclosure, a priority label may be preset for each monitoring index in a corresponding service scenario, so as to determine the priority of each monitoring index according to the priority label.
Then, the degradation proportion information corresponding to each monitoring index can be sorted according to the priority of the monitoring index and the size of the degradation proportion information, so that a target sorting result is obtained.
After the target sorting result is obtained, the degradation proportion information with the highest priority and the largest value can be selected from the target sorting result as the target degradation proportion information.
For example, the degradation ratio information of the plurality of monitoring indexes is respectively: degradation ratio information is P1Degradation ratio information is P2Degradation ratio information is P3Wherein each monitoring index has a priority label.
When ranking the degradation proportion information, the degradation proportion information may be P based on the priority of the monitoring index1Degradation ratio information is P2Degradation ratio information is P3Sorting is performed, assuming that the degradation ratio information is P1Degradation ratio information is P2Degradation ratio information is P3Are sequentially reduced, the initial ordering result is { P }1,P2,P3}. Thereafter, the degradation proportion information P can be acquired separately1And degradation ratio information P2The numerical value information of (1). Wherein if the degradation ratio information P1Is 0.65, degradation ratio information P2Is 0.75, the degradation ratio information P is obtained in the target sorting result2Should be located in the degradation ratio information P1Before, due toHere, the target ordering result is { P }2,P1,P3}。
After the target sorting result is determined, target degradation proportion information can be determined in a plurality of degradation proportion information of the target sorting result. In an alternative embodiment, in determining the target degradation proportion information, the degradation proportion information located first in the target sorting result may be determined as the target degradation proportion information.
According to the description, the degradation proportion information of the monitoring indexes is sequenced based on the preset sequencing parameters, and then the target degradation proportion information is determined according to the target sequencing result, so that the degradation proportion information which more serves the current degradation requirement can be obtained, the process of determining the target degradation proportion information can be further improved, and the loss caused by degradation operation is further reduced.
In this embodiment of the present disclosure, in step S107, when performing the downgrading operation on the target service, the method specifically further includes the following steps:
and determining a target notification object corresponding to the downgrading operation, and sending downgrading notification information of the downgrading operation to the target notification object.
In the embodiment of the present disclosure, when performing a downgrading operation on a target service, downgrading notification information for characterizing the downgrading operation on the target service may also be sent to a target notification object, so that the target object can grasp the downgrading operation behavior of the target service at the first time.
In an optional embodiment, the target notification object may be an operation manager of the target service.
In an alternative embodiment, the method further comprises the steps of:
(1) and after the monitoring information of the monitoring indexes of the target service in each service scene is acquired, carrying out abnormal verification on the monitoring information to obtain an abnormal verification result.
(2) And determining degradation proportion information of the target service aiming at each service scene based on the degradation configuration information and the monitoring information under the condition that the monitoring information does not contain abnormal monitoring information according to the abnormal checking result.
In this embodiment of the present disclosure, the obtained monitoring information may be index sampling information of a target service acquired by a monitoring service in each service scenario. Wherein, the monitoring service can be a dotting service. For example, the dotting service may be openapi, and at this time, the index sampling information is obtained by monitoring and dotting the operating state of the target service in each service scene by the dotting service according to the monitoring index.
When monitoring information of monitoring indexes of a target service in each service scene is subjected to abnormal verification, the monitoring information can be verified according to the index sampling information to obtain an abnormal verification result. If the verification result does not contain abnormal monitoring information, the degradation proportion information of the target service for each service scene can be determined based on the degradation configuration information and the monitoring information.
When monitoring information of monitoring indexes of the target service in each business scene is subjected to abnormal verification, a verification rule of the target service in each business scene can be determined from the degradation configuration information, and therefore abnormal verification is performed on the monitoring information according to the verification rule.
The abnormality monitoring information may be interference information in calculating the degradation proportion information, for example, the interference information may be a jitter state due to network fluctuation or the like.
As can be seen from the above description, in the embodiment of the present disclosure, the reliability of the monitoring information is improved by performing an abnormal check on the monitoring information, and thus the accuracy of determining the degradation proportion information of the target service for the monitoring information is improved.
In the embodiment of the present disclosure, in a case that the monitoring information includes a plurality of pieces of sub-monitoring information acquired by acquiring the monitoring index at a plurality of acquisition times, the method further includes the following steps:
(1) and determining the change trend information of the plurality of pieces of sub-monitoring information.
(2) And performing degradation operation on the target service based on the degradation proportion information under the condition that the change trend information is determined to meet the preset trend change requirement.
In the embodiment of the present disclosure, when the monitoring information is collected, the monitoring information may be collected at a plurality of collection times, where the monitoring information collected at each collection time is a piece of sub-monitoring information.
Therefore, when analyzing the variation trend of the monitoring information, it is first necessary to analyze the variation trend information of the plurality of pieces of sub-monitoring information included therein, and determine whether the variation trend information of the plurality of pieces of sub-monitoring information meets the preset trend variation requirement according to the analysis result.
In specific implementation, when the change trend information of the plurality of pieces of sub-monitoring information is in a spike or tail dip form, it is determined that the preset trend change requirement is not met, and at this time, the degradation operation of the target service is not executed.
As can be seen from the above description, in the embodiment of the present disclosure, by analyzing the variation trend information of the plurality of pieces of sub-monitoring information, it can be determined whether the current degradation operation belongs to jitter, and if so, the degradation operation is not triggered, so that false triggering of the degradation operation is prevented, and the triggering accuracy of the degradation operation is improved.
In an alternative embodiment, the method further comprises the steps of:
(1) after determining the degradation configuration information of the target service, determining intervention indication information based on the degradation configuration information:
(2) and under the condition that the degradation state of the target service is determined to be allowed to execute degradation operation based on the intervention indication information, executing a step of determining degradation proportion information of the target service for each business scene based on the degradation configuration information and the monitoring information.
In the embodiment of the present disclosure, after determining the degradation configuration information of the target service, the intervention indication information of the target service may be queried. Wherein the intervention indication information is used for indicating whether the degradation state of the target service is that the degradation operation is allowed to be executed.
In an alternative embodiment, the intervention indication information may be field information of the intervention switch. When the field information of the intervention switch is 0, the intervention switch is in a closed state at the moment, and the target service does not allow to execute the degradation operation; when the field information of the intervention switch is 1, the intervention switch is in an open state at the moment, and the target service allows the degraded operation to be executed.
When the field information used for representing the intervention switch is detected to be 1, after a degradation instruction for the target service is detected, the target service can be subjected to degradation operation according to the degradation proportion information of each business scene of the target service.
As can be seen from the above description, in the embodiment of the present disclosure, the degradation state of the target service may be labeled through the intervention indication information, so that a service that does not need to perform a degradation operation is distinguished from the target service, so as to avoid a loss due to an unnecessary degradation operation.
In an alternative embodiment, the method further comprises the steps of:
after a degradation ending instruction of the degradation operation is detected, computing degradation stopping loss information of the degradation operation; and determining degradation evaluation information of the degradation operation based on the degradation stop loss information.
In the embodiment of the present disclosure, after the destaging operation is ended, a destaging end instruction may be generated in response to an action of ending the destaging operation. After a degradation ending instruction is detected, the degradation stopping loss information of the degradation operation can be calculated according to the stopping loss data of the degradation operation stage, and the degradation operation is evaluated based on the calculated degradation stopping loss information to obtain degradation evaluation information.
As can be seen from the above description, in the embodiment of the present disclosure, degradation evaluation information may be determined based on a degradation operation, so that loss is automatically determined for the current degradation operation, and a technician can determine loss caused by the current degradation operation more intuitively.
In an alternative embodiment, the method further comprises the steps of:
(1) and acquiring the state identifier of the target service.
(2) And performing degradation operation on the target service based on the degradation proportion information under the condition that the target service is determined not to be in the degradation state based on the state identification.
In the embodiment of the present disclosure, the status identifier of the target service may be obtained. Wherein the status flag is used to indicate whether the target service is in a degraded state. Specifically, the status flag may include status field information, where the status field information is 1 to indicate that the target service is in a degraded state, and the status field information is 0 to indicate that the target service is not in a degraded state.
When it is determined that the target service is not in the degraded state according to the state identifier, the degradation operation may be performed on the target service based on the degradation ratio information, and the state identifier is modified to that the target service is already in the degraded operation, that is, when the state field information in the state identifier information is 0, the degradation operation may be performed on the target service, and the state field information is modified to 1.
As can be seen from the above description, in the embodiment of the present disclosure, whether to perform the downgrading operation may be determined by detecting the downgrading state of the target service, and repeated triggering of the downgrading operation may be avoided, so that the possibility of causing greater loss due to secondary downgrading of the downgraded target service is greatly reduced.
In the embodiment of the present disclosure, a flowchart of another service degradation method is further provided, and specifically refer to fig. 2a, where:
s1: receiving degradation configuration information of a target service and an index configuration threshold value of a monitoring index of the target service in each service scene;
s2: judging whether the degradation state of the target service is allowed to execute degradation operation or not according to the intervention indication information; if yes, executing S4, otherwise executing S3;
s3: ending the execution of the degraded service of the current round;
s4: judging whether the server updates the degradation configuration information and the index configuration threshold value; if yes, executing S1, otherwise executing S5;
s5: acquiring monitoring information of monitoring indexes of a target service in each service scene;
s6: judging whether the change trend information of the sub-monitoring information in the monitoring information meets the preset trend change requirement or not; if yes, go to S8, otherwise go to S7;
s7: ending the execution of the degraded service of the current round;
s8: and determining the degradation proportion information of the target service aiming at each business scene by combining the monitoring information and the degradation configuration information of the target service, and performing degradation operation on the target service based on the degradation proportion information.
In the embodiment of the present disclosure, a flowchart of S8 is further provided, specifically referring to fig. 2b, where:
s801: calculating degradation evaluation information R of the target service relative to the monitoring indexes in each service scene according to the monitoring information; if the degradation evaluation information R is smaller than the index threshold lower limit value L of the monitoring index, S803 is executed; if the degradation evaluation information R is greater than the index threshold lower limit value L of the monitoring index and less than the index threshold upper limit value H of the monitoring index, S802 is executed; if the degradation evaluation information R is larger than the index threshold upper limit value H of the monitoring index, executing S804;
s802: determining degradation proportion information corresponding to each service scene based on the degradation evaluation information and a corresponding target index configuration threshold;
s803: ending the execution of the degraded service of the current round;
s804: determining degradation proportion information for each service scene as a target proportion value;
s805: judging whether the monitoring information contains abnormal checking information or not; if yes, go to step S803; if not, go to step S806;
s806: sorting the degradation proportion information corresponding to each service scene according to preset sorting parameters to obtain a target sorting result;
s807: judging whether the target service is in an undegraded state or not according to the identifier of the target service; if the state is not degraded, executing S811; if not, executing S810;
s808: loading a target degradation strategy corresponding to the degradation proportion information;
s809: loading a personnel list of a target notification object;
s810: ending the execution of the degraded service of the current round;
s811: performing a degradation operation on the target service and sending degradation notification information of the degradation operation to a target notification object; then S812 and S814 are performed simultaneously;
s812: judging whether a degradation ending instruction of degradation operation is detected; if the destage end instruction is detected, then S812 is executed; if the downgrade finish instruction is not detected, then S813 is executed;
s813: calculating the stop loss information of the degradation operation, and sending the degradation evaluation information of the degradation operation determined based on the degradation stop loss information to a target notification object;
s814: the automatic loss assessment service receives a degradation starting instruction of a degradation operation;
s815: the automatic loss assessment service receives a destage end instruction for the destage operation.
In summary, in the embodiment of the present disclosure, the degradation operation is performed on the target service according to the degradation proportion information in a manner of determining the degradation proportion information of the target service for each service scenario according to the collected monitoring information, so that the degradation proportion information of the service degradation is automatically determined, the service can be automatically degraded according to the degradation proportion information, the decision and operation delay are greatly reduced, and the execution speed of the degradation service and the service experience of the user are improved.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, a service degradation device corresponding to the service degradation method is also provided in the embodiments of the present disclosure, and since the principle of solving the problem of the device in the embodiments of the present disclosure is similar to the service degradation method described above in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and repeated details are not described again.
Referring to fig. 3, a schematic diagram of a service degradation apparatus provided in an embodiment of the present disclosure is shown, where the apparatus includes: an acquisition module 31, a first determination module 32, a second determination module 33, and a degradation module 34; wherein the content of the first and second substances,
the acquiring module 31 is configured to acquire monitoring information of a monitoring index of a target service in at least one service scenario in real time;
a first determining module 32, configured to determine degradation configuration information of the target service; the degradation configuration information is used for indicating an index configuration threshold value of a monitoring index of the target service in each service scene;
a second determining module 33, configured to determine, based on the degradation configuration information and the monitoring information, degradation proportion information of the target service for each service scenario;
a downgrade module 34 for performing a downgrade operation on the target service based on the downgrade ratio information.
According to the method and the device for determining the degradation proportion information of the target service for each business scene, the degradation operation is performed on the target service according to the degradation proportion information according to the collected monitoring information, the degradation proportion information of the service degradation is automatically determined, the service can be automatically degraded according to the degradation proportion information, the decision and operation delay is greatly reduced, and the execution speed of the degradation service and the service experience of a user are improved.
In a possible implementation, the downgrading module 34 is further configured to: determining a target degradation strategy corresponding to the degradation proportion information; and performing degradation operation on the target service according to the target degradation strategy, wherein different degradation proportion information corresponds to at least different degradation strategies.
In a possible implementation, the second determining module 33 is further configured to: based on the monitoring information, calculating degradation evaluation information of the target service relative to monitoring indexes under each business scene; determining an index configuration threshold value of a monitoring index corresponding to the degradation evaluation information to obtain a target index configuration threshold value; comparing the degradation evaluation information with the target index configuration threshold value to obtain a target comparison result; and determining the degradation proportion information of the target service aiming at each business scene according to the target comparison result.
In a possible embodiment, the index configuration threshold includes: the index threshold upper limit value and the index threshold lower limit value, and the second determining module 33 is further configured to: under the condition that the degradation evaluation information is determined to be smaller than the index threshold upper limit value and larger than the index threshold lower limit value according to the target comparison result, determining an upper limit difference value between the degradation evaluation information and the index threshold upper limit value and a total difference value between the threshold upper limit value and the index threshold lower limit value; and determining the degradation proportion information according to the upper limit difference value and the total difference value.
In a possible implementation, the second determining module 33 is further configured to: and determining that the degradation proportion information of the target service for the corresponding service scene is a target proportion value under the condition that the degradation evaluation information is determined to be larger than the upper limit value of the index threshold according to the target comparison result.
In one possible embodiment, the apparatus is further configured to: after monitoring information of monitoring indexes of a target service in each service scene is acquired, carrying out exception verification on the monitoring information to obtain an exception verification result; and determining degradation proportion information of the target service aiming at each service scene based on the degradation configuration information and the monitoring information under the condition that the monitoring information does not contain abnormal monitoring information according to the abnormal checking result.
In a possible implementation manner, the monitoring information includes a plurality of sub-monitoring information obtained by collecting the monitoring index at a plurality of collection times, and the apparatus is further configured to: determining variation trend information of the plurality of pieces of sub-monitoring information; and under the condition that the change trend information is determined to meet the preset trend change requirement, performing degradation operation on the target service based on the degradation proportion information.
In one possible embodiment, the apparatus is further configured to: after determining degradation configuration information for the target service, determining intervention indication information based on the degradation configuration information; and under the condition that the degradation state of the target service is determined to be allowed to execute degradation operation based on the intervention indication information, executing a step of determining degradation proportion information of the target service for each business scene based on the degradation configuration information and the monitoring information.
In a possible implementation manner, the number of the monitoring indicators is multiple, and one monitoring indicator corresponds to one degradation ratio information, and the degradation module 34 is further configured to: the performing of the downgrading operation on the target service according to the downgrade proportion information includes: sequencing the degradation proportion information according to preset sequencing parameters to obtain a target sequencing result; wherein the preset sorting parameters include: monitoring the numerical information size corresponding to the priority and/or degradation proportion information of the index; determining target degradation proportion information in a plurality of degradation proportion information according to the target sorting result; and performing degradation operation on the target service according to the target degradation proportion information.
In a possible implementation, the downgrading module 34 is further configured to: and determining a target notification object corresponding to the downgrading operation, and sending downgrading notification information of the downgrading operation to the target notification object.
In one possible embodiment, the apparatus is further configured to: after a degradation ending instruction of the degradation operation is detected, calculating degradation stop loss information of the degradation operation; and determining degradation evaluation information of the degradation operation based on the degradation stop loss information.
In one possible embodiment, the apparatus is further configured to: acquiring a state identifier of the target service; and performing degradation operation on the target service based on the degradation proportion information under the condition that the target service is determined not to be in the degradation state based on the state identification.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
Corresponding to the service degradation method in fig. 1, an embodiment of the present disclosure further provides a computer device 400, and as shown in fig. 4, a schematic structural diagram of the computer device 400 provided in the embodiment of the present disclosure includes:
a processor 41, a memory 42, and a bus 43; the memory 42 is used for storing execution instructions and includes a memory 421 and an external memory 422; the memory 421 is also referred to as an internal memory, and is used for temporarily storing the operation data in the processor 41 and the data exchanged with the external memory 422 such as a hard disk, the processor 41 exchanges data with the external memory 422 through the memory 421, and when the computer apparatus 400 operates, the processor 41 communicates with the memory 42 through the bus 43, so that the processor 41 executes the following instructions:
acquiring monitoring information of a monitoring index of a target service in at least one service scene;
determining degradation configuration information of the target service; the degradation configuration information is used for indicating an index configuration threshold value of a monitoring index of the target service in each service scene; (ii) a
Determining degradation proportion information of the target service aiming at each business scene based on the degradation configuration information and the monitoring information;
performing a downgrade operation on the target service based on the downgrade ratio information.
The embodiments of the present disclosure also provide a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the service degradation method described in the above method embodiments. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The embodiments of the present disclosure also provide a computer program product, where the computer program product carries a program code, and instructions included in the program code may be used to execute the steps of the service degradation method in the foregoing method embodiments, which may be referred to specifically in the foregoing method embodiments, and are not described herein again.
The computer program product may be implemented by hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (15)

1. A method for service degradation, comprising:
acquiring monitoring information of a monitoring index of a target service in at least one service scene in real time;
determining degradation configuration information of the target service; the degradation configuration information is used for indicating an index configuration threshold value of a monitoring index of the target service in each service scene;
determining degradation proportion information of the target service aiming at each business scene based on the degradation configuration information and the monitoring information;
and performing degradation operation on the target service according to the degradation proportion information.
2. The method of claim 1, wherein performing a downgrade operation on the target service according to the downgrade ratio information comprises:
determining a target degradation strategy corresponding to the degradation proportion information;
and performing degradation operation on the target service according to the target degradation strategy, wherein different degradation proportion information corresponds to at least different degradation strategies.
3. The method of claim 1, wherein the determining degradation proportion information of the target service for the respective traffic scenarios based on the degradation configuration information and the monitoring information comprises:
based on the monitoring information, calculating degradation evaluation information of the target service relative to monitoring indexes under each business scene;
determining an index configuration threshold value of a monitoring index corresponding to the degradation evaluation information to obtain a target index configuration threshold value;
comparing the degradation evaluation information with the target index configuration threshold value to obtain a target comparison result; and determining the degradation proportion information of the target service aiming at each business scene according to the target comparison result.
4. The method of claim 3, wherein the target metric threshold comprises: an index threshold upper limit value and an index threshold lower limit value;
the determining, according to the target comparison result, degradation proportion information of the target service for each service scenario includes:
under the condition that the degradation evaluation information is determined to be smaller than the index threshold upper limit value and larger than the index threshold lower limit value according to the target comparison result, determining an upper limit difference value between the degradation evaluation information and the index threshold upper limit value and a total difference value between the threshold upper limit value and the index threshold lower limit value;
and determining the degradation proportion information according to the upper limit difference value and the total difference value.
5. The method of claim 4, wherein the determining degradation proportion information of the target service for the respective traffic scenarios according to the target comparison result comprises:
and determining that the degradation proportion information of the target service for the corresponding service scene is a target proportion value under the condition that the degradation evaluation information is determined to be larger than the upper limit value of the index threshold according to the target comparison result.
6. The method of claim 1, further comprising:
after monitoring information of monitoring indexes of a target service in each service scene is acquired, carrying out exception verification on the monitoring information to obtain an exception verification result;
and determining degradation proportion information of the target service aiming at each service scene based on the degradation configuration information and the monitoring information under the condition that the monitoring information does not contain abnormal monitoring information according to the abnormal checking result.
7. The method according to claim 1, wherein the monitoring information includes a plurality of sub-monitoring information acquired by acquiring the monitoring index at a plurality of acquisition times; the method further comprises the following steps:
determining variation trend information of the plurality of pieces of sub-monitoring information;
and under the condition that the change trend information is determined to meet the preset trend change requirement, performing degradation operation on the target service based on the degradation proportion information.
8. The method of claim 1, further comprising:
after determining degradation configuration information for the target service, determining intervention indication information based on the degradation configuration information;
and under the condition that the degradation state of the target service is determined to be allowed to execute degradation operation based on the intervention indication information, executing a step of determining degradation proportion information of the target service for each business scene based on the degradation configuration information and the monitoring information.
9. The method according to claim 1, wherein the number of the monitoring indexes is multiple, and one monitoring index corresponds to one degradation ratio information;
the performing of the downgrading operation on the target service according to the downgrade proportion information includes:
sequencing the degradation proportion information according to preset sequencing parameters to obtain a target sequencing result; wherein the preset sorting parameters include: monitoring the numerical information size corresponding to the priority and/or degradation proportion information of the index;
determining target degradation proportion information in a plurality of degradation proportion information according to the target sorting result;
and performing degradation operation on the target service according to the target degradation proportion information.
10. The method of claim 1, wherein performing a downgrade operation on the target service comprises:
and determining a target notification object corresponding to the downgrading operation, and sending downgrading notification information of the downgrading operation to the target notification object.
11. The method of claim 1, further comprising:
after a degradation ending instruction of the degradation operation is detected, calculating degradation stop loss information of the degradation operation; and determining degradation evaluation information of the degradation operation based on the degradation stop loss information.
12. The method of claim 1, further comprising:
acquiring a state identifier of the target service;
and performing degradation operation on the target service based on the degradation proportion information under the condition that the target service is determined not to be in the degradation state based on the state identification.
13. A service degradation apparatus, comprising:
the acquisition module is used for acquiring monitoring information of monitoring indexes of the target service in at least one service scene in real time;
a first determining module, configured to determine degradation configuration information of the target service; the degradation configuration information is used for indicating an index configuration threshold value of a monitoring index of the target service in each service scene;
a second determining module, configured to determine, based on the degradation configuration information and the monitoring information, degradation proportion information of the target service for each service scenario;
a downgrade module to perform a downgrade operation on the target service based on the downgrade proportion information.
14. A computer device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating over the bus when a computer device is run, the machine-readable instructions when executed by the processor performing the steps of the service downgrading method of any of claims 1 to 12.
15. A computer-readable storage medium, having stored thereon a computer program for performing, when executed by a processor, the steps of the service degradation method according to any one of claims 1 to 12.
CN202111339026.5A 2021-11-12 2021-11-12 Service degradation method, device, computer equipment and storage medium Active CN114090037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111339026.5A CN114090037B (en) 2021-11-12 2021-11-12 Service degradation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111339026.5A CN114090037B (en) 2021-11-12 2021-11-12 Service degradation method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114090037A true CN114090037A (en) 2022-02-25
CN114090037B CN114090037B (en) 2023-07-18

Family

ID=80300212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111339026.5A Active CN114090037B (en) 2021-11-12 2021-11-12 Service degradation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114090037B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866309A (en) * 2022-04-28 2022-08-05 四川万网鑫成信息科技有限公司 Data transmission method, system, device and medium
WO2024066374A1 (en) * 2022-09-26 2024-04-04 京东科技信息技术有限公司 Service degradation method and apparatus, device, computer-readable medium and program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656962A (en) * 2014-11-11 2016-06-08 阿里巴巴集团控股有限公司 Service calling method and device
WO2016127622A1 (en) * 2015-02-09 2016-08-18 中兴通讯股份有限公司 Service degradation monitoring method and apparatus
CN110034946A (en) * 2019-01-03 2019-07-19 阿里巴巴集团控股有限公司 Adaptive service degradation method and apparatus
CN111262898A (en) * 2018-12-01 2020-06-09 阿里巴巴集团控股有限公司 Service degradation processing method and device and electronic equipment
CN111401956A (en) * 2020-03-17 2020-07-10 深圳市朱墨科技有限公司 Advertisement service degradation method, device, server and storage medium
CN112187505A (en) * 2020-08-17 2021-01-05 杭州安恒信息技术股份有限公司 Adaptive service degradation method, electronic device and storage medium
CN113179188A (en) * 2021-05-26 2021-07-27 深圳平安智汇企业信息管理有限公司 Service degradation dynamic realization method and device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105656962A (en) * 2014-11-11 2016-06-08 阿里巴巴集团控股有限公司 Service calling method and device
WO2016127622A1 (en) * 2015-02-09 2016-08-18 中兴通讯股份有限公司 Service degradation monitoring method and apparatus
CN111262898A (en) * 2018-12-01 2020-06-09 阿里巴巴集团控股有限公司 Service degradation processing method and device and electronic equipment
CN110034946A (en) * 2019-01-03 2019-07-19 阿里巴巴集团控股有限公司 Adaptive service degradation method and apparatus
CN111401956A (en) * 2020-03-17 2020-07-10 深圳市朱墨科技有限公司 Advertisement service degradation method, device, server and storage medium
CN112187505A (en) * 2020-08-17 2021-01-05 杭州安恒信息技术股份有限公司 Adaptive service degradation method, electronic device and storage medium
CN113179188A (en) * 2021-05-26 2021-07-27 深圳平安智汇企业信息管理有限公司 Service degradation dynamic realization method and device, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114866309A (en) * 2022-04-28 2022-08-05 四川万网鑫成信息科技有限公司 Data transmission method, system, device and medium
CN114866309B (en) * 2022-04-28 2024-03-08 四川万网鑫成信息科技有限公司 Data transmission method, system, equipment and medium
WO2024066374A1 (en) * 2022-09-26 2024-04-04 京东科技信息技术有限公司 Service degradation method and apparatus, device, computer-readable medium and program product

Also Published As

Publication number Publication date
CN114090037B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US9672085B2 (en) Adaptive fault diagnosis
CN114090037A (en) Service degradation method, device, computer equipment and storage medium
CN109587008B (en) Method, device and storage medium for detecting abnormal flow data
KR102522005B1 (en) Apparatus for VNF Anomaly Detection based on Machine Learning for Virtual Network Management and a method thereof
US20190120908A1 (en) Apparatus and methods for identifying anomaly(ies) in re-chargeable battery of equipment and connected component(s)
JP5768983B2 (en) Contract violation prediction system, contract violation prediction method, and contract violation prediction program
CN109495291B (en) Calling abnormity positioning method and device and server
CN112446511A (en) Fault handling method, device, medium and equipment
JP2007323193A (en) System, method and program for detecting abnormality of performance load
CN113505044B (en) Database warning method, device, equipment and storage medium
CN110222504A (en) Monitoring method, device, terminal device and the medium of user's operation
CN113656168A (en) Method, system, medium and equipment for automatic disaster recovery and scheduling of traffic
CN113792554A (en) Method and device for evaluating change influence based on knowledge graph
CN111754241A (en) User behavior perception method, device, equipment and medium
WO2015183322A1 (en) Evaluating user experience
CN114398521A (en) Device type determining method and data processing system for acquiring abnormal device
CN113485862B (en) Method and device for managing service faults, electronic equipment and storage medium
EP2562651A1 (en) Management system and management method for computer system
CN117252640A (en) Fuse degradation method, rule engine system and electronic equipment
CN109947846B (en) Transaction data processing method and device, computer equipment and storage medium
CN115983836A (en) Data processing method and related equipment
CN111159009A (en) Pressure testing method and device for log service system
US9678849B2 (en) Processing method, processing apparatus, and recording medium to determine operational state of processing element
CN112685390B (en) Database instance management method and device and computing equipment
CN114760190A (en) Service-oriented converged network performance anomaly detection method

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
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant