CN107196785A - The method and device that back-end services degrade automatically - Google Patents

The method and device that back-end services degrade automatically Download PDF

Info

Publication number
CN107196785A
CN107196785A CN201710209818.8A CN201710209818A CN107196785A CN 107196785 A CN107196785 A CN 107196785A CN 201710209818 A CN201710209818 A CN 201710209818A CN 107196785 A CN107196785 A CN 107196785A
Authority
CN
China
Prior art keywords
server
loss ratio
end services
operational factor
overload
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
CN201710209818.8A
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201710209818.8A priority Critical patent/CN107196785A/en
Publication of CN107196785A publication Critical patent/CN107196785A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5019Ensuring fulfilment of SLA
    • H04L41/5025Ensuring fulfilment of SLA by proactively reacting to service quality change, e.g. by reconfiguration after service quality degradation or upgrade

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiments of the invention provide the method and device that back-end services degrade automatically, applied to system service technical field, this method includes:Obtain the operational factor of server;According to operational factor, the corresponding loss ratio of server is determined, wherein, the back-end services of loss ratio mark degradation processing account for the percentage of all back-end services;According to loss ratio, it is determined that the quantity of the back-end services of degradation processing is treated, and in the pending back-end services of server, the back-end services for choosing respective numbers carry out degradation processing, wherein, degradation is processed as abandoning handling.The method degraded automatically by the back-end services of the present invention, reduce the quantity for the back-end services being waited for, so as to reduce because etc. it is pending and cause after server process complete service request, sending the client of the service request no longer needs the situation of the corresponding back-end services of the service request, the waste of server process resource can be reduced, the process performance of server is lifted.

Description

The method and device that back-end services degrade automatically
Technical field
The present invention relates to system service technical field, the method and device that more particularly to back-end services degrade automatically.
Background technology
With the development of Internet technology, the quantity of access device is also more and more in internet, while business in network The growth of exponential form is presented in the quantity of request.Back-end services refer to the service request of server process, because business please in network The quantity asked is excessively huge, and a large number of services request pours in server simultaneously to cause server to overload, and reduce the processing of server Efficiency, or even server can be caused to delay machine.Therefore when server carries out back-end services processing, it will usually use portion rear end The method degraded is serviced, portion rear end service is pressed and post-processes or abandon processing, the processing pressure of server is reduced, improved The treatment effeciency of server.
, it is necessary to preset time threshold in existing back-end services down method, taken in the processing of service request During more than time threshold, then it is assumed that service request time-out, and the corresponding back-end services of the service request are subjected to degradation processing, Abandon handling the service request.
But existing back-end services down method is used, the processing according only to service request takes progress degradation judgement, It has ignored the pending duration such as service request.During service request etc. is pending, the stand-by period may already exceed Time threshold.In this case after server process complete service request, the client of the service request may not The corresponding back-end services of the service request are needed again.It is especially different in the configuration feature for the client for sending service request When, server carries out degradation judgement according only to time threshold, will cause the waste of server process resource, reduction server Process performance.
The content of the invention
The purpose of the embodiment of the present invention is to provide the method and device that a kind of back-end services degrade automatically, to realize reduction The waste of server process resource, lifts the process performance of server.Concrete technical scheme is as follows:
A kind of method that back-end services degrade automatically, including:
Obtain the operational factor of server;
According to the operational factor, the corresponding loss ratio of the server is determined, wherein, at the loss ratio mark degradation The back-end services of reason account for the percentage of all back-end services;
According to the loss ratio, it is determined that the quantity of the back-end services of degradation processing is treated, and in the pending of the server In back-end services, the back-end services for choosing respective numbers carry out degradation processing, wherein, the degradation is processed as abandoning processing.
Optionally, it is described according to the operational factor, the corresponding loss ratio of the server is determined, including:
Obtain current corresponding first loss ratio of the server;
According to the operational factor, judge whether the server overloads;
In the server overload, first loss ratio is lifted, and the loss ratio after lifting is updated to the clothes The corresponding loss ratio of business device.
Optionally, described according to the operational factor, after judging whether the server overloads, methods described is also wrapped Include:
When the server does not overload, first loss ratio is reduced, and the loss ratio after reduction is updated to described The corresponding loss ratio of server, wherein, the minimum value of the loss ratio is zero.
Optionally, the operational factor includes:Utilization rate, the utilization rate of internal memory and the service of the server CPU Average the taking of device processing back-end services.
Optionally, it is described according to the operational factor, judge whether the server overloads, including:
Obtain default CPU threshold values, memory threshold and time-consuming threshold value;
It is less than the CPU threshold values in the utilization rate of the server CPU, the utilization rate of the internal memory is less than the internal memory threshold Value, and when averagely taking less than the time-consuming threshold value of the server process back-end services, judge that the server does not overload, Otherwise the server overload is judged.
The device that a kind of back-end services degrade automatically, including:
Parameter acquisition module, the operational factor for obtaining server;
Loss ratio determining module, for according to the operational factor, determining the corresponding loss ratio of the server, wherein, The back-end services of the loss ratio mark degradation processing account for the percentage of all back-end services;
Degradation processing module, for according to the loss ratio, it is determined that the quantity of the back-end services for processing of waiting to degrade, and in institute In the pending back-end services for stating server, the back-end services for choosing respective numbers carry out degradation processing, wherein, at the degradation Manage to abandon processing.
Optionally, the loss ratio computing module, including:
Currency acquisition submodule, for obtaining current corresponding first loss ratio of the server;
Decision sub-module is overloaded, for according to the operational factor, judging whether the server overloads;
Loss ratio lifts submodule, in the server overload, lifting first loss ratio, and by after lifting Loss ratio be updated to the corresponding loss ratio of the server.
Optionally, the loss ratio computing module, in addition to:
Loss ratio reduces submodule, for when the server does not overload, reducing by first loss ratio, and will reduction Loss ratio afterwards is updated to the corresponding loss ratio of the server, wherein, the minimum value of the loss ratio is zero.
Optionally, the operational factor that the parameter acquisition module is obtained includes:The utilization rate of the server CPU, internal memory Utilization rate and the server process back-end services it is average time-consuming.
Optionally, it is described according to overload decision sub-module, including:
Threshold value acquiring unit, for obtaining default CPU threshold values, memory threshold and time-consuming threshold value;
Compare computing unit, be less than the CPU threshold values, the profit of the internal memory for the utilization rate in the server CPU It is less than the memory threshold, and when averagely taking less than the time-consuming threshold value of the server process back-end services with rate, sentences The fixed server does not overload, otherwise judges the server overload.
The method and device that back-end services provided in an embodiment of the present invention degrade automatically, by the operational factor of server, Loss ratio is determined, the quantity for the back-end services for determining to degrade according to loss ratio, and the back-end services for the respective numbers that degrade, reduce The quantity for the back-end services being waited for, thus reduce because etc. it is pending and cause when the complete business of server process please After asking, sending the client of the service request no longer needs the situation of the corresponding back-end services of the service request, can subtract The waste of few server process resource, lifts the process performance of server.Certainly, any product or method of the present invention are implemented simultaneously It is not necessarily required to while reaching all the above advantage.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
A kind of schematic flow sheet for the method that Fig. 1 degrades automatically for the back-end services of the embodiment of the present invention;
Another schematic flow sheet for the method that Fig. 2 degrades automatically for the back-end services of the embodiment of the present invention;
The structural representation for the device that Fig. 3 degrades automatically for the back-end services of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Because the quantity of service request in network is excessively huge, a large number of services request pours in server simultaneously can cause service Device is overloaded, and reduces the treatment effeciency of server, or even server can be caused to delay machine.Therefore back-end services processing is carried out in server When, it will usually using the method that portion rear end service is degraded, portion rear end service is pressed and post-processes or abandon processing, is subtracted The processing pressure of few server, improves the treatment effeciency of server.
As shown in figure 1, the embodiments of the invention provide a kind of method that back-end services degrade automatically, including:
S101, obtains the operational factor of server.
In embodiments of the present invention, the automatic demotion apparatus of back-end services can periodically obtain the operation ginseng of server Number, obtain operational factor cycle can sets itself as the case may be, be for example set as 5 seconds.
The automatic demotion apparatus of back-end services can be a kind of equipment, including:Processor, memory, communication interface and bus; Processor, memory and communication interface are connected by bus and complete mutual communication;Memory storage executable program generation Code;The executable program code that processor is stored by reading in memory runs journey corresponding with executable program code Sequence, for performing the method that back-end services degrade automatically.
The automatic demotion apparatus of back-end services can also be a kind of application program applied to server, for operationally holding The method that row back-end services degrade automatically.
The automatic demotion apparatus of back-end services can also be a kind of storage medium applied to server, executable for storing Code, executable code is used to perform the method that back-end services degrade automatically.
Wherein, above-mentioned operational factor can include:Server CPU utilization rate, the utilization rate of internal memory and server process Back-end services it is average time-consuming etc..Server CPU utilization rate, the utilization rate of internal memory can be directly from the monitoring systems of server It is middle to obtain;Average take of server process back-end services can be calculated according to the time-consuming of server process back-end services, For example calculate time-consuming average value averagely the taking as server process back-end services of the processing of 1000 back-end services.
S102, according to operational factor, determines the corresponding loss ratio of server, wherein, loss ratio mark degrades after processing End service accounts for the percentage of all back-end services.
Get after the operational factor of server, the automatic demotion apparatus of back-end services can be according to operational factor, it is determined that clothes The loss ratio of business device.Wherein, above-mentioned loss ratio accounts for the quantity of all back-end services for the quantity of the back-end services for the processing that degrades Percentage.
Specifically, according to operational factor, determining that the corresponding loss ratio of server can include:
Step one, current corresponding first loss ratio of server is obtained.
The initial value of loss ratio is 0, and the process run with server, loss ratio can produce change.Back-end services are automatic Demotion apparatus can obtain the current loss ratio of server, i.e. the first loss ratio.
Step 2, according to operational factor, judges whether server overloads.
Operational factor identifies the indices in server running, and default overload criteria is reached in operational factor When, the automatic demotion apparatus of back-end services judges current server overload;When operational factor is not up to default overload criteria, after The end automatic demotion apparatus of service judges that current server does not overload.Wherein, overload criteria is set in advance, for example server CPU utilization rate is more than or equal to CPU threshold values.
Step 3, in server overload, lifts the first loss ratio, and the loss ratio after lifting is updated into server pair The loss ratio answered.
After determining server overload, the automatic demotion apparatus of back-end services can enter one on the basis of the first loss ratio The numerical value of step lifting loss ratio, and it regard the loss ratio after lifting as the corresponding loss ratio of server.The first loss ratio is lifted, can Think every time the numerical value of fixed lifting loss ratio, or the numerical value of loss ratio is lifted according to the order of severity of overload. For example, when lifting loss ratio, lifting 5 percent can be fixed every time, and the maximum of loss ratio is 90 percent, i.e., Loss ratio be 90 percent after will no longer be lifted.The maximum of loss ratio is set as 90 percent, be in order to ensure clothes Device be engaged in the case of heavy overload, a number of back-end services are still handled.
S103, according to loss ratio, it is determined that the quantity of the back-end services of degradation processing is treated, and in the pending rear end of server In service, the back-end services for choosing respective numbers carry out degradation processing, wherein, degradation is processed as abandoning processing.
Loss ratio is multiplied by with the total quantity of pending back-end services, it is determined that the quantity of the back-end services of degradation processing is treated, Then in pending back-end services, choose and treat that the back-end services of the quantity respective numbers of the back-end services of degradation processing are entered The processing of row degradation.Wherein, degradation processing herein refers to disconnect back-end services without processing.
The back-end services for choosing respective numbers carry out degradation processing, can be that the back-end services for randomly selecting respective numbers are entered The processing of row degradation;It can also be the importance according to back-end services, choose the low business of importance and carry out degradation processing;Can be with It is time-consuming according to the processing of back-end services, choose the time-consuming larger back-end services of processing and carry out degradation processing etc..
In embodiments of the present invention, by the operational factor of server, loss ratio is determined, determines what is degraded according to loss ratio The quantity of back-end services, and the back-end services for the respective numbers that degrade, reduce the quantity for the back-end services being waited for, from And reduce because etc. it is pending and cause when server process complete service request after, send the service request client possibility No longer need the situation of the corresponding back-end services of the service request, it is possible to reduce the waste of server process resource, lifted The process performance of server.
Optionally, after according to operational factor, judging whether server overloads, this method can also include:
When server does not overload, the first loss ratio is reduced, and it is corresponding that the loss ratio after reduction is updated into server Loss ratio, wherein, the minimum value of loss ratio is zero.
When determining server is not overloaded, the automatic demotion apparatus of back-end services can enter on the basis of the first loss ratio One step reduces the numerical value of loss ratio, and regard the loss ratio after reduction as the corresponding loss ratio of server.The first loss ratio is reduced, The numerical value of loss ratio can be reduced for what is fixed every time, or loss ratio is reduced according to the remaining load of server.Example Such as, reduce loss ratio when, fixed reduction by 20 percent, and the minimum value of loss ratio is zero every time, i.e., loss ratio will be To no longer it be reduced after zero.
In embodiments of the present invention, when server does not overload, loss ratio is reduced, server actual treatment industry can be increased The quantity of business, so as to improve the utilization rate of server.
Optionally, operational factor includes:Server CPU utilization rate, the utilization rate of internal memory and server process rear end clothes The average of business takes;According to operational factor, judge whether server overloads, including:
Step one, default CPU threshold values, memory threshold and time-consuming threshold value are obtained.
CPU threshold values, memory threshold and time-consuming threshold value are default numerical value, are carried out according to the actual treatment ability of server Setting, for example, CPU threshold values are 95%, memory threshold is 90%, and it is 30 milliseconds to take threshold value.
Step 2, is less than CPU threshold values in server CPU utilization rate, and the utilization rate of internal memory is less than memory threshold, and service When averagely taking less than time-consuming threshold value of device processing back-end services, determining server is not overloaded, and otherwise determining server is overloaded.
In embodiments of the present invention, the particular content of operational factor is given, and then gives and is judged according to operational factor The method whether server overloads, while whether overloaded come determining server according to CPU threshold values, memory threshold and time-consuming threshold value, Comprehensively, the overload of service area judges accurate to Consideration.
Another schematic flow sheet for the method that Fig. 2 degrades automatically for the back-end services of the embodiment of the present invention.Back-end services The processing that automatic demotion apparatus collects server process back-end services is taken, and the average consumption of back-end services is handled with calculation server When, while the cpu busy percentage and memory usage of collecting and treating apparatus, are used as operational factor.Processor cpu busy percentage and internal memory profit With rate every five seconds for example statistics once, time-consuming flat of the average processing taken as 1000 back-end services of server process back-end services Average.
The automatic demotion apparatus of back-end services, according to above-mentioned operational factor, was that a cycle carries out overload judgement with 5 seconds. Cpu busy percentage is less than CPU threshold values (such as 95%), and memory usage is less than memory threshold (such as 90%), and server process When averagely taking less than time-consuming threshold value (such as 30 milliseconds) of back-end services, determining server is not overloaded, otherwise determining server Overload.
The automatic demotion apparatus of back-end services obtains current loss ratio, and loss ratio (such as one is lifted in server overload 5%) secondary lifting, loss ratio (for example once reducing by 20%) is reduced when server does not overload, the initial value of loss ratio is 0, with The operation of server and gradually change, maximum is 90%;The back-end services of loss ratio mark degradation processing account for all rear ends The percentage of service, for example, loss ratio is 10%, then when there is 100 back-end services etc. pending, server can only handle 90 Remaining 10 back-end services are carried out degradation processing, that is, disconnect this 10 back-end services and do not reprocess by individual back-end services.According to The back-end services of loss ratio random selection respective numbers carry out degradation processing.
Referring to Fig. 3, the device that Fig. 3 degrades automatically for the back-end services of the embodiment of the present invention, including:
Parameter acquisition module 301, the operational factor for obtaining server;
Loss ratio determining module 302, for according to operational factor, determining the corresponding loss ratio of server, wherein, loss ratio The back-end services of mark degradation processing account for the percentage of all back-end services;
Degradation processing module 303, for according to loss ratio, it is determined that treating the quantity of the back-end services of degradation processing, and taking It is engaged in the pending back-end services of device, the back-end services for choosing respective numbers carry out degradation processing, wherein, the degradation is processed as Abandon processing.
In embodiments of the present invention, by the operational factor of server, loss ratio is determined, determines what is degraded according to loss ratio The quantity of back-end services, and the back-end services for the respective numbers that degrade, reduce the quantity for the back-end services being waited for, from And reduce because etc. it is pending and cause when server process complete service request after, send the service request client possibility No longer need the situation of the corresponding back-end services of the service request, it is possible to reduce the waste of server process resource, lifted The process performance of server.
It should be noted that the device of the embodiment of the present invention, is the dress for being applied to the method that above-mentioned back-end services degrade automatically Put, then the embodiment for the method that above-mentioned back-end services degrade automatically is applied to the device, and can reach same or analogous Beneficial effect.
Optionally, loss ratio computing module, including:
Currency acquisition submodule (not shown), for obtaining current corresponding first loss ratio of server;
Decision sub-module (not shown) is overloaded, for according to operational factor, judging whether server overloads;
Loss ratio lifts submodule (not shown), in server overload, lifting the first loss ratio, and will carry Loss ratio after rising is updated to the corresponding loss ratio of server.
In embodiments of the present invention, in server overload, loss ratio is lifted, it is shared compared to loss ratio is calculated Process resource is less, saves computing resource.
Optionally, loss ratio computing module, in addition to:
Loss ratio reduces submodule (not shown), for when server does not overload, reducing the first loss ratio, and will Loss ratio after reduction is updated to the corresponding loss ratio of server, wherein, the minimum value of loss ratio is zero.
In embodiments of the present invention, when server does not overload, loss ratio is reduced, server actual treatment industry can be increased The quantity of business, so as to improve the utilization rate of server.
Optionally, operational factor includes:Server CPU utilization rate, the utilization rate of internal memory and server process rear end clothes The average of business takes;According to overload decision sub-module, including:
Threshold value acquiring unit (not shown), for obtaining default CPU threshold values, memory threshold and time-consuming threshold value;
Compare computing unit (not shown), be less than CPU threshold values, the profit of internal memory for the utilization rate in server CPU It is less than memory threshold, and when averagely taking less than time-consuming threshold value of server process back-end services, the non-mistake of determining server with rate Carry, otherwise determining server is overloaded.
In embodiments of the present invention, the particular content of operational factor is given, and then gives and is judged according to operational factor The method whether server overloads, while whether overloaded come determining server according to CPU threshold values, memory threshold and time-consuming threshold value, Comprehensively, the overload of service area judges accurate to Consideration.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.It is real especially for device Apply for example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (10)

