CN110620702B - Pressure detection method, device and system for server - Google Patents

Pressure detection method, device and system for server Download PDF

Info

Publication number
CN110620702B
CN110620702B CN201910889158.1A CN201910889158A CN110620702B CN 110620702 B CN110620702 B CN 110620702B CN 201910889158 A CN201910889158 A CN 201910889158A CN 110620702 B CN110620702 B CN 110620702B
Authority
CN
China
Prior art keywords
server
request
requests
interface
pressure detection
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
CN201910889158.1A
Other languages
Chinese (zh)
Other versions
CN110620702A (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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201910889158.1A priority Critical patent/CN110620702B/en
Publication of CN110620702A publication Critical patent/CN110620702A/en
Application granted granted Critical
Publication of CN110620702B publication Critical patent/CN110620702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

The application discloses a pressure detection method, a pressure detection device and a pressure detection system, and belongs to the technical field of communication. The method comprises the following steps: the method comprises the steps of obtaining a plurality of first requests received by a first server in the process of providing service for a user, wherein the first requests carry: an identification of a corresponding one of the interfaces of the first request in the first server; processing the plurality of first requests to obtain a plurality of second requests corresponding to the plurality of first requests one to one, wherein the second requests carry: the identifier of the second server and the identifier of one interface corresponding to the second request in the second server, for each first request and the second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service; and sending at least one time of a plurality of second requests to a second server so that the second server performs pressure detection according to the plurality of second requests. The application solves the problem of low accuracy of pressure detection. The application is used for pressure detection of the server.

Description

Pressure detection method, device and system for server
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, and a system for pressure detection of a server.
Background
With the development of communication technology, more and more servers are appearing, and the servers can provide various services to users. However, since the server generally needs to provide services for a large number of users, and the pressure of the server is large, the pressure of the server needs to be detected, and the server needs to be configured according to the pressure of the server.
In the related art, a worker may generate a simulation request through a request simulation device (similar to a real request sent by a terminal of a user to a server during a process of providing a service to the user), and repeatedly send the simulation request to an interface of the server (for providing a service) through the request simulation device, so that the server performs a pressure detection on the interface based on the requests.
However, in the related art, the request on which the pressure detection is based is a simulation request, and the repeated transmission of the simulation request does not reflect the actual request situation, so the accuracy of the pressure detection based on the repeated transmission of the simulation request is low.
Disclosure of Invention
The application provides a method and a device for detecting data packet transmission parameters and a data packet transmission system, and the technical scheme is as follows:
in one aspect, a method for detecting pressure of a server is provided, where the method includes:
acquiring a plurality of first requests received by a first server in the process of providing service for a user, wherein the first requests carry: an identification of the first server, and an identification of an interface in the first server to which the first request corresponds, the plurality of first requests corresponding to at least one interface in the first server;
processing the plurality of first requests to obtain a plurality of second requests corresponding to the plurality of first requests one to one, wherein the second requests carry: for each first request and a second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service;
sending at least one time of the plurality of second requests to the second server so that the second server performs pressure detection according to the plurality of second requests.
In another aspect, a pressure detection apparatus of a server is provided, the pressure detection apparatus including:
an obtaining module, configured to obtain multiple first requests received by a first server in a process of providing a service to a user, where the first requests carry: an identification of the first server, and an identification of an interface in the first server to which the first request corresponds, the plurality of first requests corresponding to at least one interface in the first server;
a processing module, configured to process the multiple first requests to obtain multiple second requests that are one-to-one corresponding to the multiple first requests, where the second requests carry: for each first request and a second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service;
and the sending module is used for sending at least one time of the plurality of second requests to the second server so that the second server performs pressure detection according to the plurality of second requests.
In another aspect, a pressure detection system of a server is provided, where the pressure detection system includes: the system comprises a first server, a second server and a pressure detection device;
the pressure detection device is used for acquiring a plurality of first requests received by a first server in the process of providing service for a user, wherein the first requests carry: an identification of the first server, and an identification of an interface in the first server to which the first request corresponds, the plurality of first requests corresponding to at least one interface in the first server;
the pressure detection device is further configured to process the plurality of first requests to obtain a plurality of second requests corresponding to the plurality of first requests one to one, where the second requests carry: for each first request and a second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service;
the pressure detection device is further configured to send at least one time the plurality of second requests to the second server;
the second server is used for carrying out pressure detection according to the plurality of second requests.
The beneficial effect that technical scheme that this application provided brought includes at least:
in the method for detecting pressure of a server provided by the embodiment of the present invention, a pressure detection device can obtain a plurality of first requests received by a first server in a process of providing a service to a user, and convert the plurality of first requests into a plurality of second requests that can be used by a second server. Thereafter, the pressure detection device may further send at least one time of the plurality of second requests to the second server, so that the second server can perform pressure detection on the plurality of second requests. The second server performs pressure detection according to the pressure detection request sent by the terminal of the user, so that the pressure detection accuracy of the second server is high.
Drawings
Fig. 1 is a schematic view of an application scenario of a pressure detection method of a server according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for detecting pressure of a server according to an embodiment of the present invention;
fig. 3 is a flowchart of another server pressure detection method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a pressure detection apparatus of a server according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another pressure detection apparatus of a server according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 is a schematic view of an application scenario of a pressure detection method of a server according to an embodiment of the present invention, and as shown in fig. 1, the application scenario may include a pressure detection system of the server. The pressure detection system may include: a first server 01, a second server 02 and a pressure detection device 03. The pressure detection system may further include: the user's terminal 04.
The terminal 04 can send a request to the first server 01, so that the first server 01 provides a service to the user, where the first server 01 may be referred to as an online server, and the first request is a request received by the first server 01 in real time during the process of providing the service to the user. The pressure detection device 03 is in communication connection with both the first server 01 and the second server 02. The pressure detection device 03 is configured to perform pressure detection by the second server 02 based on a request received by the first server 01 in the process of providing a service to a user. The second server 02 does not provide a service to the user in this process, and thus the second server 02 may be referred to as an offline server.
Optionally, the first server 01, the second server 02 and the pressure detection device 03 may all be a server or a server cluster composed of a plurality of servers, which is not limited in this embodiment of the present invention.
It should be noted that, in the related art, a worker may generate simulation requests (similar to real requests) by the request simulation device, and repeatedly send the simulation requests to an interface (for providing a service) of the server by the request simulation device, so that the server performs pressure detection on the interface based on the requests. However, in the related art, the request on which the pressure detection is based is a simulation request, and the repeated transmission of the simulation request does not reflect the actual request situation, so the accuracy of the pressure detection based on the repeated transmission of the simulation request is low. Furthermore, in the related art, the server can only perform pressure detection on one interface of the server based on the received simulation request, but cannot perform pressure detection on the entire server. Based on this, the embodiment of the invention provides a pressure detection method for a server.
Fig. 2 is a flowchart of a pressure detection method of a server according to an embodiment of the present invention, where the pressure detection method may be used for the pressure detection device 03 in the pressure detection system shown in fig. 1, and as shown in fig. 2, the method includes:
step 201, obtaining a plurality of first requests received by a first server in a process of providing a service to a user, where the first requests carry: the identification of the first server and the identification of an interface corresponding to the first request in the first server, wherein the plurality of first requests correspond to at least one interface in the first server;
step 202, processing the plurality of first requests to obtain a plurality of second requests corresponding to the plurality of first requests one to one, wherein the second requests carry: the identifier of the second server and the identifier of one interface corresponding to the second request in the second server, for each first request and the second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service;
step 203, sending at least one time of multiple second requests to the second server, so that the second server performs pressure detection according to the multiple second requests.
In summary, in the method for detecting pressure of a server according to the embodiments of the present invention, a pressure detection apparatus can obtain a plurality of first requests received by a first server in a process of providing a service to a user, and convert the plurality of first requests into a plurality of second requests that can be used by a second server. Thereafter, the pressure detection device may further send at least one time of the plurality of second requests to the second server, so that the second server can perform pressure detection on the plurality of second requests. The second server performs pressure detection according to the pressure detection request sent by the terminal of the user, so that the pressure detection accuracy of the second server is high.
In addition, since the request actually transmitted by the terminal usually corresponds to a plurality of services, the plurality of second requests may correspond to a plurality of interfaces on the second server for providing the plurality of servers, and the plurality of interfaces on the second server may be subjected to pressure detection based on the plurality of second requests, thereby realizing pressure detection of the entire second server.
Illustratively, fig. 3 is a flowchart of a pressure detection method of another server according to an embodiment of the present invention, where the pressure detection method may be used in the pressure detection system shown in fig. 1, and as shown in fig. 3, the method includes:
in step 301, the pressure detection apparatus obtains a plurality of initial requests received by the first server in the process of providing service to the user.
The initial request may be a request sent by the first server to the first server in the process of providing the service to the user. The initial request carries an identifier of a server (e.g., a domain name or address of the server), an identifier of an interface (e.g., an address of the interface, an interface path, etc.), and a parameter of a service. The identifier of the server is usually the identifier of the first server, the identifier of the interface is usually the identifier of the interface for providing a certain service, and the parameter of the service is usually the parameter on which the service is to be based.
For example, the pressure detection apparatus may first obtain an access log in the first server for recording the plurality of initial requests, and then determine the plurality of initial requests based on the access log. Optionally, the access log may be actively synchronized to the pressure detection apparatus by the first server, or passively synchronized to the pressure detection apparatus by the first server after the pressure detection apparatus actively requests the first server, which is not limited in this embodiment of the present invention.
In addition, when synchronizing the access log with the pressure detection device, the first server may directly synchronize the access log with the pressure detection device, or the first server may perform the division (for example, the division is performed according to the size or the time when the request occurs) of the access log and then synchronize the access log with the pressure detection device.
Step 302, the pressure detection device determines an invalid request of the plurality of initial requests.
Since the terminal may transmit an error when transmitting the initial request to the first server, which may result in invalidation of the initial request, the pressure detection apparatus needs to screen out invalid requests from the plurality of initial requests. Wherein the invalidation request satisfies one or more of the following conditions:
the identifier of the server carried by the invalid request is different from the identifier of the first server;
the identifier of the interface carried by the invalid request is different from the identifier of any interface in the first server;
the parameters of the service carried by the invalid request are out of the parameter range of any service provided by the first server.
Step 303, the pressure detection device obtains a plurality of first requests except for invalid requests from the plurality of initial requests.
After determining an invalid request of the plurality of initial requests, the pressure detection apparatus may obtain a plurality of first requests other than the invalid request from the plurality of initial requests. The first request carries: the first request comprises an identification of the first server and an identification of an interface corresponding to the first request in the first server, and the plurality of first requests correspond to at least one interface in the first server. Optionally, the first request may also carry a parameter of a service.
Step 304, the pressure detection device determines a corresponding first interface of each first request in the plurality of first requests in the first server.
It should be noted that the first server has a plurality of interfaces (virtual network interfaces), and the first server can provide a service to the user through each interface. In step 304, the pressure server needs to determine a corresponding first interface of the plurality of interfaces of the first server for each first request, so that the plurality of first interfaces can be obtained. For example, the pressure detection apparatus may determine the first interface corresponding to the first request by reading an identifier of the interface carried by the first request.
Step 305, the pressure detection device determines a second interface corresponding to the first interface in the second server according to the corresponding relationship between the interface in the first server and the interface in the second server.
Each interface in the first server in the corresponding relationship is the same as the service provided by the corresponding interface in the second server.
It should be noted that the services that can be provided by the second server may include services that can be provided by the first server, for example, the services that can be provided by the second server are different from the services that can be provided by the first server. Therefore, the interfaces in the second server and the interfaces in the first server have a one-to-one correspondence, and each interface in the second server and the corresponding interface in the first server are used for providing the same service.
The pressure detection device may obtain a correspondence between the interface in the first server and the interface in the second server. For example, the correspondence relationship may be stored in advance in the pressure detection device, or the pressure detection device may read the correspondence relationship from another device.
After obtaining the corresponding relationship, the pressure detection device may search for the second interface corresponding to the first interface indicated by each first request based on the corresponding relationship, so as to obtain a plurality of second interfaces corresponding to the plurality of first interfaces one to one.
Step 306, the pressure detection apparatus changes the identifier of the first server in each first request to the identifier of the second server, and changes the identifier of the first interface to the identifier of the second interface, so as to obtain a second request corresponding to each first request.
After determining the plurality of second interfaces corresponding to the plurality of first interfaces one to one, the pressure detection apparatus may change the identifier of the first server in each first request to the identifier of the second server, and change the identifier of the first interface to the identifier of the second interface corresponding to the first interface. Thereby obtaining a second request corresponding to the first request. The second request is used for requesting a certain service from a second server, and the service is the same as the service requested by the first server from the first request corresponding to the second request.
It can be seen that steps 304 to 306 correspond to: the pressure detection device processes the first requests to obtain second requests corresponding to the first requests one by one. Wherein the second request carries: and for each first request and the second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service.
Optionally, since the service parameters carried by the first request are not adjusted in step 306, both the first request and the corresponding second request also carry parameters of the same service, and the carried service parameters are the same.
Step 307, the pressure detection device sends at least one multiple of the second requests to the second server.
After obtaining the plurality of second requests, the pressure detection device may send the plurality of second requests, or a plurality of times of the plurality of second requests, to the second server. The at least one multiple of the second requests may be to reflect: a request received by the first server in the event that a user serviced by the first server increases by at least a factor of two.
And step 308, the second server performs pressure detection according to the plurality of second requests.
After receiving each second request, the second server needs to process the second request and send a response of each second request to the pressure detection server. The second server may then generate parameters characterizing the second server's stress based on its processing of the second request. For example, the parameter for characterizing the second server pressure may be: a second number of requests per second successfully processed by the second server. The parameter may be other parameters, which is not limited in the embodiment of the present invention.
For example, the second server may send a processing response of each request to the pressure detection device after processing the request, and the processing response is used to indicate whether the request is successfully processed. Illustratively, the process response may include a status code indicating whether the request was successfully processed. The second server may determine whether the second request is successfully processed according to the transmitted processing response of the second request.
Alternatively, the pressure detection device may send a plurality of doubled second requests to the second server first, so that the second server performs pressure detection based on the plurality of doubled second requests. Thereafter, the pressure detection means may change the multiple of the second request sent to the second server, and the pressure detection means repeatedly performs step 307 and the second server repeatedly performs step 308, so that the second server performs pressure detection based on a plurality of second requests of the changed multiple. And repeating the process continuously, and finally obtaining the limit parameters of the pressure under the current configuration of the second server after the pressure of the second server is detected.
In summary, in the method for detecting pressure of a server according to the embodiments of the present invention, a pressure detection apparatus can obtain a plurality of first requests received by a first server, and convert the plurality of first requests into a plurality of second requests that can be used by a second server. Thereafter, the pressure detection device may further send at least one time of the plurality of second requests to the second server, so that the second server can perform pressure detection on the plurality of second requests. The second server performs pressure detection according to the pressure detection request sent by the terminal, so that the pressure detection accuracy of the second server is high.
The results of the second server pressure test may indicate: the second server's stress when the second server is used to provide services to at least one times the number of users. If the pressure of the second server is greater, the staff member can appropriately adjust the configuration of the first server based on the pressure so as to ensure the stability of the service provided by the first server for the user.
In addition, since the request actually transmitted by the terminal of the normal user corresponds to a plurality of services, the plurality of second requests may correspond to a plurality of interfaces on the second server for providing the plurality of servers, and the plurality of interfaces on the second server may be subjected to pressure detection based on the plurality of second requests, thereby realizing pressure detection of the entire second server.
In addition, in the detection method provided by the embodiment of the present invention, the second server performs the pressure detection based on the plurality of second requests, and does not affect the service provided by the first server to the user. The first server is used for providing services for the user in real time, so the first server can be called an online server.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
The embodiment of the invention provides a pressure detection device of a server, which is applied to the pressure detection device in a pressure detection system shown in fig. 1. As shown in fig. 4, the server pressure detection device 40 includes:
an obtaining module 401, configured to obtain multiple first requests received by a first server in a process of providing a service to a user, where the first requests carry: an identification of the first server, and an identification of an interface in the first server to which the first request corresponds, the plurality of first requests corresponding to at least one interface in the first server;
a processing module 402, configured to process the multiple first requests to obtain multiple second requests that are one-to-one corresponding to the multiple first requests, where the second requests carry: for each first request and a second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service;
a sending module 403, configured to send at least one time of the multiple second requests to the second server, so that the second server performs pressure detection according to the multiple second requests.
In summary, in the pressure detection apparatus for a server according to the embodiments of the present invention, the obtaining module can obtain a plurality of first requests received by the first server, and the processing module can convert the plurality of first requests into a plurality of second requests that can be used by the second server. Thereafter, the sending module may send at least one time of the plurality of second requests to the second server to enable the second server to perform the pressure detection on the plurality of second requests. The second server performs pressure detection according to the pressure detection request sent by the terminal of the user, so that the pressure detection accuracy of the second server is high.
Optionally, the processing module 402 is configured to:
determining a first interface corresponding to each first request in the plurality of first requests in the first server;
determining a second interface corresponding to the first interface in the second server according to a corresponding relationship between the interfaces in the first server and the interfaces in the second server, wherein each interface in the first server and the corresponding interface in the second server in the corresponding relationship are used for providing the same service;
and changing the identifier of the first server in each first request into the identifier of the second server, and changing the identifier of the first interface into the identifier of the second interface to obtain a second request corresponding to each first request.
Optionally, the first request and the corresponding second request both further carry parameters of the same service.
Optionally, the obtaining module 401 includes:
a first obtaining submodule, configured to obtain multiple initial requests received by the first server, where the initial requests carry an identifier of a server, an identifier of an interface, and a service parameter;
a determining submodule, configured to determine an invalid request in the plurality of initial requests, where the invalid request satisfies one or more of the following conditions: the identifier of the server carried by the invalid request is different from the identifier of the first server, the identifier of the interface carried by the invalid request is different from the identifier of any interface in the first server, and the parameter of the service carried by the invalid request is out of the parameter range of any service provided by the first server;
a second obtaining sub-module, configured to obtain the first requests, except the invalid request, from the initial requests.
Optionally, the first obtaining sub-module is configured to:
obtaining an access log of the first server, wherein the access log is used for recording the plurality of initial requests;
determining the plurality of initial requests according to the access log.
In summary, in the pressure detection apparatus for a server according to the embodiments of the present invention, the obtaining module can obtain a plurality of first requests received by the first server, and the processing module can convert the plurality of first requests into a plurality of second requests that can be used by the second server. Thereafter, the sending module may send at least one time of the plurality of second requests to the second server to enable the second server to perform the pressure detection on the plurality of second requests. The second server performs pressure detection according to the pressure detection request sent by the terminal of the user, so that the pressure detection accuracy of the second server is high.
An embodiment of the present invention provides a pressure detection apparatus, as shown in fig. 5, the pressure detection apparatus 50 includes:
a processor 501, and a memory 502 for storing executable instructions for the processor 501.
Wherein the processor 501 is configured to: when the executable instructions are executed, the steps executed by the pressure detection device in any pressure detection method provided by the embodiment of the invention can be realized.
The embodiment of the invention provides a readable storage medium, where instructions are stored, and when the instructions are executed on a processing component, the processing component may execute the steps executed by the pressure detection device in the pressure detection method provided by the embodiment of the invention.
Embodiments of the present invention further provide a computer program product including instructions, which, when the computer program product runs on a computer, enables the computer to execute the steps executed by the pressure detection apparatus in the pressure detection method provided in the embodiments of the present invention.
An embodiment of the present invention further provides a pressure detection system of a server, and as shown in fig. 1, the pressure detection system includes: a first server 01, a second server 02 and a pressure detection device 03.
The pressure detection device 03 is configured to obtain a plurality of first requests received by a first server in a process of providing a service to a user, where the first requests carry: the identification of the first server and the identification of an interface corresponding to the first request in the first server, wherein the plurality of first requests correspond to at least one interface in the first server;
the pressure detection device 03 is further configured to process the plurality of first requests to obtain a plurality of second requests corresponding to the plurality of first requests one to one, where the second requests carry: the identifier of the second server and the identifier of one interface corresponding to the second request in the second server, for each first request and the second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service;
the pressure detection device 03 is further configured to send at least one multiple of the second requests to the second server;
the second server 02 is configured to perform pressure detection according to the plurality of second requests.
Optionally, the pressure detection device 03 is configured to:
determining a first interface corresponding to each first request in the plurality of first requests in the first server;
determining a second interface corresponding to the first interface in the second server according to the corresponding relation between the interfaces in the first server and the interfaces in the second server, wherein each interface in the first server and the corresponding interface in the second server are used for providing the same service in the corresponding relation;
and changing the identifier of the first server in each first request into the identifier of the second server, and changing the identifier of the first interface into the identifier of the second interface to obtain a second request corresponding to each first request.
Optionally, the first request and the corresponding second request both further carry parameters of the same service.
Optionally, the pressure detection device 03 is configured to:
acquiring a plurality of initial requests received by a first server, wherein the initial requests carry an identifier of a server, an identifier of an interface and a service parameter;
determining an invalid request of the plurality of initial requests, the invalid request satisfying one or more of the following conditions: the identifier of the server carried by the invalid request is different from the identifier of the first server, the identifier of the interface carried by the invalid request is different from the identifier of any interface in the first server, and the parameter of the service carried by the invalid request is positioned outside the parameter range of any service provided by the first server;
a plurality of first requests, except for invalid requests, of the plurality of initial requests are obtained.
Optionally, the pressure detection device 03 is configured to:
acquiring an access log of a first server, wherein the access log is used for recording a plurality of initial requests;
from the access log, a plurality of initial requests are determined.
In embodiments of the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The term "plurality" means two or more unless expressly limited otherwise.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It should be noted that, the method embodiment provided in the embodiment of the present invention can be mutually referred to a corresponding apparatus embodiment, and the embodiment of the present invention does not limit this. The sequence of the steps of the method embodiments provided by the embodiments of the present invention can be appropriately adjusted, and the steps can be correspondingly increased or decreased according to the situation, and any method that can be easily conceived by those skilled in the art within the technical scope disclosed by the present invention shall be covered by the protection scope of the present invention, and therefore, the detailed description thereof shall not be repeated.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (6)

1. A method for server pressure detection, the method comprising:
acquiring a plurality of initial requests received by a first server in the process of providing service for a user, wherein the initial requests carry an identifier of a server, an identifier of an interface and a parameter of the service;
determining an invalid request of the plurality of initial requests;
obtaining a plurality of first requests except the invalid request in the plurality of initial requests, wherein the first requests carry: an identification of the first server, and an identification of an interface in the first server to which the first request corresponds, the plurality of first requests corresponding to at least one interface in the first server;
processing the plurality of first requests to obtain a plurality of second requests corresponding to the plurality of first requests one to one, wherein the second requests carry: for each first request and a second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service, and the first request and the corresponding second request both carry parameters of the same service;
sending at least one time of the plurality of second requests to the second server so that the second server performs pressure detection according to the plurality of second requests;
wherein the invalidation request satisfies one or more of the following conditions:
the identifier of the server carried by the invalid request is different from the identifier of the first server;
the identifier of the interface carried by the invalid request is different from the identifier of any interface in the first server;
and the parameters of the service carried by the invalid request are out of the parameter range of any service provided by the first server.
2. The method of claim 1, wherein processing the first requests to obtain second requests corresponding to the first requests in a one-to-one manner comprises:
determining a first interface corresponding to each first request in the plurality of first requests in the first server;
determining a second interface corresponding to the first interface in the second server according to a corresponding relationship between the interfaces in the first server and the interfaces in the second server, wherein each interface in the first server and the corresponding interface in the second server in the corresponding relationship are used for providing the same service;
and changing the identifier of the first server in each first request into the identifier of the second server, and changing the identifier of the first interface into the identifier of the second interface to obtain a second request corresponding to each first request.
3. The method of claim 1, wherein obtaining a plurality of initial requests received by the first server in providing services to the user comprises:
obtaining an access log of the first server, wherein the access log is used for recording the plurality of initial requests;
determining the plurality of initial requests according to the access log.
4. A pressure detection apparatus of a server, characterized in that the pressure detection apparatus comprises:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a plurality of initial requests received by a first server in the process of providing services for a user, determining invalid requests in the plurality of initial requests, and acquiring a plurality of first requests except the invalid requests in the plurality of initial requests; the initial request carries an identifier of a server, an identifier of an interface, and a service parameter, and the first request carries: an identification of the first server, and an identification of an interface in the first server to which the first request corresponds, the plurality of first requests corresponding to at least one interface in the first server;
a processing module, configured to process the multiple first requests to obtain multiple second requests that are one-to-one corresponding to the multiple first requests, where the second requests carry: for each first request and a second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service, and the first request and the corresponding second request both carry parameters of the same service;
a sending module, configured to send at least one time of the multiple second requests to the second server, so that the second server performs pressure detection according to the multiple second requests;
wherein the invalidation request satisfies one or more of the following conditions:
the identifier of the server carried by the invalid request is different from the identifier of the first server;
the identifier of the interface carried by the invalid request is different from the identifier of any interface in the first server;
and the parameters of the service carried by the invalid request are out of the parameter range of any service provided by the first server.
5. The pressure detection device of claim 4, wherein the processing module is configured to:
determining a first interface corresponding to each first request in the plurality of first requests in the first server;
determining a second interface corresponding to the first interface in the second server according to a corresponding relationship between the interfaces in the first server and the interfaces in the second server, wherein each interface in the first server and the corresponding interface in the second server in the corresponding relationship are used for providing the same service;
and changing the identifier of the first server in each first request into the identifier of the second server, and changing the identifier of the first interface in each first request into the identifier of the second interface to obtain a second request corresponding to each first request.
6. A pressure detection system of a server, the pressure detection system comprising: the system comprises a first server, a second server and a pressure detection device;
the pressure detection device is used for acquiring a plurality of initial requests received by a first server in the process of providing services for a user, determining invalid requests in the plurality of initial requests, and acquiring a plurality of first requests except the invalid requests in the plurality of initial requests; the initial request carries an identifier of a server, an identifier of an interface, and a service parameter, and the first request carries: an identification of the first server, and an identification of an interface in the first server to which the first request corresponds, the plurality of first requests corresponding to at least one interface in the first server;
the pressure detection device is further configured to process the plurality of first requests to obtain a plurality of second requests corresponding to the plurality of first requests one to one, where the second requests carry: for each first request and a second request corresponding to the first request, the interface corresponding to the first request and the interface corresponding to the second request are used for providing the same service, and the first request and the corresponding second request both carry parameters of the same service;
the pressure detection device is further configured to send at least one time the plurality of second requests to the second server;
the second server is used for carrying out pressure detection according to the plurality of second requests;
wherein the invalidation request satisfies one or more of the following conditions:
the identifier of the server carried by the invalid request is different from the identifier of the first server;
the identifier of the interface carried by the invalid request is different from the identifier of any interface in the first server;
and the parameters of the service carried by the invalid request are out of the parameter range of any service provided by the first server.
CN201910889158.1A 2019-09-19 2019-09-19 Pressure detection method, device and system for server Active CN110620702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910889158.1A CN110620702B (en) 2019-09-19 2019-09-19 Pressure detection method, device and system for server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910889158.1A CN110620702B (en) 2019-09-19 2019-09-19 Pressure detection method, device and system for server

Publications (2)

Publication Number Publication Date
CN110620702A CN110620702A (en) 2019-12-27
CN110620702B true CN110620702B (en) 2021-06-01

Family

ID=68923604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910889158.1A Active CN110620702B (en) 2019-09-19 2019-09-19 Pressure detection method, device and system for server

Country Status (1)

Country Link
CN (1) CN110620702B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291260A (en) * 2007-09-25 2008-10-22 深圳市同洲电子股份有限公司 Load test system and method for stream media service
CN106528426A (en) * 2016-11-21 2017-03-22 北京蓝海讯通科技股份有限公司 Distributed computing system of test indexes
CN107171885A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of methods, devices and systems of detection service device running status
CN109753432A (en) * 2018-12-21 2019-05-14 瑞庭网络技术(上海)有限公司 A kind of interface performance test method, apparatus, server and system
CN109800137A (en) * 2018-12-06 2019-05-24 珠海西山居互动娱乐科技有限公司 A kind of server performance test method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446860B (en) * 2015-11-11 2017-12-15 上海欣方智能系统有限公司 Pressure testing system and method for testing based on asynchronism and concurrency mechanism
US20170331712A1 (en) * 2016-05-16 2017-11-16 Quest Software Inc. Performance tracking of an application during a single user session
US10291504B2 (en) * 2016-06-28 2019-05-14 Microsoft Technology Licensing, Llc Monitoring performance of a computer system
CN106230651A (en) * 2016-07-12 2016-12-14 众安在线财产保险股份有限公司 The pressure testing system of a kind of internet system and method
CN106101290B (en) * 2016-08-25 2020-12-11 Tcl科技集团股份有限公司 Server cluster management method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291260A (en) * 2007-09-25 2008-10-22 深圳市同洲电子股份有限公司 Load test system and method for stream media service
CN106528426A (en) * 2016-11-21 2017-03-22 北京蓝海讯通科技股份有限公司 Distributed computing system of test indexes
CN107171885A (en) * 2017-03-31 2017-09-15 北京奇艺世纪科技有限公司 A kind of methods, devices and systems of detection service device running status
CN109800137A (en) * 2018-12-06 2019-05-24 珠海西山居互动娱乐科技有限公司 A kind of server performance test method and system
CN109753432A (en) * 2018-12-21 2019-05-14 瑞庭网络技术(上海)有限公司 A kind of interface performance test method, apparatus, server and system

Also Published As

Publication number Publication date
CN110620702A (en) 2019-12-27

Similar Documents

Publication Publication Date Title
EP3389219B1 (en) Access request conversion method and device
CN110351283B (en) Data transmission method, device, equipment and storage medium
CN108234207B (en) Fault positioning method and device based on Content Delivery Network (CDN)
CN109586969A (en) Content distributing network disaster recovery method, device, computer equipment and storage medium
CN112600952B (en) Method and system for accelerating distribution of mobile terminal network
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN110620702B (en) Pressure detection method, device and system for server
EP3579526A1 (en) Resource file feedback method and apparatus
CN110838885B (en) System time synchronization method and related device
CN103051722B (en) A kind ofly determine the method whether page is held as a hostage and relevant device
US20150095496A1 (en) System, method and medium for information processing
CN112804301A (en) Method and device for determining equipment state, gateway and storage medium
CN110572857B (en) Network connection processing method and device, electronic equipment and storage medium
CN113067802A (en) User identification method, device, equipment and computer readable storage medium
EP2690560A2 (en) Method of benchmarking the behaviour of a replacement information system with the old system
CN112131267B (en) Count processing method, device, server and count processing system
CN111399749A (en) Data processing system and method
KR101545001B1 (en) Method and server apparatus for measuring the quality of web service
CN111538527A (en) Method and device for verifying gray release, electronic equipment and storage medium
CN110941805B (en) Identity authentication method and device
CN109688204B (en) File downloading method, node and terminal based on NDN (named data networking)
CN114153698A (en) Display monitoring method and device, electronic equipment and readable storage medium
CN113760398A (en) Interface calling method, server, system and storage medium
CN112860770A (en) Report generation method and device, electronic equipment and storage medium
CN112968933B (en) Data transmission method, device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant