CN110852537B - Quality of service detection method and device - Google Patents

Quality of service detection method and device Download PDF

Info

Publication number
CN110852537B
CN110852537B CN201810833620.1A CN201810833620A CN110852537B CN 110852537 B CN110852537 B CN 110852537B CN 201810833620 A CN201810833620 A CN 201810833620A CN 110852537 B CN110852537 B CN 110852537B
Authority
CN
China
Prior art keywords
service
quality
log
total number
logs
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810833620.1A
Other languages
Chinese (zh)
Other versions
CN110852537A (en
Inventor
宋永忠
张琪琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN201810833620.1A priority Critical patent/CN110852537B/en
Publication of CN110852537A publication Critical patent/CN110852537A/en
Application granted granted Critical
Publication of CN110852537B publication Critical patent/CN110852537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • G06Q10/06395Quality analysis or management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/01Customer relationship services

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Educational Administration (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a service quality detection method and a service quality detection device. The service quality detection method comprises the following steps: collecting a service quality log; and calculating the service quality, calculating a quality log after reporting the service expense, and calculating the target service quality in the time granularity according to different target services and the time granularity in real time. This embodiment can define a complete set of quality of service metrics, measure the stability of the service and the quality of the service.

Description

Quality of service detection method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for detecting quality of service.
Background
With the growth of online services, managing services has become a new challenge. Quality of service is a formal contract between a service provider and a customer to ensure that service performance reaches a defined quality. Service providers offer a way to outperform an adversary in today's diverse and competitive markets. The quality of service must be precisely defined in each service; otherwise the parties will not agree on what quality the service will measure with what service or performance criteria.
SLA (Service-LEVEL AGREEMENT) is a Service level agreement, which is a contract between a network Service provider and a customer, in which terms of Service type, quality of Service, and customer payment are defined. An SLA is a two-party approved agreement defined between a service provider and a user for ensuring the performance and reliability of the service at a certain cost. Typically this overhead is the main factor driving the quality of service.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
(1) An SLA is defined as a contract between a network service provider and a customer with a limited scope of applicability.
(2) While various platforms provide management for services, such as micro services, DUBBO, SOA, etc., existing management is simply the management of scheduling, routing, loading of services, and there are few platforms that provide monitoring and management of quality of service.
Therefore, how to measure the stability of the service and the quality of the service is a urgent problem to be solved.
Disclosure of Invention
Accordingly, embodiments of the present invention provide a method and apparatus for detecting quality of SERVICE, which can define a complete set of quality metrics of SERVICE (HTTP/HTTPs, TCP/IP, SERVICE), and measure stability and quality of SERVICE.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a quality of service detection method, including:
collecting a service quality log;
And calculating the service quality, calculating a quality log after reporting the service expense, and calculating the target service quality in the time granularity according to different target services and the time granularity in real time.
Optionally, the collecting the quality of service log is implemented in at least one of the following two collecting modes:
actively requesting a service interface according to a time period of target service configuration, and acquiring a service availability log from the service interface; and/or the number of the groups of groups,
The target service actively reports the service log and the service running log to the log receiving interface of the acquisition service, and the acquisition service is uniformly sent to the streaming queue.
Optionally, the quality of service calculation calculates the quality of service in at least one of the following two calculation modes:
The statistical manner in which the unit time is counted,
Proportion of faults: number of faults per minute/total number of faults per minute;
Quality of service: successful number per minute/total number per minute;
the fault number refers to the number of failed logs in the logs received every minute; the success number refers to the number of successful logs in the logs received every minute; the total number refers to the total number of logs received per minute; and/or the number of the groups of groups,
The frequency of occurrence of the fault within a fixed length of time is calculated,
Proportion of faults: number of consecutive occurrences/total number of failures;
Quality of service: number of successes/total number;
wherein the total number is the total number of logs in the time range of the target service configuration.
Optionally, the two quality of service calculation modes are adapted to hypertext transfer protocol service, transmission control protocol service and calculation class.
Optionally, the method further comprises the steps of service quality display and early warning:
transmitting the calculated service quality result to a real-time streaming queue;
consuming the stream queue and storing the consumed data in a database;
checking the service quality condition in a database by using a preset page, and setting a service quality threshold for the service under each authority; and when the service quality reaches the threshold value range, early warning the user.
According to another aspect of the embodiment of the present invention, there is also provided a quality of service detection apparatus, including:
a quality of service log module is collected;
And the service quality calculation module is used for consuming the reported quality logs and calculating the target service quality in the time granularity according to different target services and the time granularity in real time.
Optionally, the collecting service quality log module is implemented in at least one of the following two collecting modes:
actively requesting a service interface according to a time period of target service configuration, and acquiring a service availability log from the service interface; and/or the number of the groups of groups,
The target service actively reports the service log and the service running log to the log receiving interface of the acquisition service, and the acquisition service is uniformly sent to the streaming queue.
Optionally, the quality of service calculation module calculates the quality of service in at least one of the following two quality calculation modes:
The statistical manner in which the unit time is counted,
Proportion of faults: number of faults per minute/total number of faults per minute;
Quality of service: successful number per minute/total number per minute;
the fault number refers to the number of failed logs in the logs received every minute; the success number refers to the number of successful logs in the logs received every minute; the total number refers to the total number of logs received per minute; and/or the number of the groups of groups,
The frequency of occurrence of the fault within a fixed length of time is calculated,
Proportion of faults: number of consecutive occurrences/total number of failures;
Quality of service: number of successes/total number;
wherein the total number is the total number of logs in the time range of the target service configuration.
Optionally, the two quality of service calculation modes are adapted to hypertext transfer protocol service, transmission control protocol service and calculation class.
Optionally, the system further comprises a service quality display and early warning module for:
transmitting the calculated service quality result to a real-time streaming queue;
consuming the stream queue and storing the consumed data in a database;
checking the service quality condition in a database by using a preset page, and setting a service quality threshold for the service under each authority; and when the service quality reaches the threshold value range, early warning the user.
According to still another aspect of the embodiment of the present invention, there is also provided an electronic apparatus including:
one or more processors;
storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of the first aspects of the invention described above.
According to a further aspect of an embodiment of the present invention there is also provided a computer readable medium having stored thereon a computer program, characterized in that the program when executed by a processor implements the method of any of the above-mentioned first aspects of the present invention.
One embodiment of the above invention has the following advantages or benefits: because the technical means of quality of service measurement, monitoring and early warning are adopted, the technical problems that the prior art lacks monitoring and management of quality of service and is difficult to measure the stability of service and the quality of service are solved, and the technical effect of providing basis for the stability of service and the decision of service is further achieved.
Specifically, (1) the service quality is an index for measuring the service stability, and can provide a quality standard for the service to the external output; (2) Providing complete full-dimensional service quality display of days, hours and minutes, and providing basis for service stability and service decision; (3) Providing an early warning scheme, configuring a self-defined threshold value for each service, and notifying a service provider that the service stability reaches an early warning value; (4) the solution outputs a quality of service score. Basic data may be provided for the service load scheme and weight values may be provided for the weight algorithm.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a block diagram of a solution according to an embodiment of the invention;
Fig. 2 is a schematic diagram of the main flow of a quality of service detection method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of the main flow of a quality of service detection method according to still another embodiment of the present invention;
fig. 4 is a schematic diagram of main modules of a quality of service detection apparatus according to an embodiment of the present invention;
FIG. 5 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
Fig. 6 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a block diagram of a solution according to an embodiment of the invention, as shown in fig. 1,
A first step of: a quality of service log is collected.
Collecting quality of service logs provides two ways of collecting service logs.
< Service log collection mode 1> the system scheduling service actively requests the service interface according to the time period of the target service configuration, and obtains the service availability log from the service interface.
< Service log collection mode 2> the target service actively reports the log of service nginx (a high performance hypertext transfer protocol and reverse proxy server), the running log of service to the log receiving interface of collection service, and the collection service is sent to the flow queue (kafka) in the same way.
The streaming queue (kafka) is an open source streaming platform developed by the Apache software foundation, written by Scala and Java. Kafka is a high-throughput distributed publish-subscribe messaging system that can handle all action flow data in consumer-scale websites. Such actions (web browsing, searching and other user actions) are a key factor in many social functions on modern networks. These data are typically addressed by processing logs and log aggregations due to throughput requirements. This is a viable solution for log data and offline analysis systems like Hadoop (a distributed system infrastructure), but with the limitation of requiring real-time processing. The purpose of Kafka is to unify on-line and off-line message processing through the Hadoop parallel loading mechanism, and also to provide real-time messages through the clusters.
And a second step of: quality of service calculation
And calculating a quality log after service expense reporting, and calculating the target service quality in the time granularity according to different target services according to the time granularity (the minimum time granularity is 1 minute).
Definition of service faults in quality of service
Hypertext transfer protocol (HyperText Transfer Protocol, HTTP) service failures can be obtained from httpcode. Nginx logs, such as HTTP-500 errors (server internal errors), HTTP-503 errors (server unavailable errors), as described in FIG. 1 and above; or may be obtained directly by active request. Such status codes represent errors or abnormal states occurring in the process of processing the request by the server, and it is also possible that the server realizes that the processing of the request cannot be completed by the current software and hardware resources. Unless this is a HEAD request (request for page header only), the server should contain an interpretation information entity that interprets the current error state and whether this condition is temporary or permanent. The browser should present the user with any entity that is included in the current response.
The control transmission protocol (Transmission Control Protocol, TCP) service may customize the service error identification, which indicates success or failure. For example, the error identification may include: number of communication packets, number of bytes, number of successful bytes, number of failed bytes; for another example, the error identification may include: total byte data, success, failure status, etc.
The computing class only provides the service of output and input, and can customize the service fault identification. The fault identification includes, for example: timing period, running condition within period, success or failure.
There are two ways of quality of service calculation, which are adapted to different fields, such as, but not limited to, HTTP services, TCP services, calculation classes, etc. as described above.
Counting the counting mode in unit time, including:
Proportion of faults: number of faults per minute/total number of faults per minute
Quality of service: number of successes per minute/total number of successes per minute
The failure number refers to the number of log pieces that failed in the log received per minute.
The success number refers to the number of log pieces that succeed in the log received per minute.
The total number refers to the total number of logs received per minute.
The fixed length of time may be a cycle time of the target service configuration. For example, take 10 minutes: and continuously generating faults within 10 minutes to obtain the fault. Faults may not be counted as success numbers rather than continuously. (scene adapted to some operation and maintenance hardware or service hanging)
The statistical method for calculating the occurrence frequency of the faults in the fixed time length comprises the following steps:
Proportion of faults: number/total number of consecutive failures
Quality of service: number of successes/total number
The total number is the total number of logs in the time range of the target service configuration.
And a third step of: and (5) showing and early warning the service quality.
The amount of received log may be large because the quality of service is to interface with a variety of different target services. The final calculation result will be large, so that the calculated result will be sent to the real-time streaming queue (kafka) first to relieve the database pressure. And finally, storing the data in the consumption flow queue. The user checks the calculated service quality in the database through the unified page. The user can customize the service quality threshold value for the service under the authority of the user, and the service quality reaches the threshold value range, thereby early warning the user.
Optionally, a quality of service output step can be included
The quality of service calculation results stored in the database provide an acquisition interface. The quality of service result may provide basic data for the service loading scheme and may provide weight values for the weight algorithm.
In order to more clearly illustrate the above technical solutions of the present invention, the following description is specifically given by way of example with reference to fig. 2 and 3.
Fig. 2 is a schematic diagram of a main flow of a quality of service detection method according to an embodiment of the present invention. This embodiment comprises the steps of:
(1) And the service is uploaded to a real-time service quality log.
(2) And calculating a quality log after service expense reporting.
(3) Counting the total number of logs, judging the successful number of service states in the logs and judging the failed number of service states in the logs.
(4) And calculating the success rate per minute and the failure rate.
(5) And sending the calculation result to a real-time queue as a success and failure result.
(6) And storing the result into a database for a user to check the calculated service quality in the database through a unified page.
Fig. 3 is a schematic diagram of the main flow of a quality of service detection method according to still another embodiment of the present invention. This embodiment comprises the steps of:
(1) And the service is uploaded to a real-time service quality log.
(2) And calculating a quality log after service expense reporting.
(1') Configuring a database for configuring calculation rules under the business line.
(2') Reading the computation rules under the business line from the configured database.
(3) Counting the total number of logs, judging the number of continuous failures according to the configuration period, and counting the number of successes.
(4) And calculating the success rate per minute and the failure rate.
(5) And sending the calculation result to a real-time queue as a success and failure result.
(6) And storing the result into a database for a user to check the calculated service quality in the database through a unified page.
The embodiment of fig. 3 differs from the embodiment of fig. 2 in that it further comprises the above-mentioned steps (1 ') and (2'), and steps (1 ') and (2') may be performed in parallel with steps (1) and (2) or may be performed sequentially.
Fig. 4 is a schematic diagram of main modules of a quality of service detection apparatus according to an embodiment of the present invention. The figure is an exemplary example of the main modules of a quality of service detection apparatus, such as but not limited to. As an example, the main modules of the quality of service detection apparatus include an acquisition quality of service log module; the service quality calculation module is used for consuming the reported quality logs and calculating the target service quality in the time granularity in real time according to different target services; and the service quality display and early warning module stores the calculation result into the database so that a user can check the condition of the calculated service quality in the database through a unified page. In addition, the service quality detection device of the embodiment of the invention can also comprise a service scheduling module, and the modules work under the unified scheduling of the service scheduling module. The service quality display and early warning module can comprise a service quality display unit and a service quality early warning unit. Optionally, the quality of service presentation and early warning module may further comprise a quality of service data output unit, which in case of comprising a quality of service data output unit may also be referred to as quality of service presentation and early warning output module.
The implementation of the qos detection device according to the embodiment of the present invention is already described in detail in the qos detection method described above, and thus the description thereof will not be repeated here.
Fig. 5 illustrates an exemplary system architecture 500 to which a quality of service detection method or quality of service detection apparatus of embodiments of the present invention may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used as a medium to provide communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 505 via the network 504 using the terminal devices 501, 502, 503 to receive or send messages or the like. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (by way of example only) providing support for shopping-type websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the method for detecting the quality of service provided by the embodiment of the present invention is generally executed by the server 505, and accordingly, the quality of service detecting device is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 6 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a collection quality of service log module; the service quality calculation module calculates a quality log after service expense reporting, and calculates the target service quality in time granularity according to different target services and time granularity in real time; and a service quality display and early warning module.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include: a quality of service log module is collected; the service quality calculation module calculates a quality log after service expense reporting, and calculates the target service quality in time granularity according to different target services and time granularity in real time; and a service quality display and early warning module.
According to the technical scheme of the embodiment of the invention, the technical means of quality of service measurement, monitoring and early warning are adopted, so that the technical problems that the prior art lacks monitoring and management of quality of service and is difficult to measure the stability of service and the quality of service are solved, and the technical effect of providing basis for the stability of service and the decision of service is further achieved. Specifically, (1) the service quality is an index for measuring the service stability, and can provide a quality standard for the service to the external output; (2) Providing complete full-dimensional service quality display of days, hours and minutes, and providing basis for service stability and service decision; (3) Providing an early warning scheme, configuring a self-defined threshold value for each service, and notifying a service provider that the service stability reaches an early warning value; (4) the solution outputs a quality of service score. Basic data may be provided for the service load scheme and weight values may be provided for the weight algorithm.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

1. A quality of service detection method, comprising:
collecting a service quality log;
Calculating the service quality, calculating a quality log after reporting the service expense, and calculating the target service quality in time granularity according to different target services and time granularity; the method comprises the steps of calculating the service quality of the hypertext transfer protocol service based on a status code in a service quality log, calculating the service quality of the transmission control protocol service based on an error identifier in the service quality log, and providing input, output and user-defined service fault identifiers for calculation type services; the state code in the service quality log is used for representing that the server has errors and abnormal states in the process of processing the request or the server realizes that the processing of the request cannot be completed by the current software and hardware resources; the error mark in the service quality log is a user-defined error mark and is used for marking success or failure; the calculating the fault identification corresponding to the class service comprises the following steps: timing period, running condition within period, success or failure;
the acquisition of the service quality log is realized in the following acquisition mode:
the target service actively reports the service log and the service running log to a log receiving interface of the acquisition service, and the acquisition service is uniformly sent to the streaming queue;
the method also comprises the steps of service quality display and early warning:
transmitting the calculated service quality result to a real-time streaming queue;
consuming the stream queue and storing the consumed data in a database;
checking the service quality condition in a database by using a preset page, and setting a service quality threshold for the service under each authority; and when the service quality reaches the threshold value range, early warning the user.
2. The quality of service detection method of claim 1, wherein the collecting the quality of service log is implemented in the following collection manner:
and actively requesting the service interface according to the time period of the target service configuration, and acquiring a service availability log from the service interface.
3. The quality of service detection method of claim 1, wherein the quality of service calculation calculates the quality of service in at least one of two quality calculations:
The statistical manner in which the unit time is counted,
Proportion of faults: number of faults per minute/total number of faults per minute;
Quality of service: successful number per minute/total number per minute;
the fault number refers to the number of failed logs in the logs received every minute; the success number refers to the number of successful logs in the logs received every minute; the total number refers to the total number of logs received per minute; and/or the number of the groups of groups,
The frequency of occurrence of the fault within a fixed length of time is calculated,
Proportion of faults: number of consecutive occurrences/total number of failures;
Quality of service: number of successes/total number;
wherein the total number is the total number of logs in the time range of the target service configuration.
4. A quality of service detection apparatus, comprising:
a quality of service log module is collected;
The service quality calculation module is used for consuming the reported quality logs and calculating the target service quality in the time granularity in real time according to different target services; the method comprises the steps of calculating the service quality of the hypertext transfer protocol service based on a status code in a service quality log, calculating the service quality of the transmission control protocol service based on a self-defined error identifier in the service quality log, and providing input and output and self-defined service fault identifiers for calculation type services; the state code in the service quality log is used for representing that the server has errors and abnormal states in the process of processing the request or the server realizes that the processing of the request cannot be completed by the current software and hardware resources; the error mark in the service quality log is a user-defined error mark and is used for marking success or failure; the calculating the fault identification corresponding to the class service comprises the following steps: timing period, running condition within period, success or failure;
The acquisition service quality log module is realized in the following acquisition mode:
the target service actively reports the service log and the service running log to a log receiving interface of the acquisition service, and the acquisition service is uniformly sent to the streaming queue;
the device also comprises a service quality display and early warning module for:
transmitting the calculated service quality result to a real-time streaming queue;
consuming the stream queue and storing the consumed data in a database;
checking the service quality condition in a database by using a preset page, and setting a service quality threshold for the service under each authority; and when the service quality reaches the threshold value range, early warning the user.
5. The quality of service detection apparatus of claim 4, wherein the acquisition quality of service log module is implemented in the following acquisition manner:
and actively requesting the service interface according to the time period of the target service configuration, and acquiring a service availability log from the service interface.
6. The quality of service detection apparatus of claim 4, wherein the quality of service calculation module calculates the quality of service in at least one of two quality calculations:
The statistical manner in which the unit time is counted,
Proportion of faults: number of faults per minute/total number of faults per minute;
Quality of service: successful number per minute/total number per minute;
the fault number refers to the number of failed logs in the logs received every minute; the success number refers to the number of successful logs in the logs received every minute; the total number refers to the total number of logs received per minute; and/or the number of the groups of groups,
The frequency of occurrence of the fault within a fixed length of time is calculated,
Proportion of faults: number of consecutive occurrences/total number of failures;
Quality of service: number of successes/total number;
wherein the total number is the total number of logs in the time range of the target service configuration.
7. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-3.
8. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-3.
CN201810833620.1A 2018-07-26 2018-07-26 Quality of service detection method and device Active CN110852537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810833620.1A CN110852537B (en) 2018-07-26 2018-07-26 Quality of service detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810833620.1A CN110852537B (en) 2018-07-26 2018-07-26 Quality of service detection method and device

Publications (2)

Publication Number Publication Date
CN110852537A CN110852537A (en) 2020-02-28
CN110852537B true CN110852537B (en) 2024-08-20

Family

ID=69595392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810833620.1A Active CN110852537B (en) 2018-07-26 2018-07-26 Quality of service detection method and device

Country Status (1)

Country Link
CN (1) CN110852537B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037636A (en) * 2022-06-06 2022-09-09 阿里云计算有限公司 Service quality perception method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709003A (en) * 2016-12-23 2017-05-24 长沙理工大学 Hadoop-based mass log data processing method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101384161B1 (en) * 2012-09-06 2014-04-11 에스케이텔레콤 주식회사 Method for analysis of service quality, apparatus and system for the same
CN104219080B (en) * 2013-06-05 2017-06-23 北京齐尔布莱特科技有限公司 A kind of website faulty page log recording method
KR102261910B1 (en) * 2014-12-08 2021-06-08 에스케이플래닛 주식회사 Service error detection apparatus for cloud streaming service, end to end service monitoring system and method thereof
CN107577805B (en) * 2017-09-26 2020-08-18 华南理工大学 Business service system for log big data analysis
CN107809350A (en) * 2017-10-09 2018-03-16 北京京东尚科信息技术有限公司 The method and apparatus for obtaining HTTP server performance data

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106709003A (en) * 2016-12-23 2017-05-24 长沙理工大学 Hadoop-based mass log data processing method

Also Published As

Publication number Publication date
CN110852537A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
CN111124819B (en) Method and device for full link monitoring
CN107809331B (en) Method and apparatus for identifying abnormal traffic
CN108989136B (en) Service end-to-end performance monitoring method and device
CN114090366B (en) Method, device and system for monitoring data
US20150019916A1 (en) System and method for identifying problems on a network
CN107370806B (en) HTTP status code monitoring method, device, storage medium and electronic device
CN111104675A (en) Method and device for detecting system security vulnerability
CN112751729A (en) Log monitoring method, device, medium and electronic equipment
CN106874135B (en) Method, Apparatus and Equipment for Detecting Computer Room Failures
CN113517985B (en) File data processing method and device, electronic equipment and computer readable medium
CN106850687A (en) Method and apparatus for detecting network attack
CN112702198B (en) Abnormal root cause positioning method and device, electronic equipment and storage medium
CN111769997A (en) Method, server, device and computer readable medium for network monitoring
CN110727563B (en) Cloud service alarm method and device for preset customers
CN113114612B (en) Determination method and device for distributed system call chain
CN110852537B (en) Quality of service detection method and device
CN113238919A (en) Statistical method, device and system for user access number
CN110119334A (en) A kind of page script monitoring method and device
CN117573500A (en) Methods, devices, equipment and computer-readable media for monitoring data
CN112131198B (en) Log analysis method and device and electronic equipment
CN114089712B (en) A data processing method and device
CN112306791B (en) Performance monitoring method and device
CN113079055B (en) AGV operation data dynamic acquisition method and device
CN110378641A (en) A kind of method and apparatus counting unmanned vehicle information
CN111949472B (en) A method and device for recording application logs

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant after: Jingdong Technology Holding Co.,Ltd.

Address before: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant before: Jingdong Digital Technology Holding Co.,Ltd.

Address after: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant after: Jingdong Digital Technology Holding Co.,Ltd.

Address before: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant before: JINGDONG DIGITAL TECHNOLOGY HOLDINGS Co.,Ltd.

Address after: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant after: JINGDONG DIGITAL TECHNOLOGY HOLDINGS Co.,Ltd.

Address before: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant before: BEIJING JINGDONG FINANCIAL TECHNOLOGY HOLDING Co.,Ltd.

GR01 Patent grant
GR01 Patent grant