1. a kind of method that back-end services degrade automatically, it is characterised in that including:
Obtain the operational factor of server;
According to the operational factor, the corresponding loss ratio of the server is determined, wherein, the loss ratio mark degrades what is handled Back-end services account for the percentage of all back-end services;
According to the loss ratio, it is determined that the quantity of the back-end services of degradation processing is treated, and in the pending rear end of the server In service, the back-end services for choosing respective numbers carry out degradation processing, wherein, the degradation is processed as abandoning processing.
2. according to the method described in claim 1, it is characterised in that described according to the operational factor, determine the server Corresponding loss ratio, including:
Obtain current corresponding first loss ratio of the server;
According to the operational factor, judge whether the server overloads;
In the server overload, first loss ratio is lifted, and the loss ratio after lifting is updated to the server Corresponding loss ratio.
3. method according to claim 2, it is characterised in that described according to the operational factor, judges the service After whether device overloads, methods described also includes:
When the server does not overload, first loss ratio is reduced, and the loss ratio after reduction is updated to the service The corresponding loss ratio of device, wherein, the minimum value of the loss ratio is zero.
4. according to the method in claim 2 or 3, it is characterised in that the operational factor includes:The server CPU's Utilization rate, the utilization rate of internal memory and the average of the server process back-end services take.
5. method according to claim 4, it is characterised in that described according to the operational factor, judges the server Whether overload, including:
Obtain default CPU threshold values, memory threshold and time-consuming threshold value;
It is less than the CPU threshold values in the utilization rate of the server CPU, the utilization rate of the internal memory is less than the memory threshold, And when averagely taking less than the time-consuming threshold value of the server process back-end services, judge that the server does not overload, it is no Then judge the server overload.
6. the device that a kind of back-end services degrade automatically, it is characterised in that including:
Parameter acquisition module, the operational factor for obtaining server;
Loss ratio determining module, for according to the operational factor, determining the corresponding loss ratio of the server, wherein, it is described The back-end services of loss ratio mark degradation processing account for the percentage of all back-end services;
Degradation processing module, for according to the loss ratio, it is determined that the quantity of the back-end services for processing of waiting to degrade, and in the clothes It is engaged in the pending back-end services of device, the back-end services for choosing respective numbers carry out degradation processing.
7. device according to claim 6, it is characterised in that the loss ratio computing module, including:
Currency acquisition submodule, for obtaining current corresponding first loss ratio of the server;
Decision sub-module is overloaded, for according to the operational factor, judging whether the server overloads;
Loss ratio lifts submodule, in the server overload, lifts first loss ratio, and by losing after lifting The rate of abandoning is updated to the corresponding loss ratio of the server.
8. device according to claim 7, it is characterised in that the loss ratio computing module, in addition to:
Loss ratio reduces submodule, for when the server does not overload, reducing by first loss ratio, and by after reduction Loss ratio is updated to the corresponding loss ratio of the server, wherein, the minimum value of the loss ratio is zero.
9. the device according to claim 7 or 8, it is characterised in that the operational factor bag that the parameter acquisition module is obtained Include:Utilization rate, the utilization rate of internal memory and the average of the server process back-end services of the server CPU takes.
10. device according to claim 9, it is characterised in that described according to overload decision sub-module, including:
Threshold value acquiring unit, for obtaining default CPU threshold values, memory threshold and time-consuming threshold value;
Compare computing unit, be less than the CPU threshold values, the utilization rate of the internal memory for the utilization rate in the server CPU Less than the memory threshold, and the server process back-end services is average time-consuming when being less than the time-consuming threshold value, judges institute State server not overload, otherwise judge the server overload.
CN201710209818.8A 2017-03-31 2017-03-31 The method and device that back-end services degrade automatically Pending CN107196785A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710209818.8A CN107196785A (en) 2017-03-31 2017-03-31 The method and device that back-end services degrade automatically

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710209818.8A CN107196785A (en) 2017-03-31 2017-03-31 The method and device that back-end services degrade automatically

