CN114090037B - 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
CN114090037B
CN114090037B CN202111339026.5A CN202111339026A CN114090037B CN 114090037 B CN114090037 B CN 114090037B CN 202111339026 A CN202111339026 A CN 202111339026A CN 114090037 B CN114090037 B CN 114090037B
Authority
CN
China
Prior art keywords
degradation
information
target
service
index
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111339026.5A
Other languages
Chinese (zh)
Other versions
CN114090037A (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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision 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 Douyin Vision Co Ltd filed Critical Douyin Vision 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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present disclosure provides a service degradation method, apparatus, computer device, and storage medium, wherein the method includes: 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 for 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 disclosure relates to the field of computer technology, and in particular relates to a service degradation method, a service degradation device, computer equipment and a storage medium.
Background
With the development of internet services, the demands of users and business parties for service quality are also increasing. In the related art, in order to guarantee the service quality in the case that the service of the application program fails, a manual degradation method is generally adopted to degrade the service, so that the service quality is guaranteed as much as possible in the service degradation method.
However, the manual degradation method requires time for decision making, so that a certain delay often exists in the method, and therefore, the problem that the execution speed is slow easily occurs in the manual degradation method, so that the service experience of the user is poor. If the service cannot be degraded in time, economic losses due to decisions and operational delays may also occur for the business party.
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 for 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 alternative embodiment, the performing a degradation operation on the target service according to the degradation proportion information includes: determining a target degradation policy 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 implementation manner, the determining degradation proportion information of the target service for each business scenario based on the degradation configuration information and the monitoring information includes: based on the monitoring information, calculating degradation evaluation information of the target service relative to monitoring indexes in each service scene; determining an index configuration threshold of a monitoring index corresponding to the degradation evaluation information to obtain a target index configuration threshold; comparing the degradation evaluation information with the target index configuration threshold value to obtain a target comparison result; and determining degradation proportion information of the target service for each service scene according to the target comparison result.
In an alternative embodiment, the target indicator threshold includes: an index threshold upper value and an index threshold lower value; the determining degradation proportion information of the target service for each service scene according to the target comparison result comprises the following steps: determining an upper limit difference value of the degradation evaluation information and the index threshold upper limit value and a total difference value of the threshold upper limit value and the index threshold lower limit value 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; 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 degradation proportion information of the target service for each business scenario according to the target comparison result includes: and under the condition that the degradation evaluation information is determined to be larger than the index threshold upper limit value according to the target comparison result, determining the degradation proportion information of the target service aiming at the corresponding service scene as a target proportion value.
In an alternative embodiment, the method further comprises: after monitoring information of monitoring indexes of the target service in each service scene is obtained, carrying out anomaly verification on the monitoring information to obtain an anomaly verification result; and under the condition that the monitoring information does not contain abnormal monitoring information according to the abnormal verification result, 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 implementation manner, the monitoring information includes a plurality of sub-monitoring information obtained by collecting the monitoring indexes at a plurality of collecting moments; the method further comprises the steps of: determining change trend information of the plurality of sub-monitoring information; and under the condition that the change trend information meets the preset trend change requirement, performing degradation operation on the target service based on the degradation proportion information.
In an alternative embodiment, the method further comprises: after determining degradation configuration information of the target service, determining intervention indication information based on the degradation configuration information; and in the case that the degradation state of the target service is determined to be allowed to execute degradation operation based on the intervention indication information, executing the 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 implementation manner, the number of the monitoring indexes is multiple, and one monitoring index corresponds to one degradation proportion information; the performing a downgrade operation on the target service according to the downgrade proportion information includes: sorting the degradation proportion information according to a preset sorting parameter to obtain a target sorting result; wherein, the preset ordering parameters include: monitoring the priority of the index and/or the magnitude of numerical information corresponding to the degradation proportion information; determining target degradation proportion information in a plurality of degradation proportion information according to the target sequencing result; and performing degradation operation on the target service according to the target degradation proportion information.
In an alternative embodiment, the performing a downgrade operation on the target service includes: and determining a target notification object corresponding to the degradation operation, and sending degradation notification information of the degradation operation to the target notification object.
In an alternative embodiment, the method further comprises: after detecting a degradation ending instruction of the degradation operation, calculating degradation stop loss information of the degradation operation; and determining degradation evaluation information of the degradation operation based on the degradation stop information.
In an alternative embodiment, the method further comprises: acquiring a state identifier of the target service; and in the case that the target service is determined not to be in the degradation state based on the state identification, performing degradation operation on the target service based on the degradation proportion information.
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 the monitoring index 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; the second determining module is used for determining degradation proportion information of the target service for each business scene based on the degradation configuration information and the monitoring information; and the degradation module is used for performing degradation operation on the target service based on the degradation proportion information.
In a third aspect, embodiments of the present disclosure further provide 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 in communication 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, or any of the possible implementations of the first aspect.
In a fourth aspect, the presently disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the first aspect, or any of the possible implementations 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 further, 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, 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, and the economic loss of a service party can be reduced; 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 in different triggering modes, so that the economic loss of a business party can be further reduced.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for the embodiments are briefly described below, which are incorporated in and constitute a part of the specification, these drawings showing embodiments consistent with the present disclosure and together with the description serve to illustrate the technical solutions of the present disclosure. It is to be understood that the following drawings illustrate only certain embodiments of the present disclosure and are therefore not to be considered limiting of its scope, for the person of ordinary skill in the art may admit to other equally relevant drawings without inventive effort.
FIG. 1 illustrates a flow chart of a service degradation method provided by an embodiment of the present disclosure;
FIG. 2a illustrates a flow chart of another service degradation method provided by an embodiment of the present disclosure;
FIG. 2b illustrates a flowchart of another service degradation method provided by an embodiment of the present disclosure, in which a degradation operation is performed on a target service based on degradation ratio information;
FIG. 3 shows a schematic diagram of a service degradation 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
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. The components of the embodiments of the present disclosure, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the disclosure, as claimed, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be made by those skilled in the art based on the embodiments of this disclosure without making any inventive effort, are intended to be within the scope of this disclosure.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The term "and/or" is used herein to describe only one relationship, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist together, 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.
According to research, a manual degradation mode needs decision time, so that a certain delay exists in the mode, and therefore the problem of low execution speed easily occurs in the manual degradation mode, and the service experience of a user is poor. Additional losses due to decision making and operational delays may also occur for the business party if the service cannot be degraded in time.
Based on the above study, 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 acquired, 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 further, the automatic degradation of the target service can be realized in a manner of performing degradation operation on the target service according to the degradation proportion information, and the technical problem of long degradation delay time in the existing manual degradation manner can be solved through the automatic degradation of the target service, so that the economic loss of a service party can be reduced; 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 in different triggering modes, so that the economic loss of a business party can be further reduced.
For the sake of understanding the present embodiment, first, a detailed description will be given of a service degradation method disclosed in the present embodiment, where an execution body of the service degradation method provided in the present embodiment is generally a computer device with a certain computing capability, and the computer device may provide a service for a user through a terminal device, and may perform service degradation when the service fails. In some possible implementations, the service degradation method may be implemented by way of a processor invoking computer readable instructions stored in a memory.
Referring to fig. 1, a flowchart of a service degradation method according to an embodiment of the 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, the running condition of the current service in each service scene can be monitored in real time through the monitoring service, so that the monitoring information of the monitoring index of the target service in each service scene is obtained.
Here, the monitoring service may be a dotting service openapi, and the monitoring information may be obtained by the dotting service performing dotting monitoring on an operation state of the target service in at least one service scene according to the monitoring index. In the implementation, a data acquisition request can be sent to the dotting service through the degradation service, so that the acquisition of monitoring information of the monitoring index of the target service in each service scene is requested. Wherein the downgraded service is a service that bypasses the target service, the downgraded service may provide downgraded operations for one or more target services.
Decoupling between the degraded service and the online service (e.g., the target service) can be achieved by bypassing the manner in which the degraded service is deployed, so that maintainability of the degraded service can be improved.
It should be understood that each of the above-described business scenarios may be a business scenario in which a service is provided for a user 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, which is not specifically limited in the present disclosure.
S103: 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 business scene.
In the embodiment of the present disclosure, degradation configuration information preset for a target service is first acquired. The monitoring index of the target service in each service scene can be provided with a corresponding index configuration threshold, and the index configuration threshold can contain at least one of the following information: index checking rules and threshold information.
Specifically, the index checking rule is used for checking whether the monitoring information corresponding to each monitoring index is abnormal information or not; the threshold information is used for indicating an index threshold upper limit value and an index threshold lower limit value of the corresponding monitoring index.
Here, the index configuration threshold values for the monitoring index of the target service in different traffic scenarios are different.
S105: and 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 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.
Because the monitoring information contains the sub-monitoring information respectively collected at different collecting moments, when the monitoring information is calculated, the comprehensive calculation can be performed on all the sub-monitoring information, so that the calculation result corresponding to each monitoring index is obtained through calculation, and the specific calculation process is described in the following embodiments.
After the calculation result is obtained, the degradation proportion information of the target service for each business scene can be determined by combining the calculation result and the index configuration threshold value of each corresponding business scene 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 disclosure, after the degradation proportion information is determined, a degradation operation can be performed on the target service according to the degradation proportion information.
In an alternative embodiment, the downgrade proportion information may be used to indicate the proportion of downgrade requested by the target service for the user when performing the downgrade operation.
In particular implementations, the request response operation may be performed based on the degradation proportion information at a user request of the user for the target service in a corresponding traffic scenario.
For example, the target service is denoted as a, and the business scenario corresponding to the target service a includes a scenario B1 and a scenario B2. If the degradation proportion information of the target service A aiming at the business scene B1 is 100%, the server of the target service does not respond 100% aiming at the user request; if the degradation ratio of the target service indicated by the degradation ratio information is 50%, the server of the target service responds to 50% of the user requests.
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 further, 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, 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, and the economic loss of a service party can be reduced; 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 in different triggering modes, so that the economic loss of a business party can be further reduced.
For the step S101, a data acquisition request is first sent to the dotting service through each preset time period of the degradation service to request to acquire monitoring information, where the data acquisition request carries related information of the target service and carries scene information of a corresponding service scene of the target service that is requested to be acquired.
The dotting service is a service which is arranged in the server and used for monitoring the monitoring index of the target service in each service scene, and the monitoring information of the monitoring index can be acquired in an offline asynchronous mode through the dotting service.
After acquiring the monitoring information returned by the dotting service, the degradation service can determine the degradation configuration information of the target service.
In particular, the degradation service may search the database for degradation configuration information matching the identification information of the target service according to the identification information.
After the degradation configuration information is found, degradation proportion information of the target service for each business scenario 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, degradation proportion information of the target service for each service scenario is determined, which specifically includes the following procedures:
S1051: and calculating degradation evaluation information of the target service relative to monitoring indexes in various service scenes based on the monitoring information.
S1052: and determining an index configuration threshold of the monitoring index corresponding to the degradation evaluation information to obtain a target index configuration threshold.
S1053: comparing the degradation evaluation information with the target index configuration threshold value to obtain a target comparison result; and determining degradation proportion information of the target service for each service scene according to the target comparison result.
In the embodiment of the present disclosure, after the above-mentioned monitoring information is obtained, degradation evaluation information of each monitoring index in each traffic scenario of the target service may be calculated based on the monitoring information.
For example, the target service is denoted as a, any one of the service scenarios corresponding to the target service a is denoted as B, and the monitoring index corresponding to the service scenario B is denoted as including the monitoring index C1 and the 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 meets the degradation trigger condition, the degradation evaluation information R of the monitoring index C1 may be determined 1 And degradation evaluation information R of the monitor index C2 2 . The degradation triggering condition may be that the response of the server to the user request is abnormal or in a critical state of abnormal response.
In the specific implementation, the monitoring information comprises the sub-monitoring information respectively acquired at different acquisition moments, so that when the monitoring information is calculated, the comprehensive calculation can be performed on all the sub-monitoring information, and the degradation evaluation information of each monitoring index is calculated.
Here, for each monitoring index, a corresponding comprehensive calculation mode is correspondingly set, and at this time, degradation evaluation information of the corresponding monitoring index may be calculated for the comprehensive calculation mode.
After determining the degradation evaluation information R 1 Degradation evaluation information R 2 Thereafter, degradation evaluation information R can be determined in the degradation configuration information 1 Degradation evaluation information R 2 Threshold information in the index configuration threshold of the corresponding monitoring index C1 and monitoring index C2 is obtained, and therefore the target index configuration threshold is obtained. The target index configuration threshold is used for indicating an index threshold upper limit value and an index threshold lower limit value of the corresponding monitoring index, for example, the target index configuration threshold may include an index threshold upper limit value H and an index threshold lower limit 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, it is assumed that the target index configuration threshold of the monitor index C1 includes an index threshold upper limit value H1 and an index threshold lower limit value L1, and the target index configuration threshold of the monitor index C2 includes an index threshold upper limit value H2 and an index threshold lower limit value L2. The degradation evaluation information R may be compared with a target index configuration threshold 1 Comparing the target comparison result M1 with an index threshold upper limit value H1 and an index threshold lower limit value L1; degradation evaluation information R 2 And comparing the target comparison result M2 with the index threshold upper limit value H2 and the index threshold lower limit value L2.
After the target comparison result is obtained, the specific determining process will be described in the following embodiment according to the degradation proportion information of the target service for each service scenario.
As can be seen from the foregoing description, in the embodiment of the present disclosure, by calculating the degradation evaluation information of the target service with respect to each monitoring index in each service scenario, and further determining the manner of determining the degradation proportion information of the target service with respect to each service scenario according to the degradation evaluation information and the index configuration threshold corresponding to the monitoring index, the degradation evaluation of each monitoring index can be implemented, so that the degradation proportion information determined by using the degradation evaluation information of each monitoring index is more accurate.
In the embodiment of the disclosure, when the target indicator configuration threshold includes an indicator threshold upper limit value and an indicator threshold lower limit value of the corresponding monitoring indicator, the step determines degradation proportion information of the target service for each service scene according to the target comparison result, which specifically includes the following cases, and the following cases are described.
Case one:
determining an upper limit difference value of the degradation evaluation information and the index threshold upper limit value and a total difference value of the threshold upper limit value and the index threshold lower limit value 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; and determining the degradation proportion information according to the upper limit difference value and the total difference value. .
For example, the target service is denoted as a, any one of the service scenarios corresponding to the target service a is denoted as B, and the monitoring index corresponding to the service scenario B is denoted as including the monitoring index C1. Degradation evaluation information R corresponding to monitoring index C1 1 The target index configuration threshold of the monitor index C1 includes an index threshold upper limit value H1 and an index threshold lower limit value L1.
If it is determined that L1 is less than or equal to R according to the target comparison result 1 Less than or equal to H1, i.e. determining the degradation evaluation information R 1 If the degradation ratio is smaller than the upper limit value H1 of the index threshold value and larger than the lower limit value L1 of the index threshold value, the degradation evaluation information and the target index configuration threshold value can be calculated according to a preset algorithm to obtain the degradation ratio information P 1
In an alternative embodiment, the preset algorithm may beTherefore, the degradation ratio information for the monitor index C1 +.>
And a second case:
and under the condition that the degradation evaluation information is determined to be larger than the index threshold upper limit value according to the target comparison result, determining the degradation proportion information of the target service aiming at the corresponding service scene as a target proportion value.
In the embodiment of the present disclosure, the information platform for providing general information to users is taken as an example, where the upper limit value of the index threshold in the business scenario of news information is H 1 Degradation evaluation information is R 1 . And aiming at the service scene, the preset degradation proportion information is 1 when the degradation evaluation information is larger than the index threshold upper limit value, wherein the degradation proportion information is 1 and is used for representing that the service scene of the news information in the information platform is not responded to 100% of the user request when the degradation evaluation information is larger than the index threshold upper limit value.
For example, the target service is denoted as a, any one of the service scenarios corresponding to the target service a is denoted as B, and the monitoring index corresponding to the service scenario B is denoted as including the monitoring index C1. Degradation evaluation information R corresponding to monitoring index C1 1 The target index configuration threshold of the monitor index C1 includes an index threshold upper limit value H1 and an index threshold lower limit value L1.
If according to the target comparison result, determining if R 1 > H1, the degradation ratio information of the target service for the monitoring index C1 in the corresponding traffic scenario may be set to a target ratio value, where the target ratio value may be set to 1.
In addition to 1, the target proportion value may be set to other values, and the target proportion value may be adaptively set according to the actual use scenario, for example, the target proportion value may be preset to 0.8.
And a third case:
and under the condition that the degradation evaluation information is smaller than the index threshold lower limit value according to the target comparison result, determining that the degradation proportion information of the target service aiming at the corresponding service scene is a designated numerical value. Here, the specified value may be selected to be 0, or other value close to zero, which is not particularly limited by the present disclosure.
By determining the degradation ratio information in the above-described cases, the accuracy of the degradation ratio information can be improved, thereby obtaining more accurate degradation ratio information.
In an optional embodiment, S107, a degradation operation is performed on the target service based on the degradation proportion information, which specifically includes the following procedures:
and S1071, determining a target degradation strategy corresponding to the degradation proportion information.
And 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 disclosure, when the values of the degradation proportion information are different results, the corresponding target degradation strategies are different. Here, the target degradation policy may contain at least one of the following information: degradation time, maximum duration of degradation, notification object of degradation operation.
For example, when the degradation proportion information is 0.4, the corresponding target degradation policy may be: performing degradation operation according to a proportion of 0.4 in a period indicated by degradation time and the maximum duration of degradation, for example, discarding 40% of requests or responding to 60% of requests in all requests initiated by a user for the target service in a corresponding business scene; meanwhile, the degradation notification information can also be sent to the notification object of the degradation operation.
As can be seen from the above description, in the embodiments of the present disclosure, different degradation proportion information corresponds to different target degradation policies, so that degradation operations are more flexible, degradation cost caused by the degradation operations is greatly reduced, and use experience of users is improved.
In the embodiment of the present disclosure, when the number of monitoring indexes is multiple and one monitoring index corresponds to one degradation proportion information, S107, a degradation operation is performed on the target service according to the degradation proportion information, which specifically includes the following procedures:
(1) Sorting the degradation proportion information according to a preset sorting parameter to obtain a target sorting result; wherein, the preset ordering parameters include: the priority of the monitoring index and/or the magnitude of the numerical value information corresponding to the degradation proportion information.
(2) And determining target degradation proportion information in a 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, in the case that the target service includes a plurality of service scenarios, each service scenario corresponds to one monitoring index, and thus, 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 above-described manner, so as to obtain multiple degradation proportion information.
After the degradation proportion information is obtained, the degradation proportion information can be sequenced according to a preset sequencing parameter, so that a target sequencing result is obtained; and determining target degradation proportion information in the target sequencing result, and further 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 ordered in several ways.
Mode one: and sequencing the degradation proportion information according to the priority of the monitoring index.
In the embodiment of the 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.
And then, sorting the degradation proportion information corresponding to each monitoring index according to the priority of the monitoring index, thereby obtaining a target sorting result.
After the target ranking result is obtained, the degradation proportion information of the monitoring index with the highest priority can be selected from the target ranking result as the target degradation proportion information.
Mode two: and sorting the degradation proportion information according to the magnitude of the numerical information corresponding to the degradation proportion information.
In the embodiment of the disclosure, the degradation proportion information of each monitoring index can be ranked according to the order from small to large, so that a target ranking result is obtained.
Specifically, if the degradation proportion information P 1 The numerical value information of (2) is 0.65, and the degradation proportion information P 2 The numerical information of (2) is 0.75, then the comparison result is P 2 >P 1 Degradation ratio information P 2 Should be located in the degradation proportion information P 1 Previously, therefore, the target ordering result is { P 2 ,P 1 }。
After the target ranking result is obtained, the maximum degradation proportion information can be selected from the target ranking result as the target degradation proportion information.
Mode three: 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 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.
And then, sorting the degradation proportion information corresponding to each monitoring index according to the priority of the monitoring index and the degradation proportion information, thereby obtaining a target sorting result.
After the target ranking result is obtained, the degradation proportion information with the highest priority and the largest value in the target ranking result can be selected as the target degradation proportion information.
For example, degradation ratio information of the plurality of monitor indexes is respectively: degradation proportion information is P 1 The degradation proportion information is P 2 The degradation proportion information is P 3 Wherein each monitoring indicator has a priority label.
When the degradation proportion information is ordered, the degradation proportion information can be P based on the priority of the monitoring index 1 The degradation proportion information is P 2 The degradation proportion information is P 3 Ordering, and assuming that the degradation proportion information is P 1 The degradation proportion information is P 2 The degradation proportion information is P 3 Sequentially decreasing the priority of (1), the initial ordering result is { P } 1 ,P 2 ,P 3 }. Thereafter, degradation ratio information P can be obtained respectively 1 Degradation proportion information P 2 Is a numerical value of (a) and (b). Wherein, if the degradation proportion information P 1 The numerical value information of (2) is 0.65, and the degradation proportion information P 2 The numerical information of (2) is 0.75, and in the target sorting result, the degradation proportion information P 2 Should be located in the degradation proportion information P 1 Previously, therefore, the target ordering result is { P 2 ,P 1 ,P 3 }。
After determining the target ranking result, the target degradation proportion information can be determined in a plurality of degradation proportion information of the target ranking result. In an alternative embodiment, when determining the target degradation proportion information, degradation proportion information located at the first position 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 the target degradation proportion information is determined according to the target sequencing result, so that the degradation proportion information which is more in service with the current degradation requirement can be obtained, the process of determining the target degradation proportion information is more complete, and the loss caused by degradation operation is further reduced.
In the embodiment of the present disclosure, S107, when performing a downgrade operation on the target service, specifically further includes the following procedure:
and determining a target notification object corresponding to the degradation operation, and sending degradation notification information of the degradation operation to the target notification object.
In the embodiment of the disclosure, when performing the downgrade operation on the target service, the downgrade notification information for characterizing the downgrade operation on the target service may also be sent to the target notification object, so that the target object can grasp the downgrade operation direction of the target service at the first time.
In an alternative 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) After the monitoring information of the monitoring index of the target service in each service scene is obtained, the monitoring information is subjected to abnormal verification, and an abnormal verification result is obtained.
(2) And determining degradation proportion information of the target service for each business 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 verification result.
In the embodiment of the present disclosure, the obtained monitoring information may be index sampling information of the target service collected by the monitoring service in each service scenario. Wherein the monitoring service may be a dotting service. For example, the dotting service may be openapi, and the index sampling information is obtained by the dotting service by monitoring and dotting the running state of the target service in each service scene according to the monitoring index.
When the monitoring information of the monitoring index of the target service in each service scene is subjected to abnormal verification, the sampling information of the index can be verified to obtain an abnormal verification result. If the verification result does not include 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 the monitoring information of the monitoring index of the target service in each service scene is subjected to abnormal verification, the verification rule of the target service in each service scene can be determined from the degradation configuration information, so that the monitoring information is subjected to abnormal verification according to the verification rule.
The anomaly monitoring information may be interference information in calculating the degradation ratio 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, by performing an anomaly check on the monitoring information, the reliability of the monitoring information is improved, and further, the accuracy of determining the degradation proportion information of the target service for the monitoring information is improved.
In an embodiment of the present disclosure, when the monitored information includes a plurality of sub-monitored information obtained by collecting the monitored indicators at a plurality of collection moments, the method further includes the following process:
(1) And determining the change trend information of the plurality of sub-monitoring information.
(2) And under the condition that the change trend information meets the preset trend change requirement, performing degradation operation on the target service based on the degradation proportion information.
In the embodiment of the present disclosure, when the monitoring information is collected, the monitoring information may be collected separately at a plurality of collection moments, where the monitoring information collected at each collection moment is one piece of sub-monitoring information.
Therefore, when analyzing the variation trend of the monitoring information, it is first necessary to analyze variation trend information of a plurality of sub-monitoring information contained therein, and determine whether the variation trend information of the plurality of sub-monitoring information meets a preset trend variation requirement according to an analysis result.
In the implementation, when the change trend information of the plurality 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 the moment, 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 change trend information of the plurality of sub-monitoring information, it may be determined whether the current degradation operation belongs to jitter, if yes, the degradation operation may not be triggered, thereby preventing false triggering of the degradation operation, and further improving the triggering precision of the degradation operation.
In an alternative embodiment, the method further comprises the steps of:
(1) After determining the degradation configuration information of the target service, intervention indication information may also be determined based on the degradation configuration information:
(2) And in the case that the degradation state of the target service is determined to be allowed to execute degradation operation based on the intervention indication information, executing the 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 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 a degradation operation allowed to be performed.
In an alternative embodiment, the intervention indication information may be field information of an intervention switch. When the field information of the intervening switch is 0, the intervening switch is in a closed state, and the target service is not allowed to execute degradation operation; when the field information of the intervening switch is 1, it indicates that the intervening switch is in an on state at this time, and the target service allows the degradation operation to be performed.
In the case that the field information for representing the intervention switch is detected to be 1, after the degradation instruction for the target service is detected, the degradation operation can be performed on the target service 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 marked by the intervention indication information, so that the service that does not need to perform the degradation operation is distinguished from the target service, so as to avoid the loss caused by the unnecessary degradation operation.
In an alternative embodiment, the method further comprises the steps of:
after detecting a degradation ending instruction of the degradation operation, calculating degradation stop loss information of the degradation operation; and determining degradation evaluation information of the degradation operation based on the degradation stop information.
In embodiments of the present disclosure, after the above-described destaging operation ends, a destaging end instruction may be generated in response to an end action of the destaging operation. After the degradation ending instruction is detected, the degradation stopping information of the degradation operation can be calculated according to stopping data of the degradation operation stage, and the degradation operation is evaluated based on the calculated degradation stopping information to obtain degradation evaluation information.
As can be seen from the foregoing description, in the embodiments of the present disclosure, degradation evaluation information may be determined based on the degradation operation, so as to automatically determine the loss caused by the degradation operation, so that a technician can more intuitively determine the loss caused by the degradation operation.
In an alternative embodiment, the method further comprises the steps of:
(1) And acquiring the state identification of the target service.
(2) And performing a downgrade operation on the target service based on the downgrade proportion information in the case that the target service is determined not to be in a downgrade state based on the state identification.
In the embodiment of the disclosure, the state identification of the target service can be obtained. Wherein the status identifier is used to indicate whether the target service is in a degraded state. In particular, the status identifier may include status field information, where the status field information is 1, indicating that the target service is in a degraded state, and where the status field information is 0, indicating that the target service is not in a degraded state.
In the case that it is determined that the target service is not in the degraded state according to the state identification, a degrading operation may be performed on the target service based on the degrading proportion information, and the state identification is modified to be that the target service is already in the degrading operation, that is, when the state field information in the state identification information is 0, the degrading operation may be performed on the target service, and the state field information is modified to be 1.
As can be seen from the above description, in the embodiments of the present disclosure, whether to perform the degradation operation may be determined by detecting the degradation state of the target service, so that repeated triggering of the degradation operation may be avoided, thereby greatly reducing the possibility of performing secondary degradation on the degraded target service, and causing greater loss.
In an embodiment of the present disclosure, there is further provided a flowchart of another service degradation method, specifically referring to fig. 2a, wherein:
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 so, executing S4, and if not, executing S3;
s3: ending the execution of the round of degradation service;
s4: judging whether the server updates the degradation configuration information and the index configuration threshold; if so, executing S1, and if not, 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, executing S8, and if not, executing S7;
s7: ending the execution of the round of degradation service;
s8: and determining degradation proportion information of the target service for 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 an embodiment of the present disclosure, there is further provided a flowchart of S8, specifically referring to fig. 2b, wherein:
s801: calculating degradation evaluation information R of the target service relative to monitoring indexes in each business 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, executing S802; if the degradation evaluation information R is greater than the indicator threshold upper limit H of the monitoring indicator, S804 is executed;
s802: determining corresponding degradation proportion information for each service scene based on the degradation evaluation information and the corresponding target index configuration threshold;
s803: ending the execution of the round of degradation service;
s804: determining degradation proportion information aiming at each service scene as a target proportion value;
s805: judging whether the monitoring information contains abnormal verification information or not; if so, executing S803; if not, executing S806;
s806: ranking the degradation proportion information corresponding to each service scene according to a preset ranking parameter to obtain a target ranking result;
S807: judging whether the target service is in an undegraded state according to the identification of the target service; if in the undegraded state, then execute S811; if not in the undegraded state, then S810 is performed;
s808: loading a target degradation strategy corresponding to the degradation proportion information;
s809: loading a personnel list of the target notification object;
s810: ending the execution of the round of degradation service;
s811: performing a degradation operation on the target service and transmitting degradation notification information of the degradation operation to the target notification object; then S812 and S814 are performed simultaneously;
s812: judging whether a degradation ending instruction of a degradation operation is detected or not; if the degradation end instruction is detected, S812 is executed; if the degradation end instruction is not detected, S813 is executed;
s813: calculating loss stopping information of the degradation operation, and sending degradation evaluation information of the degradation operation determined based on the degradation loss stopping information to a target notification object;
s814: the automatic damage assessment service receives a degradation start instruction of a degradation operation;
s815: the automatic impairment service receives an end of degradation instruction for a degradation operation.
In summary, in the embodiment of the disclosure, by determining the degradation proportion information of the target service for each service scenario according to the collected monitoring information, the degradation operation is performed on the target service according to the degradation proportion information, so that the degradation proportion information for automatically determining service degradation is realized, the service can be automatically degraded according to the degradation proportion information, decision and operation delay are greatly reduced, and the execution speed of the degraded service and the service experience of the user are improved.
It will be appreciated by those skilled in the art that in the above-described method of the specific embodiments, the written order of steps is not meant to imply a strict order of execution but rather should be construed according to the function and possibly inherent logic of the steps.
Based on the same inventive concept, the embodiments of the present disclosure further provide a service degradation device corresponding to the service degradation method, and since the principle of solving the problem by the device in the embodiments of the present disclosure is similar to that of the service degradation method described in the embodiments of the present disclosure, the implementation of the device may refer to the implementation of the method, and the repetition is omitted.
Referring to fig. 3, a schematic diagram of a service degradation apparatus according to an embodiment of the disclosure is shown, where the apparatus includes: the device comprises an acquisition module 31, a first determination module 32, a second determination module 33 and a degradation module 34; wherein,,
an acquiring module 31, 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 degradation proportion information of the target service for each service scenario based on the degradation configuration information and the monitoring information;
and a downgrade module 34, configured to perform a downgrade operation on the target service based on the downgrade proportion information.
According to the method for determining the degradation proportion information of the target service for each business scene according to the collected monitoring information, the degradation operation is carried out on the target service according to the degradation proportion information, the degradation proportion information of service degradation is automatically determined, the service can be automatically degraded according to the degradation proportion information, decision and operation delay are greatly reduced, and the execution speed of the degradation service and the service experience of a user are improved.
In a possible implementation, the degradation module 34 is further configured to: determining a target degradation policy 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 manner, 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 in each service scene; determining an index configuration threshold of a monitoring index corresponding to the degradation evaluation information to obtain a target index configuration threshold; comparing the degradation evaluation information with the target index configuration threshold value to obtain a target comparison result; and determining degradation proportion information of the target service for each service scene according to the target comparison result.
In a possible embodiment, the index configuration threshold includes: the second determining module 33 is further configured to: determining an upper limit difference value of the degradation evaluation information and the index threshold upper limit value and a total difference value of the threshold upper limit value and the index threshold lower limit value 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; and determining the degradation proportion information according to the upper limit difference value and the total difference value.
In a possible implementation manner, the second determining module 33 is further configured to: and under the condition that the degradation evaluation information is determined to be larger than the index threshold upper limit value according to the target comparison result, determining the degradation proportion information of the target service aiming at the corresponding service scene as a target proportion value.
In a possible embodiment, the device is further configured to: after monitoring information of monitoring indexes of the target service in each service scene is obtained, carrying out anomaly verification on the monitoring information to obtain an anomaly verification result; and under the condition that the monitoring information does not contain abnormal monitoring information according to the abnormal verification result, 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 monitoring information includes a plurality of sub-monitoring information obtained by collecting the monitoring indexes at a plurality of collecting moments, and the device is further configured to: determining change trend information of the plurality of sub-monitoring information; and under the condition that the change trend information meets the preset trend change requirement, performing degradation operation on the target service based on the degradation proportion information.
In a possible embodiment, the device is further configured to: after determining degradation configuration information of the target service, determining intervention indication information based on the degradation configuration information; and in the case that the degradation state of the target service is determined to be allowed to execute degradation operation based on the intervention indication information, executing the 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 indexes is multiple, and one monitoring index corresponds to one degradation proportion information, and the degradation module 34 is further configured to: the performing a downgrade operation on the target service according to the downgrade proportion information includes: sorting the degradation proportion information according to a preset sorting parameter to obtain a target sorting result; wherein, the preset ordering parameters include: monitoring the priority of the index and/or the magnitude of numerical information corresponding to the degradation proportion information; determining target degradation proportion information in a plurality of degradation proportion information according to the target sequencing result; and performing degradation operation on the target service according to the target degradation proportion information.
In a possible implementation, the degradation module 34 is further configured to: and determining a target notification object corresponding to the degradation operation, and sending degradation notification information of the degradation operation to the target notification object.
In a possible embodiment, the device is further configured to: after detecting a degradation ending instruction of the degradation operation, calculating degradation stop loss information of the degradation operation; and determining degradation evaluation information of the degradation operation based on the degradation stop information.
In a possible embodiment, the device is further configured to: acquiring a state identifier of the target service; and in the case that the target service is determined not to be in the degradation state based on the state identification, performing degradation operation on the target service based on the degradation proportion information.
The process flow of each module in the apparatus and the interaction flow between the modules may be described with reference to the related descriptions in the above method embodiments, which are not described in detail herein.
Corresponding to the service degradation method in fig. 1, the embodiment of the present disclosure further provides a computer device 400, as shown in fig. 4, which is a schematic structural diagram of the computer device 400 provided in the embodiment of the present disclosure, including:
A processor 41, a memory 42, and a bus 43; memory 42 is used to store execution instructions, including memory 421 and external memory 422; the memory 421 is also referred to as an internal memory, and is used for temporarily storing operation data in the processor 41 and data exchanged with the external memory 422 such as a hard disk, and the processor 41 exchanges data with the external memory 422 through the memory 421, and when the computer device 400 operates, the processor 41 and the memory 42 communicate with each other through the bus 43, so that the processor 41 executes the following instructions:
acquiring monitoring information of a target service monitoring index under 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; the method comprises the steps of carrying out a first treatment on the surface of the
Determining degradation proportion information of the target service for each business scene based on the degradation configuration information and the monitoring information;
and performing a degradation operation on the target service based on the degradation proportion information.
The disclosed embodiments also provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the service degradation method described in the method embodiments above. Wherein the storage medium may be a volatile or nonvolatile computer readable storage medium.
The embodiments of the present disclosure further provide a computer program product, where the computer program product carries program code, where instructions included in the program code may be used to perform steps of a service degradation method described in the foregoing method embodiments, and specifically reference may be made to the foregoing method embodiments, which are not described herein.
Wherein the above-mentioned computer program product may be realized in particular by means of hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied as a computer storage medium, and in another alternative embodiment, the computer program product is embodied as a software product, such as a software development kit (Software Development Kit, SDK), or the like.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present disclosure may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in 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 essence or a part contributing to the prior art or a part of the technical solution, or in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the foregoing examples are merely specific embodiments of the present disclosure, and are not intended to limit the scope of the disclosure, but the present disclosure is not limited thereto, and those skilled in the art will appreciate that while the foregoing examples are described in detail, it is not limited to the disclosure: any person skilled in the art, within the technical scope of the disclosure of the present disclosure, may modify or easily conceive changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features thereof; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the disclosure, and are intended to be included within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (13)

1. A method of 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;
Based on the monitoring information, calculating degradation evaluation information of the target service relative to monitoring indexes in each service scene;
determining an index configuration threshold of a monitoring index corresponding to the degradation evaluation information to obtain a target index configuration threshold; the target index configuration threshold comprises an index threshold upper limit value and an index threshold lower limit value;
comparing the degradation evaluation information with the target index configuration threshold value to obtain a target comparison result; determining an upper limit difference value of the degradation evaluation information and the index threshold upper limit value and a total difference value of the threshold upper limit value and the index threshold lower limit value 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 degradation proportion information according to the upper limit difference value and the total difference value;
and performing degradation operation on the target service according to the degradation proportion information.
2. The method of claim 1, wherein said performing a downgrade operation on said target service according to said downgrade proportion information comprises:
determining a target degradation policy 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 according to claim 1, wherein the method further comprises:
and under the condition that the degradation evaluation information is determined to be larger than the index threshold upper limit value according to the target comparison result, determining the degradation proportion information of the target service aiming at the corresponding service scene as a target proportion value.
4. The method according to claim 1, wherein the method further comprises:
after monitoring information of monitoring indexes of the target service in each service scene is obtained, carrying out anomaly verification on the monitoring information to obtain an anomaly verification result;
and under the condition that the monitoring information does not contain abnormal monitoring information according to the abnormal verification result, determining degradation proportion information of the target service for each business scene based on the degradation configuration information and the monitoring information.
5. The method of claim 1, wherein the monitoring information includes a plurality of sub-monitoring information obtained by collecting the monitoring index at a plurality of collection times; the method further comprises the steps of:
Determining change trend information of the plurality of sub-monitoring information;
and under the condition that the change trend information meets the preset trend change requirement, performing degradation operation on the target service based on the degradation proportion information.
6. The method according to claim 1, wherein the method further comprises:
after determining degradation configuration information of the target service, determining intervention indication information based on the degradation configuration information;
and in the case that the degradation state of the target service is determined to be allowed to execute degradation operation based on the intervention indication information, executing the step of determining degradation proportion information of the target service for each business scene based on the degradation configuration information and the monitoring information.
7. The method according to claim 1, wherein the number of the monitoring indexes is plural, and one monitoring index corresponds to one degradation ratio information;
the performing a downgrade operation on the target service according to the downgrade proportion information includes:
sorting the degradation proportion information according to a preset sorting parameter to obtain a target sorting result; wherein, the preset ordering parameters include: monitoring the priority of the index and/or the magnitude of numerical information corresponding to the degradation proportion information;
Determining target degradation proportion information in a plurality of degradation proportion information according to the target sequencing result;
and performing degradation operation on the target service according to the target degradation proportion information.
8. The method of claim 1, wherein performing a downgrade operation on the target service comprises:
and determining a target notification object corresponding to the degradation operation, and sending degradation notification information of the degradation operation to the target notification object.
9. The method according to claim 1, wherein the method further comprises:
after detecting a degradation ending instruction of the degradation operation, calculating degradation stop loss information of the degradation operation; and determining degradation evaluation information of the degradation operation based on the degradation stop information.
10. The method according to claim 1, wherein the method further comprises:
acquiring a state identifier of the target service;
and in the case that the target service is determined not to be in the degradation state based on the state identification, performing degradation operation on the target service based on the degradation proportion information.
11. A service degradation apparatus, comprising:
The acquisition module is used for acquiring monitoring information of the monitoring index 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;
the second determining module is used for calculating degradation evaluation information of the target service relative to the monitoring indexes in each service scene based on the monitoring information; determining an index configuration threshold of a monitoring index corresponding to the degradation evaluation information to obtain a target index configuration threshold; the target index configuration threshold comprises an index threshold upper limit value and an index threshold lower limit value; comparing the degradation evaluation information with the target index configuration threshold value to obtain a target comparison result; determining an upper limit difference value of the degradation evaluation information and the index threshold upper limit value and a total difference value of the threshold upper limit value and the index threshold lower limit value 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 degradation proportion information according to the upper limit difference value and the total difference value;
And the degradation module is used for performing degradation operation on the target service based on the degradation proportion information.
12. 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 in communication via the bus when the computer device is running, the machine-readable instructions when executed by the processor performing the steps of the service degradation method according to any one of claims 1 to 10.
13. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the service degradation method according to any one of claims 1 to 10.
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 CN114090037A (en) 2022-02-25
CN114090037B true 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)

