Performance test method and device based on edge node

By acquiring and processing test tasks, selecting and testing target edge nodes, the accuracy of performance testing when network nodes face large-scale user requests is solved, high-reliability test data is achieved, and testing pressure is reduced.

CN119854155AActive Publication Date: 2025-04-18YISU CLOUD TECHNOLOGY CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

How to accurately test the performance of network nodes in the face of large-scale user requests to ensure the reliability and representativeness of test data.

Method used

By obtaining test tasks, including test identification, test type, concurrency and target edge node attributes, select target edge nodes that meet the requirements, and send test tasks to the target agent in parallel to record performance data.

Benefits of technology

Accurate testing of network node performance is achieved, precise control of concurrency is ensured, reliability and representativeness of test data is improved, and linkage and storage pressure of test servers is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854155A_ABST
    Figure CN119854155A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of performance testing, and discloses a performance testing method and device based on an edge node, and the method comprises the steps: obtaining a test task and the attribute of each alternative edge node in an alternative edge node set; a target number of target edge nodes conforming to target edge node attributes are selected from the alternative edge node set, and the target number conforms to the concurrency degree; and sending a test task to the target agents corresponding to the target number of target edge nodes, the test task indicating the target number of target agents to test the corresponding target edge nodes at the same time, and recording performance data corresponding to the target edge nodes according to the test identifier. According to the method, distributed edge node performance evaluation can be efficiently and accurately carried out, different test requirements are met, pertinence and reliability of performance test are enhanced, and meanwhile accurate data records provide precious test data for optimization and troubleshooting of network nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of performance testing, and in particular to a performance testing method and device based on edge nodes. Background Art

[0002] With the rapid development of cloud computing and IoT technologies, more and more devices, sensors, applications and services are connected through the network, forming a large and complex global digital ecosystem. The amount of data generated by these devices and services and the diversity of user needs have posed unprecedented challenges to computing, storage and network performance. In order to ensure that these systems can operate efficiently, especially in the face of burst traffic and diverse user needs, performance testing becomes particularly important. 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 facing large-scale user requests.

[0004] In a first aspect, the present invention provides a performance testing method based on an edge node, the method is applied to a testing server, and the method includes:

[0005] Get the test task, which includes: test ID, test type, concurrency, and target edge node attributes;

[0006] Selecting 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, where the target number is consistent with the concurrency;

[0007] The test tasks are sent in parallel to the target agents corresponding to the target number of target edge nodes respectively. The test tasks instruct 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 identifiers.

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

[0009] By obtaining the test task, which contains parameters such as test identification, test type, and concurrency, different test requirements can be flexibly responded to; the target edge node selected from the set of candidate edge nodes for performance testing can ensure that the selected node meets the actual requirements, avoiding unnecessary test interference and waste of resources. By matching the target number with the concurrency in the test task, the concurrency is accurately controlled during the test process. This can truly simulate the scenario of multiple edge nodes working in parallel in a real environment, improving the reliability and representativeness of the test data. The test tasks are sent in parallel to the target proxy terminals corresponding to the target number of target edge nodes. The test tasks instruct the target number of target proxy 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 identification. The performance data corresponding to each edge node can be clearly identified and recorded, reducing the link and storage pressure of the test server. Among them, the performance data corresponds to the test identification one by one, which is helpful for subsequent performance analysis and evaluation, and ensures the traceability and accuracy of the test results.

[0010] In an optional embodiment, the method further includes:

[0011] In response to receiving the query instruction sent by the query end, respectively sending test identifiers to the target number of target proxy ends, the test identifiers are used to instruct the target proxy ends to respectively query the performance data of the target edge nodes corresponding thereto;

[0012] Receive performance data of target edge nodes fed back by target number of target proxy terminals respectively;

[0013] The performance data of the target number of target edge nodes are sent to the query end.

[0014] Specifically, in the steps of the method, by responding to the query instruction sent by the query end and sending the test identifier to the target agent end, a dynamic query of the target agent end can be realized, and the performance data of the target edge node can be obtained in real time, so as to monitor the test progress and performance in time. Each target agent end queries the performance data of the target edge node corresponding to it according to the received test identifier. This ensures that the performance data of each edge node is accurately collected from the corresponding target agent end, and these data correspond one-to-one with the specific test tasks and identifiers, ensuring the accuracy and integrity of the data.

