CN113590403A - Pressure testing method, device, system, electronic equipment, storage medium and product - Google Patents

Pressure testing method, device, system, electronic equipment, storage medium and product Download PDF

Info

Publication number
CN113590403A
CN113590403A CN202110897953.2A CN202110897953A CN113590403A CN 113590403 A CN113590403 A CN 113590403A CN 202110897953 A CN202110897953 A CN 202110897953A CN 113590403 A CN113590403 A CN 113590403A
Authority
CN
China
Prior art keywords
pressure
test
target
target node
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110897953.2A
Other languages
Chinese (zh)
Other versions
CN113590403B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110897953.2A priority Critical patent/CN113590403B/en
Publication of CN113590403A publication Critical patent/CN113590403A/en
Application granted granted Critical
Publication of CN113590403B publication Critical patent/CN113590403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2236Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test CPU or processors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)

Abstract

The disclosure provides a pressure testing method, a pressure testing device, a pressure testing system, electronic equipment, a storage medium and a product, and relates to the technical field of artificial intelligence, in particular to the field of cloud computing. The specific implementation scheme is as follows: determining target test data for performing pressure test on a server to be tested; and acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in the pressure test cluster. And determining target node information by using the resource use information. The target node information is used to determine at least one target node of the plurality of sending nodes. And sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control the at least one target node to initiate a pressure test to the server to be tested by using the target test data. The disclosed embodiment improves the pressure test accuracy.

Description