Families Citing this family (2)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262898A (en) * 2018-12-01 2020-06-09 阿里巴巴集团控股有限公司 Service degradation processing method and device and electronic equipment
CN113179188A (en) * 2021-05-26 2021-07-27 深圳平安智汇企业信息管理有限公司 Service degradation dynamic realization method and device, computer equipment and storage medium

Family Cites Families (5)

* 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
CN105991324A (en) * 2015-02-09 2016-10-05 中兴通讯股份有限公司 Service degradation monitoring method and device
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
CN112187505B (en) * 2020-08-17 2023-04-18 杭州安恒信息技术股份有限公司 Adaptive service degradation method, electronic device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262898A (en) * 2018-12-01 2020-06-09 阿里巴巴集团控股有限公司 Service degradation processing method and device and electronic equipment
CN113179188A (en) * 2021-05-26 2021-07-27 深圳平安智汇企业信息管理有限公司 Service degradation dynamic realization method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114090037A (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN114090037B (en) Service degradation method, device, computer equipment and storage medium
CN110602135B (en) Network attack processing method and device and electronic equipment
CN104836781B (en) Distinguish the method and device for accessing user identity
CN110237530B (en) Abnormal behavior detection method and device and readable storage medium
CN106921504B (en) Method and equipment for determining associated paths of different users
KR102291142B1 (en) Apparatus, method, storage medium of storing program and computer program for analyzing cyber assets damage using system operation status information
CN111368619B (en) Suspicious person detection method, suspicious person detection device and suspicious person detection equipment
CN106330588B (en) BFD detection method and device
US20140143777A1 (en) Resource Scheduling Method and Device
CN110336742B (en) Information sending method and device, computer equipment and storage medium
CN109995732A (en) Web portal security access monitoring method, device, equipment and medium
CN109409087A (en) It is anti-to propose power detection method and equipment
JP2018530093A (en) Credit score model training method, credit score calculation method, apparatus and server
CN113792554A (en) Method and device for evaluating change influence based on knowledge graph
CN114398521A (en) Device type determining method and data processing system for acquiring abnormal device
CN114238885A (en) User abnormal login behavior identification method and device, computer equipment and storage medium
CN110751570B (en) Electric power business message attack identification method and system based on business logic
CN113419852A (en) Request response method, device, equipment and storage medium of microservice
CN112968796A (en) Network security situation awareness method and device and computer equipment
CN111885354B (en) Service improvement discrimination method and device for bank outlets
CN114297034B (en) Cloud platform monitoring method and cloud platform
EP3457609B1 (en) System and method for computing of anomalies based on frequency driven transformation and computing of new features based on point anomaly density
CN111078440A (en) Disk error detection method, device and storage medium
CN111565118A (en) Virtualized network element fault analysis method and system based on multi-observation dimension HMM
CN114884740B (en) AI-based intrusion protection response data processing method and server

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
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.

GR01 Patent grant
GR01 Patent grant