Publications (1)

Publication Number Publication Date
CN107196785A true CN107196785A (en) 2017-09-22

Family

ID=59871771

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710209818.8A Pending CN107196785A (en) 2017-03-31 2017-03-31 The method and device that back-end services degrade automatically

Country Status (1)

Country Link
CN (1) CN107196785A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110034946A (en) * 2019-01-03 2019-07-19 阿里巴巴集团控股有限公司 Adaptive service degradation method and apparatus
CN110071952A (en) * 2018-01-24 2019-07-30 北京京东尚科信息技术有限公司 The control method and device of service call amount
CN111813568A (en) * 2020-05-25 2020-10-23 北京皮尔布莱尼软件有限公司 Service management system and method
CN112636971A (en) * 2020-12-21 2021-04-09 北京字跳网络技术有限公司 Service degradation method and device, electronic equipment and storage medium
CN112783641A (en) * 2019-11-11 2021-05-11 马上消费金融股份有限公司 Service interface flow control method and device
CN113778730A (en) * 2021-01-28 2021-12-10 北京京东乾石科技有限公司 Service degradation method and device for distributed system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023938A (en) * 2011-09-26 2013-04-03 阿里巴巴集团控股有限公司 Service capability control method and system of server cluster
CN105656962A (en) * 2014-11-11 2016-06-08 阿里巴巴集团控股有限公司 Service calling method and device
CN106201722A (en) * 2016-07-12 2016-12-07 乐视控股(北京)有限公司 The load regulation method of server and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023938A (en) * 2011-09-26 2013-04-03 阿里巴巴集团控股有限公司 Service capability control method and system of server cluster
CN105656962A (en) * 2014-11-11 2016-06-08 阿里巴巴集团控股有限公司 Service calling method and device
CN106201722A (en) * 2016-07-12 2016-12-07 乐视控股(北京)有限公司 The load regulation method of server and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110071952A (en) * 2018-01-24 2019-07-30 北京京东尚科信息技术有限公司 The control method and device of service call amount
CN110071952B (en) * 2018-01-24 2023-08-08 北京京东尚科信息技术有限公司 Service call quantity control method and device
CN110034946A (en) * 2019-01-03 2019-07-19 阿里巴巴集团控股有限公司 Adaptive service degradation method and apparatus
CN112783641A (en) * 2019-11-11 2021-05-11 马上消费金融股份有限公司 Service interface flow control method and device
CN111813568A (en) * 2020-05-25 2020-10-23 北京皮尔布莱尼软件有限公司 Service management system and method
CN111813568B (en) * 2020-05-25 2024-05-31 北京皮尔布莱尼软件有限公司 Service management system and method
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
CN113778730A (en) * 2021-01-28 2021-12-10 北京京东乾石科技有限公司 Service degradation method and device for distributed system
CN113778730B (en) * 2021-01-28 2024-04-05 北京京东乾石科技有限公司 Service degradation method and device for distributed system

