Performance testing method and apparatus based on edge nodes

By obtaining the test identifier, type, and concurrency level in the test task, and selecting edge nodes that meet the attributes for performance testing, the problem of accurate testing under large-scale user requests is solved, and efficient performance data recording and system stability are achieved.

CN119854155BActive Publication Date: 2025-10-31YISU CLOUD TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411698640.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-10-31
Estimated Expiration
2044-11-25

AI Technical Summary

Technical Problem

Existing technologies struggle to accurately test the performance of network nodes under large-scale user requests, resulting in inaccurate test results and wasted resources.

Method used

By acquiring the test identifier, test type, and concurrency level from the test task, target edge nodes that match the target edge node attributes are selected, and test tasks are sent in parallel to record performance data, thereby achieving accurate performance testing of edge nodes.

Benefits of technology

This ensures the reliability and representativeness of test results, reduces the connection and storage pressure on the test server, improves the accuracy and traceability of data, and enhances the stability and resource utilization efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854155B_ABST
    Figure CN119854155B_ABST
Patent Text Reader

Abstract

This invention relates to the field of performance testing technology and discloses a performance testing method and apparatus based on edge nodes. The method includes: acquiring test tasks and the attributes of each candidate edge node in a candidate edge node set; selecting a target number of target edge nodes from the candidate edge node set that meet the target edge node attributes, the target number being consistent with the concurrency level; sending test tasks to the target agent terminals corresponding to the target number of target edge nodes, the test tasks instructing the target number of target agent terminals to simultaneously test the corresponding target edge nodes, and recording the performance data corresponding to the target edge nodes according to the test identifier. This method can efficiently and accurately perform distributed edge node performance evaluation, meet different testing needs, enhance the pertinence and reliability of performance testing, and the accurate data recording provides valuable test data for network node optimization and problem troubleshooting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of performance testing technology, and more specifically to a performance testing method and apparatus based on edge nodes. Background Technology

[0002] With the rapid development of cloud computing and IoT technologies, an increasing number of devices, sensors, applications, and services are connecting through networks, forming a vast and complex global digital ecosystem. The sheer volume of data generated by these devices and services, along with the diversity of user demands, poses unprecedented challenges to computing, storage, and network performance. To ensure these systems operate efficiently, especially in the face of sudden traffic surges and diverse user needs, performance testing becomes crucial. Summary of the Invention

[0003] In view of this, the present invention provides a performance testing method, apparatus, computer equipment, and storage medium based on edge nodes to solve the problem of how to accurately test the performance of network nodes under large-scale user requests.

[0004] In a first aspect, the present invention provides a performance testing method based on edge nodes, the method being applied to a test server, the method comprising:

[0005] Obtain the test task, which includes: test identifier, test type, concurrency level, and target edge node attributes;

[0006] From the candidate edge node set, select the target number of target edge nodes that meet the target edge node attributes, with the target number matching the concurrency level;

[0007] Test tasks are sent in parallel to the target agents corresponding to the target number of target edge nodes. The test tasks instruct the target agents to test the corresponding target edge nodes at the same time and record the performance data of the target edge nodes according to the test identifier.

[0008] The performance testing method based on edge nodes provided by this invention has the following advantages:

[0009] By acquiring test tasks containing parameters such as test identifier, test type, and concurrency, different testing needs can be flexibly addressed. The target edge nodes selected from the candidate edge node set for performance testing ensure that the selected nodes meet actual requirements, avoiding unnecessary test interference and resource waste. By matching the target number of edge nodes to the concurrency level in the test tasks, precise control of concurrency during testing is ensured. This realistically simulates scenarios where multiple edge nodes work in parallel in a real environment, improving the reliability and representativeness of test data. Test tasks are sent in parallel to the target agent terminals corresponding to the target number of target edge nodes. The test tasks instruct the target number of target agent terminals to simultaneously test the corresponding target edge nodes and record the performance data corresponding to the target edge nodes according to the test identifier. This clearly identifies and records the performance data corresponding to each edge node, reducing the connection and storage pressure on the test server. The one-to-one correspondence between performance data and test identifiers facilitates subsequent performance analysis and evaluation, ensuring the traceability and accuracy of test results.

[0010] In one alternative implementation, the method further includes:

[0011] In response to receiving a query command from the querying end, a test identifier is sent to the target number of target agents respectively. The test identifier is used to instruct the target agents to query the performance data of their corresponding target edge nodes respectively.

[0012] Receive performance data of the target edge nodes from the target number of target agents;

[0013] Send the performance data of the target number of target edge nodes to the query end.

[0014] Specifically, in this method, by responding to a query command received from the querying end and sending a test identifier to the target agent, dynamic querying of the target agent can be achieved, allowing real-time acquisition of performance data of the target edge nodes, thereby enabling timely monitoring of test progress and performance. Each target agent queries the performance data of its corresponding target edge node based on the received test identifier. This ensures that the performance data of each edge node is accurately collected from the corresponding target agent, and that this data corresponds one-to-one with the specific test task and identifier, guaranteeing the accuracy and completeness of the data.

[0015] In one alternative implementation, the method further includes:

[0016] For each target agent in the target number of target agents, monitor whether a heartbeat signal is received from that target agent;

[0017] If no heartbeat signal is received from the target agent, the target agent is identified as an abnormal agent.

[0018] Send a command to the target agent adjacent to the abnormal agent to disconnect from the abnormal agent, so as to remove the abnormal agent from the DHT network composed of the alternative agents corresponding to the alternative edge nodes; the adjacent nodes in the DHT network back up the corresponding performance data to each other.

[0019] Specifically, in this method, by monitoring whether each target proxy has a heartbeat signal, abnormal proxies without a heartbeat signal can be identified and removed from the DHT network. This ensures stable test performance and functionality, guaranteeing stable simulation of real user requests. Furthermore, data backup of adjacent nodes further enhances the reliability and consistency of performance data, enabling the system to automatically recover from node failures, reducing manual intervention and improving operational efficiency.

[0020] In one alternative implementation, the method further includes:

[0021] Obtain the target load information corresponding to the target number of target agents to obtain the target load information for the target number of agents.

[0022] Determine whether there are any target load information exceeding a preset threshold in the target load information of the target quantity;

[0023] The target agent corresponding to the target load information that exceeds the load limit is designated as the overload agent.

[0024] Send a command to the target agent adjacent to the overloaded agent to disconnect from the overloaded agent, so as to remove the overloaded agent from the DHT network composed of the target number of target agents.

[0025] Specifically, this method monitors each target proxy for overload, identifying and removing overloaded proxies from the DHT network. This ensures stable test performance and functionality, guaranteeing consistent simulation of real user requests. Automated load handling reduces the need for manual intervention, enhances system dynamic adaptability and resource utilization efficiency, and improves overall system performance and stability.

[0026] Secondly, this invention provides a performance testing method based on edge nodes, applied to a target agent in a DHT network, the method comprising:

[0027] Receive test tasks sent by the test server. The test tasks include: test identifier and test type.

[0028] Based on the test type of the test task, test the corresponding target edge node and obtain the performance data of the target edge node;

[0029] Based on the test identifier of the test task, the performance data of the target edge node is stored in the target agent.

[0030] The performance testing method based on edge nodes provided by this invention has the following advantages:

[0031] By receiving test tasks from the test server at the target proxy end and testing the corresponding target edge nodes according to the test type in the test task, the performance data of the target edge nodes can be obtained in real time, ensuring accurate monitoring of the target edge node performance and enabling better evaluation of its performance in a real environment. By storing the test-obtained performance data in the target proxy end according to the test identifier, performance data management and querying can be conveniently performed. This allows each proxy end to independently store its own performance data and also enables fast retrieval based on the test identifier, improving the storage and query efficiency of performance data.

[0032] In one alternative implementation, the method further includes:

[0033] Receive query tasks sent by the test server. The query tasks include: test identifier;

[0034] Based on the test identifier of the query task, retrieve the performance data of the corresponding target edge node from the target agent.

[0035] The system sends the performance data of the target edge node retrieved from the test server back to the test server.

[0036] Specifically, in this method, receiving a query task with a test identifier from the test server enables dynamic querying of the target proxy, providing real-time feedback of performance data of the target edge nodes to the test server, thereby allowing timely monitoring of test progress and performance. The target proxy queries the performance data of its corresponding target edge node based on the received test identifier. This ensures that the performance data of each edge node is accurately collected from the corresponding target proxy, and that this data corresponds one-to-one with the specific test task and identifier, guaranteeing the accuracy and completeness of the data.

[0037] Thirdly, the present invention provides a performance testing device based on edge nodes, which is applied to a test server and includes:

[0038] The acquisition module is used to acquire test tasks, which include: test identifier, test type, concurrency level, and target edge node attributes;

[0039] The selection module is used to select a target number of target edge nodes that meet the target edge node attributes from the candidate edge node set. The target number is consistent with the concurrency level.

[0040] The sending module is used to send test tasks in parallel to the target agent terminals corresponding to the target number of target edge nodes. The test tasks instruct the target number of target agent terminals to test the corresponding target edge nodes at the same time, and record the performance data of the target edge nodes according to the test identifier.

[0041] Fourthly, the present invention provides a performance testing device based on an edge node, which is applied to a target agent in a DHT network. The device includes:

[0042] The receiving module is used to receive test tasks sent by the test server. The test tasks include: test identifier and test type.

[0043] The testing module is used to test the corresponding target edge nodes according to the test type of the test task and obtain the performance data of the target edge nodes;

[0044] The storage module is used to store the performance data of the target edge node to the target agent based on the test identifier of the test task.

[0045] Fifthly, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the edge node-based performance testing method of the first aspect or any corresponding embodiment described above.

[0046] In a sixth aspect, the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the edge node-based performance testing method of the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0047] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0048] Figure 1 This is a schematic diagram illustrating the communication connection between the test server and other cloud devices according to an embodiment of the present invention.

[0049] Figure 2This is one of the flowcharts illustrating a performance testing method based on edge nodes according to an embodiment of the present invention;

[0050] Figure 3 This is a second schematic flowchart of a performance testing method based on edge nodes according to an embodiment of the present invention;

[0051] Figure 4 This is one of the schematic diagrams of an edge node-based performance testing device according to an embodiment of the present invention;

[0052] Figure 5 This is a second schematic diagram of a performance testing device based on edge nodes according to an embodiment of the present invention;

[0053] Figure 6 This is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Implementation

[0054] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0055] According to an embodiment of the present invention, a performance testing method based on edge nodes is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0056] Figure 1 This is a schematic diagram illustrating the communication connection between the test server and other cloud devices according to an embodiment of the present invention. The test server is connected to a distributed hash table (DHT) network composed of a test task management platform, a central management server (i.e., the query end), and alternative agent ends.

[0057] The test task management platform is used to configure different test requirements and submit them to the central task management server.

[0058] The central task management server can be in a primary / backup architecture, used to generate test tasks according to test requirements and send test tasks to the test server.

[0059] The alternative agent is deployed on each corresponding alternative edge node, and is located in the same geographical location as the alternative edge node. The alternative agent periodically queries the test server for test tasks via heartbeat signals, and tests the corresponding alternative edge node according to the test tasks. Preferably, the alternative agent is deployed to the corresponding alternative edge node as an edge agent program.

[0060] The test server can be a Tracker server in the DHT network, responsible for the network access operation of candidate edge nodes.

[0061] This embodiment provides a performance testing method based on edge nodes, which can be used for the aforementioned test server. Figure 2 This is one of the flowcharts of a performance testing method based on edge nodes according to an embodiment of the present invention. The method includes:

[0062] Step S201: Obtain the test task.

[0063] The aforementioned test tasks include: test identifier, test type, concurrency, and target edge node attributes.

[0064] In this embodiment, test tasks can be generated by the central management server, and the test server can obtain the test tasks from the central management server. The test identifier can be a unique identifier for each test task. Test types can be corresponding to edge node registration function tests, user login function tests, search function tests, personal profile update tests, on-demand concurrent download tests, scheduling performance tests, etc. Concurrency can be the number of concurrent connections during the test, representing the number of clients to be simulated; specifically, different concurrency levels can be set for different operators in different regions. Target edge node attributes can be the geographical location information of the target edge node, the network bandwidth information of the target edge node, and the load information of the target edge node.

[0065] Step S202: Select a target number of target edge nodes that meet the above target edge node attributes from the candidate edge node set.

[0066] The aforementioned target number is consistent with the aforementioned concurrency level.

[0067] In this embodiment, the set of candidate edge nodes can be obtained by the test server from the routing information table of the DHT network of the candidate edge nodes. The number of target edge nodes matches the concurrency level in the test task. Concurrency level represents the number of clients that simultaneously initiate test requests, so the number of selected targets should be commensurate with it. The selected target edge nodes must meet the target edge node attributes specified in the test task, such as: the geographical location information of the target edge nodes, the network bandwidth information of the target edge nodes, and the load information of the target edge nodes. Ensure that the selected target edge nodes have the conditions required to execute the test task and can perform performance testing under concurrent conditions.

[0068] Step S203: Send the test tasks in parallel to the target agent terminals corresponding to the target number of the above target edge nodes.

[0069] The aforementioned test task indicates that the target number of target agents simultaneously test the corresponding target edge nodes, and records the performance data corresponding to the target edge nodes according to the aforementioned test identifier.

[0070] In this embodiment, performance data can be request processing volume (QPS, Queries Per Second), which is tested by simulating multiple requests in parallel to see how many requests can be processed per second; response time distribution, such as average response time and percentile response time (e.g., response time of 95th percentile requests); and resource consumption rate, such as CPU utilization, memory consumption, and disk I / O.

[0071] The performance testing method based on edge nodes provided by this invention has the following advantages:

[0072] By acquiring test tasks containing parameters such as test identifier, test type, and concurrency, different testing needs can be flexibly addressed. The target edge nodes selected from the candidate edge node set for performance testing ensure that the selected nodes meet actual requirements, avoiding unnecessary test interference and resource waste. By matching the target number of edge nodes to the concurrency level in the test tasks, precise control of concurrency during testing is ensured. This realistically simulates scenarios where multiple edge nodes work in parallel in a real environment, improving the reliability and representativeness of test data. Test tasks are sent in parallel to the target agent terminals corresponding to the target number of target edge nodes. The test tasks instruct the target number of target agent terminals to simultaneously test the corresponding target edge nodes and record the performance data corresponding to the target edge nodes according to the test identifier. This clearly identifies and records the performance data corresponding to each edge node, reducing the connection and storage pressure on the test server. The one-to-one correspondence between performance data and test identifiers facilitates subsequent performance analysis and evaluation, ensuring the traceability and accuracy of test results.

[0073] In some optional implementations, to further obtain performance data of the target edge node, the above method further includes:

[0074] In response to receiving a query command from the querying end, the system sends the test identifier to a target number of the aforementioned target agents, each test identifier instructing it to query the performance data of its corresponding target edge node. The system then receives the performance data of the target edge nodes from the target number of the aforementioned target agents. Finally, the system sends the performance data of the target edge nodes to the querying end.

[0075] In this embodiment, the query endpoint can be the aforementioned central management server. The query command can be a command to periodically retrieve incremental performance data, or it can be performance data corresponding to a specific test task type and a specific time period. Each target agent queries the performance data of its corresponding target edge node based on the received test identifier and feeds it back to the test server. The test server then feeds it back to the query endpoint. The query endpoint can choose to present the data of the aforementioned target edge nodes in the form of charts, reports, real-time monitoring, etc., to help decision-makers understand the performance of network nodes.

[0076] The edge node-based performance testing method in this embodiment responds to a query command sent by the querying end and sends a test identifier to the target agent, enabling dynamic querying of the target agent and real-time acquisition of performance data of the target edge nodes. This allows for timely monitoring of test progress and performance. Each target agent queries the performance data of its corresponding target edge node based on the received test identifier. This ensures that the performance data of each edge node is accurately collected from the corresponding target agent, and that this data corresponds one-to-one with specific test tasks and identifiers, guaranteeing the accuracy and completeness of the data.

[0077] In some alternative implementations, to further optimize the DHT network, the above method further includes:

[0078] For each of the target agents in the target number mentioned above, monitor whether a heartbeat signal is received from that target agent. If no heartbeat signal is received from that target agent, it is identified as an abnormal agent. Send a command to the target agents adjacent to the abnormal agent to disconnect from it, thereby removing the abnormal agent from the DHT network composed of the candidate agents corresponding to the candidate edge nodes. Adjacent nodes in the DHT network back up their corresponding performance data to each other.

[0079] In this embodiment, the test server can periodically monitor the heartbeat signal of each target proxy. Target proxies can periodically send heartbeat signals to the test server to indicate that they are operating normally. The test server can determine whether any abnormal proxies exist based on the monitoring results of the heartbeat signals. If a target proxy fails to send a heartbeat signal on time, it is marked as an "abnormal proxy." The test server can use the routing table of the DHT network to find other target proxies adjacent to the abnormal proxy and instruct them to disconnect from the abnormal proxy. Adjacent nodes (i.e., adjacent proxies) in the aforementioned DHT network can back up their corresponding performance data to each other through an announcement mechanism.

[0080] The edge node-based performance testing method in this embodiment identifies abnormal agents lacking heartbeat signals by monitoring the presence of heartbeat signals at each target agent. These abnormal agents are then removed from the DHT network, ensuring stable test performance and functionality, and guaranteeing consistent simulation of real user requests. Furthermore, data backup from adjacent nodes further enhances the reliability and consistency of performance data, enabling the system to automatically recover from node failures, reducing manual intervention and improving operational efficiency.

[0081] In some alternative implementations, to further optimize the DHT network, the above method further includes:

[0082] Obtain the target load information corresponding to the target number of target agents, thus obtaining the target load information for the target number. Determine whether there are any target load information exceeding a preset threshold among the target load information for the target number. Identify the target agents corresponding to the target load information exceeding the threshold as overloaded agents. Send a command to the target agents adjacent to the overloaded agents to disconnect from them, thereby removing the overloaded agents from the DHT network composed of the target number of target agents.

[0083] In this embodiment, the test server can periodically monitor the target load information of each target proxy. Target proxies can periodically send target load information to the test server, indicating their operational load status. The test server can determine whether any target proxies have excessive load based on the monitoring results of the target load information. If the target load information of a target proxy exceeds a preset threshold, it is marked as an "overloaded proxy." The test server can then use the routing table of the DHT network to find other target proxies adjacent to the overloaded proxy and instruct them to disconnect from the overloaded proxy.

[0084] The edge node-based performance testing method in this embodiment monitors whether each target proxy has excessive load. Overloaded proxies are identified and removed from the DHT network, ensuring stable test performance and functionality, and guaranteeing consistent simulation of real user requests. Automated load handling reduces the need for manual intervention, enhances the system's dynamic adaptability and resource utilization efficiency, and improves overall system performance and stability.

[0085] This invention provides a performance testing method based on edge nodes, which is applied to the target agent in a DHT network. Figure 3 This is a second flowchart of a performance testing method based on edge nodes according to an embodiment of the present invention. The method includes:

[0086] Step S301: Receive the test task sent by the test server.

[0087] The aforementioned test tasks include: test identifier and test type.

[0088] In this embodiment, the test identifier can be a unique identifier for each test task. The test type can be, for example, the registration function test, user login function test, search function test, or personal profile update test of the test edge node.

[0089] Step S302: Based on the test type of the above test task, test the corresponding target edge node and obtain the performance data of the above target edge node.

[0090] In this embodiment, the target proxy simulates a real user request and sends a test request of the corresponding test type to the target edge node, such as a registration request, login request, search request, or personal profile update request.

[0091] Step S303: Based on the test identifier of the above test task, store the performance data of the above target edge node in the above target agent.

[0092] In this embodiment, performance data can include request processing volume, response time distribution, resource consumption rate, etc. The target proxy can store the performance data of the target edge node in the target proxy's database and use the test identifier as an index for this performance data.

[0093] The performance testing method based on edge nodes provided by this invention has the following advantages:

[0094] By receiving test tasks from the test server at the target proxy end and testing the corresponding target edge nodes according to the test type in the test task, the performance data of the target edge nodes can be obtained in real time, ensuring accurate monitoring of the target edge node performance and enabling better evaluation of its performance in a real environment. By storing the test-obtained performance data in the target proxy end according to the test identifier, performance data management and querying can be conveniently performed. This allows each proxy end to independently store its own performance data and also enables fast retrieval based on the test identifier, improving the storage and query efficiency of performance data.

[0095] In some optional implementations, to further feed back the performance data of the target edge node to the test server, the above method also includes:

[0096] The system receives a query task sent by the test server, the query task including a test identifier. Based on the test identifier of the query task, it queries the performance data of the corresponding target edge node from the target proxy. The system then sends the retrieved performance data of the target edge node back to the test server.

[0097] In this embodiment, the query task received by the target agent from the test server includes a test identifier. This identifier specifies a particular test task and instructs the target agent to find the corresponding performance data from multiple stored performance data sets. This test identifier matches the task identifier of one of the multiple test tasks previously received by the target agent, ensuring that the query operation can locate the correct performance data for the target edge node. The target agent may retrieve the performance data of the target edge node related to the test identifier from local storage (such as a database) based on the test identifier in the query task. Specifically, the target agent may send the test identifier along with the corresponding performance data back to the test server, instructing the test server to differentiate between different performance data sets.

[0098] The edge node-based performance testing method in this embodiment receives query tasks with test identifiers sent by the test server. This enables dynamic querying of the target proxy and real-time feedback of target edge node performance data to the test server, thus allowing for timely monitoring of test progress and performance. The target proxy queries the performance data of its corresponding target edge node based on the received test identifier. This ensures that the performance data for each edge node is accurately collected from the corresponding target proxy, and that this data corresponds one-to-one with the specific test task and identifier, guaranteeing data accuracy and completeness.

[0099] This invention provides a performance testing device based on edge nodes, which is applied to a test server. Figure 4This is a schematic diagram of one of the edge node-based performance testing devices according to an embodiment of the present invention. The device includes:

[0100] The acquisition module 401 is used to acquire test tasks, which include: test identifier, test type, concurrency, and target edge node attributes.

[0101] The selection module 402 is used to select a target number of target edge nodes that meet the above target edge node attributes from the candidate edge nodes in the candidate edge node set, wherein the target number is consistent with the above concurrency.

[0102] The sending module 403 is used to send the test tasks in parallel to the target agent terminals corresponding to the target number of the target edge nodes. The test tasks instruct the target number of the target agent terminals to test the corresponding target edge nodes at the same time, and record the performance data corresponding to the target edge nodes according to the test identifier.

[0103] The performance testing device based on edge nodes provided by this invention has the following advantages:

[0104] By acquiring test tasks containing parameters such as test identifier, test type, and concurrency, different testing needs can be flexibly addressed. The target edge nodes selected from the candidate edge node set for performance testing ensure that the selected nodes meet actual requirements, avoiding unnecessary test interference and resource waste. By matching the target number of edge nodes to the concurrency level in the test tasks, precise control of concurrency during testing is ensured. This realistically simulates scenarios where multiple edge nodes work in parallel in a real environment, improving the reliability and representativeness of test data. Test tasks are sent in parallel to the target agent terminals corresponding to the target number of target edge nodes. The test tasks instruct the target number of target agent terminals to simultaneously test the corresponding target edge nodes and record the performance data corresponding to the target edge nodes according to the test identifier. This clearly identifies and records the performance data corresponding to each edge node, reducing the connection and storage pressure on the test server. The one-to-one correspondence between performance data and test identifiers facilitates subsequent performance analysis and evaluation, ensuring the traceability and accuracy of test results.

[0105] This invention provides a performance testing device based on edge nodes, which is applied to a target agent in a DHT network. Figure 5 This is a second schematic diagram of a performance testing device based on edge nodes according to an embodiment of the present invention. The device includes:

[0106] The receiving module 501 is used to receive test tasks sent by the test server. The test tasks include: test identifier and test type.

[0107] The test module 502 is used to test the corresponding target edge node according to the test type of the above test task, and obtain the performance data of the target edge node.

[0108] Storage module 503 is used to store the performance data of the target edge node into the target agent terminal according to the test identifier of the test task.

[0109] The performance testing device based on edge nodes provided by this invention has the following advantages:

[0110] By receiving test tasks from the test server at the target proxy end and testing the corresponding target edge nodes according to the test type in the test task, the performance data of the target edge nodes can be obtained in real time, ensuring accurate monitoring of the target edge node performance and enabling better evaluation of its performance in a real environment. By storing the test-obtained performance data in the target proxy end according to the test identifier, performance data management and querying can be conveniently performed. This allows each proxy end to independently store its own performance data and also enables fast retrieval based on the test identifier, improving the storage and query efficiency of performance data.

[0111] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0112] In this embodiment, the edge node-based performance testing device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit), a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0113] This invention also provides a computer device having the above-described features. Figure 5 The performance testing device based on edge nodes is shown.

[0114] Please see Figure 6 , Figure 6 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 6As shown, the computer device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 6 Take a processor 10 as an example.

[0115] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include an integrated circuit. The integrated circuit may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GPRS), or any combination thereof.

[0116] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiment.