Pressure testing method, device, system, electronic equipment, storage medium and product
Technical Field
The present disclosure relates to the field of artificial intelligence, and in particular, to a method, an apparatus, a system, an electronic device, a storage medium, and a product for pressure testing.
Background
With the rapid development of artificial intelligence technology, more and more industries attempt to encapsulate artificial intelligence services to provide intelligent services to the outside. Generally, a service end of the artificial intelligence service may be a cloud server, and the cloud server configured with the intelligent service may receive a service request of a user, respond to the service request of the user based on a provided intelligent service algorithm, and feed back a service result to the user.
In the related art, a distributed stress test method is used to test the maximum number of service requests processed by a service terminal. In a distributed stress testing scheme, a stress testing cluster may be used, and the stress testing cluster may be configured with a control node and a plurality of voltage sending nodes. The control node can control the plurality of pressure sending nodes to generate a plurality of service requests at the same time, and simultaneously send the generated service requests to the server to be tested so as to test the processing capacity of the server to be tested and obtain a test result.
However, if the number of requests for controlling a plurality of service requests generated by a plurality of pressure nodes by a control node is large, and due to the limitation of the hardware resource of the press machine, the number actually generated by the pressure nodes may not reach the number of requests set by the control node, so that the test result is not accurate enough.
Disclosure of Invention
The disclosure provides a pressure testing method, a pressure testing device, a pressure testing system, electronic equipment, a storage medium and a product for maximum flow of an intelligent server.
According to a first aspect of the present disclosure, there is provided a pressure testing method comprising:
determining target test data for performing pressure test on a server to be tested;
acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in a pressure test cluster;
determining target node information in the plurality of transmitting nodes by using the resource use information; the target node information is used to determine at least one target node of the plurality of transmitting nodes.
And sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
According to a second aspect of the present disclosure, there is provided a pressure testing method comprising:
acquiring target node information and target test data; the target node information is information of at least one target node determined from a plurality of pressure sending nodes based on resource use information corresponding to hardware resources of the plurality of pressure sending nodes in the pressure test cluster;
determining the at least one target node from the plurality of transmitting nodes according to the target node information;
and controlling the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
According to a third aspect of the present disclosure, there is provided a pressure testing apparatus comprising:
the data determining unit is used for determining target test data for performing pressure test on the server to be tested;
the information acquisition unit is used for acquiring resource use information corresponding to hardware resources of a plurality of transmitting nodes;
the node selection unit is used for determining target node information by utilizing the resource use information; the target node information is used for determining at least one target node in the plurality of transmitting nodes;
and the test control unit is used for sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
According to a fourth aspect of the present disclosure, there is provided a pressure testing device comprising
The first acquisition unit is used for acquiring target node information and target test data; the target node information is information of at least one target node determined from a plurality of pressure sending nodes based on resource use information corresponding to hardware resources of the plurality of pressure sending nodes in the pressure test cluster;
a node determining unit, configured to determine the at least one target node from the plurality of transmitting nodes according to the target node information;
and the test control unit is used for controlling the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
According to a fifth aspect of the present disclosure, there is provided a pressure testing system comprising: the pressure testing system comprises electronic equipment and a pressure testing cluster connected with the electronic equipment, wherein the pressure testing cluster comprises a control node and a plurality of pressure sending nodes; the plurality of pressure sending nodes are connected with a server to be tested;
the electronic device is configured to: determining target test data for performing pressure test on a server to be tested; acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in a pressure test cluster; determining target node information by using the resource use information; the target node information is used for determining at least one target node in the plurality of transmitting nodes; and sending the target node information and the target test data to a control node of the pressure test cluster.
The control node is configured to: acquiring the target node information and target test data sent by the electronic equipment; determining the at least one target node from the plurality of transmitting nodes according to the target node information; and controlling the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
According to a sixth aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect or the second aspect.
According to a seventh aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of the first or second aspect.
According to an eighth aspect of the present disclosure, there is provided computer program products comprising: a computer program, stored in a readable storage medium, from which at least one processor of an electronic device can read the computer program, execution of the computer program by the at least one processor causing the electronic device to perform the method of the first aspect or the second aspect.
According to the technology disclosed by the invention, hardware resources of a plurality of pressure sending nodes are monitored so as to obtain resource use information, and then target node information of at least one target node is determined by utilizing the resource use information, so that the target node information and target test data are sent to a control node of a pressure test cluster. And the control node of the pressure test cluster determines at least one target node through the target node information so as to control the at least one target node to perform pressure test on the server to be tested by using the target test data. By monitoring the hardware resources of the pressure node, the service condition of the pressure node can be relieved in time, the pressure-measuring node is adjusted, the timeliness and effectiveness of the pressure test are improved, and a more accurate test result is obtained.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic diagram of a first network architecture for a stress testing method provided in accordance with the present disclosure;
FIG. 2 is a schematic diagram of a second network architecture for a stress testing method provided in accordance with the present disclosure;
FIG. 3 is a flow chart of a pressure testing method according to a first embodiment of the present disclosure;
FIG. 4 is a flow chart of yet another pressure testing method according to a second embodiment of the present disclosure;
FIG. 5 is a flow chart of yet another pressure testing method according to a third embodiment of the present disclosure;
FIG. 6 is a flow chart of yet another pressure testing method according to a fourth embodiment of the present disclosure;
FIG. 7 is a flow chart of yet another pressure testing method according to a fifth embodiment of the present disclosure
FIG. 8 is a flow chart of yet another method of pressure testing according to a sixth embodiment of the present disclosure;
FIG. 9 is a flow chart of yet another method of pressure testing according to a seventh embodiment of the present disclosure;
FIG. 10 is a diagram of a stress test scenario in which embodiments of the present disclosure may be implemented;
FIG. 11 is a flow chart of yet another method of pressure testing according to an eighth embodiment of the present disclosure;
FIG. 12 is a schematic structural diagram of a pressure testing device according to a ninth embodiment of the present disclosure;
fig. 13 is a schematic structural view of a pressure testing apparatus according to a tenth embodiment of the present disclosure;
FIG. 14 is a block diagram of an electronic device used to implement the method of stress testing of an embodiment of the present disclosure;
fig. 15 is a schematic structural diagram of a pressure testing system according to an eleventh embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as 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 present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The present disclosure provides a pressure testing method, device and system, an electronic device, and a storage medium, which are applied to the field of intelligent service testing in artificial intelligence to achieve the purpose of improving testing accuracy.
In the related art, artificial intelligence algorithms can be packaged as services for providing intelligent computation to the outside, and these services can be referred to as intelligent services. Generally, the intelligent service may be configured in a cloud server, and the cloud server may receive a service request initiated by a user, and respond to the service request by using a configured artificial intelligence algorithm to obtain a calculation result. For example, a server of a face recognition service may receive an image provided by a user, recognize a face in the image, and further recognize the identity of the user. In order to better provide intelligent services, it is necessary to confirm the maximum number of service requests that a server of an artificial intelligence service can handle at the same time. Generally, when the maximum processing amount of the service request processed by the server can be tested by using a distributed stress test method, the maximum processing amount of the service request can be tested by using a stress test cluster. The stress test cluster may include a control node and a plurality of voltage emitting nodes. The control node may control the plurality of transmitting nodes to generate a plurality of service requests at the same time, and simultaneously transmit the respective generated service requests of the plurality of transmitting nodes to the server. The server receives a plurality of service requests initiated by a plurality of pressure-sending nodes and processes and responds to the plurality of service requests. The method comprises the steps of monitoring parameters such as request success rate, request average time consumption and the like of a plurality of service requests by the server side to obtain a test result of the server side. However, since the number of requests set by the user is generally large, the number of requests initiated per transmitting node is also large. Due to the limitation of the hardware resources of the pressure nodes, the number of requests of the service requests actually generated by each pressure node may not reach the set number of requests, so that the server cannot receive enough service requests, and the obtained test result is not accurate enough.
In order to solve the technical problem, the inventor thinks of monitoring the hardware resources of the nodes participating in voltage sending so as to accurately control the use condition of the hardware resources of the nodes and realize accurate voltage sending control. Accordingly, the inventors propose a technical solution of the present disclosure.
In the embodiment of the disclosure, when target test data for performing a pressure test on a server to be tested is determined, resource usage information corresponding to hardware resources of a plurality of pressure sending nodes may be obtained, and then, the resource usage information is used to determine target node information of at least one target node, so that the target node information and the target test data are sent to a control node of a pressure test cluster. And the control node of the pressure test cluster determines at least one target node through the target node information so as to control the at least one target node to perform pressure test on the server to be tested by using the target test data. By monitoring the resource use information corresponding to the hardware resources of the plurality of pressure sending nodes, the resource use conditions of the plurality of pressure sending nodes can be known in time, the target node information of at least one target node which can participate in the test can be accurately obtained, the preparation of the at least one target node which participates in the pressure test is controlled, the number of service requests generated by each target node is more accurate, an accurate test result is obtained, and the test efficiency is improved.
Fig. 1 is a schematic diagram of a first network architecture for performing a pressure test on a server under test according to the present disclosure, as shown in fig. 1, the network architecture may include a typical server under test 1, and the server under test may be a cloud configured with an intelligent service. The server 1 to be tested can be in network connection with the pressure test cluster 2 through a local area network or a wide area network. The pressure test cluster 2 may be a master-slave distributed cluster, and a master node, that is, a control node 21, and a plurality of pressure nodes 22 are connected to a network through a local area network or a wide area network. The control node 21 of the stress test cluster 2 may be networked with the electronic device 3 via a local area network or a wide area network. The electronic device 3 may be configured with a pressure testing method provided according to any one of the embodiments shown in fig. 2-9 of the present disclosure. The electronic device 3 may obtain resource usage information corresponding to hardware resources of the multiple pressure nodes 22 in the pressure test cluster 2, and determine target node information of at least one target node in the multiple pressure nodes by using the resource usage information, so as to send the target node information and target test data for performing a pressure test on the server 1 to be tested to the control node 21. The control node 21 and the plurality of voltage-sending nodes 22 may be, for example, computers, server nodes, cloud server nodes, etc., and the specific type of each node in the stress test cluster is not limited in this disclosure. The control node 21 may be configured with the pressure test method provided according to the embodiment shown in fig. 11 of the present disclosure, and may determine at least one target node from the multiple sending nodes 22 according to the target node information, and then control the at least one target node to initiate a pressure test to the to-be-serviced terminal by using the target test data.
Fig. 2 is a schematic diagram of a second network architecture for performing a pressure test on a server under test according to the present disclosure, which is different from fig. 1 in that the pressure test cluster 2 may further establish a network connection with a monitoring node 4 through a local area network or a wide area network. The monitoring node 4 may detect resource usage information corresponding to a hardware resource of at least one target node participating in pressure sending in the plurality of pressure sending nodes 22 in the pressure testing cluster 2. The monitoring node 4 may establish a network communication connection with the electronic device 3 through a local area network or a wide area network, and send resource usage information obtained through monitoring to the electronic device 3 through the network, so that the electronic device 3 determines target node information of at least one target node in the plurality of voltage-sending nodes by using the resource usage information. In practical application, in order to save hardware resources, the monitoring node 4 may also be any node in the pressure test cluster 2, the monitoring node 4 shown in fig. 2 is not arranged in the pressure test cluster 2 only to illustrate that a terminal that monitors a plurality of voltage-sending nodes needs to exist, a specific configuration of the terminal may be set according to an actual use requirement, the example shown in fig. 2 is only one network architecture, and should not constitute a specific limitation to the system architecture of the present disclosure.
Technical solutions of embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
As shown in fig. 3, which is a flowchart of a pressure testing method according to a first embodiment of the disclosure, the method may include the following steps:
301: and determining target test data for performing pressure test on the server to be tested.
In this embodiment, in the network structure shown in fig. 1, the home device may be an electronic device. In practical applications, the electronic device may be a notebook, a computer, a super personal computer, a cloud server, and the like, and the specific type of the electronic device in the embodiment of the present disclosure is not limited too much.
The server to be tested may be, for example, the cloud server shown in fig. 1, and the server to be tested may provide a test service to the outside. The service processing method includes the steps of providing an external Interface, for example, an SDK (Software Development Kit) or an API (Application Programming Interface), to communicate with a user terminal of a user, receiving a service request, processing the service request based on a configured intelligent service algorithm, obtaining a service result, and feeding the service result back to the user.
The target test data may be at least one test data related to a pressure test performed on the server to be tested. Taking an image recognition scene as an example, the target test data may be an image that needs to be subjected to an image recognition test. Taking a data processing scenario as an example, the target test data may be original test data that needs to be processed. The target test data can be provided by a user initiating a test request of the server under test.
302: and acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in the pressure test cluster.
The resource usage information may be usage data of hardware resources of at least one historical target node that previously participated in the stress test.
The resource usage information may include, for example: CPU (central processing unit) usage information, Memory (Memory) usage information, and/or throughput information of each transmitting node.
303: and determining target node information by utilizing the resource use information.
The target node information is used for determining at least one target node in the plurality of transmitting nodes.
Optionally, the resource usage information may be used to determine at least one target node of the plurality of transmitting nodes participating in the transmitting test. The target node information may include the number of nodes. In some application scenarios, the target node information may also include a node identification.
304: and sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control at least one target node to initiate a pressure test to the server to be tested by using the target test data.
And the target node information and the target test data are sent to the control node of the pressure test cluster by the electronic equipment. The control node may obtain target node information and target test data. The control node can also determine at least one target node from the plurality of pressure sending nodes according to the target node information so as to control the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
Any target node can receive target test data sent by the control node, generate at least one service request according to the target test data, and send the at least one service request to the server to be tested. The at least one service request sent to the server under test may be referred to as a request stream.
As a possible implementation, the target test data may include at least one test data, and any target node may generate at least one service request according to the at least one test data. In an alternative, one service request may be generated by using each test data, and in another alternative, a plurality of service requests may be generated by using each test data to obtain at least one service request corresponding to at least one test data.
In this embodiment, when determining target test data for performing a pressure test on a server to be tested, resource usage information corresponding to hardware resources of a plurality of pressure sending nodes may be obtained, and then, the resource usage information is used to determine target node information of at least one target node, so that the target node information and the target test data are sent to a control node of a pressure test cluster. And the control node of the pressure test cluster determines at least one target node through the node information so as to control the at least one target node to perform pressure test on the server to be tested by using the target test data. By monitoring the resource use information corresponding to the hardware resources of the plurality of pressure sending nodes, the resource use conditions of the plurality of pressure sending nodes can be known in time, the target node information of at least one target node which can participate in the test can be accurately obtained, the preparation of the at least one target node which participates in the pressure test is controlled, the number of service requests generated by each target node is more accurate, an accurate test result is obtained, and the test efficiency is improved.
The pressure test of the server to be tested can be initiated by a user. Fig. 4 is a flowchart of a pressure testing method provided by a second embodiment of the present disclosure, which may include the following steps:
401: and responding to a pressure test request initiated by a user for the server to be tested, and acquiring pressure test information provided by the user.
Optionally, a service initiation page may be provided through which the user may initiate a stress test request to the electronic device. The user may input test information of the service end to be tested in the service initiation page, which may include information such as a service interface or a service address of the service end to be tested, for example. The user can also provide the pressure test information of the server to be tested through the service initiating page.
402: and determining target test data participating in the pressure test according to the pressure test information.
Alternatively, the target test data may be determined from stress test information provided by the user. The target test data may also detect that the user was directly uploaded by the user.
403: and acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in the pressure test cluster.
404: and determining target node information by utilizing the resource use information.
The target node information is used for determining at least one target node in the plurality of transmitting nodes.
405: and sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control at least one target node to initiate a pressure test to the server to be tested by using the target test data.
In this embodiment, step 301 in the pressure testing method provided in the embodiment shown in fig. 3 is further refined, except for step 401 to step 402, the specific implementation of other steps in this embodiment may refer to the relevant contents recorded in other embodiments, and details are not repeated here.
In this embodiment, a user may initiate a test request to a server to be tested, and implement external provision of test services by interacting with the user, thereby implementing service modularization and providing high-efficiency test services to improve test efficiency.
As an embodiment, an alternative implementation of step 402 for determining target test data participating in the stress test according to the stress test information is as follows:
analyzing the pressure test information, and acquiring pressure test demand information and a data storage address provided by a user;
and acquiring target test data from the storage space corresponding to the data storage address according to the pressure test requirement information.
Alternatively, the stress requirement information and the data storage address may be provided by the user in a stress test page. The pressure test requirement information may be selection information of test data set by the user for the service content of the service end to be tested. The data storage address may be an address link accessible by the electronic device, for example, a disk address, a network disk address, a database access address, a web page address, and the like.
In the above embodiment, in the step of obtaining the target test data, obtaining the target test data from the storage space corresponding to the data storage address according to the pressure test requirement information may specifically include:
pulling a plurality of original test data from the storage space corresponding to the data storage address;
and selecting target test data from the plurality of original test data according to the pressure test requirement information.
The target test data may be at least one test data satisfying the pressure test requirement selected from the plurality of original test data according to the pressure test requirement information.
The pressure measurement requirement information may include: data selection conditions, the number of test data, the type of test data, and the like.
For convenience of understanding, taking face recognition as an example, a plurality of original images may be pulled from the storage space corresponding to the data storage address, where the plurality of original images may include: face images, landscape images, animal images, etc. The pressure measurement requirement information may be: 3 face images with resolution higher than 520 x 520 are selected. Wherein the selection conditions are as follows: the resolution is higher than 520 x 520, the number of test data is 3, and the type of test data is a face image. At this time, the target test data may be 3 images selected from the face images, which include faces and have a resolution higher than 520 × 520.
As shown in fig. 5, a flow chart of a pressure testing method provided in a third embodiment of the present disclosure may include the following steps:
501: and determining target test data for performing pressure test on the server to be tested.
502: and acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in the pressure test cluster.
503: and under the condition that the plurality of pressure sending nodes do not meet the pressure sending termination condition, determining the number of the pressure sending nodes participating in the pressure test by utilizing the resource use information.
504: and generating target node information according to the number of the nodes.
The target node information may include the number of nodes.
The target node information is used for the control node to determine at least one target node from the plurality of transmitting nodes according to the number of the nodes.
Furthermore, in some embodiments, the at least one target node may be determined by the electronic device as well as by the control node. When the electronic device determines at least one target node, the electronic device may select the target node with the node number from the plurality of voltage-sending nodes according to the node number, and generate the target node information by using the node identifier of the selected target node and the node number. When the control node determines at least one target node, the target node information may include the number of nodes.
505: and sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control at least one target node to initiate a pressure test to the server to be tested by using the target test data.
In this embodiment, step 303 in the pressure testing method provided in the embodiment shown in fig. 3 is further refined, except for step 503 to step 504, the specific implementation of other steps in this embodiment may refer to the relevant contents described in other embodiments, and details are not repeated here.
In this embodiment, after the resource usage information of the hardware resources of the multiple pressure nodes in the pressure test cluster is obtained, the node number of the pressure node participating in the pressure test may be determined by using the resource usage information under the condition that the multiple pressure nodes do not satisfy the pressure termination condition, so as to generate the node number of the at least one target node according to the node number. The pressure sending conditions of the plurality of pressure sending nodes are accurately monitored, so that the pressure sending termination nodes can be accurately controlled, the node number of the pressure sending nodes participating in the pressure test is determined by utilizing the resource use information when the pressure sending termination conditions are not met, the node number of at least one target node participating in the pressure sending is accurately acquired, the accurate test is realized, and the test effectiveness and the test precision are improved.
In some embodiments, in order to make an accurate determination on the voltage transmitting node, after step 505, the method may further include:
and under the condition that the pressure sending nodes meet the pressure sending termination condition, stopping performing pressure test on the server to be tested. Meanwhile, prompt information of pressure test failure can be output.
Optionally, outputting the prompt message of the failure of the pressure test may include: and sending the prompt message of the pressure test failure to the user side so that the user side can display the prompt message of the pressure test failure for the user.
After the pressure test of the server to be tested is stopped, the number of nodes can be recovered to the number of nodes when the pressure test is executed for the first time, that is, the initial number of nodes. For example, generally, when the number of nodes when the stress test is performed for the first time is 1, the number of recoverable nodes is 1. When the user initiates the stress test again, the stress test is carried out on the server to be tested from 1 target node.
In this embodiment, when the plurality of pressure sending nodes satisfy the pressure sending termination condition, the pressure test on the server to be tested may be stopped, and prompt information indicating that the pressure test fails is output. When the pressure test is stopped, the user is prompted, so that the user can be ensured to timely know the test failure result, the message is timely notified, and effective interaction is realized.
In order to accurately determine whether the pressure node satisfies the pressure termination condition, an optional implementation manner of whether the pressure nodes satisfy the pressure termination condition is as follows:
and acquiring the historical node number of at least one target node used in the previous pressure test.
And when the number of the historical nodes is less than the total number of the nodes of the plurality of the pressure nodes, determining that the plurality of the pressure nodes do not meet the pressure termination condition.
And when the number of the historical nodes is equal to the total number of the nodes of the plurality of the pressure nodes, determining that the plurality of the pressure nodes meet the pressure termination condition.
The total number of the nodes may be the number of all the pressure nodes that can participate in pressure, and when all the pressure nodes can send pressure, the total number of the nodes may be the number of the nodes of the pressure nodes.
In the embodiment, the pressure sending termination conditions of the plurality of pressure sending nodes are accurately judged by the node number, and the judgment mode of the node number is directly adopted, so that the method is simple and accurate, and the judgment efficiency and the judgment accuracy are higher.
The resource usage information may be usage data of a hardware resource of a target node currently participating in the test among the plurality of pressure sending nodes of the pressure test cluster.
Specifically, the resource usage information may include: at least one of a throughput per second of the at least one historical target node, a utilization of the central processor, and a utilization of the memory at a previous stress test.
In this embodiment, the resource usage information is accurately defined according to the information such as the throughput per second of the at least one target node, the usage rate of the central processing unit, and the usage rate of the memory, so as to specify the specific content of the resource usage information, and accurately implement the subsequent steps such as node determination and condition judgment by using the more detailed resource usage information, thereby providing a guarantee for further improving the test precision.
The resource usage information and the number of historical nodes can be used for simultaneously measuring whether the plurality of sending nodes reach the sending termination condition currently. And when the number of the historical nodes is less than the total number of the nodes of the plurality of the pressure nodes, determining that the plurality of the pressure nodes do not meet the pressure termination condition. When the number of the historical nodes is equal to the total number of the nodes of the plurality of the pressure nodes, whether the plurality of the pressure nodes meet the pressure termination condition can be further judged by utilizing the resource use information.
When the number of the historical nodes is equal to the total number of the nodes of the plurality of the pressure nodes, determining that the plurality of pressure nodes meet the pressure termination condition may include: when the number of the historical nodes is equal to the total number of the nodes of the plurality of pressure-transmitting nodes, the throughput Per Second comprehensively generated by the plurality of pressure-transmitting nodes is less than the QPS (Query Per Second) required by the pressure measurement service, and the utilization rate of the CPUs or memories of all the pressure-transmitting nodes is more than 85% of all the resources, the plurality of pressure-transmitting nodes are determined to meet the pressure-transmitting termination condition.
When the number of the historical nodes is equal to the total number of the nodes of the plurality of pressure transmitting nodes, the throughput per second comprehensively generated by the plurality of pressure transmitting nodes is greater than the QPS required by the pressure measurement service, and the utilization rate of the CPUs or memories of all the pressure transmitting nodes is not all greater than 85% of all the resources, the plurality of pressure transmitting nodes are determined not to meet the pressure transmission termination condition, the pressure measurement task amount can be continuously increased, and the pressure measurement task is continuously executed. Particularly for the concurrent test scenario, the step of determining the concurrent number of the concurrent tests can be continuously executed under the condition that the concurrent tests are executed on the server side to be tested.
When the historical node number of at least one target node used in the previous pressure test is obtained, the current node number can be calculated according to the historical node number. Thus, step 504: under the condition that the plurality of pressure nodes do not meet the pressure termination condition, determining the number of the pressure nodes participating in the pressure test by using the resource use information may specifically include:
and under the condition that the plurality of pressure sending nodes do not meet the pressure sending termination condition, determining the node increment needing to be added by utilizing the resource use information.
And calculating the sum of the historical node number and the node increment to obtain the node number.
Alternatively, when the number of the history nodes is less than the total number of the plurality of the transmitting nodes, it may be determined that the plurality of the transmitting nodes do not satisfy the transmitting termination condition. The resource usage information may include: at least one of a throughput per second of the at least one historical target node, a utilization of the central processor, and a utilization of the memory at a previous stress test. When the historical node number is less than the total number of nodes of the plurality of transmitting nodes, determining the number of nodes that need to be increased by using the resource usage information may include: when the number of the historical nodes is smaller than the total number of the nodes of the plurality of pressure-sending nodes, if the throughput Per Second generated by the at least one historical target node is smaller than the QPS (Query Per Second) required by the pressure measurement service and the utilization rate of the CPUs or memories of all the pressure-sending nodes is larger than 85% of all the resources, calculating the sum of the number of the historical nodes and the node increment of the at least one historical target node, and obtaining the number of the nodes.
The node increment can be set according to actual use requirements, and the number of nodes increased in each test is increased. For example, the node increment may be set to 1.
In this embodiment, when the plurality of pressure nodes do not satisfy the pressure termination condition, the node number of at least one target node of the plurality of pressure nodes is determined by using the resource usage information, so that the node number is related to the resource usage information of the hardware resource, the obtained node number is more accurate, when the pressure test is performed on the at least one target node corresponding to the node number, the generated actual test request stream is not affected by the hardware resource, the pressure error caused by insufficient hardware resource is avoided, and the test precision is improved.
In the actual test process, a concurrent test mode can be adopted to carry out a cycle test on the server to be tested, and the task quantity is increased continuously from a smaller task quantity so as to continuously increase the service flow sent by the pressure node and realize the accurate test on the server to be tested.
As shown in fig. 6, a flow chart of a pressure testing method according to a fourth embodiment of the present disclosure is provided, and the method may include the following steps:
601: and determining target test data for performing pressure test on the server to be tested.
602: and acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in the pressure test cluster.
603: and determining the concurrency number of the concurrent tests under the condition of executing the concurrent tests on the server side to be tested.
604: and under the condition that the plurality of pressure sending nodes do not meet the pressure sending termination condition, determining the number of the pressure sending nodes participating in the pressure test by utilizing the resource use information.
605: and determining the task quantity of the at least one target node for respectively executing the concurrent tasks according to the number of the nodes and the concurrent number.
Alternatively, the task amount may be the number of threads started by the corresponding target node, and each thread may generate a service request according to the target test data when being started.
The task amount of the concurrent tasks respectively executed by the at least one target node can be determined according to the quotient and the remainder of the concurrent number and the node number. Specifically, the node number is k, the concurrency number is n as an example, for an ith target node of the k target nodes, if i > n% k (a remainder of the concurrency number and the node number), the task amount required to be executed by the ith target node is n/k (a quotient of the concurrency number and the node number is an integer), and if i < ═ n% k, the task amount required to be executed by the ith target node is n/k + 1. Wherein 1< ═ i < ═ k; k. n and i are positive integers. n/k is the integer of the quotient of n and k.
606: and generating target node information according to the number of the nodes and the task amount of the at least one target node for respectively executing the concurrent tasks.
The target node information is used for the control node to determine at least one target node from the plurality of transmitting nodes according to the number of the nodes; and controlling at least one target node by using the target test data to initiate a pressure test to the server to be tested according to respective task amount.
Optionally, generating the node information of the at least one target node according to the number of nodes and the task amount of the at least one target node for respectively executing the concurrent tasks may include: the method comprises the steps of obtaining task quantities of concurrent tasks respectively executed by at least one target node, obtaining at least one task quantity, and packaging the node quantity and the at least one task quantity to generate target node information. After receiving the target node information, the control node can acquire the node number and at least one task amount in the target node information, select at least one target node from the plurality of pressure-sending nodes according to the node number, and sequentially distribute the at least one task amount to the at least one target node, so that each target node acquires the corresponding task amount, and initiate a pressure test to the server to be tested according to the corresponding task amount.
Optionally, the initiating, by any target node, a stress test to the server according to the respective task amount may specifically be to start a corresponding number of threads or processes according to the task amount, obtain a plurality of threads or processes, generate at least one service request according to the target test data, and simultaneously send all the service requests generated by all the threads or processes to the server to be tested in a request flow manner.
607: and sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control at least one target node by using the target test data and initiate pressure test to the server to be tested according to respective task quantity.
Optionally, the task amount of the concurrent tasks respectively executed by the at least one target node may also be determined by the control node. After the control node determines the at least one target node, the task amount of the at least one target node for respectively executing the concurrent tasks may be determined according to the number of nodes and the concurrent number. When at least one target node is determined, the task amount of each target node may be determined according to the task amount determination method detailed in step 605, so as to achieve accurate task amount allocation.
In this embodiment, a concurrent test mode may be adopted to perform a pressure test on the server to be tested. The concurrency quantity can be continuously increased through the concurrency test, the accurate test of the server to be tested is realized, and the multiple concurrencies of the nodes are controlled. By using the concurrent testing mode, the rapid concurrency can be realized. The test efficiency and the test precision are improved.
In order to accurately test the server to be tested, the server to be tested can be linearly and circularly tested simultaneously. The number of tests per concurrent test may be determined by the number of historical concurrent tests. As a possible implementation manner, determining the concurrency number of the concurrent tests under the condition that the concurrent tests are executed on the server to be tested includes:
acquiring the historical concurrency number of the previous concurrency test under the condition of executing the concurrency test on the server to be tested;
and determining the concurrency number of the concurrency test according to the historical concurrency number and the preset concurrency increment.
The concurrency number may be the sum of the historical concurrency number and the concurrency increment.
In this embodiment, the concurrency number of the concurrency test is accurately calculated in a manner of setting the concurrency increment, so that the acquisition efficiency and accuracy of the concurrency number are improved.
Optionally, the concurrency number may also be obtained by multiplying the concurrency number and the single concurrency number.
In practical applications, a maximum number of concurrencies may be set. And judging the concurrency condition through the maximum concurrency number, executing the concurrency test before the maximum concurrency number is larger than the maximum concurrency number, and stopping executing the concurrency test after the maximum concurrency number is larger than the maximum concurrency number. The number of concurrencies being greater than the maximum number of concurrencies may be the number of concurrencies being less than or equal to the maximum number of concurrencies.
As an embodiment, the method further comprises:
acquiring the maximum concurrency quantity and the concurrency increment set by a user;
determining the task quantity of at least one target node for respectively executing the concurrent tasks according to the number of the nodes and the concurrent number, wherein the task quantity comprises the following steps:
and under the condition that the concurrency number is not greater than the maximum concurrency number, determining the task quantity of the concurrent tasks respectively executed by the at least one target node according to the node number and the concurrency number.
In the embodiment, the concurrent number is accurately monitored, so that the concurrent tasks can be accurately distributed, the task distribution accuracy is improved, and the invalid distribution is avoided.
As an alternative, the node number and the concurrency number are acquired accurately. As shown in fig. 7, in the foregoing embodiment, the obtaining, in step 502, resource usage information corresponding to hardware resources of multiple pressure sending nodes in the pressure test cluster may include:
701: and acquiring resource use information of at least one historical target node in the previous pressure test of the pressure test cluster.
The resource usage information may include: throughput per second, utilization of central processing units, utilization of memory.
After step 701 is executed, it may be obtained to execute the foregoing embodiment, and whether the multiple voltage sending nodes meet the termination condition is determined, where a specific implementation manner is as follows:
702: judging whether the node number of at least one historical transmitting node reaches the total node number, if so, executing step 703; if not, step 708 is performed.
703: judging whether at least one historical target node achieves the condition that the throughput per second comprehensively generated by the historical target node is smaller than the QPS required by the pressure measurement service and the utilization rate of the CPUs or the memories of all the pressure sending nodes is larger than 85% of all the resources, if so, executing steps 704-705; if not, steps 706-707 are executed.
One embodiment of determining the node number of the pressure nodes participating in the pressure test is as follows:
704: and calculating the sum of the historical node number of at least one historical target node and the node increment to obtain the node number.
One embodiment of determining the number of concurrencies for a concurrency test is as follows:
705: determining the number of concurrencies to participate in the stress test may be the historical number of concurrencies for the previous concurrency test.
And under the condition that the hardware resource of at least one historical target node reaches the use limit, the number of the nodes can be increased, and the last time of pressure measurement task is executed again.
Yet another embodiment for determining the node number of the pressure transmitting nodes participating in the pressure test is as follows:
706: and determining the historical node number of at least one historical target node as the node number.
Yet another embodiment for determining the number of concurrencies for a concurrency test is as follows:
707: and determining the concurrency number of the concurrency test according to the historical concurrency number and the preset concurrency increment.
Under the condition that the hardware resource of at least one historical target node does not reach the use limit, the pressure task amount can be increased, and the pressure sending function of the pressure sending node is further developed.
708: judging whether at least one historical target node achieves the condition that the throughput per second comprehensively generated by the historical target node is less than the QPS required by the pressure measurement service and the utilization rate of the CPUs or the memories of all the pressure sending nodes is more than 85% of all the resources, if so, executing a step 709; if not, step 707 is performed.
709: and stopping the pressure test of the server side to be tested, and outputting prompt information of pressure test failure.
After the execution of step 707 or step 705 is finished and the number of nodes and the concurrency number are obtained, other steps in this disclosure may be performed, for example, determining the task amount of the concurrent task respectively executed by at least one target node according to the number of nodes and the concurrency number. A step of determining whether the number of concurrencies is greater than a maximum number of concurrencies may also be performed.
In this embodiment, a detailed description is given to a specific obtaining manner of the number of nodes and the number of concurrency, and other undescribed steps are the same as some steps in other embodiments, and are not described herein again for simplicity of description.
After the pressure test is initiated on the server to be tested, the pressure test result of the server to be tested can be obtained. As shown in fig. 8, a flowchart of a pressure testing method according to a sixth embodiment of the present disclosure is provided, where the method includes the following steps:
801: and determining target test data for performing pressure test on the server to be tested.
802: and acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in the pressure test cluster.
803: and determining target node information by utilizing the resource use information. The target node information is used for determining at least one target node in the plurality of transmitting nodes.
804: and sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control at least one target node to initiate a pressure test to the server to be tested by using the target test data.
805: and acquiring a pressure test result corresponding to the pressure test initiated by at least one target node to the server side to be tested.
The pressure test result may be processing data of the service end to be tested on the request flow, and the pressure test result may include: request success rate, average processing time and other data.
In this embodiment, after initiating the pressure test to the server to be tested, a pressure test result corresponding to the initiation of the pressure test to the server to be tested by the at least one target node may be obtained. And completing the pressure test by acquiring the pressure test result of the server to be tested, so as to obtain an accurate test result.
And judging whether the server to be tested meets the test termination condition or not by using the pressure test result. In execution step 805: after obtaining a pressure test result corresponding to a pressure test initiated by at least one target node to the server to be tested, the method may further include:
and under the condition that the server to be tested does not meet the test termination condition, initiating a pressure test on the server to be tested, and returning to the step of acquiring resource use information corresponding to the hardware resources of the plurality of pressure sending nodes in the pressure test cluster to continue executing.
In this embodiment, under the condition that the server to be tested does not satisfy the test termination condition, the pressure mapping can be continuously performed on the server to be tested, so as to obtain a more accurate test result of the server to be tested through a continuous test mode.
As an embodiment, after sending the target node information and the target test data to the control node of the stress test cluster to instruct the control node to control at least one target node to initiate a stress test to the server to be tested by using the target test data, the method further includes:
acquiring a pressure test result corresponding to a pressure test initiated by at least one target node to a server to be tested;
judging whether the server to be tested meets the test termination condition or not according to the pressure test result;
initiating a pressure test to the server to be tested under the condition that the server to be tested does not meet the test termination condition; and/or stopping initiating the pressure test to the server to be tested under the condition that the server to be tested meets the test termination condition, and outputting a pressure test result for the user. In this embodiment, when the pressure test result is obtained, whether the pressure test for the server to be tested is terminated can be determined according to the pressure test result, when the test termination condition is not satisfied, the test can be continuously initiated to the server to be tested, the processing limit of the server to be tested is continuously tested in a cyclic test mode, the obtained test result is more accurate than a single test, and the accuracy of the test result is improved.
In one possible design, when the server to be tested meets the test termination condition, the pressure test initiated on the server to be tested is stopped, and a pressure test result is output for the user.
In this embodiment, when the server to be tested satisfies the test termination condition, the pressure test on the user may be stopped. And accurate control of the pressure test is realized.
In the above embodiment, sending the target node information and the target test data to the control node of the stress test cluster may include:
generating a pressure test instruction according to the target node information and the target test data;
and sending a pressure test instruction to a control node of the pressure test cluster.
In this embodiment, after the target node information and the target test data are obtained, the target node information and the target test data can be sent to the control node of the pressure test cluster in the form of a pressure test instruction, so that the information transmission efficiency is higher, and the accurate test of an instruction mode is realized.
For describing the technical solution of the present disclosure in detail, as shown in fig. 9, a flowchart of a pressure testing method provided for a seventh embodiment of the present disclosure may include the following steps:
901: and determining target test data for performing pressure test on the server to be tested.
The specific implementation manner of each step in this embodiment is the same as the implementation manner of the same step in the above embodiment, and for the sake of simplicity of description, details are not described here again.
902: and acquiring resource use information corresponding to the hardware resource of at least one historical pressure sending node at the previous time in the pressure test cluster.
903: and judging whether at least one historical pressure node reaches the total node amount, if so, executing 904, and if not, executing 906.
904: and determining the node number of the pressure sending nodes participating in the pressure test by utilizing the resource use information.
905: the maximum number of concurrencies set by the user is acquired and then executed 907.
The target node information is used for the control node to determine at least one target node from the plurality of transmitting nodes according to the number of the nodes.
906: and stopping the pressure test of the server side to be tested, and outputting prompt information of pressure test failure.
907: and determining the concurrency number of the concurrent tests under the condition of executing the concurrent tests on the server side to be tested.
908: it is determined whether the number of concurrencies is greater than the maximum number of concurrencies, if so, step 906 is performed, and if not, step 909 is performed.
909: and determining the task quantity of the at least one target node for respectively executing the concurrent tasks according to the number of the nodes and the concurrent number.
910: and generating target node information according to the number of the nodes and the task amount of the at least one target node for respectively executing the concurrent tasks.
The target node information may include the number of nodes and the task amount of the at least one target node for executing the concurrent tasks respectively.
911: and sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control at least one target node by using the target test data and initiate pressure test to the server to be tested according to respective task quantity.
912: and acquiring a pressure test result corresponding to the pressure test initiated by at least one target node to the server side to be tested.
913: judging whether the service end to be tested meets the test termination condition or not according to the pressure test result, if so, returning to the step 902; if not; step 914 is performed.
914: and stopping initiating the pressure test to the server to be tested, and outputting a pressure test result for the user.
In this embodiment, in the pressure testing process, the pressure sending termination condition, the testing mode, the concurrent execution condition of the pressure sending node and whether the testing termination condition of the to-be-tested server is reached are all judged, so that the multi-flow pressure testing is realized, the pressure testing process of the to-be-tested server is accurately detected, and the accuracy and the effectiveness of the pressure testing are improved.
For easy understanding, fig. 10 illustrates an application scenario of the technical solution of the present disclosure. Referring to fig. 10, the electronic device M2 configured with the stress test method provided by the present disclosure may provide a stress test service to a user. The user can use the stress test service provided by the electronic device M2 by using the terminal device, for example, the terminal device is a cell phone M1. After the cell phone M1 establishes a communication connection with the electronic device M2, the user can initiate a stress test request using the cell phone M1. At this time, the user may send information such as stress test information, a concurrent test type, and a maximum number of concurrent tests to the electronic device M2 through the cell phone M1 in the form of a stress test request. The electronic device M2 may obtain stress test information, concurrent test type, and maximum number of concurrent tests, etc. provided by the user. A communication connection may be established between electronic device M2 and stress testing cluster M3. The electronic device M2 may determine target test data for performing the stress test, and obtain resource usage information corresponding to hardware resources of multiple voltage sending nodes in the stress test cluster M3. Target node information for at least one target node of the plurality of transmitting nodes is then determined using the resource usage information. The electronic device M2 may send the target node information and the target test data to the stress testing cluster M3. After receiving the target node information, the stress test cluster M3 may determine at least one target node, and initiate a stress test to the server M4 to be tested by using information such as the target test, and at this time, the at least one target node sends the request stream to the server M4 to be tested.
In addition, in practical applications, the electronic device M2 may obtain resource usage information of hardware resources of multiple transmitting nodes from the monitoring node M5. Specifically, a monitoring node M5 may be provided, which monitors the hardware resource usage of a plurality of pressure sending nodes of the pressure testing cluster M3. The monitoring node M5 may obtain the usage of the hardware resources of multiple voltage-sending nodes to generate resource usage information, and send the resource usage information to the electronic device M2.
As shown in fig. 11, a flowchart of a pressure testing method according to an eighth embodiment of the present disclosure is provided, where the method includes the following steps:
1101: and acquiring target node information and target test data.
The target node information is information of at least one target node determined from a plurality of pressure sending nodes based on resource use information corresponding to hardware resources of the plurality of pressure sending nodes in the pressure test cluster.
The technical solution of this embodiment may be applied to a control node of a stress test cluster, and the relevant description of each step executed by the control node has been described in detail in the foregoing embodiment, and is not repeated herein for the sake of brevity of description.
1102: at least one target node is determined from the plurality of transmitting nodes according to the target node information.
1103: and controlling at least one target node to initiate a pressure test to the server to be tested by using the target test data.
In this embodiment, the control node may obtain target node information and target test data. And the target node information is resource use information corresponding to hardware resources of a plurality of pressure sending nodes in the pressure test cluster. Information of at least one target node determined from the plurality of transmitting nodes. And determining at least one target node from the plurality of sending nodes according to the target node information so as to control the at least one target node to carry out pressure test on the service end to be tested by using the target test data. By monitoring the resource use information corresponding to the hardware resources of the plurality of pressure sending nodes, the resource use conditions of the plurality of pressure sending nodes can be known in time, the target node information of at least one target node which can participate in the test can be accurately obtained, the preparation of the at least one target node which participates in the pressure test is controlled, the number of service requests generated by each target node is more accurate, an accurate test result is obtained, and the test efficiency is improved.
As an embodiment, obtaining target node information and target test data includes:
receiving a pressure test instruction;
and analyzing the pressure test instruction to acquire target node information and target test data.
In this embodiment, after the target node information and the target test data are sent to the control node in the pressure test instruction manner, the control node may analyze the pressure test instruction and obtain the target node information and the target test data. The control node can determine target node information and target test data through the setting of the pressure test instruction, so that the complete execution of a test program is ensured, and the test stability is improved.
In some embodiments, the target node information includes a number of nodes. Determining at least one target node from the plurality of transmitting nodes according to the target node information may include:
at least one target node is determined from the plurality of transmitting nodes according to the number of nodes.
In this embodiment, the target node information may include the number of nodes, and the control node may determine at least one target node from the plurality of pressure nodes according to the node data, so as to accurately obtain the at least one target node, ensure that the target nodes participating in the pressure test can all initiate the test normally, and ensure that the test can be executed effectively.
In one possible design, the target node information may include the number of nodes and the task volume; the controlling at least one target node to initiate a pressure test to the server to be tested by using the target test data may include:
and controlling at least one target node by using the target test data to initiate a pressure test to the server to be tested according to respective task amount.
In the embodiment, when the task amount is determined, the workload of each pressure sending node can be determined, so that accurate pressure sending and accurate pressure testing are realized.
The step of controlling at least one target node to initiate a pressure test to the server to be tested by using the target test data may include:
and respectively sending the target test data to at least one target node so that the at least one target node can respectively initiate a pressure test to the server to be tested by using the target test data.
In this embodiment, the target test data is respectively sent to at least one target node, so that each target node can acquire the target test data, effective execution of the pressure test is ensured, and stable testing is realized.
As shown in fig. 12, for a schematic structural diagram of an embodiment of a pressure testing apparatus according to a ninth embodiment of the present disclosure, the pressure testing apparatus 1200 for performing a pressure test at a maximum processing flow rate of a server may include the following steps:
the data determination unit 1201: and the target test data is used for determining the target test data for performing the pressure test on the server to be tested.
Information acquisition unit 1202: the method is used for acquiring resource use information corresponding to the hardware resources of the plurality of transmitting nodes.
The node selection unit 1203: and the method is used for determining the target node information by utilizing the resource utilization information.
The target node information is used for determining at least one target node in the plurality of transmitting nodes.
The test control unit 1204: and the control node is used for sending the target node information and the target test data to the pressure test cluster so as to instruct the control node to control at least one target node to initiate a pressure test to the server to be tested by using the target test data.
In this embodiment, when determining target test data for performing a pressure test on a server to be tested, resource usage information corresponding to hardware resources of a plurality of pressure sending nodes may be obtained, and then, the resource usage information is used to determine target node information of at least one target node, so that the target node information and the target test data are sent to a control node of a pressure test cluster. And the control node of the pressure test cluster determines at least one target node through the node information so as to control the at least one target node to perform pressure test on the server to be tested by using the target test data. By monitoring the resource use information corresponding to the hardware resources of the plurality of pressure sending nodes, the resource use conditions of the plurality of pressure sending nodes can be known in time, the target node information of at least one target node which can participate in the test can be accurately obtained, the preparation of the at least one target node which participates in the pressure test is controlled, the number of service requests generated by each target node is more accurate, an accurate test result is obtained, and the test efficiency is improved.
As an embodiment, the data determining unit may include:
the request response module is used for responding to a pressure test request initiated by a user aiming at the server to be tested and acquiring pressure test information provided by the user;
and the data determining module is used for determining target test data participating in the pressure test according to the pressure test information.
As a possible implementation manner, the data determination module includes:
the information analysis submodule is used for analyzing the pressure test information and acquiring pressure test requirement information and a data storage address provided by a user;
and the data pulling submodule is used for acquiring target test data from the storage space corresponding to the data storage address according to the pressure test requirement information.
In one possible design, the data pull submodule may be specifically configured to:
pulling a plurality of original test data from the storage space corresponding to the data storage address; and selecting target test data from the plurality of original test data according to the pressure test requirement information.
In some embodiments, the node selection unit may include:
the first processing module is used for determining the node number of the pressure sending nodes participating in the pressure test by utilizing the resource use information under the condition that the pressure sending nodes do not meet the pressure sending termination condition;
the information generation module is used for generating target node information according to the number of the nodes;
the target node information is used for the control node to determine at least one target node from the plurality of transmitting nodes according to the number of the nodes.
As a possible implementation manner, the node option unit may include:
and the second processing module is used for stopping the pressure test of the server to be tested under the condition that the plurality of pressure sending nodes meet the pressure sending termination condition and outputting prompt information of pressure test failure.
In some embodiments, the node selection unit may include:
the quantity obtaining module is used for obtaining the historical node quantity of at least one target node used in the previous pressure test;
the first determining module is used for determining that the plurality of pressure sending nodes do not meet pressure sending termination conditions when the number of the historical nodes does not reach the total number of the plurality of pressure sending nodes;
and the second determining module is used for determining that the plurality of the transmitting nodes meet the transmitting termination condition when the number of the historical nodes reaches the total number of the plurality of the transmitting nodes.
In one possible design, the first processing module may include:
the history determining submodule is used for determining the node increment needing to be increased by utilizing the resource use information under the condition that the plurality of pressure sending nodes do not meet the pressure sending termination condition;
and the node calculation submodule calculates the sum of the historical node number and the node increment to obtain the node number.
In order to achieve an accurate test effect, the test type of the pressure test comprises concurrent tests; the apparatus may further include:
the concurrency determining unit is used for determining the concurrency number of the concurrent tests under the condition of executing the concurrent tests on the server side to be tested;
the task allocation unit is used for determining the task quantity of at least one target node for respectively executing the concurrent tasks according to the number of the nodes and the concurrent number;
the information generation module includes:
the information generation submodule is used for generating target node information according to the number of the nodes and the task amount;
the target node information is used for the control node to determine at least one target node from the plurality of transmitting nodes according to the number of the nodes; and controlling at least one target node by using the target test data to initiate a pressure test to the server to be tested according to respective task amount.
As an embodiment, the concurrency determination unit may include:
the concurrency acquisition module is used for acquiring the historical concurrency quantity of the previous concurrency test under the condition of executing the concurrency test on the server to be tested;
and the concurrency calculation module is used for determining the concurrency number of the concurrency test according to the historical concurrency number and the preset concurrency increment.
In some embodiments, it may further include:
the user setting unit is used for acquiring the maximum concurrency quantity and the concurrency increment set by the user;
the task allocation unit may include:
and the task allocation module is used for determining the task quantity of the at least one target node for respectively executing the concurrent tasks according to the node quantity and the concurrent quantity under the condition that the concurrent quantity does not reach the maximum concurrent quantity.
In some embodiments, the resource usage information includes: at least one of a throughput per second of the at least one historical target node, a utilization of the central processor, and a utilization of the memory at a previous stress test.
As still another embodiment, the apparatus may further include:
and the result acquisition unit is used for acquiring a pressure test result corresponding to the pressure test initiated by the at least one target node to the server side to be tested.
In some embodiments, the apparatus may further comprise:
the test judging unit is used for judging whether the service end to be tested meets the test termination condition or not according to the pressure test result;
and the test initiating unit is used for initiating a pressure test to the server to be tested under the condition that the server to be tested does not meet the test termination condition, and jumping to the message acquiring unit for continuous execution.
In one possible design, the apparatus may further include:
and the test termination unit is used for stopping initiating the pressure test to the service end to be tested under the condition that the service end to be tested meets the test termination condition and outputting a pressure test result for the user.
As still another embodiment, wherein the test control unit may include:
the instruction generating module is used for generating a pressure test instruction according to the target node information and the target test data;
and the instruction sending module is used for sending the pressure test instruction to the control node of the pressure test cluster.
The pressure-based testing apparatus provided in this embodiment may implement the technical solution of the method embodiment shown in fig. 1 and the like, and the implementation principle and the technical effect thereof are similar to those of the method embodiment shown in fig. 1 and the like, and are not described in detail herein.
As shown in fig. 13, a schematic structural diagram of an embodiment of a pressure testing apparatus according to a tenth embodiment of the present disclosure, the pressure testing apparatus 1300 for testing a maximum processing flow of a server may include the following steps:
first obtaining unit 1301: the system comprises a data processing module, a data processing module and a data processing module, wherein the data processing module is used for acquiring target node information and target test data; the target node information is information of at least one target node determined from a plurality of pressure sending nodes based on resource use information corresponding to hardware resources of the plurality of pressure sending nodes in the pressure test cluster;
node determination unit 1302: the node information processing device is used for determining at least one target node from a plurality of sending nodes according to the target node information;
the test control unit 1303: and the target test data is used for controlling at least one target node to initiate a pressure test to the server to be tested.
In this embodiment, the control node may obtain target node information and target test data. And the target node information is resource use information corresponding to hardware resources of a plurality of pressure sending nodes in the pressure test cluster. Information of at least one target node determined from the plurality of transmitting nodes. And determining at least one target node from the plurality of sending nodes according to the target node information so as to control the at least one target node to carry out pressure test on the service end to be tested by using the target test data. By monitoring the resource use information corresponding to the hardware resources of the plurality of pressure sending nodes, the resource use conditions of the plurality of pressure sending nodes can be known in time, the target node information of at least one target node which can participate in the test can be accurately obtained, the preparation of the at least one target node which participates in the pressure test is controlled, the number of service requests generated by each target node is more accurate, an accurate test result is obtained, and the test efficiency is improved.
As an embodiment, the first obtaining unit may include:
the instruction receiving module is used for receiving a pressure test instruction;
and the instruction analysis module is used for analyzing the pressure test instruction and acquiring target node information and target test data.
In one possible design, the target node information includes a number of nodes; the node determination unit includes:
the first determining module is used for determining at least one target node from the plurality of transmitting nodes according to the number of the nodes.
In some embodiments, the target node information includes a number of nodes and a task volume; the test control unit includes:
and the pressure test module is used for controlling at least one target node to initiate pressure test to the server to be tested according to respective task quantity by using the target test data.
In some embodiments, the test control unit may include:
and the test control unit is used for respectively sending the target test data to at least one target node so that the at least one target node can respectively initiate a pressure test to the server to be tested by using the target test data.
The pressure-based testing apparatus provided in this embodiment may implement the technical solution of the method embodiment shown in fig. 11, and the implementation principle and technical effect thereof are similar to those of the method embodiment shown in fig. 11, and are not described in detail herein.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
According to an embodiment of the present disclosure, the present disclosure also provides a computer program product comprising: a computer program, stored in a readable storage medium, from which at least one processor of the electronic device can read the computer program, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any of the embodiments described above.
FIG. 14 shows a schematic block diagram of an electronic device 1400 that may be used to implement any of the embodiments shown in FIGS. 1-9 or FIG. 11 of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 14, the device 1400 includes a computing unit 1401 that can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)1402 or a computer program loaded from a storage unit 1408 into a Random Access Memory (RAM) 1403. In the RAM 1403, various programs and data required for the operation of the device 1400 can also be stored. The calculation unit 1401, the ROM 1402, and the RAM 1403 are connected to each other via a bus 1404. An input/output (I/O) interface 1405 is also connected to bus 1404.
Various components in device 1400 connect to I/O interface 1405, including: an input unit 1406 such as a keyboard, a mouse, or the like; an output unit 1407 such as various types of displays, speakers, and the like; a storage unit 1408 such as a magnetic disk, optical disk, or the like; and a communication unit 1409 such as a network card, a modem, a wireless communication transceiver, and the like. The communication unit 1409 allows the device 1400 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 1401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The computing unit 1401 performs the respective methods and processes described above, such as the pressure test method. For example, in some embodiments, the pressure testing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 1408. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 1400 via ROM 1402 and/or communication unit 1409. When the computer program is loaded into the RAM 1403 and executed by the computing unit 1401, one or more steps of the pressure testing method described above may be performed. Alternatively, in other embodiments, the computing unit 1401 may be configured to perform the stress testing method by any other suitable means (e.g. by means of firmware).
As shown in fig. 15, which is a schematic structural diagram of a pressure testing system according to an eleventh embodiment of the present disclosure, the system 1500 may include:
electronics 1501, and pressure test cluster 1502 coupled to electronics 1501, pressure test cluster 1502 may include a control node 15021 and a plurality of voltage generating nodes 15022; the plurality of voltage transmitting nodes 15022 are connected with the service terminal 1503 to be tested;
the electronic device 1501 is used to: determining target test data for performing pressure test on a server to be tested; acquiring resource use information corresponding to hardware resources of a plurality of voltage transmitting nodes 15022 in a pressure test cluster 1502; determining target node information by using the resource use information; sending target node information and target test data to control nodes of pressure test cluster
Control node 15021 is configured to: acquiring target node information and target test data sent by the electronic device 1501; determining at least one target node from the plurality of voltage transmitting nodes 15022 according to the target node information; and controlling at least one target node to initiate a pressure test to the server to be tested by using the target test data.
In this embodiment, when determining target test data for performing a pressure test on a server to be tested, resource usage information corresponding to hardware resources of a plurality of pressure sending nodes may be obtained, and then, the resource usage information is used to determine target node information of at least one target node, so that the target node information and the target test data are sent to a control node of a pressure test cluster. And the control node of the pressure test cluster determines at least one target node through the node information so as to control the at least one target node to perform pressure test on the server to be tested by using the target test data. By monitoring the resource use information corresponding to the hardware resources of the plurality of pressure sending nodes, the resource use conditions of the plurality of pressure sending nodes can be known in time, the target node information of at least one target node which can participate in the test can be accurately obtained, the preparation of the at least one target node which participates in the pressure test is controlled, the number of service requests generated by each target node is more accurate, an accurate test result is obtained, and the test efficiency is improved.
In one possible design, stress testing system 1500 may also include a monitoring node 1504 coupled to stress testing cluster 1502 and electronic device 1501. The monitoring node 1504 may be configured to monitor resource usage information corresponding to hardware resources of the plurality of voltage transmitting nodes 15022 in the stress test cluster 1502, and send the resource usage information to the electronic device 1501.
In addition, other steps performed by the electronic device 1501 or the control node 1502 are already detailed in the related stress testing method, and are not described herein again for simplicity of description.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (24)

