Web application task scheduling method and device, medium and equipment
By obtaining the resources and network conditions of the terminal device, constructing a network topology map and using the reinforcement learning scheduling model to select the optimal terminal device, the performance problems of the traditional scheduling model in resource fluctuations and complex network environments are solved, and the stable operation of Web applications is achieved. and efficient resource utilization.
Patent Information
- Application Number
- CN202410875664.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-22
AI Technical Summary
The traditional web application task scheduling model is difficult to adapt quickly when terminal device resources frequently fluctuate and the network environment is complex and changeable, causing application performance to be affected.
By receiving web application requests initiated by users, the resource usage indicators and network conditions of terminal devices are obtained, the current network topology is constructed, the optimal terminal device is selected for task allocation, and the reinforcement learning scheduling model is used to optimize the scheduling strategy to ensure that tasks are performed under high load and Stable operation in complex network environments.
It achieves stable operation of Web applications in high-load and complex network environments, improves application reliability and availability, maximizes resource utilization, and reduces network latency and application response time.
Smart Images

Figure CN118819895A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Web applications, and in particular to a Web application task scheduling method, device, medium and equipment. Background Art
[0002] With the rapid development of information technology, Web applications have become an indispensable part of people's daily life and work, and their performance and stability are crucial to user experience. However, the traditional Web application task scheduling model is often difficult to adapt quickly when terminal device resources frequently fluctuate and the network environment is complex and changeable, resulting in application performance being affected. Summary of the invention
[0003] In view of at least one of the above technical problems, an embodiment of the present invention provides a method, apparatus, medium, and device for scheduling Web application tasks.
[0004] According to the first aspect, the Web application task scheduling method provided by the embodiment of the present invention includes:
[0005] Receive Web application requests initiated by users;
[0006] Obtain resource usage indicators and network status indicators of each terminal device in the terminal computing network; wherein the terminal computing network includes multiple terminal devices;
[0007] Obtaining a current network topology diagram formed by each terminal device in the terminal computing power network;
[0008] Determining a feasible network topology path between the user and each terminal device according to the current network topology map;
[0009] Selecting the optimal terminal device according to each feasible network topology path and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path;
[0010] The Web application request is allocated to the optimal terminal device so that the optimal terminal device executes the task corresponding to the Web application request.
[0011] In one embodiment, the selecting of the optimal terminal device according to each feasible network topology path and the resource usage index and the network status index of the terminal device corresponding to each feasible network topology path includes: inputting the resource usage index and the network status index of each feasible network topology path and the terminal device corresponding to each feasible network topology path into a pre-trained reinforcement learning scheduling model to obtain the optimal terminal device; wherein the optimal terminal device is a terminal device whose resource remaining condition in each terminal device corresponding to each feasible network topology path meets the task requirements of the Web application request, has a good network condition and meets the target scheduling strategy adopted by the reinforcement learning scheduling model.
[0012] In one embodiment, the target scheduling strategy adopted by the reinforcement learning scheduling model is a load balancing scheduling strategy, a priority scheduling strategy, or a response time scheduling strategy.
[0013] In one embodiment, the method further comprises:
[0014] When the optimal terminal device executes a task, monitoring the execution process and execution result of the optimal terminal device;
[0015] If an exception occurs in the execution process or the execution result is an execution failure, the feasible network topology path corresponding to the optimal terminal device is removed from the feasible network topology paths;
[0016] Selecting a new optimal terminal device according to each feasible network topology path after the elimination operation and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path;
[0017] The Web application request is allocated to the new optimal terminal device, so that the new optimal terminal device executes the task corresponding to the Web application request.
[0018] In one embodiment, a resource monitoring tool is deployed on each terminal device in the terminal computing power network, which is used to monitor the resource usage indicators of the terminal device and store the resource usage indicators in a log file; the resource usage indicators include at least one of CPU usage, memory usage and storage space; correspondingly, obtaining the resource usage indicators and network status indicators of each terminal device in the terminal computing power network includes: obtaining the resource usage indicators of each terminal device from the log files of each terminal device.
[0019] In one embodiment, a network monitoring tool is deployed on each terminal device in the terminal computing network to monitor the network status indicators of the terminal device; wherein the network status indicators include at least one of bandwidth, uplink and downlink rates, packet loss rate and delay; correspondingly, obtaining the resource usage indicators and network status indicators of each terminal device in the terminal computing network includes: obtaining the network status indicators from the network monitoring tools deployed on each terminal device.
[0020] In one embodiment, a software tool for self-discovering network topology is deployed on each terminal device in the terminal computing power network, which is used to obtain the network topology relationship between the terminal device and other terminal devices; correspondingly, the current network topology map formed by each terminal device in the terminal computing power network is obtained, including: obtaining the network topology relationship between each terminal device and other terminal devices from the software tools deployed on each terminal device, and forming the current network topology map according to the network topology relationship between each terminal device.
[0021] According to the second aspect, the Web application task scheduling device provided by the embodiment of the present invention includes:
[0022] A request receiving module is used to receive a Web application request initiated by a user;
[0023] An indicator acquisition module, used to obtain resource usage indicators and network status indicators of each terminal device in the terminal computing network; wherein the terminal computing network includes multiple terminal devices;
[0024] A topology acquisition module is used to obtain the current network topology formed by each terminal device in the terminal computing network;
[0025] A path determination module, used to determine a feasible network topology path between the user and each terminal device according to the current network topology map;
[0026] The optimal selection module is used to select the optimal terminal device according to each feasible network topology path and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path;
[0027] The task allocation module is used to allocate the Web application request to the optimal terminal device so that the optimal terminal device executes the task corresponding to the Web application request.
[0028] According to a third aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, enables the computer to execute the method provided in the first aspect.
[0029] According to a fourth aspect, an embodiment of the present invention provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method provided in the first aspect is implemented.
[0030] The Web application task scheduling method, device, medium, and equipment provided by the embodiment of the present invention, when receiving a Web application request initiated by a user, obtains the resource usage index and network status index of each terminal device in the terminal computing network, and the current network topology map, and then selects a feasible network topology path from the current network topology map, and then selects the optimal terminal device according to the resource usage index and network status index of the terminal device corresponding to these current network topology maps and each feasible network topology path, and finally allocates the Web application request to the optimal terminal device, so that the optimal terminal device performs the task corresponding to the Web application request. It can be seen that the factors considered when determining the optimal terminal device include resource usage index, network status index, and current network topology map, so that the selected optimal terminal device is a terminal device with sufficient computing power and good network status. Therefore, in the case of frequent fluctuations in terminal device resources and complex and changeable network environment, the optimal terminal device is allocated to the task to execute, so as to ensure the smooth execution of the task, so that the Web application can run stably under high load and complex network environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of a process flow of a Web application task scheduling method in one embodiment of the present invention;
[0032] Figure 2 1 is a structural block diagram of a Web application task scheduling device in one embodiment of the present invention. DETAILED DESCRIPTION
[0033] In a first aspect, an embodiment of the present invention provides a method for scheduling Web application tasks. Figure 1 The method comprises the following steps S110 to S160:
[0034] S110, receiving a Web application request initiated by a user;
[0035] In actual scenarios, the method provided by the embodiment of the present invention is executed by the scheduling management module. The user initiates a Web application request at the front end, and when the scheduling management module receives the Web application request initiated by the user, the subsequent steps are executed.
[0036] S120, obtaining resource usage indicators and network status indicators of each terminal device in the terminal computing network; wherein the terminal computing network includes multiple terminal devices;
[0037] Among them, the terminal computing power network includes multiple terminal devices, and the terminal devices are devices with certain computing capabilities, such as edge computing devices, which can execute tasks assigned by the scheduling management module.
[0038] In one embodiment, a resource monitoring tool is deployed on each terminal device in the terminal computing network, which is used to monitor the resource usage indicators of the terminal device and store the resource usage indicators in a log file; the resource usage indicators include at least one of CPU usage, memory usage and storage space;
[0039] Correspondingly, the acquisition of resource usage indicators and network status indicators of each terminal device in the terminal computing network in S120 includes: acquiring the resource usage indicators of each terminal device from the log files of each terminal device.
[0040] It can be seen that by deploying appropriate resource monitoring tools on each terminal device, the resource monitoring tools are used to collect resource usage indicators of the terminal device, and then these resource usage indicators are stored in the log file. In S120, the resource usage indicators can be directly obtained from the log file. The above resource usage indicators can reflect the resource usage, and the operation trend of the terminal device and whether there are abnormal conditions can be analyzed through the resource usage indicators.
[0041] Among them, the terminal computing power network, as a new type of network architecture, can dynamically perceive the status of computing resources and network resources, forming a network in which computing resources can be perceived, allocated, and scheduled. Through the network, basic resources such as computing resources and storage resources can be effectively allocated and managed between the cloud, edge, and end.
[0042] In one embodiment, a network monitoring tool is deployed on each terminal device in the terminal computing network to monitor the network status indicator of the terminal device; wherein the network status indicator includes at least one of bandwidth, uplink and downlink rate, packet loss rate and delay;
[0043] Correspondingly, the obtaining of resource usage indicators and network status indicators of each terminal device in the terminal computing network includes: obtaining network status indicators from network monitoring tools deployed on each terminal device.
[0044] It can be seen that a network monitoring tool is deployed on each terminal device, and the network status indicators of the terminal device are collected through the network monitoring tool. In S120, the network status indicators can be directly obtained from the network monitoring tool. According to the network status indicators monitored in real time, the network quality can be evaluated to know whether the network status is stable and reliable.
[0045] S130, obtaining a current network topology map formed by each terminal device in the terminal computing power network;
[0046] The current network topology diagram refers to a network link diagram constructed based on the network topology relationship between various terminal devices at the current moment.
[0047] In one embodiment, a software tool for self-discovering network topology is deployed on each terminal device in the terminal computing network, which is used to obtain the network topology relationship between the terminal device and other terminal devices;
[0048] Correspondingly, the obtaining of the current network topology map formed by each terminal device in the terminal computing power network includes: obtaining the network topology relationship between each terminal device and other terminal devices from the software tools deployed on each terminal device, and forming the current network topology map based on the network topology relationship between each terminal device.
[0049] It can be seen that a software tool is deployed on each terminal device, and the software tool has the ability to self-discover the network topology structure. The connection relationship between the terminal device and other terminal devices, that is, the network topology relationship, is obtained through the software tool. In this way, these network topology relationships are obtained from each terminal device in S130, and then the above-mentioned current network topology diagram is constructed.
[0050] It is understandable that network topology analysis can explore the layout and connection relationship between various nodes in the network. By analyzing the network architecture, the path of data flow and its impact on network performance, potential performance bottlenecks can be optimized and troubleshooted.
[0051] S140, determining a feasible network topology path between the user and each terminal device according to the current network topology map;
[0052] That is to say, based on the current network topology map, we can know which terminal devices have a network topology connection relationship with the user's client, and thus know which terminal devices the user's Web application request can be assigned to, and then use the network topology path between these terminal devices and the user's client as a feasible network topology path.
[0053] S150, selecting an optimal terminal device according to each feasible network topology path and a resource usage indicator and a network status indicator of a terminal device corresponding to each feasible network topology path;
[0054] Among them, the optimal terminal device refers to the terminal device corresponding to the optimal feasible network topology path.
[0055] That is to say, when selecting the best feasible network topology path among all feasible network topology paths, that is, when selecting the best terminal device, it is necessary to consider the resource usage indicators and network status indicators of each terminal device. The basic requirements for the best terminal device selected in this way are that the remaining resources can meet the needs of this task and the network status is good. On this basis, according to different requirements or goals, for example, requiring the lowest delay or requiring load balancing, etc., the terminal device that meets different requirements or goals can be selected as the best terminal device.
[0056] In one embodiment, selecting the optimal terminal device according to each feasible network topology path and the resource usage indicator and network status indicator of the terminal device corresponding to each feasible network topology path in S150 may include:
[0057] The resource usage indicators and network status indicators of each feasible network topology path and the terminal device corresponding to each feasible network topology path are input into the pre-trained reinforcement learning scheduling model to obtain the optimal terminal device; wherein the optimal terminal device is a terminal device whose resource remaining conditions in each terminal device corresponding to each feasible network topology path meet the task requirements of the Web application request, the network condition is good, and the target scheduling strategy adopted by the reinforcement learning scheduling model is met.
[0058] The reinforcement learning scheduling model is a model trained based on the reinforcement learning algorithm. The training process is: adaptive learning based on historical scheduling data, network status indicators and resource usage indicators corresponding to the historical scheduling data.
[0059] Among them, the target scheduling strategy that can be adopted by the reinforcement learning scheduling model is load balancing scheduling strategy, priority scheduling strategy or response time scheduling strategy.
[0060] In other words, the scheduling goal of the reinforcement learning scheduling model is load balancing among various terminal devices, or it can be a short response time, that is, low latency, or it can be to select a terminal device with the highest possible priority.
[0061] It can be seen that the resource surplus of the optimal terminal device output by the reinforcement learning scheduling model meets the task requirements of the Web application request, the network status meets the usage requirements, and the terminal device meets the target scheduling strategy.
[0062] It can be seen that in S150, the optimal terminal device is selected based on the resource usage and network status of the terminal device, combined with the feasible network topology path, and the preset scheduling target.
[0063] S160: Allocate the Web application request to the optimal terminal device, so that the optimal terminal device executes the task corresponding to the Web application request.
[0064] That is, the Web application request is sent to the optimal terminal device, so that the optimal terminal device will execute the task corresponding to the Web application request, and after the task is executed, the execution result is fed back to the user.
[0065] In one embodiment, the embodiment of the present invention may further include S170 to S200:
[0066] S170, when the optimal terminal device executes the task, monitoring the execution process and execution result of the optimal terminal device;
[0067] S180: If an exception occurs in the execution process or the execution result is an execution failure, the feasible network topology path corresponding to the optimal terminal device is removed from the feasible network topology paths;
[0068] S190, selecting a new optimal terminal device according to each feasible network topology path after the elimination operation and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path;
[0069] S200: Allocate the Web application request to the new optimal terminal device, so that the new optimal terminal device executes the task corresponding to the Web application request.
[0070] In other words, the task execution process is monitored in real time to ensure that the task is correctly executed according to the predetermined strategy. If an exception occurs in the execution process or the execution result fails, the feasible network topology path corresponding to the optimal terminal device is eliminated, and then after the elimination operation, the remaining feasible network topology paths and the resource usage indicators and network status indicators of the terminal devices corresponding to each remaining feasible network topology path are input into the reinforcement learning scheduling model to obtain a new optimal terminal device, and then the Web application request is allocated to the new optimal terminal device. The above timely adjusts the scheduling strategy to cope with possible problems such as insufficient resources and network fluctuations to ensure the smooth execution of the task.
[0071] It can be seen that the method provided by the embodiment of the present invention can accurately allocate the tasks requested by the Web application to the optimal terminal with sufficient computing power and good network conditions through an intelligent task scheduling strategy, thereby avoiding waste of resources and computing bottlenecks, thereby maximizing resource utilization. At the same time, through the target scheduling strategy of the reinforcement learning scheduling model, it can be further ensured that the optimal terminal can meet the scheduling goals, for example, to achieve balanced load and low network transmission delay. This ensures the stable operation of Web applications in high-load and complex network environments. This high reliability and availability feature is of great significance for ensuring business continuity and application stability.
[0072] It is understandable that the current Web application task scheduling mode is usually based on static resource allocation and a single load balancing strategy, and the existing scheduling methods often ignore the network topology path between the terminal and the user, and do not make full use of the network topology to optimize the allocation and execution of tasks, which affects the performance of Web applications. The embodiment of the present invention provides a Web application task scheduling method based on a terminal computing network, which ensures the stable operation of Web applications in high-load and complex network environments, and improves the reliability and availability of applications.
[0073] The embodiment of the present invention aims at the problem that the Web applications hosted and deployed on existing terminal devices frequently fail due to large differences in resource configuration and complex and changeable networks, and proposes a Web application task scheduling method based on a terminal computing network. The method monitors the resource usage and network status of the terminal device in real time, and intelligently adjusts the task scheduling strategy based on the network topology path between the terminal device and the user, and distributes the computing tasks of the Web application to the optimal terminal device, which can improve the resource utilization of the terminal computing network, effectively reduce network delays, and speed up application response time.
[0074] In a second aspect, an embodiment of the present invention provides a Web application task scheduling device, see Figure 2 , the device 100 comprises:
[0075] The request receiving module 110 is used to receive a Web application request initiated by a user;
[0076] The indicator acquisition module 120 is used to obtain the resource usage indicator and network status indicator of each terminal device in the terminal computing network; wherein the terminal computing network includes multiple terminal devices;
[0077] A topology acquisition module 130 is used to acquire a current network topology map formed by each terminal device in the terminal computing network;
[0078] A path determination module 140, configured to determine a feasible network topology path between the user and each terminal device according to the current network topology map;
[0079] The optimal selection module 150 is used to select the optimal terminal device according to each feasible network topology path and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path;
[0080] The task allocation module 160 is used to allocate the Web application request to the optimal terminal device so that the optimal terminal device executes the task corresponding to the Web application request.
[0081] In one embodiment, the optimal selection module is specifically used to input each feasible network topology path and the resource usage indicator and network status indicator of the terminal device corresponding to each feasible network topology path into a pre-trained reinforcement learning scheduling model to obtain the optimal terminal device; wherein the optimal terminal device is a terminal device whose resource remaining situation in each terminal device corresponding to each feasible network topology path meets the task requirements of the Web application request, has a good network condition and meets the target scheduling strategy adopted by the reinforcement learning scheduling model.
[0082] In one embodiment, the target scheduling strategy adopted by the reinforcement learning scheduling model is a load balancing scheduling strategy, a priority scheduling strategy, or a response time scheduling strategy.
[0083] In one embodiment, the apparatus further comprises:
[0084] An execution monitoring module, used to monitor the execution process and execution result of the optimal terminal device when the optimal terminal device executes the task;
[0085] A path elimination module, configured to eliminate the feasible network topology path corresponding to the optimal terminal device from the feasible network topology paths if an exception occurs in the execution process or the execution result is an execution failure;
[0086] The optimal update module is used to select a new optimal terminal device according to each feasible network topology path after the elimination operation and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path;
[0087] The reassignment module is used to assign the Web application request to the new optimal terminal device so that the new optimal terminal device executes the task corresponding to the Web application request.
[0088] In one embodiment, a resource monitoring tool is deployed on each terminal device in the terminal computing network to monitor the resource usage indicators of the terminal device and store the resource usage indicators in a log file; the resource usage indicators include at least one of CPU usage, memory usage and storage space; correspondingly, the indicator acquisition module is specifically used to obtain the resource usage indicators of each terminal device from the log files of each terminal device.
[0089] In one embodiment, a network monitoring tool is deployed on each terminal device in the terminal computing network to monitor the network status indicators of the terminal device; wherein the network status indicators include at least one of bandwidth, uplink and downlink rates, packet loss rate and delay; correspondingly, the indicator acquisition module is specifically used to obtain network status indicators from the network monitoring tools deployed on each terminal device.
[0090] In one embodiment, a software tool for self-discovering the network topology structure is deployed on each terminal device in the terminal computing network, which is used to obtain the network topology relationship between the terminal device and other terminal devices; correspondingly, the topology acquisition module is specifically used to: obtain the network topology relationship between each terminal device and other terminal devices from the software tools deployed on each terminal device, and form the current network topology map based on the network topology relationship between each terminal device.
[0091] It is understandable that the explanation, specific implementation, beneficial effects, examples, etc. of the relevant contents in the device provided in the embodiment of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0092] In a third aspect, an embodiment of the present invention provides a computer-readable medium, on which computer instructions are stored. When the computer instructions are executed by a processor, the processor executes the method provided in the first aspect.
[0093] Specifically, a system or device equipped with a storage medium can be provided, on which software program code that implements the functions of any of the above-mentioned embodiments is stored, and a computer (or CPU or MPU) of the system or device can be enabled to read and execute the program code stored in the storage medium.
[0094] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.
[0095] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.
[0096] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.
[0097] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion module connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or expansion module is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.
[0098] It is understandable that the explanation, specific implementation methods, beneficial effects, examples, etc. of the relevant contents in the computer-readable medium provided in the embodiment of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0099] In a fourth aspect, an embodiment of the present specification provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, it implements the method in any embodiment of the specification.
[0100] It is understandable that the explanation, specific implementation, beneficial effects, examples, etc. of the relevant contents in the computing device provided in the embodiment of the present invention can be found in the corresponding parts of the method provided in the first aspect, and will not be repeated here.
[0101] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0102] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, widgets, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0103] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A Web application task scheduling method, characterized in that: include: Receive Web application requests initiated by users; Obtain resource usage indicators and network status indicators of each terminal device in the terminal computing network; wherein the terminal computing network includes multiple terminal devices; Obtaining a current network topology diagram formed by each terminal device in the terminal computing power network; Determining a feasible network topology path between the user and each terminal device according to the current network topology map; Selecting the optimal terminal device according to each feasible network topology path and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path; The Web application request is allocated to the optimal terminal device so that the optimal terminal device executes the task corresponding to the Web application request.
2. The method according to claim 1, characterized in that The selecting the optimal terminal device according to each feasible network topology path and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path includes: Inputting each feasible network topology path and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path into a pre-trained reinforcement learning scheduling model to obtain the optimal terminal device; Among them, the optimal terminal device is a terminal device whose resource remaining conditions in each terminal device corresponding to each feasible network topology path meet the task requirements of the Web application request, has a good network condition and meets the target scheduling strategy adopted by the reinforcement learning scheduling model.
3. The method according to claim 2, characterized in that The target scheduling strategy adopted by the reinforcement learning scheduling model is a load balancing scheduling strategy, a priority scheduling strategy or a response time scheduling strategy.
4. The method according to claim 1, characterized in that Also includes: When the optimal terminal device executes a task, monitoring the execution process and execution result of the optimal terminal device; If an exception occurs in the execution process or the execution result is an execution failure, the feasible network topology path corresponding to the optimal terminal device is removed from the feasible network topology paths; Selecting a new optimal terminal device according to each feasible network topology path after the elimination operation and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path; The Web application request is allocated to the new optimal terminal device, so that the new optimal terminal device executes the task corresponding to the Web application request.
5. The method according to claim 1, characterized in that A resource monitoring tool is deployed on each terminal device in the terminal computing network, which is used to monitor the resource usage indicators of the terminal device and store the resource usage indicators in a log file; the resource usage indicators include at least one of CPU usage, memory usage and storage space; Correspondingly, the obtaining of resource usage indicators and network status indicators of each terminal device in the terminal computing network includes: obtaining the resource usage indicators of each terminal device from the log files of each terminal device.
6. The method according to claim 1, characterized in that A network monitoring tool is deployed on each terminal device in the terminal computing network to monitor the network status indicators of the terminal device; wherein the network status indicators include at least one of bandwidth, uplink and downlink rates, packet loss rate and delay; Correspondingly, the obtaining of resource usage indicators and network status indicators of each terminal device in the terminal computing network includes: obtaining network status indicators from network monitoring tools deployed on each terminal device.
7. The method according to claim 1, characterized in that A software tool for self-discovering network topology is deployed on each terminal device in the terminal computing network, which is used to obtain the network topology relationship between the terminal device and other terminal devices; Correspondingly, the obtaining of the current network topology map formed by each terminal device in the terminal computing power network includes: obtaining the network topology relationship between each terminal device and other terminal devices from the software tools deployed on each terminal device, and forming the current network topology map based on the network topology relationship between each terminal device.
8. A Web application task scheduling device, characterized in that: include: A request receiving module is used to receive a Web application request initiated by a user; An indicator acquisition module, used to obtain resource usage indicators and network status indicators of each terminal device in the terminal computing network; wherein the terminal computing network includes multiple terminal devices; A topology acquisition module is used to obtain the current network topology formed by each terminal device in the terminal computing network; A path determination module, used to determine a feasible network topology path between the user and each terminal device according to the current network topology map; The optimal selection module is used to select the optimal terminal device according to each feasible network topology path and the resource usage index and network status index of the terminal device corresponding to each feasible network topology path; The task allocation module is used to allocate the Web application request to the optimal terminal device so that the optimal terminal device executes the task corresponding to the Web application request.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
10. A computing device, characterized in that The method comprises a memory and a processor, wherein the memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 7 is implemented.