[0117] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0118] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0119] The computer device also includes a communication interface 30 for communicating with other devices or communication networks.

[0120] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A performance testing method based on edge nodes, characterized in that, The method is applied to a test server, and the method includes: Obtain the test task, which includes: test identifier, test type, concurrency level, and target edge node attributes; From the candidate edge nodes in the candidate edge node set, select a target number of target edge nodes that match the target edge node attributes, wherein the target number matches the concurrency level; The test task is sent in parallel to the target agent corresponding to the target number of target edge nodes. The test task instructs the target number of target agents to test the corresponding target edge nodes at the same time, and record the performance data corresponding to the target edge nodes according to the test identifier.

2. The method according to claim 1, characterized in that, The method further includes: In response to receiving a query instruction from the querying end, the test identifier is sent to the target number of target agents respectively. The test identifier is used to instruct the target agents to query the performance data of their corresponding target edge nodes respectively. Receive performance data of the target edge nodes fed back by the target number of target agents respectively; The performance data of the target number of the target edge nodes is sent to the query terminal.

3. The method according to claim 1 or 2, characterized in that, The method further includes: For each of the target agent terminals in the target number, monitor whether a heartbeat signal is received from that target agent terminal; If no heartbeat signal is received from the target agent, the target agent is identified as an abnormal agent. Send a command to the target agent adjacent to the abnormal agent to disconnect from the abnormal agent, so as to delete the abnormal agent from the DHT network composed of the candidate agents corresponding to the candidate edge nodes; the adjacent nodes in the DHT network back up the corresponding performance data to each other.

4. The method according to claim 3, characterized in that, The method further includes: Obtain the target load information corresponding to the target number of target agents to obtain the target load information for the target number; Determine whether there are any target load information exceeding a preset threshold in the target load information of the target quantity; The target agent corresponding to the target load information that exceeds the load limit is designated as the overload agent. Send a command to the target agent adjacent to the overloaded agent to disconnect from the overloaded agent, so as to remove the overloaded agent from the DHT network composed of the target number of target agents.

5. A performance testing method based on edge nodes, characterized in that, The method is applied to a target agent in a DHT network, and the method includes: The test tasks sent by the test server are received in parallel. The test tasks include: test identifier, test type, concurrency degree, and target edge node attributes. According to the test type of the test task, the corresponding target edge nodes are tested simultaneously to obtain the performance data of the target edge nodes. The target edge nodes are a target number of target edge nodes that meet the target edge node attributes selected from the candidate edge node set. The target number is consistent with the concurrency. Based on the test identifier of the test task, the performance data of the target edge node is stored in the target proxy.

6. The method according to claim 5, characterized in that, The method further includes: Receive a query task sent by the test server, the query task including: test identifier; Based on the test identifier of the query task, query the performance data of the corresponding target edge node from the target agent; The performance data of the target edge node retrieved from the test server is then fed back.

7. A performance testing device based on edge nodes, characterized in that, The device is used in a test server, and the device includes: The acquisition module is used to acquire test tasks, which include: test identifier, test type, concurrency, and target edge node attributes; The selection module is used to select a target number of target edge nodes that meet the target edge node attributes from the candidate edge nodes in the candidate edge node set, wherein the target number is consistent with the concurrency. The sending module is used to send the test task in parallel to the target agent corresponding to the target number of target edge nodes. The test task instructs the target number of target agent terminals to test the corresponding target edge nodes at the same time, and records the performance data corresponding to the target edge nodes according to the test identifier.

8. A performance testing device based on edge nodes, characterized in that, The device is applied to a target proxy in a DHT network, and the device includes: The receiving module is used to receive test tasks sent by the test server in parallel. The test tasks include: test identifier, test type, concurrency degree, and target edge node attributes. The testing module is used to simultaneously test the corresponding target edge nodes according to the test type of the test task, and obtain the performance data of the target edge nodes. The target edge nodes are a target number of target edge nodes that meet the target edge node attributes selected from the candidate edge nodes in the candidate edge node set, and the target number is consistent with the concurrency. The storage module is used to store the performance data of the target edge node into the target agent according to the test identifier of the test task.

9. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the edge node-based performance testing method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the edge node-based performance testing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Edge node scheduling method and device

    CN114745565A

  • Automatic test method, device and equipment for access service process and storage medium

    CN116340189A