Similar Documents

Publication Publication Date Title
CN107196785A (en) The method and device that back-end services degrade automatically
CN108768877B (en) Distribution method and device of burst traffic and proxy server
CN107800756A (en) A kind of load-balancing method and load equalizer
CN109491788B (en) Method and device for realizing load balance of virtualization platform
CN110430278A (en) Load balancing configuration method and device
CN110308980A (en) Batch processing method, device, equipment and the storage medium of data
CN105516086B (en) Method for processing business and device
CN111988234A (en) Overload protection method, device, server and storage medium
CN106230627A (en) WEB access peak relieving method based on customizable strategy
CN105847377A (en) Cluster network's request congestion and overload processing method and system
CN106940868A (en) In real time with the transaction risk recognition methods being combined offline and device
CN111176840B (en) Distribution optimization method and device for distributed tasks, storage medium and electronic device
CN107257363A (en) A kind of method and system of respond request end request
CN108681481A (en) The processing method and processing device of service request
CN105262826A (en) Method and system for adjusting interface processing amount
JPH11346377A (en) Method for processing overload of message in communication system
CN104301241B (en) A kind of SOA dynamic load distributing methods and system
CN109992392A (en) A kind of calculation resource disposition method, device and Resource Server
CN102523107B (en) The method and device of balanced network management system service end and client computing pressure
CN112084016A (en) Flow calculation performance optimization system and method based on flink
JP2007310749A (en) Server resource providing system and server resource providing method
CN107015864A (en) Business method for controlling batch processing and device
CN106685719A (en) Network card performance optimization method and network card performance optimization system
CN113419852B (en) Method, device, equipment and storage medium for responding request of micro service
CN112037019B (en) Method and device for allocating self-service equipment of banking outlets

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170922