CN111401956A - Advertisement service degradation method, device, server and storage medium - Google Patents

Advertisement service degradation method, device, server and storage medium Download PDF

Info

Publication number
CN111401956A
CN111401956A CN202010185423.0A CN202010185423A CN111401956A CN 111401956 A CN111401956 A CN 111401956A CN 202010185423 A CN202010185423 A CN 202010185423A CN 111401956 A CN111401956 A CN 111401956A
Authority
CN
China
Prior art keywords
advertisement service
degradation
service
current
degradation threshold
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.)
Pending
Application number
CN202010185423.0A
Other languages
Chinese (zh)
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.)
Shenzhen Zhumo Technology Co ltd
Original Assignee
Shenzhen Zhumo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhumo Technology Co ltd filed Critical Shenzhen Zhumo Technology Co ltd
Priority to CN202010185423.0A priority Critical patent/CN111401956A/en
Publication of CN111401956A publication Critical patent/CN111401956A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0272Period of advertisement exposure

Landscapes

  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an advertisement service degradation method, an advertisement service degradation device, a server and a storage medium. The method comprises the following steps: acquiring the total request number of the current advertisement service in a first preset time; judging whether the total request number is larger than a first degradation threshold value; if the total request number is larger than a first degradation threshold, judging whether the timeout rate of the current advertisement service in second preset time is larger than a second degradation threshold, wherein the timeout rate is the ratio of the total timeout number of the current advertisement service in the second preset time to the total request number; if the timeout rate is greater than a second degradation threshold, then the current advertising service is completely degraded. According to the technical scheme of the embodiment of the invention, whether the current advertisement service is degraded or not is determined by sequentially judging whether the total request number and the timeout rate of the current advertisement service in the preset time are greater than the degradation threshold value or not, so that the service degradation is more finely processed.

Description

Advertisement service degradation method, device, server and storage medium
Technical Field
The embodiment of the invention relates to an advertisement technology, in particular to an advertisement service degradation method, an advertisement service degradation device, a server and a storage medium.
Background
The advertisement system retrieves multiple query services, such as Redis, HBase, model score, etc., within the service's internal coupling. In the process of providing service to the outside, when the load is too high, the request is delayed, and at this time, if components such as Redis, HBase and the like are searched, the system breakdown is certainly accelerated.
At present, the solution to this problem is service degradation, that is, a solution that can obtain the current service level of the system to determine whether to continue providing a service tool has a Hystrix solution, and has the following characteristics: 1. and (4) isolation. The user's request no longer directly accesses the service, but accesses the service through the idle thread in the thread pool, if the thread pool is full, the degradation process will be performed, the user's request will not be blocked, and the result seen by the user at this time is a relatively friendly prompt, rather than an endless wait or an unfriendly experience brought by the system crash. 2. And fusing. If the service processing has a large amount of overtime or the depended service is unavailable, the service is subjected to degradation processing at the moment, and the subsequent request for the service is not subjected to the processing of the complete target process any more, but the degraded prompt result is directly returned, so that the resource is quickly released. And if the overtime or the dependent service is relieved and recovered, automatically recovering the target processing flow.
The current fine processing of service degradation of each subdivision component is not perfect, and the problem to be processed by the service degradation at present is response measures to the service after the request amount is too large or the timeout amount suddenly increases within a certain period of time. How can it do so without human intervention and with automatic degradation in the case of a sudden increase in traffic? How can the current system quickly recover in a short time after traffic returns to normal? This is the problem that the present system degradation tool is studying and can address.
Disclosure of Invention
The embodiment of the invention provides an advertisement service degradation method, an advertisement service degradation device, a server and a storage medium, which are used for automatically calculating the current service level according to the current request quantity and the timeout rate of a system, and determining whether to continue calling of a target service or perform service degradation according to the current service level, so that the service degradation is more finely processed.
In a first aspect, an embodiment of the present invention provides an advertisement service degradation method, including:
acquiring the total request number of the current advertisement service in a first preset time;
judging whether the total request number is larger than a first degradation threshold value;
if the total request number is larger than a first degradation threshold, judging whether the timeout rate of the current advertisement service in second preset time is larger than a second degradation threshold, wherein the timeout rate is the ratio of the total timeout number of the current advertisement service in the second preset time to the total request number;
if the timeout rate is greater than a second degradation threshold, then the current advertising service is completely degraded.
Optionally, after determining whether the total number of requests is greater than the first degradation threshold, the method further includes:
if the total number of requests is not greater than a first degradation threshold, then the current advertising service is provided normally.
Optionally, after determining whether the timeout rate of the current advertisement service within the second preset time is greater than the second degradation threshold, the method further includes:
if the overtime rate is not greater than a second degradation threshold, judging whether the overtime rate is greater than a third degradation threshold;
if the timeout rate is greater than a third degradation threshold, then the current ad service is partially degraded.
Optionally, after determining whether the timeout rate is greater than a third degradation threshold, the method further includes:
and if the timeout rate is not greater than a third degradation threshold, normally providing the current advertisement service.
Optionally, after obtaining the total number of requests of the current advertisement service within the first preset time, the method includes:
identifying a level of a requestor of a current advertising service;
and distributing the number of corresponding processing threads according to the level of the requester.
Optionally, the allocating, according to the level of the requester, the number of corresponding processing threads includes:
the high level of the requester results in a large number of allocated processing threads, and the low level of the requester results in a small number of allocated processing threads.
Optionally, after the current advertisement service is completely degraded, the method further includes:
and sending prompt information which cannot be provided by the current advertisement service to the requester.
In a second aspect, an embodiment of the present invention further provides an advertisement service degradation apparatus, including:
the request acquisition unit is used for acquiring the total request number of the current advertisement service in a first preset time;
the first judging unit is used for judging whether the total request number is larger than a first degradation threshold value;
a second determining unit, configured to determine whether an timeout rate of the current advertisement service within a second preset time is greater than a second degradation threshold if the total number of requests is greater than the first degradation threshold, where the timeout rate is a ratio of a total number of times of the current advertisement service within the second preset time to the total number of requests;
and the service degradation unit is used for degrading the current advertisement service completely if the timeout rate is greater than a second degradation threshold value.
In a third aspect, an embodiment of the present invention further provides a server, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the advertisement service degradation method described in any of the foregoing embodiments when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the advertisement service degradation method in any of the above embodiments.
According to the technical scheme of the embodiment of the invention, whether the current advertisement service is degraded or not is determined by sequentially judging whether the total request number and the timeout rate of the current advertisement service in the preset time are greater than the degradation threshold value or not, so that the service degradation is more finely processed.
Drawings
FIG. 1 is a flow chart illustrating a method for demoting an advertisement service according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for demoting an advertisement service according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an advertisement service demotion apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first degradation threshold may be referred to as a second degradation threshold, and similarly, a second degradation threshold may be referred to as a first degradation threshold, without departing from the scope of the present application. Both the first degradation threshold and the second degradation threshold are degradation thresholds, but they are not the same degradation threshold. The terms "first", "second", etc. are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a flowchart illustrating a method for degrading an advertisement service according to an embodiment of the present invention, which is applicable to a situation of advertisement service degradation according to an embodiment of the present invention. The method of the embodiment of the present invention may be performed by an advertisement service demotion apparatus, which may be implemented by software and/or hardware, and may be generally integrated in a server or a terminal device. Referring to fig. 1, a method for degrading an advertisement service according to an embodiment of the present invention specifically includes the following steps:
step S110, obtaining a total number of requests of the current advertisement service in a first preset time.
Specifically, the current advertisement service refers to an advertisement service provided by a current system, and a requesting party, for example, a user terminal, may request the current system of the server to provide the advertisement service, such as an account registration service, an advertisement query service, an advertisement invocation service, and the like. The first preset time refers to a preset time period from any one time point, such as within 5 seconds from now on, or within 5 seconds after 20 minutes, and so on. The total number of requests of the current advertisement service in the first preset time may be the total number of requests in 5 seconds obtained at intervals, or the total number of requests in 5 seconds obtained all the time.
As an alternative embodiment, after obtaining the total number of requests of the current advertisement service within a first preset time, identifying the level of the requester of the current advertisement service; and distributing the number of corresponding processing threads according to the level of the requester. The high level of the requester results in a large number of allocated processing threads, and the low level of the requester results in a small number of allocated processing threads.
And step S120, judging whether the total request number is greater than a first degradation threshold value.
Specifically, each time the total number of requests of the current advertisement service in a first preset time is obtained, it is determined whether the total number of requests is greater than a first degradation threshold, where the first degradation threshold is a set value that degrades when the total number of requests exceeds a certain number of times, and the first degradation threshold may be a default of the system, may be user-defined, may not be modifiable, or may be modifiable, for example, whether the total number of requests in the last 5 seconds is greater than 100 times.
Step S130, if the total number of requests is greater than the first degradation threshold, determining whether a timeout rate of the current advertisement service within a second preset time is greater than a second degradation threshold.
For example, if the total number of requests of the first 5 seconds is greater than 100 times, it is further determined whether a timeout rate of the current advertisement service within a second preset time is greater than a second degradation threshold. The second preset time refers to a preset time period from any one time point, such as within 5 seconds from now on, or within 5 seconds from 20 minutes later, and the like, and the time length may be equal to the first preset time or may not be equal to the second preset time. The timeout rate is a ratio of a total number of times of the current advertisement service in a second preset time to a total number of requests, and is recorded as a timeout when a certain time of request is longer than a set threshold time (e.g., 5 milliseconds), the total number of times of timeout in the second preset time is the number of times of timeout in the first 5 seconds, for example, the number of times of timeout in the first 5 seconds is 50, and when the total number of requests in the current 5 seconds is 100, the timeout rate is 50%. The second degradation threshold is a set value that degrades when the timeout rate exceeds a certain threshold, and may be a default of the system, a user-defined threshold, an unmodifiable threshold, or a modifiable threshold, such as whether the timeout rate of the first 5 seconds is greater than 50%.
And step S140, if the timeout rate is greater than a second degradation threshold, degrading the current advertisement service completely.
Specifically, when the total number of requests in the first preset time is greater than the first degradation threshold and the timeout rate in the second preset time is greater than the second degradation threshold, it indicates that the request amount in the current time period is too large or the timeout amount suddenly increases, the server load is too high, the current advertisement service needs to be completely degraded, and the advertisement service is refused to be provided to the requesting party. Further, after the current advertisement service is completely degraded, prompt information which cannot be provided by the current advertisement service is sent to the requester.
According to the technical scheme of the embodiment of the invention, whether the current advertisement service is degraded or not is determined by sequentially judging whether the total request number and the timeout rate of the current advertisement service in the preset time are greater than the degradation threshold value or not, so that the service degradation is more finely processed.
Example two
Fig. 2 is a flowchart illustrating an advertisement service degradation method according to a second embodiment of the present invention, which is applicable to the advertisement service degradation situation. The method of the embodiment of the present invention may be performed by an advertisement service demotion apparatus, which may be implemented by software and/or hardware, and may be generally integrated in a server or a terminal device. Referring to fig. 2, a method for degrading an advertisement service according to an embodiment of the present invention specifically includes the following steps:
step S210, obtaining a total request number of the current advertisement service in a first preset time.
Step S220, determining whether the total number of requests is greater than a first degradation threshold.
Step S230, if the total number of requests is not greater than the first degradation threshold, providing the current advertisement service normally.
Specifically, if the total number of requests of the current advertisement service in the first preset time is not greater than the first degradation threshold, it indicates that the request amount of the current server is normal, and the advertisement service can be provided normally.
Step S240, if the total number of requests is greater than the first degradation threshold, determining whether a timeout rate of the current advertisement service within a second preset time is greater than a second degradation threshold.
And step S250, if the timeout rate is greater than a second degradation threshold, degrading the current advertisement service completely.
Step S260, if the timeout rate is not greater than the second degradation threshold, determining whether the timeout rate is greater than a third degradation threshold.
Specifically, when the total number of requests in the first preset time is greater than the first degradation threshold, but the timeout rate in the second preset time is not greater than the second degradation threshold, it indicates that the request amount in the current time period is greater, but the timeout amount is not large, and it is not necessary to completely degrade, or the advertisement service can be continuously provided, or partial degradation is enough, and it is further determined whether the timeout rate is greater than the third degradation threshold. The third degradation threshold is a set value that degrades when the timeout rate exceeds a certain threshold, and the third degradation threshold may be a default of the system, may be user-defined, may not be modifiable, or may be modifiable, and is smaller than the second degradation threshold, for example, whether the timeout rate of the first 5 seconds is greater than 30%.
And step S270, if the timeout rate is greater than a third degradation threshold, degrading the current advertisement service part.
Specifically, if the timeout rate in the second preset time is greater than the third degradation threshold, it indicates that the request amount of the current time period is large, and the timeout amount is slightly high, and the current advertisement service portion needs to be degraded. For how to filter ad service partial demotions, a level of requestors of a current ad service may be identified; screening partially degraded advertising services according to the level of the requestor.
And step S280, if the timeout rate is not greater than a third degradation threshold, normally providing the current advertisement service.
Specifically, if the timeout rate in the second preset time is not greater than the third degradation threshold, which indicates that the request amount of the current time period is large, but the timeout amount is low, the current advertisement service can be provided normally.
According to the technical scheme of the embodiment of the invention, whether the current advertisement service is degraded or not is determined by sequentially judging whether the total request number and the timeout rate of the current advertisement service in the preset time are greater than the degradation threshold value or not, so that the service degradation is more finely processed.
EXAMPLE III
The advertisement service degradation device provided by the embodiment of the invention can execute the advertisement service degradation method provided by any embodiment of the invention, has corresponding functional modules and beneficial effects of the execution method, can be realized in a software and/or hardware (integrated circuit) mode, and can be generally integrated in a server or terminal equipment. Fig. 3 is a schematic structural diagram of an advertisement service demotion apparatus 300 according to a third embodiment of the present invention. Referring to fig. 3, an advertisement service downgrading apparatus 300 according to an embodiment of the present invention may specifically include:
the request obtaining unit 310 is configured to obtain a total number of requests of a current advertisement service within a first preset time.
A first determining unit 320, configured to determine whether the total number of requests is greater than a first degradation threshold.
A second determining unit 330, configured to determine whether an timeout rate of the current advertisement service in a second preset time is greater than a second degradation threshold if the total number of requests is greater than the first degradation threshold, where the timeout rate is an occupied ratio of a total number of times of the current advertisement service in the second preset time to the total number of requests.
A service downgrading unit 340, configured to downgrade all the current advertisement service if the timeout rate is greater than a second downgrading threshold.
Optionally, the apparatus 300 further includes:
a first normal unit, configured to provide the current advertisement service normally if the total number of requests is not greater than a first degradation threshold.
Optionally, the apparatus 300 further includes:
a third determining unit, configured to determine whether the timeout rate is greater than a third degradation threshold if the timeout rate is not greater than the second degradation threshold;
and the partial degradation unit is used for partially degrading the current advertisement service if the timeout rate is greater than a third degradation threshold.
Optionally, the apparatus 300 further includes:
and the second normal unit is used for providing the current advertisement service normally if the timeout rate is not greater than a third degradation threshold value.
Optionally, the apparatus 300 includes:
a level identification unit for identifying a level of a requester of a current advertisement service;
and the thread allocation unit is used for allocating the number of the corresponding processing threads according to the level of the requester.
Optionally, the thread allocating unit includes:
the high level of the requester results in a large number of allocated processing threads, and the low level of the requester results in a small number of allocated processing threads.
Optionally, the service downgrading unit 340 is further configured to send a prompt message to the requestor, where the prompt message cannot be provided by the current advertisement service.
According to the technical scheme of the embodiment of the invention, whether the current advertisement service is degraded or not is determined by sequentially judging whether the total request number and the timeout rate of the current advertisement service in the preset time are greater than the degradation threshold value or not, so that the service degradation is more finely processed.
Example four
Fig. 4 is a schematic structural diagram of a server according to a fourth embodiment of the present invention, as shown in fig. 4, the server includes a processor 410, a memory 420, an input device 430, and an output device 440; the number of the processors 410 in the server may be one or more, and one processor 410 is taken as an example in fig. 4; the processor 410, the memory 420, the input device 430 and the output device 440 in the server may be connected by a bus or other means, and the bus connection is exemplified in fig. 4.
The memory 420 serves as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the advertisement service degradation method in the embodiment of the present invention (e.g., the request acquisition unit 310, the first judgment unit 320, the second judgment unit 330, and the service degradation unit 340 in the advertisement service degradation apparatus 300). The processor 410 executes various functional applications of the server and data processing by executing software programs, instructions, and modules stored in the memory 420, that is, implements the advertisement service demotion method described above.
Namely:
acquiring the total request number of the current advertisement service in a first preset time;
judging whether the total request number is larger than a first degradation threshold value;
if the total request number is larger than a first degradation threshold, judging whether the timeout rate of the current advertisement service in second preset time is larger than a second degradation threshold, wherein the timeout rate is the ratio of the total timeout number of the current advertisement service in the second preset time to the total request number;
if the timeout rate is greater than a second degradation threshold, then the current advertising service is completely degraded.
Of course, the processor of the server provided in the embodiments of the present invention is not limited to execute the method operations described above, and may also execute related operations in the advertisement service degradation method provided in any embodiment of the present invention.
The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the server. The output device 440 may include a display device such as a display screen.
According to the technical scheme of the embodiment of the invention, whether the current advertisement service is degraded or not is determined by sequentially judging whether the total request number and the timeout rate of the current advertisement service in the preset time are greater than the degradation threshold value or not, so that the service degradation is more finely processed.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for advertisement service demotion, the method including:
acquiring the total request number of the current advertisement service in a first preset time;
judging whether the total request number is larger than a first degradation threshold value;
if the total request number is larger than a first degradation threshold, judging whether the timeout rate of the current advertisement service in second preset time is larger than a second degradation threshold, wherein the timeout rate is the ratio of the total timeout number of the current advertisement service in the second preset time to the total request number;
if the timeout rate is greater than a second degradation threshold, then the current advertising service is completely degraded.
Of course, the storage medium containing the computer-executable instructions provided by the embodiments of the present invention is not limited to the method operations described above, and may also perform related operations in the advertisement service degradation method provided by any embodiments of the present invention.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including AN object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages.
According to the technical scheme of the embodiment of the invention, whether the current advertisement service is degraded or not is determined by sequentially judging whether the total request number and the timeout rate of the current advertisement service in the preset time are greater than the degradation threshold value or not, so that the service degradation is more finely processed.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An advertisement service demotion method, comprising:
acquiring the total request number of the current advertisement service in a first preset time;
judging whether the total request number is larger than a first degradation threshold value;
if the total request number is larger than a first degradation threshold, judging whether the timeout rate of the current advertisement service in second preset time is larger than a second degradation threshold, wherein the timeout rate is the ratio of the total timeout number of the current advertisement service in the second preset time to the total request number;
if the timeout rate is greater than a second degradation threshold, then the current advertising service is completely degraded.
2. The advertisement service demotion method of claim 1, further comprising, after determining whether the total number of requests is greater than a first demotion threshold:
if the total number of requests is not greater than a first degradation threshold, then the current advertising service is provided normally.
3. The advertisement service degradation method of claim 1, after determining whether a timeout rate of the current advertisement service within a second preset time is greater than a second degradation threshold, further comprising:
if the overtime rate is not greater than a second degradation threshold, judging whether the overtime rate is greater than a third degradation threshold;
if the timeout rate is greater than a third degradation threshold, then the current ad service is partially degraded.
4. The advertisement service demotion method of claim 1, further comprising, after determining whether the timeout rate is greater than a third demotion threshold:
and if the timeout rate is not greater than a third degradation threshold, normally providing the current advertisement service.
5. The advertisement service demotion method as claimed in claim 1, comprising, after obtaining the total number of requests of the current advertisement service within the first preset time:
identifying a level of a requestor of a current advertising service;
and distributing the number of corresponding processing threads according to the level of the requester.
6. The advertisement service demotion method as claimed in claim 5, wherein said allocating the number of corresponding processing threads according to the level of the requesting party comprises:
the high level of the requester results in a large number of allocated processing threads, and the low level of the requester results in a small number of allocated processing threads.
7. The advertisement service demotion method of claim 1, further comprising, after the current advertisement service is completely demoted:
and sending prompt information which cannot be provided by the current advertisement service to the requester.
8. An advertisement service demotion apparatus, comprising:
the request acquisition unit is used for acquiring the total request number of the current advertisement service in a first preset time;
the first judging unit is used for judging whether the total request number is larger than a first degradation threshold value;
a second determining unit, configured to determine whether an timeout rate of the current advertisement service within a second preset time is greater than a second degradation threshold if the total number of requests is greater than the first degradation threshold, where the timeout rate is a ratio of a total number of times of the current advertisement service within the second preset time to the total number of requests;
and the service degradation unit is used for degrading the current advertisement service completely if the timeout rate is greater than a second degradation threshold value.
9. A server comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the advertisement service demotion method according to any of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the advertisement service demotion method according to any one of claims 1 to 7.
CN202010185423.0A 2020-03-17 2020-03-17 Advertisement service degradation method, device, server and storage medium Pending CN111401956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010185423.0A CN111401956A (en) 2020-03-17 2020-03-17 Advertisement service degradation method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010185423.0A CN111401956A (en) 2020-03-17 2020-03-17 Advertisement service degradation method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN111401956A true CN111401956A (en) 2020-07-10

Family

ID=71432576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010185423.0A Pending CN111401956A (en) 2020-03-17 2020-03-17 Advertisement service degradation method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111401956A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112636971A (en) * 2020-12-21 2021-04-09 北京字跳网络技术有限公司 Service degradation method and device, electronic equipment and storage medium
CN113159845A (en) * 2021-04-21 2021-07-23 杭州网易云音乐科技有限公司 Data processing method, device, equipment and medium
CN113240458A (en) * 2021-04-26 2021-08-10 西安点告网络科技有限公司 Method, system, terminal and storage medium for reliably guaranteeing advertisement bidding timeout rate
CN113743628A (en) * 2021-09-18 2021-12-03 重庆允成互联网科技有限公司 Maintenance response timeliness rate calculation method, device, computer equipment and storage medium
CN114090037A (en) * 2021-11-12 2022-02-25 北京字节跳动网络技术有限公司 Service degradation method, device, computer equipment and storage medium
CN114710447A (en) * 2020-12-16 2022-07-05 百寻信息科技(上海)有限公司 Balanced advertisement flow control method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150332331A1 (en) * 2014-05-13 2015-11-19 Pubmatic, Inc. Intelligent ad auction and sla compliance techniques
CN108154385A (en) * 2017-12-04 2018-06-12 湖南快乐阳光互动娱乐传媒有限公司 A kind of automatic down method of ad-request flow and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150332331A1 (en) * 2014-05-13 2015-11-19 Pubmatic, Inc. Intelligent ad auction and sla compliance techniques
CN108154385A (en) * 2017-12-04 2018-06-12 湖南快乐阳光互动娱乐传媒有限公司 A kind of automatic down method of ad-request flow and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114710447A (en) * 2020-12-16 2022-07-05 百寻信息科技(上海)有限公司 Balanced advertisement flow control method and system
CN114710447B (en) * 2020-12-16 2024-05-03 百寻信息科技(上海)有限公司 Balanced advertisement flow control method and system
CN112636971A (en) * 2020-12-21 2021-04-09 北京字跳网络技术有限公司 Service degradation method and device, electronic equipment and storage medium
CN112636971B (en) * 2020-12-21 2023-01-10 北京字跳网络技术有限公司 Service degradation method and device, electronic equipment and storage medium
CN113159845A (en) * 2021-04-21 2021-07-23 杭州网易云音乐科技有限公司 Data processing method, device, equipment and medium
CN113159845B (en) * 2021-04-21 2022-09-27 杭州网易云音乐科技有限公司 Data processing method, device, equipment and medium
CN113240458A (en) * 2021-04-26 2021-08-10 西安点告网络科技有限公司 Method, system, terminal and storage medium for reliably guaranteeing advertisement bidding timeout rate
CN113240458B (en) * 2021-04-26 2023-11-03 西安点告网络科技有限公司 Advertisement bidding timeout rate reliable guarantee method, system, terminal and storage medium
CN113743628A (en) * 2021-09-18 2021-12-03 重庆允成互联网科技有限公司 Maintenance response timeliness rate calculation method, device, computer equipment and storage medium
CN114090037A (en) * 2021-11-12 2022-02-25 北京字节跳动网络技术有限公司 Service degradation method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111401956A (en) Advertisement service degradation method, device, server and storage medium
US20180074846A1 (en) Automatic virtual machine termination in a cloud
CN110858843B (en) Service request processing method and device and computer readable storage medium
CN110673964A (en) Audio playing control method and device of vehicle-mounted system
WO2021017771A1 (en) Service request processing method and related device
CN111597040B (en) Resource allocation method, device, storage medium and electronic equipment
US20170052979A1 (en) Input/Output (IO) Request Processing Method and File Server
CN110636367A (en) Video loading method and device, terminal equipment and medium
CN114036390A (en) Scene service recommendation method and device, electronic equipment and storage medium
CN109657485B (en) Authority processing method and device, terminal equipment and storage medium
CN112653736B (en) Parallel source returning method and device and electronic equipment
CN111596864A (en) Method, device, server and storage medium for data delayed deletion
CN109862069B (en) Message processing method and device
CN116319810A (en) Flow control method, device, equipment, medium and product of distributed system
CN114268929B (en) Service activation method and related equipment
CN115794396A (en) Resource allocation method, system and electronic equipment
CN114296897A (en) Method and device for sending advertisement request
CN108287793A (en) The way to play for time and server of response message
CN113835905A (en) Message queue load balancing method and device, electronic equipment and medium
CN112163176A (en) Data storage method and device, electronic equipment and computer readable medium
CN112306797A (en) Embedded point information reporting method and device, storage medium and electronic equipment
CN111400060A (en) Equipment linkage method, device, server and medium
CN110633141A (en) Memory management method and device of application program, terminal equipment and medium
CN117255332B (en) Bluetooth connection control method and device, storage medium and electronic equipment
CN111385335A (en) Data request processing method, device, equipment and storage medium

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