[0015] In an optional embodiment, the method further includes:

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

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

[0018] An instruction to disconnect the abnormal proxy terminal is sent to a target proxy terminal adjacent to the abnormal proxy terminal, so as to delete the abnormal proxy terminal from the DHT network composed of the candidate proxy terminals corresponding to the candidate edge nodes; the adjacent nodes in the DHT network back up the corresponding performance data of each other.

[0019] Specifically, in the steps of the method, by monitoring whether each target proxy has a heartbeat signal, the abnormal proxy without a heartbeat signal can be identified and deleted from the DHT network, thereby ensuring the stability of the test performance and function, and ensuring stable simulation of real user requests. In addition, the data backup of adjacent nodes further enhances the reliability and consistency of performance data, allowing the system to automatically recover in the face of node failures, reducing manual intervention and improving operation and maintenance efficiency.

[0020] In an optional embodiment, the method further includes:

[0021] Obtain target load information corresponding to the target number of target agents respectively, and obtain target load information of the target number;

[0022] Determine whether there is target load information with a load exceeding a preset threshold value among the target load information of the target quantity;

[0023] The target proxy end corresponding to the target load information with the load exceeding the standard is regarded as the overload proxy end;

[0024] An instruction to disconnect the overloaded proxy terminal is sent to a target proxy terminal adjacent to the overloaded proxy terminal, so as to delete the overloaded proxy terminal from the DHT network composed of a target number of target proxies.

[0025] Specifically, in the steps of the method, by monitoring whether each target proxy has an overload, the overloaded proxy with an overload can be identified and deleted from the DHT network, thereby ensuring the test performance and functional stability, and ensuring stable simulation of real user requests. By automatically handling load issues, the need for manual intervention is reduced, the dynamic adaptability and resource utilization efficiency of the system are enhanced, and the overall performance and stability of the system are improved.

[0026] In a second aspect, the present invention provides a performance testing method based on an edge node, the method is applied to a target proxy in a DHT network, and the method includes:

[0027] Receive the test task sent by the test server, the test task includes: test identification, test type;

[0028] According to the test type of the test task, the corresponding target edge node is tested to obtain the performance data of the target edge node;

[0029] According to the test identifier of the test task, the performance data of the target edge node is stored in the target proxy.

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

[0031] By receiving the test task from the test server at the target agent, and testing the corresponding target edge node according to the test type in the test task, the performance data of the target edge node can be obtained in real time, ensuring accurate monitoring of the performance of the target edge node, and better evaluating its performance in the actual environment. By storing the performance data obtained from the test in the target agent according to the test identifier, the performance data can be easily managed and queried. Each agent can independently store its own performance data, and can also quickly retrieve it according to the test identifier, which improves the storage efficiency and query efficiency of performance data.

[0032] In an optional embodiment, the method further includes:

[0033] Receiving a query task sent by a test server, the query task including: a test identifier;

[0034] According to the test identifier of the query task, query the performance data of the corresponding target edge node from the target proxy end;

[0035] Feedback the queried performance data of the target edge node to the test server.

[0036] Specifically, in the steps of the method, receiving the query task with the test identifier sent by the test server can realize dynamic query of the target agent, and feedback the performance data of the target edge node to the test server in real time, so as to monitor the test progress and performance in time. The target agent queries the performance data of the corresponding target edge node according to the received test identifier. This ensures that the performance data of each edge node is accurately collected from the corresponding target agent, and these data correspond one-to-one with the specific test task and identifier, ensuring the accuracy and integrity of the data.

[0037] In a third aspect, the present invention provides a performance testing device based on an edge node, the device is applied to a testing server, and the device includes:

[0038] The acquisition module is used to acquire the test task, which includes: test identification, test type, concurrency, and target edge node attributes;

[0039] A selection module, used for selecting 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, where the target number is consistent with the concurrency;

[0040] The sending module is used to send test tasks in parallel to the target agents corresponding to the target number of target edge nodes. The test tasks instruct 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.

[0041] In a fourth aspect, the present invention provides a performance testing device based on an edge node, the device is applied to a target proxy terminal in a DHT network, and the device includes:

[0042] The receiving module is used to receive the test task sent by the test server, and the test task includes: test identification and test type;

[0043] A test module, used to test the corresponding target edge node according to the test type of the test task, and obtain the performance data of the target edge node;

[0044] The storage module is used to store the performance data of the target edge node in the target proxy terminal according to the test identifier of the test task.

[0045] In a fifth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the performance testing method based on the edge node of the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0046] In a sixth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the edge node-based performance testing method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

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

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

[0050] Figure 3 This is a second flow chart of the 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 a performance testing device based on an edge node according to an embodiment of the present invention;

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

[0053] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

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

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

[0057] Among them, 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 may be a master-slave architecture, used to generate test tasks according to test requirements and send the test tasks to the test server.

[0059] The candidate agent is deployed on each corresponding candidate edge node, and is located at the same geographical location as the candidate edge node. The candidate agent periodically asks the test server whether there is a test task in the form of a heartbeat signal, and tests the corresponding candidate edge node according to the test task. Preferably, the candidate agent is deployed to the corresponding candidate edge node in the form of an edge Agent program.

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

[0061] In this embodiment, a performance testing method based on edge nodes is provided, which can be used for the above-mentioned test server. Figure 2 is one of the flow charts of the performance testing method based on edge nodes according to an embodiment of the present invention, the method comprising:

[0062] Step S201, obtaining a test task.

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

[0064] In this embodiment, the test task can be generated by the central management server, and the test server obtains the task to be tested from the central management server. Among them, the test identifier can be a unique identity identifier for each test task. The test type can correspond to the registration function test, user login function test, search function test, personal data update test, on-demand concurrent download test, scheduling performance test, etc. of the test edge node. The concurrency can be the number of concurrencies during the test, indicating the number of clients to be simulated. Specifically, different operators in different regions can set different concurrencies. The target edge node attributes can be the geographical area 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 nodes in the candidate edge node set.

[0066] Among them, the above target number is consistent with the above concurrency.

[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 target number of target edge nodes matches the concurrency in the test task. Concurrency represents the number of clients that initiate test requests at the same time, so the selected target number should be equal to it. The selected target edge nodes must meet the target edge node attributes specified in the test task, such as: the geographic location information of the target edge node, the network bandwidth information of the target edge node, the load information of the target edge node, etc. Ensure that the selected target edge node has the conditions required to execute the test task and can perform performance testing under concurrent conditions.

[0068] Step S203, sending the test tasks in parallel to the target proxy terminals corresponding to the target number of target edge nodes.

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

[0070] In this embodiment, the performance data may be the request processing volume (QPS, Queries Per Second), by simulating multiple requests in parallel to test how many requests can be processed per second; the response time distribution, the average response time and the percentile response time (such as the response time of 95% of the requests); the resource consumption rate, such as CPU usage, memory consumption, disk I / O, etc.

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

[0072] By obtaining the test task, which contains parameters such as test identification, test type, and concurrency, different test requirements can be flexibly responded to; the target edge node selected from the set of candidate edge nodes for performance testing can ensure that the selected node meets the actual requirements, avoiding unnecessary test interference and waste of resources. By matching the target number with the concurrency in the test task, the concurrency is accurately controlled during the test process. This can truly simulate the scenario of multiple edge nodes working in parallel in a real environment, improving the reliability and representativeness of the test data. The test tasks are sent in parallel to the target proxy terminals corresponding to the target number of target edge nodes. The test tasks instruct the target number of target proxy 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 identification. The performance data corresponding to each edge node can be clearly identified and recorded, reducing the link and storage pressure of the test server. Among them, the performance data corresponds to the test identification one by one, which is helpful for subsequent performance analysis and evaluation, and ensures the traceability and accuracy of the test results.

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

[0074] In response to receiving the query instruction sent by the query end, the test identifier is sent to the target number of target proxy ends respectively, and the test identifier is used to instruct the target proxy ends to query the performance data of the target edge nodes corresponding to them respectively. The performance data of the target edge nodes respectively fed back by the target number of target proxy ends are received. The performance data of the target edge nodes of the target number are sent to the query end.

[0075] In this embodiment, the query end may be the above-mentioned central management server, and the query instruction may be an instruction for periodically obtaining incremental performance data, or may be performance data corresponding to a specific test task type or a specific period of time. 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 end. The query end may choose to present the data of the above-mentioned target edge node 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 can realize dynamic query of the target agent terminal by responding to the query instruction sent by the query terminal and sending the test identifier to the target agent terminal, and obtain the performance data of the target edge node in real time, so as to monitor the test progress and performance in time. Each target agent terminal queries the performance data of the target edge node corresponding to it according to the received test identifier. This ensures that the performance data of each edge node is accurately collected from the corresponding target agent terminal, and these data correspond one-to-one with the specific test tasks and identifiers, ensuring the accuracy and integrity of the data.

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

[0078] For each of the target number of target proxy terminals, monitor whether a heartbeat signal is received from the target proxy terminal. If a heartbeat signal is not received from the target proxy terminal, the target proxy terminal is determined as an abnormal proxy terminal. Send an instruction to disconnect the abnormal proxy terminal to the target proxy terminal adjacent to the abnormal proxy terminal, so as to delete the abnormal proxy terminal from the DHT network composed of the candidate proxy terminals corresponding to the candidate edge nodes. The adjacent nodes in the DHT network back up the corresponding performance data of each other.

[0079] In this embodiment, the test server can periodically monitor the heartbeat signal of each target agent. The target agent can periodically send a heartbeat signal to the test server to indicate that it is operating normally. The test server can determine whether there is an abnormal agent based on the monitoring result of the heartbeat signal. If a target agent fails to send a heartbeat signal on time, it will be marked as an "abnormal agent". The test server can search for other target agents adjacent to the abnormal agent based on the routing table of the DHT network, and instruct them to disconnect from the abnormal agent. The adjacent nodes (i.e., adjacent agents) in the above-mentioned DHT network can back up corresponding performance data to each other through an announce mechanism.

[0080] The edge node-based performance testing method in this embodiment can identify abnormal proxy terminals without heartbeat signals by monitoring whether each target proxy terminal has a heartbeat signal, and delete the abnormal proxy terminal from the DHT network, thereby ensuring the stability of test performance and functions, and ensuring stable simulation of real user requests. In addition, the data backup of adjacent nodes further enhances the reliability and consistency of performance data, allowing the system to automatically recover in the face of node failures, reducing manual intervention and improving operation and maintenance efficiency.

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

[0082] Obtain target load information corresponding to the target number of target proxy terminals respectively, and obtain the target load information of the target number. Determine whether there is target load information with a load exceeding the standard greater than a preset threshold in the target load information of the target number. The target proxy terminal corresponding to the target load information with the load exceeding the standard is regarded as an overload proxy terminal. Send an instruction to disconnect the overload proxy terminal to the target proxy terminal adjacent to the overload proxy terminal, so as to delete the overload proxy terminal from the DHT network composed of the target number of target proxy terminals.

[0083] In this embodiment, the test server can periodically monitor the target load information of each target proxy. The target proxy can periodically send target load information to the test server to indicate its operating load status. The test server can determine whether there is a target proxy with an excessive load based on the monitoring result of the target load information. If the target load information of a target proxy is greater than a preset threshold, it is marked as an "overloaded proxy". The test server can search for other target proxies adjacent to the overloaded proxy based on the routing table of the DHT network, and instruct them to disconnect from the overloaded proxy.

[0084] The edge node-based performance testing method in this embodiment can identify overloaded proxy terminals by monitoring whether each target proxy terminal has an overload, and delete the overloaded proxy terminal from the DHT network, thereby ensuring the stability of test performance and functions, and ensuring stable simulation of real user requests. By automatically handling load issues, the need for manual intervention is reduced, the dynamic adaptability and resource utilization efficiency of the system are enhanced, and the overall performance and stability of the system are improved.

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

[0086] Step S301, receiving a test task sent by a test server.

[0087] The above test tasks include: test identification and test type.

[0088] In this embodiment, the test identifier may be a unique identifier for each test task. The test type may be a corresponding test of the registration function of the edge node, a user login function test, a search function test, a personal data update test, etc.

[0089] Step S302: According to the test type of the test task, the corresponding target edge node is tested to obtain performance data of the target edge node.

[0090] In this embodiment, the target proxy terminal simulates a real user request to send a test request corresponding to the test type to the corresponding target edge node, for example, a registration request, a login request, a search request, a personal data update request, etc.

[0091] Step S303: According to the test identifier of the test task, the performance data of the target edge node is stored in the target proxy terminal.

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

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

[0094] By receiving the test task from the test server at the target agent, and testing the corresponding target edge node according to the test type in the test task, the performance data of the target edge node can be obtained in real time, ensuring accurate monitoring of the performance of the target edge node, and better evaluating its performance in the actual environment. By storing the performance data obtained from the test in the target agent according to the test identifier, the performance data can be easily managed and queried. Each agent can independently store its own performance data, and can also quickly retrieve it according to the test identifier, which improves the storage efficiency and query efficiency of performance data.

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

[0096] Receive a query task sent by the test server, the query task including a test identifier. According to the test identifier of the query task, query the performance data of the corresponding target edge node from the target proxy terminal. Feedback the query performance data of the target edge node to the test server.

[0097] In this embodiment, the query task received by the target agent from the test server includes a test identifier, which is used to specify a specific test task and to instruct the target agent to find corresponding performance data from multiple stored performance data. The test identifier is consistent with the task identifier of a test task among multiple test tasks previously received by the target agent, ensuring that the query operation can locate the performance data of the correct target edge node. The target agent can 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 can feed back the test identifier together with the corresponding performance data to the test server to instruct the test server to distinguish between different performance data.

[0098] The edge node-based performance testing method in this embodiment receives a query task with a test identifier sent by a test server, can realize dynamic query of the target agent, and feed back the performance data of the target edge node to the test server in real time, so as to monitor the test progress and performance in time. The target agent queries the performance data of the corresponding target edge node according to the received test identifier. This ensures that the performance data of each edge node is accurately collected from the corresponding target agent, and these data correspond one-to-one with the specific test task and identifier, ensuring the accuracy and integrity of the data.

[0099] The present invention provides a performance testing device based on edge nodes, which is applied to testing servers. Figure 41 is a schematic diagram of a performance testing device based on an edge node according to an embodiment of the present invention, wherein the device comprises:

[0100] The acquisition module 401 is used to acquire a test task, where the test task includes: a test identifier, a test type, a concurrency, and a target edge node attribute.

[0101] The selection module 402 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, and the target number is consistent with the concurrency.

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

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

[0104] By obtaining the test task, which contains parameters such as test identification, test type, and concurrency, different test requirements can be flexibly responded to; the target edge node selected from the set of candidate edge nodes for performance testing can ensure that the selected node meets the actual requirements, avoiding unnecessary test interference and waste of resources. By matching the target number with the concurrency in the test task, the concurrency is accurately controlled during the test process. This can truly simulate the scenario of multiple edge nodes working in parallel in a real environment, improving the reliability and representativeness of the test data. The test tasks are sent in parallel to the target proxy terminals corresponding to the target number of target edge nodes. The test tasks instruct the target number of target proxy 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 identification. The performance data corresponding to each edge node can be clearly identified and recorded, reducing the link and storage pressure of the test server. Among them, the performance data corresponds to the test identification one by one, which is helpful for subsequent performance analysis and evaluation, and ensures the traceability and accuracy of the test results.

[0105] The present invention provides a performance testing device based on edge nodes, which is applied to a target proxy terminal in a DHT network. Figure 5 2 is a schematic diagram of a performance testing device based on an edge node according to an embodiment of the present invention, wherein the device comprises:

[0106] The receiving module 501 is used to receive a test task sent by a test server, where the test task includes: a test identifier and a test type.

[0107] The testing 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 above target edge node.

[0108] The storage module 503 is used to store the performance data of the target edge node in the target proxy terminal according to the test identifier of the test task.

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

[0110] By receiving the test task from the test server at the target agent, and testing the corresponding target edge node according to the test type in the test task, the performance data of the target edge node can be obtained in real time, ensuring accurate monitoring of the performance of the target edge node, and better evaluating its performance in the actual environment. By storing the performance data obtained from the test in the target agent according to the test identifier, the performance data can be easily managed and queried. Each agent can independently store its own performance data, and can also quickly retrieve it according to the test identifier, which improves the storage efficiency and query efficiency of performance data.

[0111] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

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

[0113] The embodiment of the present invention also provides a computer device having the above Figure 5 The edge node-based performance testing setup is shown.

[0114] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0115] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include an integrated circuit. The integrated circuit may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0116] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0117] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

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

[0119] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0120] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all 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 comprises: Obtain a test task, wherein the test task includes: a test identifier, a test type, a concurrency, and a target edge node attribute; Selecting 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 test tasks are sent in parallel to the target agent terminals corresponding to the target number of target edge nodes respectively, and the test tasks instruct the target number of target agent terminals to test the corresponding target edge nodes simultaneously, and record the performance data corresponding to the target edge nodes according to the test identifiers.

2. The method according to claim 1, characterized in that The method further comprises: In response to receiving a query instruction sent by the query end, sending the test identifier to the target number of target proxy ends respectively, wherein the test identifier is used to instruct the target proxy ends to query the performance data of the target edge nodes corresponding thereto respectively; Receive performance data of target edge nodes respectively fed back by a target number of target proxy terminals; The performance data of the target number of target edge nodes are sent to the query end.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: For each target agent terminal of the target number of target agents, monitoring whether a heartbeat signal is received from the target agent terminal; If no heartbeat signal is received from the target agent, the target agent is determined as an abnormal agent; An instruction to release the connection with the abnormal proxy terminal is sent to a target proxy terminal adjacent to the abnormal proxy terminal, so as to delete the abnormal proxy terminal from the DHT network composed of candidate proxy terminals corresponding to the candidate edge nodes; the adjacent nodes in the DHT network back up corresponding performance data with each other.

4. The method according to claim 3, characterized in that: The method further comprises: Obtain target load information corresponding to a target number of target proxy terminals respectively, to obtain target load information of a target number; Determine whether there is target load information with a load exceeding a preset threshold value among the target load information of the target quantity; The target proxy terminal corresponding to the target load information of the load exceeding the standard is used as the overload proxy terminal; An instruction to release the connection with the overloaded proxy terminal is sent to a target proxy terminal adjacent to the overloaded proxy terminal, so as to delete the overloaded proxy terminal from the DHT network composed of the target number of target proxy terminals.

5. A performance testing method based on edge nodes, characterized in that: The method is applied to a target proxy in a DHT network, and the method includes: Receiving a test task sent by a test server, wherein the test task includes: a test identifier and a test type; According to the test type of the test task, test the corresponding target edge node to obtain performance data of the target edge node; According to the test identifier of the test task, the performance data of the target edge node is stored in the target proxy terminal.

6. The method according to claim 5, characterized in that The method further comprises: receiving a query task sent by the test server, wherein the query task includes: a test identifier; According to the test identifier of the query task, query the performance data of the corresponding target edge node from the target proxy terminal; Feedback the queried performance data of the target edge node to the test server.

7. A performance testing device based on edge nodes, characterized in that: The device is applied to a test server, and the device comprises: An acquisition module is used to acquire a test task, wherein the test task includes: a test identifier, a test type, a concurrency, and a target edge node attribute; A selection module, configured 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; A sending module is used to send the test task in parallel to the target agent terminals corresponding to the target number of target edge nodes respectively, and 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 terminal in a DHT network, and the device includes: A receiving module, used for receiving a test task sent by a test server, wherein the test task includes: a test identifier and a test type; A test module, used to test the corresponding target edge node according to the test type of the test task, and obtain performance data of the target edge node; The storage module is used to store the performance data of the target edge node in the target proxy terminal according to the test identifier of the test task.

9. A computer device, characterized in that: include: 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 edge node-based performance testing method according to any one of claims 1 to 6 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the edge node-based performance testing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Pressure test method and device, computer device and storage medium

    CN111343048A

  • Pressure testing method and device based on cloud service

    CN113037594A

  • Edge node scheduling method and device

    CN114745565A

  • Communication time delay test method and device of edge internet of things proxy device, and storage medium

    CN115499899A

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

    CN116340189A