A method, device and computer-readable medium for edge resource evaluation
By establishing a communication connection between the container and the edge, the resource consumption of the target thread is monitored and counted, which solves the problem of inaccurate edge resource evaluation and achieves accurate evaluation and controllability of edge computing performance.
Patent Information
- Application Number
- CN202011576588.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-28
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-12-28
AI Technical Summary
Existing technology makes it difficult to accurately evaluate the hardware resource consumption of edge computing devices, resulting in the separation of development and execution environments, making resource consumption difficult to control, especially when upgrading multiple edge terminals, which requires a lot of debugging work.
Establish a communication connection with the edge through the container, obtain the running request of the target thread, perform running operations and monitor resource consumption, and count resource consumption to achieve quantitative evaluation.
It achieves accurate quantitative evaluation of edge computing performance, ensures controllable edge operation, avoids the instability and complexity of virtual environment construction, and improves the accuracy and efficiency of resource assessment.
Smart Images

Figure CN112667473B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet of Things technology, and in particular to a method, device and computer-readable medium for edge resource evaluation. Background Art
[0002] The edge of the Internet of Things can perform real-time operations on the collected data. However, the edge will inevitably occupy hardware resources during the operation. By evaluating the consumption of hardware resources by the edge during the operation, the appropriate algorithm can be effectively selected, thereby achieving effective control over the execution of the edge.
[0003] In actual application scenarios, the development and debugging of edge computing logic are completed on the host computer, while the execution needs to be distributed to the edge end which belongs to the hardware. There are two technical problems: the first technical problem is that the hardware resource consumption of the edge end during the operation process is difficult to evaluate due to the separation of the development and execution environment; the second technical problem is that when multiple edge ends need to be upgraded, the situation is more complicated and a lot of debugging work needs to be done. In response to the above technical problems, the existing solutions are to conduct a qualitative evaluation of the resource usage of the edge end or to use a simulation environment for evaluation. Qualitative evaluation is mainly based on the same proportion of the resource usage of the host computer to the edge end to determine the resource usage of the edge end. However, this method can only give an approximate evaluation result and cannot be accurately evaluated. Using a simulation environment for evaluation is mainly to virtualize an operating environment similar to the edge end in the host computer, and estimate the resource usage of the edge end based on the resource usage of the operating environment; however, the construction of a virtual operating environment is limited by the host, which leads to unstable resource evaluation results on the edge end. Secondly, because the edge end environment is complex and the construction process is cumbersome, when the edge end environment changes, the edge end simulation environment needs to be reconstructed for evaluation. Summary of the invention
[0004] In order to solve the problems existing in the above-mentioned prior art, the embodiments of the present invention provide a method, an apparatus and a computer-readable medium for edge resource evaluation, which can quantitatively evaluate the computing performance of the edge.
[0005] To achieve the above-mentioned purpose, according to a first aspect of an embodiment of the present invention, a method for edge resource evaluation is provided, the method comprising: an edge and a container, the edge and the container establishing a communication connection; the container obtaining a running request of a target thread of the edge; the container performing a running operation on the target thread in response to the running request, and monitoring the running target thread; the container determining the resource consumption of the target thread of the edge according to the monitoring result.
[0006] Optionally, executing the running operation on the target thread includes: the container executing a binding operation on the target thread on the edge end in response to the running request; and the container executing the running operation on the bound target thread using a program.
[0007] Optionally, performing a binding operation on the target thread at the edge end includes: the container creating a new thread; the container establishing a mapping relationship between the created new thread and the target thread at the edge end, so as to implement the binding operation on the target thread at the edge end.
[0008] Optionally, the container uses a program to perform a running operation on the bound target thread, including: the container obtains target data of the bound target thread; the container uses the program to perform the running operation on the target data.
[0009] Optionally, the container determines the resource consumption of the target thread at the edge end according to the monitoring results, including: the container obtains a completion request for the target thread to run an operation; in response to the completion request, the container stops monitoring the target thread; the container obtains the monitoring results and counts the resource consumption of the target thread at the edge end according to the monitoring results.
[0010] Optionally, before the container obtains the completion request for the target thread's running operation, the process further includes: the container detecting the running variables of the target thread; if the detection result indicates that the running variables meet a preset threshold, the container obtains the completion request for the target thread's running operation.
[0011] Optionally, counting the resource consumption of the target thread at the edge according to the monitoring result includes: the container counting the resource consumption of the target thread during operation according to the monitoring result; and determining the counted resource consumption as the resource consumption of the target thread running at the edge.
[0012] To achieve the above-mentioned purpose, according to the second aspect of an embodiment of the present invention, there is also provided a device for edge resource evaluation, the device comprising: an edge and a container, the edge and the container establishing a communication connection; an acquisition module, used by the container to obtain a running request of a target thread of the edge; a monitoring module, used by the container to respond to the running request, perform a running operation on the target thread, and monitor the running target thread; a statistical module, used by the container to count the resource consumption of the target thread of the edge according to the monitoring results.
[0013] Optionally, the monitoring module includes: a binding unit, which is used for the container to perform a binding operation on the target thread of the edge end in response to the running request; and an execution unit, which is used for the container to perform a running operation on the bound target thread using a program.
[0014] Optionally, the binding unit includes: a creation subunit, which is used for the container to create a new thread; and a mapping subunit, which is used for the container to establish a mapping relationship between the created new thread and the target thread of the edge end, so as to implement the binding operation on the target thread of the edge end.
[0015] Optionally, the execution unit includes: an acquisition subunit, which is used by the container to acquire target data of the bound target thread; and an execution subunit, which is used by the container to perform a running operation on the target data using a program.
[0016] Optionally, the statistical module includes: an acquisition unit, used by the container to obtain a completion request for the target thread's running operation; an execution unit, used by the container to stop monitoring the target thread in response to the completion request; and a statistical unit, used by the container to obtain monitoring results and to count the resource consumption of the target thread at the edge based on the monitoring results.
[0017] Optionally, the statistics module further includes: a detection unit, which is used for the container to detect the running variables of the target thread; and an acquisition unit, which is also used for the container to obtain a completion request for the running operation of the target thread if the detection result indicates that the running variable meets a preset threshold.
[0018] Optionally, the statistical unit includes: a statistical subunit, which is used by the container to count the resource consumption of the target thread during operation according to the monitoring results; a determination subunit, which is used to determine the counted resource consumption as the resource consumption of the target thread running at the edge end; and a sending subunit, which is used by the container to send the resource consumption to the edge end.
[0019] To achieve the above-mentioned purpose, according to a third aspect of an embodiment of the present invention, a computer-readable medium is further provided, on which a computer program is stored, and when the program is executed by a processor, the method for edge resource evaluation as described in the first aspect is implemented.
[0020] Compared with the prior art, the embodiments of the present invention provide a method, device and computer-readable medium for evaluating edge resources. The container obtains the running request of the target thread of the edge, and in response to the running request, performs a running operation on the target thread; during the running process, the container monitors the running target thread; and then determines the resource consumption of the target thread of the edge according to the monitoring result. Thus, the container performs the running operation on the edge and monitors the running process, and then the resource consumption of the target thread of the edge is counted based on the monitoring result, so as to quantitatively evaluate the computing performance of the edge, and then select a suitable and effective algorithm for the edge to ensure that the operation of the edge is controllable.
[0021] It should be understood that the teachings of the present invention are not required to achieve all of the beneficial effects described above, but specific technical solutions can achieve specific technical effects, and other embodiments of the present invention can also achieve beneficial effects not mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention. In the accompanying drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0023] Figure 1 A schematic flow chart of a method for evaluating edge resources according to an embodiment of the present invention;
[0024] Figure 2 A schematic flow chart of another method for edge resource evaluation according to the present invention;
[0025] Figure 3 A schematic flow chart of another method for evaluating edge resources according to the present invention;
[0026] Figure 4 A schematic flow chart of a method for evaluating edge resources according to another embodiment of the present invention;
[0027] Figure 5 The present invention is a schematic block diagram of an apparatus for evaluating edge resources according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0029] like Figure 1As shown, a schematic flow chart of a method for edge resource evaluation according to an embodiment of the present invention. A method for edge resource evaluation includes: an edge and a container, the edge and the container establish a communication connection; the method includes at least the following operation flow: S101, the container obtains a running request of a target thread of the edge; S102, the container responds to the running request, performs a running operation on the target thread, and monitors the running target thread; S103, the container determines the resource consumption of the target thread of the edge according to the monitoring result.
[0030] In S101, based on the trigger request of the target thread executed at the edge, the container obtains the running request of the target thread at the edge. There may be multiple threads at the edge, and for each edge thread, there is a corresponding container for quantitatively evaluating the computing performance of the edge thread.
[0031] In S102, the container binds the target thread of the edge in response to the run request, and then the container obtains the target data of the bound target thread, that is, the container obtains the business data from the bound target thread, and the container uses the program to perform the run operation on the target data. In this way, the impact of non-business data on the operation of the edge target data when the edge is running can be avoided, and the accuracy of the container's evaluation of the computing performance of the edge target thread is improved. By performing the run operation on the target data of the edge through the program, the computing performance of the edge target thread can be accurately evaluated by the container, so that the appropriate program can be selected for the edge target thread to ensure that the edge operation is controllable.
[0032] The container obtains a trigger request for the program to perform an operation on the target data, and the container responds to the trigger request to monitor the process of the program running the target data. The program performs an operation on the target data, generates an operation variable, and then the container monitors the operation variable. Since the operation variable is linearly related to the length of the program running on the target data, the target data operation process can be monitored by monitoring the changes in the operation variable. The use of this monitoring method can not only achieve effective monitoring, but also is simple to operate, thereby improving the accuracy of the monitoring result statistics. Here, the operation variable can be the CPU time slice and the memory usage size, or it can be other parameters that can reflect the resource consumption during the operation of the target data.
[0033] In S103, the container obtains the monitoring results, and based on the monitoring results, uses an algorithm to collect statistics on the monitoring results; and determines the CPU time slices and memory usage consumed by the program in the container during the operation of the target data according to the statistical results. The CPU time slices and memory usage consumed by the container are determined as the resource consumption of the target thread running on the edge.
[0034] In the embodiment of the present invention, a container obtains a running request of a target thread at an edge, and in response to the running request, performs a binding operation on the target thread, obtains target data from the bound target thread, then uses a program to perform a running operation on the target data, monitors the target thread during the running operation, and finally determines the resource consumption of the target thread at the edge based on the monitoring result; thus, by using the program to perform a running operation on the target data at the edge, it is possible to use the container to quantitatively evaluate the computing performance of the target thread at the edge, which solves the problem of unstable evaluation results caused by the need to build an edge virtual environment when evaluating the computing performance of the edge in the prior art, and improves the accuracy of the computing performance evaluation of the target thread at the edge; and thus, it is possible to select a suitable program for the target thread at the edge to ensure that the operation at the edge is controllable.
[0035] It should be noted that, in this embodiment, there are multiple ways for the container to bind the target thread at the edge, which are not limited here, as long as the container can obtain the target data from the target thread. It should also be noted that the program can be an execution program corresponding to the business data obtained by the container from the target thread, or it can be an execution program preset in the container.
[0036] like Figure 2 As shown, another embodiment of the present invention is a schematic flow chart of a method for edge resource evaluation. This embodiment is further optimized on the basis of the previous embodiment. A method for edge resource evaluation, comprising: an edge and a container, the edge and the container establish a communication connection; the method includes at least the following operation flow: S201, the container obtains the running request of the target thread of the edge; S202, the container creates a new thread in response to the running request; S203, the container establishes a mapping relationship between the created new thread and the target thread of the edge, so as to implement the binding operation on the target thread of the edge; S204, the container uses the program to perform the running operation on the bound target thread, and monitors the running target thread; S205, the container determines the resource consumption of the target thread of the edge according to the monitoring results.
[0037] Among them, the specific implementation process of S201 and S205 is the same as Figure 1 The specific implementation processes of S101 and S103 in the illustrated embodiment are similar and will not be described in detail here.
[0038] In S202, the container creates a new thread in response to the execution request; the new thread is an empty thread, which has neither target data corresponding to the edge service nor a program for executing the target data.
[0039] In S203, the edge end obtains the trigger operation of the container to create a new thread; the edge end responds to the trigger operation and sends the numbering information of the target thread to the container; the container establishes a mapping relationship between the new thread and the target thread based on the numbering information of the target thread. The container establishes a mapping relationship between the new thread and the target thread of the edge end, that is, the operating environment of the target thread of the edge end is mapped to the new thread of the container, so that the container and the edge end have the same execution environment, thereby taking into account the impact of other factors in the edge end operating environment on the computing performance of the target thread of the edge end, so that the execution of the target thread of the edge end can be reproduced in the container. After that, the container obtains the target data of the bound target thread, that is, the container obtains the business data from the bound execution environment, and the container uses the program to perform running operations on the business data in the same execution environment. By monitoring the running variables generated during the program running the target data; thus, the target thread of the edge end is effectively monitored, so that the computing performance of the edge target thread can be accurately and quantitatively evaluated.
[0040] In this embodiment, the container obtains the running request of the target thread at the edge, creates a new thread based on the running request, and establishes a mapping relationship between the created new thread and the target thread at the edge, thereby binding the target thread at the edge through the container; then obtaining the target data from the bound target thread, and performing running operations on the target data using an existing program or a program obtained from the target thread; and monitoring the running process, and determining the resource consumption of the program during the running of the target data based on the monitoring result, and determining the statistical resource consumption as the resource consumption of the target thread at the edge during the computing process, thereby quantitatively evaluating the computing power of the target thread at the edge using the container, thereby improving the accuracy of the computing performance evaluation of the target thread at the edge; thereby selecting a suitable program for the edge to ensure that the operation at the edge is controllable.
[0041] like Figure 3As shown, another embodiment of the present invention is a schematic flow chart of a method for edge resource evaluation. This embodiment is further optimized on the basis of the previous embodiment. A method for edge resource evaluation, comprising: an edge and a container, the edge and the container establish a communication connection; the method includes at least the following operation flow: S301, the container obtains the running request of the target thread of the edge; S302, the container creates a new thread in response to the running request; S303, the container establishes a mapping relationship between the created new thread and the target thread of the edge, so as to implement the binding operation on the target thread of the edge; S304, the container uses the program to perform the running operation on the bound target thread, and monitors the running target thread; S305, the container obtains the completion request of the target thread running operation; S306, in response to the completion request, the container stops monitoring the target thread; S307, the container obtains the monitoring result, and counts the resource consumption of the target thread of the edge according to the monitoring result.
[0042] Among them, the specific implementation process of S301, S302, S303, S304 and S307 is similar to the specific implementation process of S201, S202, S203, S204 and S205, and will not be repeated here.
[0043] In S305, there are many ways to implement the container obtaining the target thread running completion request. For example, based on the trigger instruction of the target thread execution completion at the edge, the container obtains the target thread running operation completion request. For another example, the container detects the running variables of the target thread; determines whether the running variables meet the preset threshold value according to the detection result; if so, the container obtains the target thread running operation completion request; if not, the container continues to monitor the running variables of the target thread. Here, the running variables can also be understood as monitoring variables, that is, they are used to monitor the main variables generated during the running process of the target thread, thereby effectively monitoring the running status of the target thread.
[0044] In S306, when the completion request is obtained based on the trigger instruction of the completion of the execution of the edge target thread, the container responds to the completion request and stops the running operation and monitoring operation of the target thread. When the completion request is obtained based on the running variable of the edge target thread meeting the preset threshold, the container responds to the completion request and stops monitoring the target thread, but the process does not necessarily stop the running of the target thread; for example, in some cases, the evaluation of the computing performance of the edge target thread is mainly based on the running of the edge target thread in a specific time period. To this end, the container can create a tracker running lock to listen to the control information of the container monitoring stop during the running of the target thread and stop monitoring the target thread.
[0045] The container of the embodiment of the present invention starts to monitor the running variables during the running operation while using the program to execute the running operation on the target data; and performs real-time detection of the running variables during the monitoring process. When the detection result indicates that the running variable meets the preset threshold, the monitoring result of the running variable is determined, thereby accurately determining the monitoring end point of the target thread running process by detecting the running variables in the container. In this way, the resource consumption of the edge target thread can be effectively monitored, and the computing performance of the edge target thread can be accurately and quantitatively evaluated, and a suitable program can be selected for the edge target thread to ensure that the edge operation is controllable.
[0046] like Figure 4 As shown, a schematic flow chart of a method for evaluating edge resources in another embodiment of the present invention. This embodiment is further optimized on the basis of the previous embodiment. A method for evaluating edge resources, comprising: an edge and a container, the container comprising a first container and a second container; a communication connection is established between the first container, the second container and the edge; the method includes at least the following operation flow: S401, the edge sends a trigger instruction to the first container for the edge target thread to start executing; S402, the first container responds to the trigger instruction, performs a running operation on the target thread, and generates a running instruction; S403, the first container sends the generated running instruction to the second container; S404, the second container responds to the running instruction and monitors the running target thread; S405, the second container counts the resource consumption of the target thread during the running process according to the monitoring results; S406, the second container sends the counted resource consumption to the edge.
[0047] The specific implementation process of S401, S402, S403, S404 and S405 is the same as Figure 1 The specific implementation processes of S101, S102, and S103 in the illustrated embodiment are similar and will not be repeated here.
[0048] It should be noted that the first container and the second container may be two execution modules of the edge end, or two different execution modules in a container independent of the edge end; the second container may also be a subcontainer of the first container independent of the edge end.
[0049] It should be understood that in the embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0050] The above embodiments are described in detail below in conjunction with the application scenario. For example, there are usually multiple running devices at the edge; each running device corresponds to a thread; it is assumed that the target thread at the edge is the image acquisition device at the edge. In addition to collecting image data, the image acquisition device also needs to perform operations on the collected image data. This solution is to evaluate the computing performance of the image acquisition device when performing image data operations. The collected image data can be understood as the target data mentioned in the above embodiment. First, the first container obtains the operation instruction of the image acquisition device to perform operations on the target data. Based on the operation instruction, the first container creates a new thread and establishes a mapping relationship between the created new thread and the image acquisition device. This process can be achieved by initializing the created new thread by the first container. In this way, a mapping relationship is established between the operating environment of the image acquisition device and the operating environment of the first container, so that in the process of the image acquisition device processing the image data, the influence of some non-processing processes on the computing performance of the image acquisition device processing the image data can be avoided. The first container obtains the image data collected by the image acquisition device and the program corresponding to the image data, and uses the program to perform operation operations on the image data to generate operation instructions; the operation instructions are sent to the second container; the second container starts the monitoring function for the resource consumption during the operation of the first container according to the operation instructions; and the operation of starting monitoring is fed back to the first container, and the first container detects the CPU time slices and memory occupancy size consumed during the operation of the first container; if the detection result indicates that the CPU time slices and memory occupancy size consumed by the first container meet the preset conditions, the first container sends a stop instruction to end the monitoring to the second container, and based on the stop instruction, the second container stops monitoring the operation of the first container; and the monitoring results are counted; the second container sends the monitoring results to the image acquisition device. The resource consumption of the first container during the operation is determined as the resource consumption when the image acquisition device calculates the target data, so that the computing performance of the edge image acquisition device can be quantitatively evaluated using the first container and the second container.
[0051] The embodiment of the present invention uses the container as a carrier and uses the program running in the target thread of the edge to calculate the target data in the target thread, thereby achieving quantitative evaluation of the program running in the target thread of the edge, and then being able to select a suitable program for the target thread of the edge to ensure that the operation of the edge is controllable.
[0052] like Figure 5As shown, it is a schematic block diagram of an apparatus for edge resource evaluation according to an embodiment of the present invention. An apparatus for edge resource evaluation, the apparatus 500 comprises: an edge and a container, the edge and the container establish a communication connection; an acquisition module 501, used by the container to acquire a running request of a target thread of the edge; a monitoring module 502, used by the container to perform a running operation on the target thread in response to the running request, and monitor the running target thread; a statistical module 503, used by the container to count the resource consumption of the target thread of the edge according to the monitoring result.
[0053] In an optional embodiment, the monitoring module 502 includes: a binding unit, which is used for the container to perform a binding operation on the target thread of the edge end in response to the running request; and an execution unit, which is used for the container to perform a running operation on the bound target thread using a program.
[0054] In an optional embodiment, the binding unit includes: a creation subunit, which is used for the container to create a new thread; and a mapping subunit, which is used for the container to establish a mapping relationship between the created new thread and the target thread of the edge end, so as to implement the binding operation on the target thread of the edge end.
[0055] In an optional embodiment, the execution unit includes: an acquisition subunit, which is used by the container to acquire the target data of the bound target thread; and an execution subunit, which is used by the container to perform a running operation on the target data using a program.
[0056] In an optional embodiment, the statistical module 503 includes: an acquisition unit, which is used by the container to obtain a completion request for the target thread's running operation; an execution unit, which is used by the container to stop monitoring the target thread in response to the completion request; and a statistical unit, which is used by the container to obtain monitoring results and to count the resource consumption of the target thread at the edge end based on the monitoring results.
[0057] In an optional embodiment, the statistical module 503 also includes: a detection unit, which is used by the container to detect the running variables of the target thread; and an acquisition unit, which is also used by the container to obtain a completion request for the running operation of the target thread if the detection result indicates that the running variable meets a preset threshold.
[0058] In an optional embodiment, the statistical unit includes: a statistical subunit, which is used by the container to count the resource consumption of the target thread during operation according to the monitoring results; a determination subunit, which is used to determine the counted resource consumption as the resource consumption of the target thread running at the edge end; and a sending subunit, which is used by the container to send the resource consumption to the edge end.
[0059] The above device can execute the method for edge resource evaluation provided by an embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method for edge resource evaluation. For technical details not described in detail in this embodiment, please refer to the method for edge resource evaluation provided by an embodiment of the present invention.
[0060] On the other hand, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the processor performs at least the following operation steps: S101, a container obtains a running request of a target thread at an edge end; S102, the container performs a running operation on the target thread in response to the running request, and monitors the running target thread; S103, the container determines the resource consumption of the target thread at the edge end according to the monitoring result.
[0061] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0062] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0063] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for evaluating edge resources, the method comprising: An edge terminal and a container, wherein the edge terminal and the container establish a communication connection; The container obtains a running request of a target thread of the edge end; The container executes a running operation on the target thread in response to the running request, And monitor the running target thread; The container determines resource consumption of the target thread at the edge according to the monitoring result.
2. The method according to claim 1, wherein the container performs a running operation on the target thread in response to the running request, comprising: The container performs a binding operation on the target thread of the edge end in response to the running request; The container uses a program to execute a running operation on the bound target thread.
3. The method according to claim 2, wherein the step of performing a binding operation on the target thread at the edge end comprises: The container creates a new thread; The container establishes a mapping relationship between the created new thread and the target thread of the edge end, so as to implement the binding operation on the target thread of the edge end.
4. The method according to claim 2, wherein the container uses a program to perform a running operation on the bound target thread, comprising: The container obtains target data of the bound target thread; The container uses a program to execute an operation on the target data.
5. The method according to claim 1, further comprising: The container determines the resource consumption of the target thread of the edge end according to the monitoring result, including: The container obtains a completion request for the target thread to execute an operation; In response to the completion request, the container stops monitoring the target thread; The container obtains the monitoring result, and counts the resource consumption of the target thread at the edge according to the monitoring result.
6. The method according to claim 5, characterized in that Before the container obtains the completion request of the target thread execution operation, the method further includes: The container detects the running variables of the target thread; If the detection result indicates that the running variable meets the preset threshold, the container obtains a completion request for the target thread running operation.
7. According to the method of claim 5, the counting of resource consumption of the target thread at the edge end according to the monitoring result comprises: The container counts resource consumption of the target thread during operation according to the monitoring result; The counted resource consumption is determined as the resource consumption of the target thread running on the edge end.
8. A device for evaluating edge resources, the device comprising: An edge terminal and a container, wherein the edge terminal and the container establish a communication connection; An acquisition module, used for the container to acquire a running request of a target thread of the edge end; A monitoring module, used for the container to execute a running operation on the target thread in response to the running request, and monitor the running target thread; The statistics module is used for the container to count the resource consumption of the target thread of the edge end according to the monitoring result.
9. The device according to claim 8, wherein the monitoring module comprises: A binding unit, configured for the container to perform a binding operation on a target thread at the edge end in response to the running request; An execution unit is used for the container to use a program to execute a running operation on the bound target thread.
10. A computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method according to any one of claims 1 to 7.
