CN108964947A - Background service quality determining method and device, computer equipment - Google Patents
Background service quality determining method and device, computer equipment Download PDFInfo
- Publication number
- CN108964947A CN108964947A CN201710354062.6A CN201710354062A CN108964947A CN 108964947 A CN108964947 A CN 108964947A CN 201710354062 A CN201710354062 A CN 201710354062A CN 108964947 A CN108964947 A CN 108964947A
- Authority
- CN
- China
- Prior art keywords
- weight
- response
- service
- background server
- cycle
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
- H04L43/55—Testing of service level quality, e.g. simulating service usage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/142—Network analysis or design using statistical or mathematical methods
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
Abstract
The present invention provides a kind of background service quality determining method, it include: periodically to send service request to background server, receive the service response that background server is returned according to service request, the corresponding service response success rate of service response in a cycle in acquisition, obtain the response success weight of accelerated factor and upper a cycle, according to accelerated factor, the service response success rate of upper a cycle and the successfully weight calculation that responds of upper a cycle obtain the response success weight of current period, according to the service quality for responding successfully weight and detecting the background server of current period.Successfully weight is responded using accelerated factor and the calculating of service response success rate, the service quality of background server is detected by responding successfully weight, under the premise of ensureing regular traffic, fast and accurately background service quality is detected, guarantees the service quality of background server.A kind of background service quality detection device and a kind of computer equipment are also provided.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of background service quality determining method and device, one
Kind computer equipment.
Background technique
Process code mistake, mechanical disorder or Network Abnormal etc. all may cause background server exception, it is therefore desirable to
The service quality of background server is detected.
In traditional technology, by machine heartbeat monitor machine, but some specific service can not be detected, in addition, detection
The height of sensitivity can all influence detection result, it is inaccurate lead to detection result, and then lead to service quality sharp fall.
Summary of the invention
Based on this, it is necessary in view of the above-mentioned problems, providing a kind of background service quality determining method and device, a kind of calculating
Machine equipment responds successfully weight by accelerated factor and the calculating of service response success rate, can be fast and accurately to background service
Quality is detected, to guarantee background service quality.
A kind of background service quality determining method, comprising:
Service request periodically is sent to background server, the background server is received and is returned according to the service request
The service response returned;
The corresponding service response success rate of the service response in a cycle in acquisition;
Obtain the response success weight of accelerated factor and upper a cycle;
According to the response of the accelerated factor, the service response success rate of upper a cycle and upper a cycle success weight
The response success weight of current period is calculated, wherein the response success weight of period 1 is preset value;
According to the service quality for responding successfully weight and detecting the background server of the current period.
A kind of background service quality detection device, comprising:
Receiving module, for periodically to background server send service request, receive the background server according to
The service response that the service request returns;
First obtains module, for obtaining the corresponding service response success rate of the service response in upper a cycle, obtains
Take the response of accelerated factor and upper a cycle success weight;
Successfully weight calculation module is responded, for the service response success rate according to the accelerated factor, upper a cycle
The response success weight of current period is obtained with the successful weight calculation of responding of upper a cycle, wherein the period 1 responds into
Function weight is preset value;
Detection module, for the Service Quality for responding successfully weight and detecting the background server according to the current period
Amount.
A kind of computer equipment, including memory and processor store computer-readable instruction in the memory, institute
When stating processor and executing the computer-readable instruction, the step of realizing any one of claim 1-5 the method
Above-mentioned background service quality determining method and device, computer equipment periodically send industry to background server
Business request, and the service response that background server is returned according to service request is received, the business by obtaining upper a cycle is rung
The response in success rate and upper period success weight and accelerated factor were answered, the response success weight of current period is obtained, thus
According to the service quality for responding successfully weight detection background server of current period.It is rung by the business for counting each period
Success rate is answered, and periodically obtains the response success weight of current period in conjunction with accelerated factor, thus according further to sound
The weight that should succeed detects background server service quality, is detected using periodic statistical method, and uses accelerated factor
Booster response success weight decaying can ensure regular traffic clothes to fast and accurately detect to background service quality
In the case where business, guarantee the service quality of background server.
Detailed description of the invention
Fig. 1 is the applied environment figure of background service quality determining method in one embodiment;
Fig. 2 is the internal structure chart of terminal in Fig. 1;
Fig. 3 is the flow chart of background service quality determining method in one embodiment;
Fig. 4 is the flow chart of background service quality determining method in another embodiment;
Fig. 5 is the flow chart for calculating current period in one embodiment and responding successfully weight;
Fig. 5 A is to respond successfully weight variation diagram in one embodiment;
Fig. 6 is the flow chart of background service quality determining method in one embodiment;
Fig. 7 is that whether detection background service restores normal method flow diagram in one embodiment;
Fig. 7 A is that whether detection background server restores normal schematic diagram in one embodiment;
Fig. 8 is the flow chart of background service quality determining method in a specific embodiment;
Fig. 9 is the structural block diagram of background service quality detection device in one embodiment;
Figure 10 is the structural block diagram of background service quality detection device in another embodiment;
Figure 11 is the structural block diagram of detection module in one embodiment;
Figure 12 is the structural block diagram of background service quality detection device in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 is the applied environment figure of background service quality determining method in one embodiment.As shown in Figure 1, this applies ring
Border includes that terminal 110 and background server 120, wherein terminal 110 and background server 120 can be communicated by network.Eventually
End 110 periodically sends service request to background server 120, and receives the service request returned from background server 120
Corresponding service response, further, terminal 110 obtain the corresponding service response success rate of each period background server 120,
According to the response success weight for responding successfully weight calculation current period of accelerated factor and upper a cycle, then terminal 110
The service quality of background server 120 is detected according to the successfully weight that responds of current period.
Fig. 2 is the schematic diagram of internal structure of terminal in one embodiment.As shown in Fig. 2, the terminal includes total by system
Processor, non-volatile memory medium, built-in storage and network interface, display screen and the input unit that line connects.Wherein, terminal
Non-volatile memory medium be stored with operating system, further include a kind of background service quality detection device, the background service matter
Amount detecting device is for realizing a kind of background service quality determining method.The processor is for providing calculating and control ability, branch
Support the operation of entire terminal.Built-in storage in terminal is the background service quality detection device in non-volatile memory medium
Operation provides environment, can store computer-readable instruction in the built-in storage, the computer-readable instruction is by the processor
When execution, the processor may make to execute a kind of background service quality determining method.Network interface is used for and background server
Network communication is carried out, service request is such as sent to background server, receives the corresponding business of service request that server returns and ring
It should wait.The display screen of terminal can be liquid crystal display or electric ink display screen etc., and input unit can be to be covered on display screen
The touch layer of lid is also possible to the key being arranged in terminal enclosure, trace ball or Trackpad, is also possible to external keyboard, touching
Control plate or mouse etc..The terminal can be mobile phone, tablet computer or personal digital assistant or wearable device etc..This field skill
Art personnel are appreciated that structure shown in Figure 2, only the block diagram of part-structure relevant to application scheme, not structure
The restriction for the terminal that pairs of application scheme is applied thereon, specific terminal may include more more or less than as shown in the figure
Component, perhaps combine certain components or with different component layouts.
As shown in figure 3, in one embodiment, providing a kind of background service quality determining method, including the following contents:
Step S310 periodically sends service request to background server, receives background server according to service request
The service response of return.
Wherein, service request refers to that the corresponding service of background server is to phase in order to obtain the request that certain service is sent
The service request answered is responded, when the service response returned according to service request detect background server there are when failure,
Service request can be sent to other normal background servers, ensure Neng Gouzheng while detecting to background server
Current business is often provided.
Specifically, the service quality of background server is detected by the corresponding service response of detection service request.In order to keep away
Exempt from when detection sensitivity is excessively high, since network jitter leads to the detection error either too low detection service quality of detection sensitivity
Not in time, using the method for statistics, multiple service requests periodically are sent to background server, background server receives industry
Service response is carried out to service request after business request.Further, service response includes that service response success and service response are lost
Two kinds of situations are lost, situations such as service response unsuccessfully includes service response mistake and do not respond.
Step S320, the corresponding service response success rate of service response in a cycle in acquisition.
Specifically, it after a service request sending cycle, counts in the period and sends business to background server
The total degree and the successful number of background server service response of request, according to the total degree and business of service request in the period
It responds successful number and obtains the period corresponding service response success rate.
Further, in one cycle, using the successful number of background server service response in the period and transmission
The ratio of the total degree of service request is as the period corresponding service response success rate.Namely service response success rate
The ratio=service response number of success/total access times of client.In the response success weight for calculating current period, need
Use the corresponding service response success rate of the service response of upper a cycle.
Step S330 obtains the response success weight of accelerated factor and upper a cycle.
Wherein, accelerated factor refers to the factor of booster response success weight decaying, can accelerate to ring by certain operation
The weight that should succeed reduces, so that the service quality for detecting background server within the less period whether there is failure.It responds into
Function weight reflects to the background server and sends a service request, and background server is capable of the success response service request
Probability, responding successfully weight is the constant less than or equal to 1.The initial value of response cycle weight is preset, each period
Respond successfully weight according to the service response success rate meter for responding successfully weight, accelerated factor and a upper period in a upper period
It obtains.
Step S340, according to accelerated factor, the service response success rate of upper a cycle and responding into for upper a cycle
Function weight calculation obtains the response success weight of current period, and wherein the response success weight of period 1 is preset value.
Specifically, the computation rule for responding successfully weight is preset, can customize, the accelerated factor that will acquire and upper
The response success weight in the service response success rate in one period and a upper period, calculates current period according to default computation rule
Response success weight.Preset the response success weight of period 1, it is assumed that background server is normal, in one embodiment
In, the response success weight that the period 1 is arranged is 1.
Further, the pre-set computation rule for responding successfully weight can be by the service response in a upper period at
Power is multiplied by, with the response in upper period success multiplied by weight, wherein accelerated factor is the constant less than 1, can after accelerated factor
The decaying of booster response success weight.Specifically, by the service response for responding successfully weight and a upper period in a upper period at
The acceleration less than 1 is arranged in order to improve the accuracy and speed of detection in the response success weight that power is multiplied to obtain current period
The factor is multiplied, quickening responds successfully weight and subtracts when calculating the response success weight of current period every time with preset accelerated factor
Small speed.
In other embodiments, the pre-set computation rule for responding successfully weight is the service response in the above period
Success rate is the truth of a matter, and preset accelerated factor is that index is calculated, and is then obtained with the response in upper period success multiplied by weight
To the response success weight of current period, wherein accelerated factor is the integer greater than 1.Because service response success rate be less than or
The constant being equal to, therefore corresponding numerical value becomes smaller after carrying out power operation to service response success rate, the response with a upper period
After success multiplied by weight, the reduction for responding successfully weight is accelerated.
Specifically, presetting initial communication success weight is 1, after sending the period 1 of service request, system
The successful number of service response in the period 1 is counted, service response success rate is calculated.According to the success of the service response of period 1
Rate and initial communication success weight and accelerated factor obtain second round it is corresponding respond successfully weight, and so on, calculating
The response success weight in each period.
Step S350, according to the service quality for responding successfully weight detection background server of current period.
Specifically, preset service quality it is normal when it is corresponding respond successfully weight, every acquisition since the period 1
To the response success weight of a cycle, just by the response of current period, successfully weight and when normal preset service quality, are corresponding
Response success weight compare, to detect the service quality of the background server of currently transmitted service request.
Further, when detecting that background server is normal according to the response of current period success weight, continue next
The detection in period, with the service quality of real-time detection background server, if according to the response of current period success weight detection
When to background server exception, stop sending service request to the background server, to avoid service request response failure, mention
High quality-of-service.
In the present embodiment, by periodically to background server send service request, and receive background server according to
The service response that service request returns, obtains corresponding service response success rate of each period, thus according to default computation rule,
Using default accelerated factor, the service response success rate of upper a cycle and the response success weight of upper a cycle are obtained currently
The response success weight in period, according to the service quality for responding successfully weight real-time detection background server of current period.Benefit
The service response success rate calculating obtained with statistics responds successfully weight, has the characteristic of statistics will not be because of some time point
The judgement to make mistake is done in variation either sometime, and constantly periodicity sending service request statistical service responds into
Power can find that background server breaks down in time, while use accelerated factor, further improve background server clothes
The detection speed for quality of being engaged in can ensure regular traffic clothes so as to fast and accurately detect to background service quality
In the case where business, the service quality of background server is detected.
As shown in figure 4, in one embodiment, before step S320, further includes:
Step S310A obtains the corresponding continuous frequency of failure of service response in preset time.
Specifically, when detect in preset time to some background server send service request after, background server returns
The service response returned continuously fails, then obtains the number that service response continuously fails.
Step S310B determines that background server breaks down if the continuous frequency of failure is greater than preset threshold, stop to
Background server sends service request, otherwise enters and obtains the corresponding service response success rate of service response in upper a cycle
Step.
Specifically, the threshold value for presetting the continuous frequency of failure in preset time, when background server within a preset time
When the number that service response continuously fails is greater than the threshold value, then determine that background server breaks down.For example, default setting is default
The number continuously to fail in time is 20 times, it is assumed that the service response success rate of background server is 0.5, then continuous 20 failures
Probability P=(0.5) ^20=0.000095%, it can be seen that the probability of background server continuous 20 service responses failure is non-
It is often low.Therefore, when within a preset time, detecting that the number continuously to fail is greater than 20 times, it can be determined that the background server
It is current to break down, business service can not be provided, stop sending service request to the business background server.
Further, if the number continuously to fail is less than preset threshold, it may be possible to since background server network jitter is made
At service response failure, then using statistics method, periodically send service request background server service quality into
Row detection.
In the present embodiment, the number continuously to be failed by the service response in detection preset time, according to what is continuously failed
The relationship of number and preset threshold judges the service quality of background server, when the number continuously to fail in preset time is greater than in advance
If when threshold value, directly judging that background server breaks down, does not need to carry out subsequent detection, save detection time, it can be fast
There are the background servers of failure for speed exclusion, to improve the service quality of background server.
As shown in figure 5, in one embodiment, step S340 includes:
The service response success rate of step S340A, the above a cycle are the truth of a matter, are calculated by index of accelerated factor
First operation result.
Specifically, the ratio that a upper periodic traffic is responded to the service request total degree in successful number and a upper period is made
For service response success rate, and presetting accelerated factor is the constant greater than 1.By the response success for detecting current period
The service quality of weight detection background server needs to accelerate to shorten the detection cycle to background server fault detection
Respond the decaying of successfully weight.Because service response success rate is the constant less than 1, by service response success rate phase itself
Operation result can be reduced by multiplying.Further, the service response success rate of the above a cycle is the truth of a matter, is to refer to accelerated factor
The first operation result is calculated in number.
The successfully multiplied by weight that responds of first operation result and upper a cycle is obtained current period by step S340B
Respond successfully weight.
Specifically, the first operation result and the successfully multiplied by weight that responds in a upper period were obtained into responding into for current period
Function weight.For example, initial communication success weight is W0, the service response success rate of period 1 if setting accelerated factor is 4
Then second round is calculated according to default computation rule in the ratio=service response number of success/total access times of client
Respond successfully weight W1=W0* (ratio*ratio*ratio*ratio).And so on, the response success weight of current period
Response success weight * (the upper a cycle service response success rate) ^4 in=upper period.Further, as shown in Figure 5A, with
Each periodic traffic response success rate ratio is 0.98, for initial communication success weight W0 is 1, utilizes above-mentioned current period
Response weight calculation rule, second round is obtained according to initial communication success weight and the service response success rate of period 1
Response success weight W1 be 0.92, and so on, be calculated first five period response succeed weight respectively be 1,
0.92,0.84,0.77,0.70.If setting when respond successfully weight lower than 0.7 when sound an alarm, correspondence responds success rate and is
0.98 background server only needs four periods to can be detected failure.
In the present embodiment, using service response success rate as the truth of a matter, accelerated factor obtains the first calculated result for index, and will
First calculated result and the successfully multiplied by weight that responds in a upper period obtain the response success weight of current period.It is transported by index
The reduction for calculating booster response success weight, so as to shorten the detection cycle to background server, to guarantee fast and accurately
Detect the service quality of background server.
As shown in fig. 6, in one embodiment, step S350 includes:
Step S350A, acquisition respond successfully weight threshold.
Specifically, it presets and responds successfully weight threshold, responding successfully weight threshold can be according to background server
Service scenarios are configured, and the business responded such as background server is key business, then are arranged and higher respond successfully weight threshold
Value.The index that successfully whether weight threshold breaks down as measurement background server will be responded.
Step S350B, judges whether the response success weight of current period is less than and responds successfully weight threshold, if so,
Step S350C is executed, otherwise, executes step S350D.
Specifically, when according to the response of accelerated factor, the service response success rate in a upper period and upper period success
After the response success weight of current period is calculated according to preset computation rule for weight, the response of current period is successfully weighed
Weight responds compared with successfully weight threshold with preset, if the response success weight of current period, which is less than, responds successfully weight threshold
Value, thens follow the steps S350C, otherwise, executes step S350D.
Further, it is calculated according to default initial weight value and the service response success rate and accelerated factor of period 1
The response success weight of second round is obtained, the response success weight of second round is responded into successfully weight threshold phase with preset
Compare, if the response success weight of second round responds successfully weight threshold greater than preset, thens follow the steps S350C, otherwise,
Execute step S350D.
Step S350C determines that there are failures for background server.
Specifically, when the response success weight for detecting current period, which is less than, responds successfully weight threshold, illustrate current
Period background server can successfully respond the probability of service request lower than preset value, not be able to satisfy the demand of current business,
Judging background server, there are failures.
Step S350D calculates next cycle and responds successfully weight, according to the response of next cycle success weight detection
The service quality of background server.
Specifically, when the response success weight for detecting current period, which is greater than, responds successfully weight threshold, if but current
Downward trend was presented compared with the response in upper period success weight in the successfully weight that responds in period, that is to say, that background server
Can not to whole service request success responses, in order to avoid being shaken as background server caused by service response fail, obtain
The service response success rate of current period calculates next cycle and responds successfully weight, responded according to next cycle and successfully weighed
The service quality of re-detection background server.
Further, it if next cycle responds successfully weight and is still greater than and responds successfully weight threshold, continues to test down
The response success weight of a cycle.If detecting that the response success weight of current period is less than preset threshold, after illustrating
Platform server breaks down.Particularly, if failure is not present in background server, the service response success rate in each period is
1, respond successfully weight is 1 always.And be arranged and respond successfully weight threshold, even if can guarantee in some period due to server
Shake causes response success rate when not being 1, and respond successfully weight will not be in presentation of multiple periods attenuation trend, can be than calibrated
The service quality of true detection background server.
In the present embodiment, successfully weight threshold is responded by default, current period is responded into successfully weight and default response
Success weight threshold compares, and judges the service quality of background server.Using periodic detection method, avoid due to some
Error detection caused by period background server is shaken, and service request periodically can be constantly sent, persistently to backstage
The service quality of server is detected, and can quickly and the service quality of accurate detection background server, and be executed corresponding
Operation, to guarantee background service quality.
As shown in fig. 7, in one embodiment, background service quality determining method further include:
Step S410 counts the quantity of the service response successful data packet received, if quantity reaches preset threshold,
Detection packet is sent to abnormal server, and the quantity of service response successful data packet is initialized, the industry received into statistics
The step of business responds the successfully quantity of data packet.
Wherein, abnormal server refers to that the background server for being determined to have failure, detection packet refer to for detecting exception
Whether server restores the corresponding data packet of normal service request.
Specifically, right in order to normal server reasonable employment while carrying out fault detection to background server
In determining that there are the background servers of failure to be detected, judge whether to restore normal.Further, service response is preset
The amount threshold of successful data packet sends service request to normal background server, counts the service response success received
Data packet quantity, when the quantity of the service response successful data packet received from normal background server reaches preset threshold
When, detection packet is sent to abnormal server, and the service quality of abnormal server is detected.
The quantity that service response successful data packet is initialized after a detection is wrapped is sent, then again to normal background service
Device service response successful data packet is counted, when the quantity of service response successful data packet reaches preset threshold again to different
Normal server sends detection packet, realizes and periodically sends detection packet.
Particularly, the amount threshold of normal background server service response successful data packet is set, be in order to guarantee even if
The detection packet response for being sent to abnormal background server unsuccessfully will not influence too much the success rate of normal background server,
And cause the error detection to normal background server.
Step S420, if the corresponding probe response data packet of detection packet that continuously default detection times are sent is successfully to ring
Data packet is answered, then determines that background server restores normal.
Specifically, every time after initialization, when the service response successful data packet for receiving normal background server return
When quantity reaches preset threshold, a detection packet just is sent to abnormal server, abnormal server is obtained and corresponds to detection packet
Whether response data, detection response data succeed, if the equal success response of detection packet of continuous preset times, determine that backstage takes
Device recovery be engaged in normally.Further, because the normal background server for being spaced preset number between each detection packet is sent
Service response successful data packet illustrate background server therefore when the equal success response of the detection packet for detecting preset times
Restore normal, it being capable of normal response service request.
For example, as shown in Figure 7 A, setting client 710 often receives 10000 service response successful data packets, to backstage
It is a just by (10*10000) that server 720 sends a detection packet, the process visited by 10 times, that is, client 710
After normal business packet, 10 detection packets for detecting abnormal background server 720 are already sent, if continuous 10 times detect detection
The data that corresponding response is success response are wrapped, then judge that the background server 720 restores normally, to come into operation.Specifically
Ground, because being provided with 10000 service response successful data packets, even if detection packet detection failure, the overall industry being calculated
Business response success rate is 10000/10001=99.99%, and service response success rate has still reached 49, will not be to other clothes
Business detection causes king-sized influence, further, is spaced 10000 service response successful datas between each detection packet
Packet belongs to the detection packet that different period sends, if therefore the equal success response of continuous 10 detections packet, can have it is higher can
Reliability illustrates that background server 720 restores normal.
In other embodiments, if never detecting the corresponding detection of detection packet that continuous default detection times are sent
Response data packet is success response data packet, then whether the time for judging that the background server breaks down is more than preset time threshold
Value avoids some service jitter due to background server that response is caused to fail if so, restoring the use of the background server
Or the reasons such as network, cause some service of background server to be chronically at the state not being available.
In the present embodiment, the service response successful data packet received is counted, reaches pre- in service response successful data packet
If when threshold value, sending detection packet, when the corresponding response data packet of detection packet for detecting read-around ratio is to respond successfully data packet,
Determine that background server restores normal.Continuous success response is wrapped by presetting service response successful data packet number and detection
Number, increase to background server detection time span, improve the accuracy of detection, guarantee detection promptly and accurately
To normal background server is restored, to be reused.
As shown in figure 8, in a specific embodiment, providing a kind of background service quality determining method, comprising:
Step S510 periodically sends service request to background server, receives background server according to service request
The service response of return.
Step S520 obtains the corresponding continuous frequency of failure of service response in preset time, judges that the continuous frequency of failure is
It is no to be greater than preset times threshold value, if so, S530 is thened follow the steps, if it is not, thening follow the steps S540.
Step S530 determines that background server breaks down, and stops sending service request to background server.
Step S540, the corresponding service response success rate of service response in a cycle in acquisition, obtain accelerated factor and
The response success weight of upper a cycle.
Step S550, according to accelerated factor, the service response success rate of upper a cycle and responding into for upper a cycle
Function weight calculation obtains the response success weight of current period, and wherein the response success weight of period 1 is preset value.
Step S560, acquisition respond successfully weight threshold, judge whether the response success weight of current period is less than response
Success weight threshold, if so, step S530 is executed, if it is not, executing step S570.
Step S570, calculates next cycle and responds successfully weight, executes step for next cycle as current period
S540。
Step S580 counts the quantity of the service response successful data packet received, if quantity reaches preset threshold,
Detection packet is sent to abnormal server, and the quantity of service response successful data packet is initialized, the industry received into statistics
The step of business responds the successfully quantity of data packet.
Step S590, if the corresponding probe response data packet of detection packet that continuously default detection times are sent is successfully to ring
Data packet is answered, then determines that background server restores normal.
In the present embodiment, by periodically sending service request to background server, receive what background server returned
Service response is successfully weighed according to the service response success rate in each period and the response for responding successfully weight calculation next cycle
Weight, to detect to whether server breaks down, further, is spaced the service response successful data packet of preset number
Detection packet is sent, statistics detection is wrapped the number that corresponding service request continuously successfully responds, whether restored to abnormal server
It is normally carried out detection.Using the method for statistics, periodically transmission service request, the service state of background server is examined
It surveys, overall quality of service will not be influenced because of the concussion of some service, exception service IP will not be can't detect for a long time, using system
The method of meter rapidly and accurately detects the service quality of background server under the premise of ensureing normal service.
As shown in figure 9, in one embodiment, providing a kind of background service quality detection device, comprising:
Receiving module 610 receives background server according to industry for periodically sending service request to background server
The service response that business request returns.
First obtains module 620, for obtaining the corresponding service response success rate of service response in upper a cycle, obtains
The response success weight of accelerated factor and upper a cycle.
Respond successfully weight calculation module 630, for according to the service response success rate of accelerated factor, upper a cycle and
The successfully weight calculation that responds of upper a cycle obtains the response success weight of current period, the wherein response success of period 1
Weight is preset value.
Detection module 640, for the service quality for responding successfully weight detection background server according to current period.
In the present embodiment, by periodically to background server send service request, and receive background server according to
The service response that service request returns, obtains corresponding service response success rate of each period, thus according to default computation rule,
Using default accelerated factor, the service response success rate of upper a cycle and the response success weight of upper a cycle are obtained currently
The response success weight in period, according to the service quality for responding successfully weight real-time detection background server of current period.Benefit
The service response success rate calculating obtained with statistics responds successfully weight, has the characteristic of statistics will not be because of some time point
The judgement to make mistake is done in variation either sometime, and constantly periodicity sending service request statistical service responds into
Power can find that background server breaks down in time, while use accelerated factor, further improve background server clothes
The detection speed for quality of being engaged in, so as to fast and accurately be detected to background service quality, before ensureing regular traffic
It puts, detects the service quality of background server.
As shown in Figure 10, in one embodiment, background service quality detection device further include:
Second obtains module 650, for obtaining the corresponding continuous frequency of failure of service response in preset time.
Fault detection module 660 determines that event occurs in background server if being greater than preset threshold for the continuous frequency of failure
Barrier, stops sending service request to background server, otherwise enters first and obtains module.
In one embodiment, respond successfully weight calculation module 630 be also used to the service response of the above a cycle at
Power is the truth of a matter, and the first operation result is calculated by index of accelerated factor, by the first operation result and upper a cycle
It responds successfully multiplied by weight and obtains the response success weight of current period.
As shown in figure 11, in one embodiment, detection module 640 includes:
Threshold value obtains module 640A, responds successfully weight threshold for obtaining.
Judgment module 640B responds successfully weight threshold for judging whether the response success weight of current period is less than,
If it is, determining background server, there are failures, otherwise, calculate next cycle and respond successfully weight, according to next week
The service quality for responding successfully weight detection background server of phase.
As shown in figure 12, in one embodiment, background service quality detection device further include:
Detecting module 670 is preset for counting the quantity of the service response successful data packet received if quantity reaches
Threshold value then sends detection packet to abnormal server, and the quantity of service response successful data packet is initialized, and receives into statistics
The step of quantity of the service response successful data packet arrived.
Restore detection module 680, if the corresponding probe response number of detection packet sent for continuous default detection times
It is success response data packet according to packet, then determines that background server restores normal.
In one embodiment, a kind of computer equipment is provided, which includes memory and processor, storage
Computer-readable instruction is stored in device, when processor executes computer-readable instruction, so that processor executes following steps: week
Phase property sends service request to background server, receives the service response that background server is returned according to service request;It obtains
The corresponding service response success rate of service response in upper a cycle;The response for obtaining accelerated factor and upper a cycle is successfully weighed
Weight;It is obtained according to the response of accelerated factor, the service response success rate of upper a cycle and upper a cycle success weight calculation
The response success weight of current period, wherein the response success weight of period 1 is preset value;According to the response of current period
The service quality of success weight detection background server.
Above-mentioned computer equipment counts the industry in each period by periodically sending service request to background server
Business response success rate, can find that background server breaks down, and use accelerated factor in time, further improve backstage
The detection speed of server service quality, thus under the premise of ensureing regular traffic, it can be fast and accurately to background service
Device is detected, and guarantees the service quality of detection background server.
In one embodiment, computer-readable instruction also makes processor execute following steps: obtaining in preset time
The corresponding continuous frequency of failure of service response;If the continuous frequency of failure is greater than preset threshold, determine that event occurs in background server
Barrier, stops sending service request to background server, otherwise enters the corresponding business of service response in upper a cycle that obtains and rings
The step of answering success rate.
In one embodiment, according to accelerated factor, the service response success rate of upper a cycle performed by processor
With upper a cycle respond that successfully weight calculation obtains current period respond the industry that successfully weight includes: the above a cycle
Business response success rate is the truth of a matter, and the first operation result is calculated by index of accelerated factor;By the first operation result and upper one
The successfully multiplied by weight that responds in a period obtains the response success weight of current period.
In one embodiment, background server is detected according to the response of current period success weight performed by processor
Service quality include: obtain respond successfully weight threshold;Judge whether the response success weight of current period is less than to respond into
Function weight threshold, if it is, determining background server, there are failures;Otherwise, it calculates next cycle and responds successfully weight, root
According to the service quality for responding successfully weight detection background server of next cycle.
In one embodiment, computer-readable instruction also makes processor execute following steps: counting the industry received
Business respond the quantity of successfully data packet, if quantity reaches preset threshold, sends to detect to abnormal server and wrap, and by business
The step of quantity for responding successfully data packet initializes, the quantity of the service response successful data packet received into statistics;Such as
It is success response data packet that fruit, which continuously presets the corresponding probe response data packet of detection packet that detection times are sent, then determines backstage
Server restores normal.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read
In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage is situated between
Matter can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc..
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention
Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (11)
1. a kind of background service quality determining method, which comprises
Service request periodically is sent to background server, receives what the background server was returned according to the service request
Service response;
The corresponding service response success rate of the service response in a cycle in acquisition;
Obtain the response success weight of accelerated factor and upper a cycle;
According to the response of the accelerated factor, the service response success rate of upper a cycle and upper a cycle success weight calculation
The response success weight of current period is obtained, wherein the response success weight of period 1 is preset value;
According to the service quality for responding successfully weight and detecting the background server of the current period.
2. the method according to claim 1, wherein the service response is corresponding in a cycle in the acquisition
Service response success rate the step of before, further includes:
Obtain the corresponding continuous frequency of failure of the service response in preset time;
If the continuous frequency of failure is greater than preset threshold, determine that the background server breaks down, stops after described
Platform server sends service request, otherwise enter in the acquisition the corresponding service response of the service response in a cycle at
The step of power.
3. the method according to claim 1, wherein described according to the accelerated factor, the industry of upper a cycle
Business response success rate and upper a cycle respond successfully weight calculation obtain current period response successfully weight the step of packet
It includes:
Using the service response success rate of the upper a cycle as the truth of a matter, the first fortune is calculated by index of the accelerated factor
Calculate result;
The successfully multiplied by weight that responds of first operation result and the upper a cycle is obtained into the sound of the current period
Should succeed weight.
4. the method according to claim 1, wherein described according to the response of current period success weight inspection
The step of surveying the service quality of the background server include:
Acquisition responds successfully weight threshold;
Judge the current period response success weight whether be less than it is described respond successfully weight threshold, if it is, judgement
There are failures for the background server;
Otherwise, it calculates next cycle and responds successfully weight, the backstage is detected according to the response of next cycle success weight
The service quality of server.
5. the method according to claim 1, wherein the method also includes:
The quantity of the service response successful data packet received is counted, if the quantity reaches preset threshold, to abnormal clothes
Business device sends detection packet, and the quantity of the service response successful data packet is initialized, the industry received into the statistics
The step of business responds the successfully quantity of data packet;
If the corresponding probe response data packet of detection packet that continuously default detection times are sent is success response data packet, sentence
The fixed background server restores normal.
6. a kind of background service quality detection device, which is characterized in that described device includes:
Receiving module receives the background server according to for periodically sending service request to background server
The service response that service request returns;
First obtains module, for obtaining the corresponding service response success rate of the service response in upper a cycle, obtain plus
The response success weight of the fast factor and upper a cycle;
Respond successfully weight calculation module, for according to the service response success rate of the accelerated factor, upper a cycle and
The successfully weight calculation that responds of a cycle obtains the response success weight of current period, and wherein the response of period 1 is successfully weighed
Weight is preset value;
Detection module, for the service quality for responding successfully weight and detecting the background server according to the current period.
7. device according to claim 6, which is characterized in that described device further include:
Second obtains module, for obtaining the corresponding continuous frequency of failure of the service response in preset time;
Fault detection module determines that the background server occurs if being greater than preset threshold for the continuous frequency of failure
Failure, stops sending service request to the background server, otherwise enters described first and obtains module.
8. device according to claim 6, which is characterized in that the successfully weight calculation module that responds is also used to described
The service response success rate of upper a cycle is the truth of a matter, and the first operation result is calculated by index of the accelerated factor, will
The successfully multiplied by weight that responds of first operation result and the upper a cycle obtains the response success of the current period
Weight.
9. device according to claim 6, which is characterized in that the detection module includes:
Threshold value obtains module, responds successfully weight threshold for obtaining;
Judgment module, for judge the current period response success weight whether be less than it is described respond successfully weight threshold,
If it is, determining the background server, there are failures, otherwise, calculate next cycle and respond successfully weight, according to next
The service quality for responding successfully weight and detecting the background server in a period.
10. device according to claim 6, which is characterized in that described device further include:
Detecting module, for counting the quantity of the service response successful data packet received, if the quantity reaches default threshold
Value then sends detection packet to abnormal server, and the quantity of the service response successful data packet is initialized, into the system
The step of counting the quantity of the service response successful data packet received;
Restore detection module, if for the corresponding probe response data packet of detection packet that continuous default detection times are sent at
Function response data packet then determines that the background server restores normal.
11. a kind of computer equipment, which is characterized in that including memory and processor, store computer in the memory
Readable instruction when the processor executes the computer-readable instruction, realizes any one of claim 1-5 the method
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710354062.6A CN108964947B (en) | 2017-05-18 | 2017-05-18 | Background service quality detection method and device and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710354062.6A CN108964947B (en) | 2017-05-18 | 2017-05-18 | Background service quality detection method and device and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108964947A true CN108964947A (en) | 2018-12-07 |
CN108964947B CN108964947B (en) | 2020-11-17 |
Family
ID=64462000
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710354062.6A Active CN108964947B (en) | 2017-05-18 | 2017-05-18 | Background service quality detection method and device and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108964947B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109698774A (en) * | 2019-02-20 | 2019-04-30 | 北京百度网讯科技有限公司 | Method and device for monitoring device working condition |
CN110636109A (en) * | 2019-08-19 | 2019-12-31 | 咪咕视讯科技有限公司 | Node scheduling optimization method, server and computer readable storage medium |
CN113518020A (en) * | 2021-09-13 | 2021-10-19 | 苏州浪潮智能科技有限公司 | Method, device and equipment for detecting disconnection return and readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7760722B1 (en) * | 2005-10-21 | 2010-07-20 | Oracle America, Inc. | Router based defense against denial of service attacks using dynamic feedback from attacked host |
CN102340437A (en) * | 2010-07-15 | 2012-02-01 | 腾讯数码(天津)有限公司 | Network fault tolerance method and device |
CN103188755A (en) * | 2013-01-06 | 2013-07-03 | 西安交通大学 | Mobile perception service node selection method facing to internet of things |
CN105282259A (en) * | 2015-11-13 | 2016-01-27 | 深圳联友科技有限公司 | Load balancing allocation method, agent and system used for background cluster service |
-
2017
- 2017-05-18 CN CN201710354062.6A patent/CN108964947B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7760722B1 (en) * | 2005-10-21 | 2010-07-20 | Oracle America, Inc. | Router based defense against denial of service attacks using dynamic feedback from attacked host |
CN102340437A (en) * | 2010-07-15 | 2012-02-01 | 腾讯数码(天津)有限公司 | Network fault tolerance method and device |
CN103188755A (en) * | 2013-01-06 | 2013-07-03 | 西安交通大学 | Mobile perception service node selection method facing to internet of things |
CN105282259A (en) * | 2015-11-13 | 2016-01-27 | 深圳联友科技有限公司 | Load balancing allocation method, agent and system used for background cluster service |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109698774A (en) * | 2019-02-20 | 2019-04-30 | 北京百度网讯科技有限公司 | Method and device for monitoring device working condition |
CN110636109A (en) * | 2019-08-19 | 2019-12-31 | 咪咕视讯科技有限公司 | Node scheduling optimization method, server and computer readable storage medium |
CN110636109B (en) * | 2019-08-19 | 2022-05-13 | 咪咕视讯科技有限公司 | Node scheduling optimization method, server and computer readable storage medium |
CN113518020A (en) * | 2021-09-13 | 2021-10-19 | 苏州浪潮智能科技有限公司 | Method, device and equipment for detecting disconnection return and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108964947B (en) | 2020-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9672085B2 (en) | Adaptive fault diagnosis | |
US9015362B2 (en) | Monitoring network performance and detecting network faults using round trip transmission times | |
CN111902805A (en) | Multivariate anomaly detection based on application telemetry | |
US10230611B2 (en) | Dynamic baseline determination for distributed business transaction | |
CN108377201B (en) | Network anomaly sensing method, device, equipment and computer readable storage medium | |
CN111341445B (en) | Health detection method and health detection system for micro-service call chain | |
US20210288897A1 (en) | Mitigating failure in request handling | |
CN108964947A (en) | Background service quality determining method and device, computer equipment | |
CN106911494A (en) | A kind of failure solution and device | |
CN107786383A (en) | The sending method and device of heartbeat data packets | |
CN110287056A (en) | Webpage error message acquisition methods and device | |
CN107193714A (en) | One kind alarm methods of exhibiting and device | |
US8214693B2 (en) | Damaged software system detection | |
CN108400885A (en) | A kind of service availability detection method, device and electronic equipment | |
US10599505B1 (en) | Event handling system with escalation suppression | |
CN114301800A (en) | Network equipment quality difference analysis method and device | |
US9164822B2 (en) | Method and system for key performance indicators elicitation with incremental data decycling for database management system | |
CN109165147A (en) | Log print control program, device, system, back-end server and headend equipment | |
CN107018039A (en) | The method and apparatus of test server clustering performance bottleneck | |
US11829425B1 (en) | Social warning system | |
CN108390770B (en) | Information generation method and device and server | |
CN103297480A (en) | System and method for automatically detecting application service | |
CN110119334A (en) | A kind of page script monitoring method and device | |
CN114978945A (en) | Network dial testing method, device, system, electronic equipment and storage medium | |
CN117493127B (en) | Application program detection method, device, equipment and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |