Resource scheduling system and method based on terminal equipment management platform

The resource scheduling system optimizes terminal device resource allocation by dynamically adjusting to real-time demands and priorities, addressing low utilization efficiency in existing systems through comprehensive data acquisition and strategic adjustments.

CN119201377AActive Publication Date: 2024-12-27BEIJING SIYUAN TIANCHENG TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411220969.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2024-12-27
Estimated Expiration
2044-09-02

AI Technical Summary

Technical Problem

Existing resource scheduling systems for terminal devices do not adequately consider the diversity and dynamic nature of terminal devices, leading to low resource utilization efficiency.

Method used

A resource scheduling system and method based on a terminal device management platform, incorporating modules for information acquisition, allocation, curve analysis, instruction sending, scheduling, monitoring, and feedback to dynamically adjust resource allocation based on real-time demand and priority, ensuring timely and accurate resource management.

Benefits of technology

Improves resource utilization efficiency by accurately matching resource demands with available resources, responding to dynamic changes, and optimizing scheduling strategies for enhanced adaptability and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119201377A_ABST
    Figure CN119201377A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of resource scheduling, in particular to a resource scheduling system and method based on a terminal equipment management platform, and the system comprises an information obtaining module which obtains initial demand resources; the allocation module performs allocation based on the initial demand resources; the acquisition module acquires real-time demand resources at a preset time interval and draws a resource change curve; the curve analysis module analyzes the change trend of any resource change curve, and adjusts a plurality of initial terminal devices, or adjusts a preset time interval; the instruction sending module determines a priority based on a plurality of real-time demand resources and sends a resource scheduling instruction; the scheduling module receives the resource scheduling instruction and adjusts the initial resource allocation result; the monitoring module monitors the resource scheduling effect in real time; and the feedback module analyzes the resource scheduling effect, and calibrates and adjusts the resource allocation result based on the analysis result to obtain a target allocation result, or adjusts the preset period. The resource utilization rate in the resource scheduling process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of resource scheduling, and in particular to a resource scheduling system and method based on a terminal device management platform. Background Art

[0002] With the rapid development of the Internet of Things, cloud computing and big data technologies, the number of terminal devices has increased dramatically. How to efficiently manage these devices and reasonably allocate their resources has become an urgent problem to be solved.

[0003] The patent document of Chinese patent application publication number CN109684069A discloses a method for managing resources in a computer system and a terminal device. The method includes: acquiring data, the data including application timing feature data related to the current foreground application, the data also including at least one of the following real-time data: the system time of the computer system, the current state data of the computer system and the current location data of the computer system; selecting a target machine learning model matching the real-time data from multiple machine learning models according to at least one of the real-time data; inputting the acquired data into the target machine learning model to rank the importance of multiple applications installed on the computer system; and performing resource management according to the result of the importance ranking.

[0004] The existing technology mainly focuses on ranking the importance of applications through machine learning models, but does not fully consider the diversity of terminal devices and the dynamic nature of resource scheduling, resulting in low resource utilization during the resource scheduling process. Summary of the invention

[0005] To this end, the present invention provides a resource scheduling system and method based on a terminal device management platform, which can solve the problem of low resource utilization during resource scheduling.

[0006] To achieve the above object, the present invention provides a resource scheduling system based on a terminal device management platform, the system comprising:

[0007] An information acquisition module is used to acquire a number of initial terminal devices and their corresponding initial required resources;

[0008] An allocation module, configured to perform initial resource allocation on a plurality of initial terminal devices based on the initial required resources, and obtain an initial resource allocation result;

[0009] A collection module, connected to the allocation module, for collecting the real-time demand resources of any of the initial terminal devices at preset time intervals, and drawing a resource change curve based on a number of real-time demand resources;

[0010] A curve analysis module, connected to the acquisition module, for analyzing a change trend of any resource change curve, and adjusting a number of the initial terminal devices to obtain an adjusted terminal device based on a change trend analysis result, or adjusting the preset time interval to obtain an adjusted time interval;

[0011] An instruction sending module, connected to the curve analysis module, for determining the priorities of a plurality of adjustment terminal devices based on a plurality of the real-time demand resources, and sending a resource scheduling instruction based on the priority determination result;

[0012] A scheduling module, connected to the instruction sending module, for receiving the resource scheduling instruction, adjusting the initial resource allocation result according to the resource scheduling instruction, and obtaining an adjusted resource allocation result;

[0013] A monitoring module, connected to the scheduling module, for real-time monitoring of resource scheduling effects of a number of the adjustment terminal devices within a preset period;

[0014] A feedback module is connected to the monitoring module and is used to analyze the resource scheduling effect, calibrate the adjusted resource allocation result based on the analysis result to obtain the target allocation result, or adjust the preset period.

[0015] Furthermore, the allocation module includes:

[0016] A resource matching unit, used to match the initial resource demand with a preset platform resource library to obtain a matching result;

[0017] The resource allocation unit is connected to the resource matching unit and is used to allocate corresponding initial resources to the initial terminal device based on the matching result to obtain the initial resource allocation result.

[0018] Furthermore, the acquisition module includes:

[0019] A collection unit, used for collecting the real-time required number of CPU cores and the real-time required amount of memory of any of the initial terminal devices in real time at a preset time interval;

[0020] A curve generating unit is connected to the collecting unit and is used to draw a CPU variation curve according to the real-time required number of CPU cores and to draw a real-time memory variation curve based on the real-time required amount of memory.

[0021] Furthermore, the curve analysis module includes:

[0022] A trend analysis unit, used for analyzing a change trend of the CPU change curve and a change trend of the memory change curve corresponding to any of the initial terminal devices, to obtain a first trend and a second trend;

[0023] a first adjustment unit connected to the trend analysis unit, for calculating a reduction coefficient to reduce the preset time interval to obtain the adjustment time interval when the first trend fluctuates within a first preset variation range and the second trend fluctuates within a second preset variation range;

[0024] The second adjustment unit is connected to the trend analysis unit, and is used for removing the corresponding initial terminal device from the management platform when the first trend and the second trend are downward trends.

[0025] Furthermore, the instruction sending module includes:

[0026] a calculation unit, configured to calculate a resource change rate based on any of the real-time demand resources of the adjustment terminal device, and determine the priority based on the resource change rates;

[0027] an instruction generating unit, connected to the computing unit, for adjusting the initial resource allocation result according to the priority level, so as to generate a resource scheduling instruction according to the adjustment result;

[0028] An instruction sending unit is connected to the scheduling instruction generating unit and is used to send the resource scheduling instruction.

[0029] Furthermore, the calculation unit comprises:

[0030] A calculation subunit, used to calculate a first average of differences between a number of real-time required CPU core numbers and an initial number of CPU cores of the adjustment terminal device, and a first average of differences between a number of real-time required memory amounts and an initial memory amount;

[0031] a comparing subunit, connected to the calculating subunit, for comparing the first mean with a first preset mean to obtain a first comparison result, and comparing the second mean with a second preset mean to obtain a second comparison result;

[0032] A determination subunit is connected to the comparison subunit and is used to determine the priority based on the first comparison result and the second comparison result.

[0033] Furthermore, the scheduling module includes:

[0034] An instruction receiving unit, used for receiving the resource scheduling instruction;

[0035] a scheduling unit, connected to the instruction receiving unit, for determining a scheduling order according to the priority;

[0036] An execution unit is connected to the scheduling unit and is used to schedule resources for the initial terminal device according to the scheduling sequence to adjust the number of CPU cores and the amount of memory.

[0037] Furthermore, the monitoring module includes:

[0038] A monitoring unit, used to monitor in real time the number of CPU cores actually used and the amount of memory actually used by the adjustment terminal device;

[0039] An effect evaluation unit is connected to the monitoring unit and is used to determine the actual resource utilization based on the actual number of CPU cores used and the actual amount of memory used, and to evaluate the resource scheduling effect based on the actual resource utilization and the preset resource utilization.

[0040] Furthermore, the feedback module includes:

[0041] A comparison unit, used to compare the actual resource utilization rate with the preset resource utilization rate to obtain a comparison result;

[0042] A feedback unit is connected to the comparison unit, and is used to calculate a calibration coefficient based on the actual resource utilization and the preset resource utilization when the actual resource utilization is less than the preset resource utilization, so as to calibrate the adjusted resource allocation result, and to reduce the preset period when the actual resource utilization is greater than or equal to the preset resource utilization.

[0043] On the other hand, the present invention also provides a method of a resource scheduling system based on a terminal device management platform, the method comprising:

[0044] Obtaining a number of initial terminal devices and their corresponding initial required resources;

[0045] Performing initial resource allocation to the initial terminal devices based on the initial required resources, and obtaining an initial resource allocation result;

[0046] Collecting the real-time demand resources of any of the initial terminal devices at preset time intervals, and drawing a resource change curve based on the real-time demand resources;

[0047] Analyze the change trend of any resource change curve, and adjust a number of the initial terminal devices based on the change trend analysis result to obtain an adjusted terminal device, or adjust the preset time interval to obtain an adjusted time interval;

[0048] Determine the priorities of a plurality of adjustment terminal devices based on the plurality of real-time demand resources, and send a resource scheduling instruction based on the priority determination result;

[0049] receiving the resource scheduling instruction, and adjusting the initial resource allocation result according to the resource scheduling instruction to obtain an adjusted resource allocation result;

[0050] Monitoring resource scheduling effects of a plurality of the adjustment terminal devices in real time within a preset period;

[0051] Analyze the resource scheduling effect, and calibrate the adjusted resource allocation result based on the analysis result to obtain a target allocation result, or adjust the preset period.

[0052] Compared with the prior art, the beneficial effect of the present invention lies in that, by setting the information acquisition module, the initial terminal device and its corresponding initial demand resources are accurately and comprehensively acquired, which provides an accurate basis for subsequent resource allocation and improves the pertinence and effectiveness of resource allocation. By setting the allocation module to perform preliminary resource allocation based on the initial demand resources, it helps to avoid resource waste, improve resource utilization, and lay the foundation for subsequent dynamic adjustment of resources. By setting the acquisition module to regularly acquire the real-time demand resources of the terminal device, the resource usage of the terminal device is timely understood, and the changes in the resource demand of the terminal device are responded to in real time, which provides accurate data support for subsequent resource scheduling. The demand resource change curve drawn based on real-time data helps to intuitively display the changing trend of resource demand and provide a basis for resource scheduling decisions. By setting the curve analysis module to analyze the demand resource change curve, the changing trend of resource demand is identified, and the resource allocation strategy is accurately adjusted. By adjusting the preset time interval, the data acquisition frequency is flexibly adjusted according to the changes in actual demand. The efficiency and accuracy of resource scheduling are further improved. By setting the instruction sending module to send resource scheduling instructions based on real-time demand resources and priority determination results, the pertinence and timeliness of resource scheduling are ensured. By giving priority to meeting the needs of high-priority terminal devices, the overall resource utilization efficiency and terminal device performance are improved. By setting the scheduling module to receive resource scheduling instructions and adjust the initial resource allocation results, dynamic management and optimal configuration of resources are realized to ensure that resources are always used efficiently and reasonably. By setting the monitoring module to monitor and adjust the resource scheduling effect of the terminal device in real time, it is helpful to ensure the effectiveness and stability of the resource scheduling strategy, and further improve the resource utilization efficiency and terminal device performance. By setting the feedback module to analyze the resource scheduling effect based on the monitoring results, and calibrate and adjust the resource allocation results or adjust the preset period according to the analysis results, the resource scheduling strategy is continuously optimized to improve the accuracy and efficiency of resource scheduling. By adjusting the preset period, the monitoring frequency is flexibly adjusted according to the changes in actual demand, and the adaptability and flexibility of the system are further improved.

[0053] In particular, by setting the collection unit to collect the real-time resource requirements of the terminal device in real time, the timeliness and accuracy of the data are ensured, providing reliable data support for resource scheduling; by setting the curve generation unit, the changing trend of the resource requirements of the terminal device is intuitively displayed, providing an intuitive basis for resource scheduling decisions.

[0054] In particular, by setting the trend analysis unit to analyze the changing trend of the resource demand of the terminal device, the fluctuation of the resource demand can be discovered in time, so as to make corresponding adjustments to ensure the flexibility and adaptability of resource allocation; by setting the first adjustment unit and the second adjustment unit, the acquisition frequency can be dynamically adjusted according to the changes in resource demand, thereby further improving the efficiency and accuracy of resource scheduling. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A structural block diagram of a resource scheduling system based on a terminal device management platform provided in an embodiment of the present invention;

[0056] Figure 2 A structural block diagram of an allocation module of a resource scheduling system based on a terminal device management platform provided in an embodiment of the present invention;

[0057] Figure 3 A structural block diagram of a curve analysis module of a resource scheduling system based on a terminal device management platform provided in an embodiment of the present invention;

[0058] Figure 4 A schematic flow chart of a resource scheduling method based on a terminal device management platform provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0060] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0061] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be understood as a limitation on the present invention.

[0062] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0063] See also Figure 1 As shown, an embodiment of the present invention provides a resource scheduling system based on a terminal device management platform, the system comprising:

[0064] An information acquisition module 10 is used to acquire a number of initial terminal devices and their corresponding initial required resources;

[0065] An allocation module 20, configured to perform initial resource allocation on a plurality of initial terminal devices based on the initial required resources, and obtain an initial resource allocation result;

[0066] A collection module 30, connected to the allocation module 20, for collecting the real-time demand resources of any of the initial terminal devices at a preset time interval, and drawing a resource change curve based on a number of real-time demand resources;

[0067] A curve analysis module 40, connected to the acquisition module 30, for analyzing a change trend of any of the resource change curves, and adjusting a number of the initial terminal devices to obtain an adjusted terminal device based on a change trend analysis result, or adjusting the preset time interval to obtain an adjusted time interval;

[0068] An instruction sending module 50, connected to the curve analysis module 40, is used to determine the priorities of a plurality of adjustment terminal devices based on a plurality of the real-time demand resources, and send a resource scheduling instruction based on the priority determination result;

[0069] The scheduling module 60 is connected to the instruction sending module 50 and is used to receive the resource scheduling instruction, adjust the initial resource allocation result according to the resource scheduling instruction, and obtain an adjusted resource allocation result;

[0070] A monitoring module 70, connected to the scheduling module 60, for real-time monitoring of resource scheduling effects of a plurality of the adjustment terminal devices within a preset period;

[0071] The feedback module 80 is connected to the monitoring module 70 and is used to analyze the resource scheduling effect, calibrate the adjusted resource allocation result based on the analysis result to obtain the target allocation result, or adjust the preset period.

[0072] Specifically, the information acquisition module in the embodiment of the present invention acquires the initial configuration information of all servers through the management interface or API of the data center, including the initial number of CPU cores and the initial amount of memory as the initial required resources.

[0073] Specifically, the embodiments of the present invention provide an accurate basis for subsequent resource allocation by setting the information acquisition module to accurately and comprehensively acquire the initial terminal device and its corresponding initial demand resources, thereby improving the pertinence and effectiveness of resource allocation. By setting the allocation module to perform preliminary resource allocation based on the initial demand resources, it helps to avoid resource waste, improve resource utilization, and lay a foundation for subsequent dynamic resource adjustment. By setting the acquisition module to regularly acquire the real-time demand resources of the terminal device, the resource usage of the terminal device is timely understood, and the changes in the resource demand of the terminal device are responded to in real time, providing accurate data support for subsequent resource scheduling. The demand resource change curve drawn based on real-time data helps to intuitively display the changing trend of resource demand and provide a basis for resource scheduling decisions. By setting the curve analysis module to analyze the demand resource change curve, the changing trend of resource demand is identified, and the resource allocation strategy is accurately adjusted. By adjusting the preset time interval, the data acquisition frequency is flexibly adjusted according to the actual changes in demand, further improving The efficiency and accuracy of high resource scheduling are improved. By setting the instruction sending module to send resource scheduling instructions based on real-time demand resources and priority determination results, the pertinence and timeliness of resource scheduling are ensured. By giving priority to meeting the needs of high-priority terminal devices, the overall resource utilization efficiency and terminal device performance are improved. By setting the scheduling module to receive resource scheduling instructions and adjust the initial resource allocation results, dynamic management and optimal configuration of resources are realized to ensure that resources are always used efficiently and reasonably. By setting the monitoring module to monitor and adjust the resource scheduling effect of the terminal device in real time, it is helpful to ensure the effectiveness and stability of the resource scheduling strategy, and further improve the resource utilization efficiency and terminal device performance. By setting the feedback module to analyze the resource scheduling effect based on the monitoring results, and calibrate and adjust the resource allocation results or adjust the preset period according to the analysis results, the resource scheduling strategy is continuously optimized to improve the accuracy and efficiency of resource scheduling. By adjusting the preset period, the monitoring frequency is flexibly adjusted according to the changes in actual demand, and the adaptability and flexibility of the system are further improved.

[0074] See also Figure 2 As shown, the allocation module 20 includes:

[0075] A resource matching unit 21 is used to match the initial resource demand with a preset platform resource library to obtain a matching result;

[0076] The resource allocation unit 22 is connected to the resource matching unit 21, and is used to allocate corresponding initial resources to the initial terminal device based on the matching result to obtain the initial resource allocation result.

[0077] Specifically, the preset platform resource library described in the embodiment of the present invention includes the total resource quantity, resource type and resource status, wherein the resource type includes the number of CPU cores and the amount of memory, and the resource status includes unallocated, allocated and unusable, and the total resource quantity is set according to the actual hardware configuration of the management platform.

[0078] Specifically, an example of the present invention includes: assuming that the initial terminal device includes device A, device B and device C, wherein device A requires 4 CPU cores and 8GB of memory, device B requires 2 CPU cores and 4GB of memory, and device C requires 6 CPU cores and 12GB of memory, assuming that there are currently 20 CPU cores and 40GB of memory available for allocation in the preset platform resource library, and all are in an unallocated state, then the resource allocation unit allocates corresponding resources to device A according to the matching results, and updates the resource status in the resource library, marking the 4 CPU cores and 8GB of memory occupied by device A as allocated, and then the resource allocation unit continues to process the resource requirements of devices B and C, and updates the resource library status accordingly.

[0079] Specifically, the embodiment of the present invention reduces waste and errors in the resource allocation process and improves the efficiency and accuracy of resource allocation by setting the resource matching list to accurately match the initial resource demand with the preset platform resource library. By setting the resource allocation unit to allocate corresponding initial resources to the initial terminal device based on the matching result of the resource matching unit, the overall operating efficiency of the system is improved. The actual needs of the terminal device and the available resources of the platform resource library are considered to make the optimal resource allocation decision, thereby improving the overall benefit of resource utilization and providing a basis for subsequent dynamic resource scheduling.

[0080] Specifically, the acquisition module includes:

[0081] A collection unit, used for collecting the real-time required number of CPU cores and the real-time required amount of memory of any of the initial terminal devices in real time at a preset time interval;

[0082] A curve generating unit is connected to the collecting unit and is used to draw a CPU variation curve according to the real-time required number of CPU cores and to draw a real-time memory variation curve based on the real-time required amount of memory.

[0083] Specifically, the preset time interval in the embodiment of the present invention is 1 minute.

[0084] Specifically, the embodiment of the present invention ensures the timeliness and accuracy of the data by setting the collection unit to collect the real-time resource requirements of the terminal device in real time, providing reliable data support for resource scheduling. By setting the curve generation unit, the changing trend of the resource requirements of the terminal device is intuitively displayed, providing an intuitive basis for resource scheduling decisions.

[0085] See also Figure 3 As shown, the curve analysis module 40 includes:

[0086] A trend analysis unit 41, configured to analyze a change trend of the CPU change curve and a change trend of the memory change curve corresponding to any of the initial terminal devices, and obtain a first trend and a second trend;

[0087] A first adjustment unit 42, connected to the trend analysis unit 41, is used to calculate a reduction coefficient to reduce the preset time interval to obtain the adjustment time interval when the first trend fluctuates within a first preset variation range and the second trend fluctuates within a second preset variation range;

[0088] The second adjustment unit 43 is connected to the trend analysis unit 41, and is used for removing the corresponding initial terminal device from the management platform when the first trend and the second trend are downward trends.

[0089] Specifically, the curve analysis module in the embodiment of the present invention further includes a third adjustment unit, which is used for not performing adjustment processing in the remaining cases except the cases of the first adjustment unit and the second adjustment unit.

[0090] Specifically, in the embodiment of the present invention, the first preset change range is ±1 of the average of several real-time required CPU core numbers corresponding to the CPU change curve, and the second preset change range is ±2 of the average of several real-time required memory amounts corresponding to the memory change curve.

[0091] Specifically, the reduction coefficient in the first adjustment unit of the embodiment of the present invention is the ratio of the number of initial terminal devices corresponding to the fluctuation of the first trend within the first preset variation range and the second trend within the second preset variation range to the total number of the initial terminal devices;

[0092] The adjustment time interval=preset time interval-reduction coefficient×preset time interval.

[0093] Specifically, the embodiment of the present invention sets the trend analysis unit to analyze the changing trend of the resource demand of the terminal device, so as to timely discover the fluctuation of the resource demand and make corresponding adjustments to ensure the flexibility and adaptability of resource allocation. By setting the first adjustment unit and the second adjustment unit, the collection frequency can be dynamically adjusted according to the changes in the resource demand, thereby further improving the efficiency and accuracy of resource scheduling.

[0094] Specifically, when the first trend is within a first preset variation range and the second trend fluctuates within a second preset variation range, a reduction coefficient is calculated to reduce the preset time interval, and the adjustment time interval is obtained, so as to ensure that when resource demand fluctuates greatly, the system can collect data more frequently, so as to respond to changes in demand of terminal devices in a timely manner, thereby improving the flexibility and response speed of resource scheduling;

[0095] When the first trend and the second trend are downward trends, the corresponding initial terminal devices are removed from the management platform to avoid unnecessary resource allocation to terminal devices that no longer need resources, thereby improving the overall efficiency of resource utilization.

[0096] The curve analysis module also includes a third adjustment unit, which is used to not perform adjustment processing when the remaining situations are excluding the situations of the first adjustment unit and the second adjustment unit, thereby ensuring that the system maintains the current acquisition frequency when the resource demand is relatively stable and avoiding unnecessary resource scheduling operations.

[0097] Specifically, in the embodiment of the present invention, the first preset change range is the mean ±1 of several real-time required CPU core numbers corresponding to the CPU change curve, and the second preset change range is the mean ±2 of several real-time required memory amounts corresponding to the memory change curve. By setting a reasonable preset change range, it is ensured that the system makes timely adjustments when resource demand fluctuates greatly, and maintains the current acquisition frequency when resource demand is relatively stable, thereby achieving high efficiency and stability of resource scheduling.

[0098] Specifically, the instruction sending module includes:

[0099] a calculation unit, configured to calculate a resource change rate based on any of the real-time demand resources of the adjustment terminal device, and determine the priority based on the resource change rates;

[0100] an instruction generating unit, connected to the computing unit, for adjusting the initial resource allocation result according to the priority level, so as to generate a resource scheduling instruction according to the adjustment result;

[0101] An instruction sending unit is connected to the scheduling instruction generating unit and is used to send the resource scheduling instruction.

[0102] Specifically, the embodiment of the present invention can accurately evaluate the change of resource demand of terminal equipment by setting the calculation unit to calculate the resource change rate based on the real-time demand resources, thereby providing a scientific basis for resource scheduling, and by setting the instruction generation unit, the priority is determined according to the resource change rate to ensure the rationality and efficiency of the resource scheduling instruction, so that the resource allocation is more in line with the actual demand. The instruction sending unit is responsible for sending the generated resource scheduling instruction to the corresponding resource management module to ensure that the resource scheduling instruction can be executed in a timely and accurate manner.

[0103] Specifically, the computing unit includes:

[0104] A calculation subunit, used to calculate a first average of differences between a number of real-time required CPU core numbers and an initial number of CPU cores of the adjustment terminal device, and a first average of differences between a number of real-time required memory amounts and an initial memory amount;

[0105] a comparing subunit, connected to the calculating subunit, for comparing the first mean with a first preset mean to obtain a first comparison result, and comparing the second mean with a second preset mean to obtain a second comparison result;

[0106] A determination subunit is connected to the comparison subunit and is used to determine the priority based on the first comparison result and the second comparison result.

[0107] Specifically, in the embodiment of the present invention, the first preset mean value is 10% of the initial number of CPU cores of the initial terminal device, and the second preset mean value is 15% of the initial memory amount.

[0108] Specifically, the determining subunit in the embodiment of the present invention includes:

[0109] When the first mean value is greater than the first preset mean value and the second mean value is greater than the second preset mean value, setting the priority of the adjustment terminal device to high;

[0110] When the first mean value is less than or equal to the first preset mean value and the second mean value is less than or equal to the second preset mean value, setting the priority of adjusting the terminal device to low;

[0111] When the first mean value is greater than the first preset mean value or the second mean value is greater than the second preset mean value, the priority of the adjustment terminal device is set to medium.

[0112] Specifically, the embodiment of the present invention can accurately evaluate the change of resource demand of terminal device by setting the calculation subunit to calculate the first mean of the difference between the number of real-time required CPU cores and the initial number of CPU cores of the adjusted terminal device, as well as the first mean of the difference between the number of real-time required memory amounts and the initial memory amounts, thereby providing an accurate basis for resource scheduling. By setting the comparison subunit, the first mean is compared with the first preset mean to obtain a first comparison result, and the second mean is compared with the second preset mean to obtain a second comparison result, which can further refine the evaluation of resource demand and ensure the rationality and efficiency of resource scheduling instructions.

[0113] Specifically, the scheduling module includes:

[0114] An instruction receiving unit, used for receiving the resource scheduling instruction;

[0115] a scheduling unit, connected to the instruction receiving unit, for determining a scheduling order according to the priority;

[0116] An execution unit is connected to the scheduling unit and is used to schedule resources for the initial terminal device according to the scheduling sequence to adjust the number of CPU cores and the amount of memory.

[0117] Specifically, the execution unit described in the embodiment of the present invention includes:

[0118] A resource release subunit, used for marking the allocated resources as unallocated and updating the resource status in the resource library when the initial terminal device does not need the allocated resources;

[0119] The resource allocation subunit is connected to the resource release subunit and is used to select a corresponding amount of resources from a resource pool and allocate them to the initial terminal device according to the scheduling order and resource requirements.

[0120] Specifically, the monitoring module includes:

[0121] A monitoring unit, used to monitor in real time the number of CPU cores actually used and the amount of memory actually used by the adjustment terminal device;

[0122] An effect evaluation unit is connected to the monitoring unit and is used to determine the actual resource utilization based on the actual number of CPU cores used and the actual amount of memory used, and to evaluate the resource scheduling effect based on the actual resource utilization and the preset resource utilization.

[0123] Specifically, the preset resource utilization rate in the embodiment of the present invention is 90%.

[0124] Specifically, the actual resource utilization rate described in the embodiment of the present invention = α×actual number of CPU cores used / adjusted number of CPU cores + β×actual amount of memory used / adjusted amount of memory, wherein α and β are weight values, and α+β=1.

[0125] Specifically, the feedback module includes:

[0126] A comparison unit, used to compare the actual resource utilization rate with the preset resource utilization rate to obtain a comparison result;

[0127] A feedback unit is connected to the comparison unit, and is used to calculate a calibration coefficient based on the actual resource utilization and the preset resource utilization when the actual resource utilization is less than the preset resource utilization, so as to calibrate the adjusted resource allocation result, and to reduce the preset period when the actual resource utilization is greater than or equal to the preset resource utilization.

[0128] Specifically, the calibration coefficient in the feedback unit of the embodiment of the present invention=(preset resource utilization rate-actual resource utilization rate) / preset resource utilization rate;

[0129] Reducing the preset period is reducing it by 1 / 5 of the preset period.

[0130] See also Figure 4 As shown, an embodiment of the present invention also provides a method of a resource scheduling system based on a terminal device management platform, the method comprising:

[0131] Step S100, obtaining a number of initial terminal devices and their corresponding initial required resources;

[0132] Step S200, performing initial resource allocation on a number of the initial terminal devices based on the initial required resources, and obtaining an initial resource allocation result;

[0133] Step S300, collecting the real-time demand resources of any of the initial terminal devices at preset time intervals, and drawing a resource change curve based on a number of real-time demand resources;

[0134] Step S400, analyzing the change trend of any resource change curve, and adjusting a number of the initial terminal devices based on the change trend analysis result to obtain an adjusted terminal device, or adjusting the preset time interval to obtain an adjusted time interval;

[0135] Step S500, determining the priorities of a plurality of adjustment terminal devices based on a plurality of the real-time demand resources, and sending a resource scheduling instruction based on the priority determination result;

[0136] Step S600, receiving the resource scheduling instruction, adjusting the initial resource allocation result according to the resource scheduling instruction, and obtaining an adjusted resource allocation result;

[0137] Step S700, monitoring resource scheduling effects of a plurality of the adjusted terminal devices in real time within a preset period;

[0138] Step S800: Analyze the resource scheduling effect, and calibrate the adjusted resource allocation result based on the analysis result to obtain a target allocation result, or adjust the preset period.

[0139] Specifically, the method of the resource scheduling system based on the terminal device management platform provided in the embodiment of the present invention can be applied to the above-mentioned resource scheduling system based on the terminal device management platform to achieve the same technical effect, which will not be repeated here.

[0140] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

[0141] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A resource scheduling system based on a terminal device management platform, characterized in that: include: An information acquisition module is used to acquire a number of initial terminal devices and their corresponding initial required resources; An allocation module, configured to perform initial resource allocation on a plurality of initial terminal devices based on the initial required resources, and obtain an initial resource allocation result; A collection module, connected to the allocation module, for collecting the real-time demand resources of any of the initial terminal devices at preset time intervals, and drawing a resource change curve based on a number of real-time demand resources; A curve analysis module, connected to the acquisition module, for analyzing a change trend of any resource change curve, and adjusting a number of the initial terminal devices to obtain an adjusted terminal device based on a change trend analysis result, or adjusting the preset time interval to obtain an adjusted time interval; An instruction sending module, connected to the curve analysis module, for determining the priorities of a plurality of adjustment terminal devices based on a plurality of the real-time demand resources, and sending a resource scheduling instruction based on the priority determination result; A scheduling module, connected to the instruction sending module, for receiving the resource scheduling instruction, adjusting the initial resource allocation result according to the resource scheduling instruction, and obtaining an adjusted resource allocation result; A monitoring module, connected to the scheduling module, for real-time monitoring of resource scheduling effects of a number of the adjustment terminal devices within a preset period; A feedback module is connected to the monitoring module and is used to analyze the resource scheduling effect, calibrate the adjusted resource allocation result based on the analysis result to obtain the target allocation result, or adjust the preset period.

2. The resource scheduling system based on the terminal device management platform according to claim 1, characterized in that: The allocation module comprises: A resource matching unit, used to match the initial resource demand with a preset platform resource library to obtain a matching result; The resource allocation unit is connected to the resource matching unit and is used to allocate corresponding initial resources to the initial terminal device based on the matching result to obtain the initial resource allocation result.

3. The resource scheduling system based on the terminal device management platform according to claim 2 is characterized in that: The acquisition module comprises: A collection unit, used for collecting the real-time required number of CPU cores and the real-time required amount of memory of any of the initial terminal devices in real time at a preset time interval; A curve generating unit is connected to the collecting unit and is used to draw a CPU variation curve according to the real-time required number of CPU cores and to draw a real-time memory variation curve based on the real-time required amount of memory.

4. The resource scheduling system based on the terminal device management platform according to claim 3 is characterized in that: The curve analysis module comprises: A trend analysis unit, used for analyzing a change trend of the CPU change curve and a change trend of the memory change curve corresponding to any of the initial terminal devices, to obtain a first trend and a second trend; A first adjustment unit, connected to the trend analysis unit, for calculating a reduction coefficient to reduce the preset time interval to obtain the adjustment time interval when the first trend is within a first preset variation range and the second trend fluctuates within a second preset variation range; The second adjustment unit is connected to the trend analysis unit, and is used for removing the corresponding initial terminal device from the management platform when the first trend and the second trend are downward trends.

5. The resource scheduling system based on the terminal device management platform according to claim 4 is characterized in that: The instruction sending module comprises: a calculation unit, configured to calculate a resource change rate based on any of the real-time demand resources of the adjustment terminal device, and determine the priority based on the resource change rates; an instruction generating unit, connected to the computing unit, for adjusting the initial resource allocation result according to the priority level, so as to generate a resource scheduling instruction according to the adjustment result; An instruction sending unit is connected to the scheduling instruction generating unit and is used to send the resource scheduling instruction.

6. The resource scheduling system based on the terminal device management platform according to claim 5, characterized in that: The computing unit comprises: A calculation subunit, used to calculate a first average of differences between a number of real-time required CPU core numbers and an initial number of CPU cores of the adjustment terminal device, and a first average of differences between a number of real-time required memory amounts and an initial memory amount; a comparing subunit, connected to the calculating subunit, for comparing the first mean with a first preset mean to obtain a first comparison result, and comparing the second mean with a second preset mean to obtain a second comparison result; A determination subunit is connected to the comparison subunit and is used to determine the priority based on the first comparison result and the second comparison result.

7. The resource scheduling system based on the terminal device management platform according to claim 6, characterized in that: The scheduling module includes: An instruction receiving unit, used for receiving the resource scheduling instruction; a scheduling unit, connected to the instruction receiving unit, for determining a scheduling order according to the priority; An execution unit is connected to the scheduling unit and is used to schedule resources for the initial terminal device according to the scheduling sequence to adjust the number of CPU cores and the amount of memory.

8. The resource scheduling system based on the terminal device management platform according to claim 7, characterized in that: The monitoring module comprises: A monitoring unit, used to monitor in real time the number of CPU cores actually used and the amount of memory actually used by the adjustment terminal device; An effect evaluation unit is connected to the monitoring unit and is used to determine the actual resource utilization based on the actual number of CPU cores used and the actual amount of memory used, and to evaluate the resource scheduling effect based on the actual resource utilization and the preset resource utilization.

9. The resource scheduling system based on the terminal device management platform according to claim 8, characterized in that: The feedback module comprises: A comparison unit, used to compare the actual resource utilization rate with the preset resource utilization rate to obtain a comparison result; A feedback unit is connected to the comparison unit, and is used to calculate a calibration coefficient based on the actual resource utilization and the preset resource utilization when the actual resource utilization is less than the preset resource utilization, so as to calibrate the adjusted resource allocation result, and to reduce the preset period when the actual resource utilization is greater than or equal to the preset resource utilization.

10. A method for applying the resource scheduling system based on the terminal device management platform according to any one of claims 1 to 9, characterized in that: include: Obtaining a number of initial terminal devices and their corresponding initial required resources; Performing initial resource allocation to the initial terminal devices based on the initial required resources, and obtaining an initial resource allocation result; Collecting the real-time demand resources of any of the initial terminal devices at preset time intervals, and drawing a resource change curve based on the real-time demand resources; Analyze the change trend of any resource change curve, and adjust a number of the initial terminal devices based on the change trend analysis result to obtain an adjusted terminal device, or adjust the preset time interval to obtain an adjusted time interval; Determine the priorities of a plurality of adjustment terminal devices based on the plurality of real-time demand resources, and send a resource scheduling instruction based on the priority determination result; receiving the resource scheduling instruction, and adjusting the initial resource allocation result according to the resource scheduling instruction to obtain an adjusted resource allocation result; Monitoring resource scheduling effects of a plurality of the adjustment terminal devices in real time within a preset period; Analyze the resource scheduling effect, and calibrate the adjusted resource allocation result based on the analysis result to obtain a target allocation result, or adjust the preset period.

Citation Information

Patent Citations

  • Resource-adjustable satellite parallel-testing resource configuration method

    CN102662756A

  • System resource adjustment method and device and readable storage medium

    CN110704187A

  • Elastic scheduling method and system for cluster resources, electronic equipment and storage medium

    CN117632414A

  • Task allocation system based on big data analysis

    CN118193172A

  • Random access method, terminal, apparatus and storage medium

    WO2023131291A1