1. A pressure testing method, comprising:
determining target test data for performing pressure test on a server to be tested;
acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in a pressure test cluster;
determining target node information by using the resource use information; the target node information is used for determining at least one target node in the plurality of transmitting nodes;
and sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
2. The method of claim 1, wherein the determining target test data for performing the stress test on the server under test comprises:
responding to a pressure test request initiated by a user for the server to be tested, and acquiring pressure test information provided by the user;
and determining the target test data participating in the pressure test according to the pressure test information.
3. The method of claim 2, wherein the determining the target test data participating in stress testing from the stress testing information comprises:
analyzing the pressure test information to obtain pressure test requirement information and a data storage address provided by the user;
and acquiring the target test data from the storage space corresponding to the data storage address according to the pressure test requirement information.
4. The method of claim 3, wherein the obtaining the target test data from the storage space corresponding to the data storage address according to the pressure test requirement information comprises:
pulling a plurality of original test data from the storage space corresponding to the data storage address;
and selecting the target test data from the plurality of original test data according to the pressure test requirement information.
5. The method of claim 1, wherein said determining target node information using said resource usage information comprises:
under the condition that the plurality of pressure sending nodes do not meet pressure sending termination conditions, determining the number of the pressure sending nodes participating in the pressure test by using the resource use information;
generating the target node information according to the number of the nodes;
wherein the target node information is used for the control node to determine the at least one target node from the plurality of sending nodes according to the number of nodes.
6. The method of claim 5, further comprising:
and under the condition that the plurality of pressure sending nodes meet pressure sending termination conditions, stopping pressure testing on the server side to be tested.
7. The method of claim 6, further comprising:
acquiring the historical node number of at least one target node used in the previous pressure test;
when the historical node number is smaller than the total node number of the plurality of pressure nodes, determining that the plurality of pressure nodes do not meet pressure termination conditions;
and when the historical node number is equal to the total node number of the plurality of pressure nodes, determining that the plurality of pressure nodes meet pressure termination conditions.
8. The method of claim 7, wherein the determining, by using the resource usage information, the number of nodes of the pressure node participating in the pressure test in the case that the plurality of pressure nodes do not satisfy the pressure termination condition comprises:
under the condition that the plurality of pressure sending nodes do not meet pressure sending termination conditions, determining the node increment needing to be added by utilizing the resource use information;
and calculating the sum of the historical node number and the node increment to obtain the node number.
9. The method of claim 5, the test type of the stress test comprising concurrent testing; the method further comprises the following steps:
determining the concurrency number of concurrent tests under the condition of executing the concurrent tests on the server side to be tested;
determining the task quantity of the at least one target node for respectively executing the concurrent tasks according to the node quantity and the concurrent quantity;
the generating the target node information according to the number of nodes includes:
generating the target node information according to the number of the nodes and the task amount of the at least one target node for respectively executing the concurrent tasks;
the target node information is used for the control node to determine the at least one target node from the plurality of pressure-sending nodes according to the node number, and the target test data is used for controlling the at least one target node to initiate a pressure test to the server to be tested according to respective task quantity.
10. The method according to claim 9, wherein the determining the concurrency number of the concurrent tests in the case of performing the concurrent tests on the server to be tested comprises:
acquiring the historical concurrency number of the previous concurrency test under the condition of executing the concurrency test on the server to be tested;
and determining the concurrency number of the concurrency test according to the historical concurrency number and a preset concurrency increment.
11. The method of claim 9, further comprising:
acquiring the maximum concurrency quantity and the concurrency increment set by the user;
determining the task quantity of the at least one target node for respectively executing the concurrent tasks according to the node quantity and the concurrent quantity comprises:
and under the condition that the concurrency number is not greater than the maximum concurrency number, determining the task quantity of the concurrent tasks respectively executed by the at least one target node according to the node number and the concurrency number.
12. The method of claim 1, the resource usage information comprising: at least one of a throughput per second of the at least one historical target node, a utilization of the central processor, and a utilization of the memory at a previous stress test.
13. The method of any of claims 1-11, further comprising:
acquiring a pressure test result corresponding to the pressure test initiated by the at least one target node to the server side to be tested;
judging whether the server to be tested meets a test termination condition or not according to the pressure test result;
initiating a pressure test on the server to be tested under the condition that the server to be tested does not meet the test termination condition; and/or
And under the condition that the server to be tested meets the test termination condition, stopping initiating the pressure test on the server to be tested, and outputting the pressure test result for the user.
14. A pressure testing method, comprising:
acquiring target node information and target test data; the target node information is information of at least one target node determined from a plurality of pressure sending nodes based on resource use information corresponding to hardware resources of the pressure sending nodes in the pressure test cluster;
determining the at least one target node from the plurality of transmitting nodes according to the target node information;
and controlling the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
15. The method of claim 14, wherein the obtaining target node information and target test data comprises:
receiving a pressure test instruction;
and analyzing the pressure test instruction to acquire the target node information and the target test data.
16. The method of claim 15, wherein the target node information includes a number of nodes; the determining the at least one target node from the plurality of transmitting nodes according to the target node information includes:
determining the at least one target node from the plurality of transmitting nodes according to the number of nodes.
17. The method of claim 15, wherein the target node information includes a number of nodes and a task volume; the controlling the at least one target node to initiate a pressure test to the server to be tested by using the target test data includes:
and controlling the at least one target node to initiate a pressure test to the server to be tested according to respective task amount by using the target test data.
18. The method of claim 15, wherein the controlling the at least one target node to initiate a stress test to a server under test using the target test data comprises:
and respectively sending the target test data to the at least one target node so that the at least one target node can respectively initiate a pressure test to the server to be tested by using the target test data.
19. A pressure testing device comprising:
the data determining unit is used for determining target test data for performing pressure test on the server to be tested;
the information acquisition unit is used for acquiring resource use information corresponding to hardware resources of a plurality of transmitting nodes;
the node selection unit is used for determining target node information by utilizing the resource use information; the target node information is used for determining at least one target node in the plurality of transmitting nodes;
and the test control unit is used for sending the target node information and the target test data to a control node of the pressure test cluster so as to instruct the control node to control the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
20. A pressure testing device comprises
The first acquisition unit is used for acquiring target node information and target test data; the target node information is information of at least one target node determined from a plurality of pressure sending nodes based on resource use information corresponding to hardware resources of the plurality of pressure sending nodes in the pressure test cluster;
a node determining unit, configured to determine the at least one target node from the plurality of transmitting nodes according to the target node information;
and the test control unit is used for controlling the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
21. A pressure testing system, comprising: the pressure testing system comprises electronic equipment and a pressure testing cluster connected with the electronic equipment, wherein the pressure testing cluster comprises a control node and a plurality of pressure sending nodes; the plurality of pressure sending nodes are connected with a server to be tested;
the electronic device is configured to: determining target test data for performing pressure test on a server to be tested; acquiring resource use information corresponding to hardware resources of a plurality of pressure sending nodes in a pressure test cluster; determining target node information by using the resource use information; sending the target node information and the target test data to a control node of the pressure test cluster;
the control node is configured to: acquiring the target node information and target test data sent by the electronic equipment; determining at least one target node from the plurality of transmitting nodes according to the target node information; and controlling the at least one target node to initiate a pressure test to the server to be tested by using the target test data.
22. An electronic device, comprising:
at least one processor and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-13 or 14-18.
23. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of claims 1-13 or 14-18.
24. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-13 or 14-18.
CN202110897953.2A 2021-08-05 2021-08-05 Pressure testing method, device, system, electronic equipment, storage medium and product Active CN113590403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110897953.2A CN113590403B (en) 2021-08-05 2021-08-05 Pressure testing method, device, system, electronic equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110897953.2A CN113590403B (en) 2021-08-05 2021-08-05 Pressure testing method, device, system, electronic equipment, storage medium and product

Publications (2)

Publication Number Publication Date
CN113590403A true CN113590403A (en) 2021-11-02
CN113590403B CN113590403B (en) 2023-08-01

Family

ID=78255555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110897953.2A Active CN113590403B (en) 2021-08-05 2021-08-05 Pressure testing method, device, system, electronic equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN113590403B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116339A (en) * 2021-11-12 2022-03-01 苏州浪潮智能科技有限公司 STREAM-based pressure testing method, system, terminal and storage medium
CN114328196A (en) * 2021-12-16 2022-04-12 北京明朝万达科技股份有限公司 Method, device and equipment for testing data leakage prevention system and storage medium
CN114338472A (en) * 2021-12-31 2022-04-12 北京百度网讯科技有限公司 Capacity test method, device, equipment, medium and product of map server
CN114924919A (en) * 2022-04-15 2022-08-19 北京志凌海纳科技有限公司 Node management test method, system and storage medium
CN117194131A (en) * 2023-11-06 2023-12-08 腾讯科技(深圳)有限公司 Data processing method, apparatus, device, readable storage medium, and program product

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077212A (en) * 2013-03-26 2014-10-01 阿里巴巴集团控股有限公司 Pressure test system and method
WO2017016212A1 (en) * 2015-07-30 2017-02-02 中兴通讯股份有限公司 Testing method and device for desktop cloud system
WO2018082451A1 (en) * 2016-11-01 2018-05-11 阿里巴巴集团控股有限公司 Application link expansion method, apparatus and system
CN109542712A (en) * 2018-11-02 2019-03-29 平安科技(深圳)有限公司 Server stress test method, device, computer equipment and storage medium
CN110297766A (en) * 2019-06-03 2019-10-01 合肥移瑞通信技术有限公司 Method for testing software and software testing system based on distributed test node cluster
CN110580206A (en) * 2019-09-16 2019-12-17 上海保险交易所股份有限公司 Method, medium and control device for pressure testing of a blockchain system
CN110727570A (en) * 2019-10-11 2020-01-24 重庆紫光华山智安科技有限公司 Concurrent pressure measurement method and related device
CN112765035A (en) * 2021-01-27 2021-05-07 北京百家科技集团有限公司 Distributed pressure test system, method, device, electronic equipment and storage medium
CN113010392A (en) * 2021-02-08 2021-06-22 建信金融科技有限责任公司 Testing method, device, equipment, storage medium and system for big data platform
CN113037594A (en) * 2021-03-24 2021-06-25 北京百度网讯科技有限公司 Pressure testing method and device based on cloud service

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104077212A (en) * 2013-03-26 2014-10-01 阿里巴巴集团控股有限公司 Pressure test system and method
WO2017016212A1 (en) * 2015-07-30 2017-02-02 中兴通讯股份有限公司 Testing method and device for desktop cloud system
WO2018082451A1 (en) * 2016-11-01 2018-05-11 阿里巴巴集团控股有限公司 Application link expansion method, apparatus and system
CN109542712A (en) * 2018-11-02 2019-03-29 平安科技(深圳)有限公司 Server stress test method, device, computer equipment and storage medium
CN110297766A (en) * 2019-06-03 2019-10-01 合肥移瑞通信技术有限公司 Method for testing software and software testing system based on distributed test node cluster
CN110580206A (en) * 2019-09-16 2019-12-17 上海保险交易所股份有限公司 Method, medium and control device for pressure testing of a blockchain system
CN110727570A (en) * 2019-10-11 2020-01-24 重庆紫光华山智安科技有限公司 Concurrent pressure measurement method and related device
CN112765035A (en) * 2021-01-27 2021-05-07 北京百家科技集团有限公司 Distributed pressure test system, method, device, electronic equipment and storage medium
CN113010392A (en) * 2021-02-08 2021-06-22 建信金融科技有限责任公司 Testing method, device, equipment, storage medium and system for big data platform
CN113037594A (en) * 2021-03-24 2021-06-25 北京百度网讯科技有限公司 Pressure testing method and device based on cloud service

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孟伟君;陈瑞军;刘占英;朝鲁;刘楠;: "城轨云平台及其承载业务***测试研究", 交通世界, no. 25 *
晋文明;颜硕彦;钱巨;: "大规模负载生成客户端影响因素研究", 计算机与现代化, no. 08 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116339A (en) * 2021-11-12 2022-03-01 苏州浪潮智能科技有限公司 STREAM-based pressure testing method, system, terminal and storage medium
CN114116339B (en) * 2021-11-12 2023-11-03 苏州浪潮智能科技有限公司 Pressure testing method, system, terminal and storage medium based on STREAM
CN114328196A (en) * 2021-12-16 2022-04-12 北京明朝万达科技股份有限公司 Method, device and equipment for testing data leakage prevention system and storage medium
CN114338472A (en) * 2021-12-31 2022-04-12 北京百度网讯科技有限公司 Capacity test method, device, equipment, medium and product of map server
CN114338472B (en) * 2021-12-31 2024-05-07 北京百度网讯科技有限公司 Capacity testing method, device, equipment, medium and product of map server
CN114924919A (en) * 2022-04-15 2022-08-19 北京志凌海纳科技有限公司 Node management test method, system and storage medium
CN114924919B (en) * 2022-04-15 2023-01-24 北京志凌海纳科技有限公司 Node management test method, system and storage medium
CN117194131A (en) * 2023-11-06 2023-12-08 腾讯科技(深圳)有限公司 Data processing method, apparatus, device, readable storage medium, and program product
CN117194131B (en) * 2023-11-06 2024-02-27 腾讯科技(深圳)有限公司 Data processing method, apparatus, device, readable storage medium, and program product

Also Published As

Publication number Publication date
CN113590403B (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN113590403B (en) Pressure testing method, device, system, electronic equipment, storage medium and product
CN109684228A (en) A kind of performance test methods, device, system and storage medium
CN114500339B (en) Node bandwidth monitoring method and device, electronic equipment and storage medium
CN111563014A (en) Interface service performance test method, device, equipment and storage medium
CN114118433A (en) Recommendation method and device for configuration parameters of equipment
CN109144846B (en) Test method and device for testing server
CN113268403A (en) Time series analysis and prediction method, device, equipment and storage medium
CN109284229A (en) A kind of dynamic adjusting method and relevant device based on QPS
CN109857633B (en) Task computing power estimation method and device and storage medium
CN110380902B (en) Topological relation generation method and device, electronic equipment and storage medium
CN106961490A (en) A kind of resource monitoring method and system, a kind of home server
CN109842665B (en) Task processing method and device for task allocation server
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
WO2022262253A1 (en) Task allocation method and apparatus, electronic device, and computer readable medium
US11743154B2 (en) Method and apparatus for processing network usage of a cloud product, device, storage medium and product
CN108418730B (en) Network flow testing method, device, equipment and computer readable storage medium
CN115454443A (en) Multi-system data interaction method and device and electronic equipment
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN113641688A (en) Node updating method, related device and computer program product
CN113676521A (en) Service request response method and device and electronic equipment
CN114598705B (en) Message load balancing method, device, equipment and medium
CN113220555B (en) Method, apparatus, device, medium, and article for processing data
CN116432761B (en) Quantum computing task processing method, device, equipment and storage medium
US12039655B2 (en) Resource estimation apparatus, resource estimation method and program
CN113900734B (en) Application program file configuration method, device, equipment and storage medium

Legal Events

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