Cloud resource allocation system, apparatus, and method

The cloud resource allocation system optimizes job performance and power efficiency by using direct or indirect resource allocation strategies, prioritizing high-priority jobs and preempting low-priority tasks, addressing the challenge of balancing performance and energy consumption in cloud orchestration.

JP7546724B2Active Publication Date: 2024-09-06IND TECH RES INST
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023078773
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-12-09
Filing Date
2023-05-11
Publication Date
2024-09-06
Estimated Expiration
2043-05-11

AI Technical Summary

Technical Problem

Current cloud resource orchestration systems face challenges in balancing job performance with energy savings and consumption reduction, particularly in managing workload impacts on power efficiency and resource allocation for low-latency applications.

Method used

A cloud resource allocation system that includes a master node and worker nodes, utilizing an orchestrator to determine direct or indirect resource allocation based on job profiles, prioritizing high-priority jobs and preempting low-priority jobs to optimize resource usage and power efficiency.

Benefits of technology

The system achieves dynamic management of performance and power consumption, supporting flexible job management and reducing maintenance and operating costs by ensuring efficient resource utilization and energy savings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007546724000007
    Figure 0007546724000007
  • Figure 0007546724000013
    Figure 0007546724000013
  • Figure 0007546724000002
    Figure 0007546724000002
Patent Text Reader

Abstract

To provide a system, apparatus, and method for cloud resource allocation configured to balance job performance and energy saving.SOLUTION: A method is executed by a cloud resource allocation system including a plurality of worker nodes and a master node. The master node includes an orchestrator configured to: obtain multiple pieces of node resource information reported by the respective worker nodes, through a resource manager; and parse a job profile of a job request obtained from a waiting queue through a job scheduler and decide to execute direct resource allocation or preemptive indirect resource allocation for a to-be-processed job requested by the job request based on the node resource information and the job profile.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a cloud resource allocation system, apparatus, and method. [Background technology]

[0002] The global cloud computing and edge computing market size continues to expand due to the popularity of various new technologies and applications. The growing popularity of IoT technology across various industries is driving the growth of the global edge computing market.

[0003] Cloud computing provides lightweight container services that support real-time application services. Cloud applications (such as metaverse, cloud gaming, and artificial intelligence monitoring) have the characteristics of multi-service and immediate response. Currently, container orchestration technology is equipped with preemptive resource management, which prioritizes multiple services and provides container provisioning with guaranteed Quality of Service (QoS). A container is a lightweight code package within an application that contains dependencies such as runtime-specific versions of programming languages, environment configuration files, and libraries required to run a software service.

[0004] The cold start time ranges from hundreds of milliseconds to a few seconds, which cannot effectively support instant provisioning of containers and low-latency application services. Currently, a design with container pre-launch has been proposed, which is complemented by a workload prediction mechanism to meet the real-time provisioning and operation requirements of low-latency applications. However, this design does not consider the impact of workload management on power efficiency.

[0005] Cloud computing supports a variety of QoS-sensitive application services, and the priority scheduling mechanism ensures resource utilization efficiency for high-priority services. Cloud orchestration performs "application service auto-configuration" and "resource optimization" according to the functional characteristics and resource requirements of application services, so the resource orchestration mechanism (cloud orchestration) is of great importance. Therefore, various applications are also driving the growth of the global cloud orchestration market. Summary of the Invention [Problem to be solved by the invention]

[0006] Therefore, in the field of cloud resource orchestration, one of the current issues is how to balance "job performance" and "energy saving / consumption reduction."

[0007] The present invention provides a system, apparatus, and method for job performance and job performance-aware cloud resource allocation.

[0008] The cloud resource allocation system of the present invention includes a plurality of worker nodes and a master node. The master node includes an orchestrator configured to obtain a plurality of node resource information reported by the plurality of worker nodes via a resource manager, analyze a job profile of a job request obtained from a waiting queue via a job scheduler, and determine to perform direct resource allocation or indirect resource allocation for a job to be processed requested in the job request based on the plurality of node resource information and the job profile. In response to the determination to perform direct resource allocation, the orchestrator is configured to find a first worker node having available resources matching the job profile among the plurality of worker nodes via the job scheduler, dispatch the job to be processed to the first worker node via the resource manager, and place the job to be processed in an execution queue via the job scheduler. In response to performing the indirect resource allocation, the orchestrator is configured to: find a second worker node having a low priority job from among the multiple worker nodes, via the job scheduler; notify the second worker node to back up the operational state of the low priority job; release resources used by the low priority job; and in response to receiving a resource release notification from the second worker node via the resource manager, place another job request corresponding to the low priority job in a waiting queue via the job scheduler, dispatch the job to be processed to the second worker node via the resource manager, and place the job to be processed in an execution queue via the job scheduler.

[0009] The cloud resource allocation device of the present invention includes a storage that stores an orchestrator including a resource manager and a job scheduler and provides a waiting queue and an execution queue, and a processor coupled to the storage. The processor is configured to obtain a plurality of node resource information reported by a plurality of worker nodes via the resource manager, analyze a job profile of a job request obtained from the waiting queue via the job scheduler, and determine whether to perform direct resource allocation or indirect resource allocation for a job to be processed requested by the job request based on the plurality of node resource information and the job profile.

[0010] The cloud resource allocation method of the present invention includes performing the following by a cloud resource allocation device: obtaining a plurality of node resource information reported by a plurality of worker nodes respectively, analyzing a job profile of a job request obtained from a waiting queue, and determining whether to perform direct resource allocation or indirect resource allocation for a job to be processed requested in the job request based on the plurality of node resource information and the job profile. Effect of the Invention

[0011] In view of the above, the present invention provides an orchestration architecture with dynamic management of performance and power consumption, and an application group job preemption mechanism based on the architecture, which considers applications supported by multiple jobs, flexibly manages jobs based on application priorities, and considers the power usage efficiency of node computing resources while supporting the operating performance of container services, thereby reducing maintenance and operation costs. [Brief description of the drawings]

[0012] [Figure 1] 1 is a block diagram of a cloud resource allocation system according to one embodiment of the present invention. [Diagram 2] 2 is a flowchart of a cloud resource allocation method according to an embodiment of the present invention. [Diagram 3] 1 is a schematic diagram of the architecture of a cloud resource allocation apparatus according to an embodiment of the present invention; [Figure 4] FIG. 2 is a schematic diagram of a worker node architecture according to one embodiment of the present invention. [Diagram 5] FIG. 2 is a block diagram of an integrated mode node according to one embodiment of the present invention. [Figure 6] FIG. 6 is a schematic diagram of worker node performance / power consumption monitoring according to one embodiment of the present invention. [Figure 7] 4 is a flowchart of worker node performance / power consumption monitoring according to one embodiment of the present invention. [Figure 8] FIG. 2 is a schematic diagram of container resource requests and resource orchestration according to an embodiment of the present invention. [Figure 9] 2 is a schematic diagram of power consumption regulation according to an embodiment of the present invention; [Figure 10] FIG. 2 is a schematic diagram of performance tuning according to an embodiment of the present invention. [Figure 11A] FIG. 2 is a schematic diagram of a job profile of a job request according to one embodiment of the present invention. [Figure 11B] FIG. 2 is a schematic diagram of a job profile of a job request according to one embodiment of the present invention. [Figure 11C] FIG. 2 is a schematic diagram of a job profile of a job request according to one embodiment of the present invention. [Figure 12A] FIG. 2 is a schematic diagram of distribution of job requests according to one embodiment of the present invention. [Figure 12B] FIG. 2 is a schematic diagram of distribution of job requests according to one embodiment of the present invention. [Figure 12C] FIG. 2 is a schematic diagram of distribution of job requests according to one embodiment of the present invention. [Figure 12D] FIG. 2 is a schematic diagram of distribution of job requests according to one embodiment of the present invention. [Figure 12E] FIG. 2 is a schematic diagram of distribution of job requests according to one embodiment of the present invention. [Figure 13] FIG. 2 is a schematic diagram of job dependency and resource checking according to one embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Fig. 1 is a block diagram of a cloud resource allocation system according to an embodiment of the present invention. Referring to Fig. 1, the cloud resource allocation system 100 includes two types of nodes, classified according to function: a master node (cloud resource allocation device 100A) and worker nodes 100B-1 to 100B-N (collectively referred to as worker nodes 100B). The cloud resource allocation device 100A is configured to manage and schedule container computing resources. The worker node 100B provides container computing resources.

[0014] The operation architecture of the cloud resource allocation system 100 may have multiple types of modes, as follows. For example, there are a basic mode, a high availability mode, an integrated mode, a high availability integrated mode, and a distributed integrated mode. The basic mode has at least one master node (cloud resource allocation device 100A) and at least two worker nodes 100B. The high availability mode has at least three master nodes (cloud resource allocation device 100A) and at least two worker nodes 100B. The integrated mode has (at least two) nodes that deploy elements forming the master node and the worker node and execute the integrated mode. The high availability integrated mode has at least three nodes that execute the integrated mode. The distributed integrated mode has at least two nodes that execute the integrated mode, does not deploy functional groups, and uses point-to-point communication to collect global information and achieve the purpose of distributed resource orchestration.

[0015] The cloud resource allocation device 100A is realized using an electronic device having a computing function and a network function, and its hardware architecture includes at least a processor 110 and a storage 120. The worker node 100B is also realized using an electronic device having a computing function and a networking function. Its hardware configuration is similar to that of the cloud resource allocation device 100A.

[0016] Processor 110 may be, for example, a Central Processing Unit (CPU), a Physics Processing Unit (PPU), a programmable microprocessor, an embedded control chip, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or other similar device.

[0017] Storage 120 is, for example, any kind of repairable or removable random access memory (RAM), read only memory (ROM), flash memory, hard disk, or other similar device, or a combination of these devices. Storage 120 includes orchestrator 120A and resource monitor 120B. Orchestrator 120A and resource monitor 120B are formed by one or more code fragments. The code fragments are executed by processor 110 after installation. In other embodiments, orchestrator 120A and resource monitor 120B are also implemented by separate chips, circuits, controllers, CPUs, and other hardware.

[0018] The orchestrator 120A manages job requests and schedules container resources. The resource monitor 120B receives node resource information actively reported from the worker node 100B. For example, the node resource information includes workload monitoring data that checks the workload and power consumption monitoring data that checks the power consumption.

[0019] The orchestrator 120A controls the resource scheduling capabilities of the worker nodes 100B, thereby satisfying the quality of service requirements of the application. The quality of service requirements include the usage of job resources such as CPU resources, memory resources, hard disk resources, etc. The quality of service requirements further include scheduling requirements of priority levels based on, for example, importance and deadline. Resource orchestration is performed on high priority jobs first.

[0020] Resource monitor 120B is configured to collect node resource information of worker node 100B as a whole and master all configurable container computing resources and the available resource types and capacities of worker node 100B for providing computing resources.

[0021] 2 is a flowchart of a cloud resource allocation method according to an embodiment of the present invention. Referring to FIG. 1 and FIG. 2, in step S205, the cloud resource allocation device 100A acquires a plurality of node resource information reported from the worker nodes 100B-1 to 100B-N via the resource monitor 120B.

[0022] Next, in step S210, the orchestrator 120A analyzes the job profile of the job request retrieved from the waiting queue and determines whether to perform direct or indirect resource allocation for the job to be processed that is requested by the job request. Specifically, the job profile includes multiple jobs based on application groups, priorities, resource requirements (resource types, demands, etc.) required by each job (application group member) during execution, startup and shutdown orders supporting multiple application group members (job containers), and the like.

[0023] In step S215, the orchestrator 120A determines whether the available resources of the worker nodes 100B-1 to 100B-N satisfy the resource requirements of the job request based on the node resource information and the job profile. If the available resources of at least one of the worker nodes 100B satisfy the resource requirements of the job request, it is determined that direct resource allocation is performed for the job to be processed. If the available resources of none of the worker nodes 100B satisfy the resource requirements of the job request, and if it is evaluated that the resource requirements of the job request can be satisfied (the resource preemption condition can be satisfied) after preempting the resources used by one or more low priority jobs (i.e., one or more running jobs with low priority), it is determined that indirect resource allocation is performed for the job to be processed.

[0024] In response to the decision to perform direct resource allocation, the orchestrator 120A performs steps S220-S230. In step S220, a first worker node having available resources matching the job profile is found among the worker nodes 100B. Then, in step S225, the job to be processed is dispatched to the first worker node. Thereafter, in step S230, the job to be processed is queued for execution.

[0025] In response to the decision to perform indirect resource allocation, the orchestrator 120A executes steps S235 to S250. In step S235, a second worker node having a low priority job is found from among the worker nodes 100B, the second worker node is notified so that the second worker node backs up the operation state of the low priority job, and the resources used by the second worker node are released. Next, in step S240, in response to receiving the resource release notification from the second worker node, another job request corresponding to the low priority job is queued in a waiting queue. Then, in step S245, the job to be processed is dispatched to the second worker node. Thereafter, in step S250, the job to be processed is queued in an execution queue. In response to the fact that the adjusted available resources still do not satisfy the resource requirements of the job request after releasing the resources used by the low priority job, the second worker node is notified to continue releasing the resources used by another low priority job until the adjusted available resources satisfy the resource requirements of the job request.

[0026] 3 is a schematic diagram of the architecture of a cloud resource allocation apparatus according to an embodiment of the present invention. Referring to FIG. 3, the cloud resource allocation apparatus 100A includes an orchestrator 120A, a resource monitor 120B, a workload manager 120C, and a power manager 120D.

[0027] The orchestrator 120A includes a job scheduler 301 and a resource manager 303. The job scheduler 301 is configured to analyze a job profile of a job request and determine to perform resource allocation in a direct or indirect (preemptive) manner (referred to as direct resource allocation and indirect resource allocation, respectively) according to the analyzed job profile. The job scheduler 301 is further configured to manage an operational state. The job scheduler 301 also provides a waiting queue and an executing queue. The waiting queue is configured to accommodate pending job requests (new job requests, preempted job requests), and high priority job requests are prioritized for job scheduling. The executing queue is configured to accommodate running jobs. A backup operation of the operational state is first performed for low priority jobs whose resources are preempted. After the resources are released, the uncompleted jobs continue from the previous operational state when they enter the waiting queue to acquire container resources.

[0028] After the job scheduler 301 places the job to be processed in the execution queue, when a notification is received via the resource manager 303 indicating that the job to be processed has been completed, the job to be processed is deleted from the execution queue via the job scheduler 301.

[0029] The job scheduler 301 supports scheduling results for different job objectives. The job objectives are, for example, the minimum power consumption cost, the highest performance, or an overall measurement objective. For the minimum power consumption cost, the basic power consumption of the system of each worker node 100B and the power consumption information corresponding to the current load state are checked to find the worker node 100B with the lowest power consumption cost, and the power consumption cost of each worker node 100B that executes the job request is calculated based on the resource requirements of the job request and historical data. For the highest performance, the resource category, level, and available capacity of each worker node 100B are checked to select the worker node 100B that can configure the highest resource level, assuming that the resource requirements of the job request are satisfied. For the overall measurement objective, for example, a worker node having a certain ratio of performance and power consumption is considered. Furthermore, the job scheduler 301 can also provide a corresponding worker node list based on the minimum power consumption cost, the highest performance, and the overall measurement objective.

[0030] The resource manager 303 is configured to manage resources and control node resource information actively reported from all the worker nodes 100B, including workload monitoring data and power consumption monitoring data of each worker node. The workload monitoring data includes the total load and available resources of the worker nodes. The power consumption monitoring data includes power consumption statistics and energy efficiency, multi-level (worker node level, job group level, job schedule level) performance and power consumption statistics and analysis information, and possible performance and power consumption adjustment strategy suggestions. The resource manager 303 can provide performance and power consumption statistics information to the job scheduler 301 to support the statistics information to complete job scheduling decision-making. The resource manager 303 dispatches the job to be processed requested by the job request to the designated worker node 100B for execution according to the scheduling result of the job scheduler 301. The resource manager 303 can also perform active performance adjustment and / or power consumption adjustment.

[0031] The resource monitor 120B includes a performance data collector 331 and a power consumption collector 333. The performance data collector 331 is configured to collect and store the workload monitoring data reported by each worker node 100B, and add historical data to the workload monitoring data based on a preset time in response to the workload monitoring data being marked with a warning label. For example, when the workload of the worker node 100B exceeds a predetermined workload upper limit, the performance data collector 331 adds the historical data of the workload for subsequent analysis according to the preset time.

[0032] The power consumption collector 333 is configured to collect and store the power consumption monitoring data reported from each worker node 100B. When a container lifecycle event (e.g., creation, preemption, termination) occurs on the worker node 100B, a process identifier (PID) change is generated and the power consumption history data associated with the PID is added for subsequent analysis according to a preset time.

[0033] The workload manager 120C is configured to perform performance management according to the workload monitoring data, which is ultimately used by the orchestrator as a basis for scheduling resources. The workload manager 120C includes a state transition handler 311 and a workload analyzer 313.

[0034] The state transition handler 311 processes state transitions between worker nodes 100B according to instructions from the resource manager 303.

[0035] The workload analyzer 313 mainly receives workload monitoring data from the performance data collector 331 and analyzes the workload monitoring data to determine whether a resource abnormality has occurred in the worker node 100B. When the workload analyzer 313 determines that the resource abnormality is a workload overload (the workload of each worker node 100B exceeds a predetermined workload upper limit) or a system resource loss (a shortage of system resources due to a system resource loss occurs mainly in response to a computer program not normally releasing an occupied resource when the computer program is terminated, and as a result, the resource that has not been normally released is not allocated to a job request, leading to resource exhaustion, performance degradation, a system crash, etc.), the workload analyzer 313 notifies the resource manager 303, and the resource manager 303 sends a state transition command to the state transition handler 311.

[0036] The workload analyzer 313 is configured to generate a corresponding state transition proposal for the worker node 100B in which the resource anomaly occurred. The workload analyzer 313 generates a job group level state transition proposal in response to determining that the resource anomaly is a workload overload. The workload analyzer 313 generates a node level state transition proposal in response to determining that the resource anomaly is a system resource loss (e.g., a memory leak).

[0037] Power manager 120D includes a power planner 321 and a power analyzer 323. Power planner 321 generates a power adjustment proposal (power consumption adjustment of a worker node) based on a power consumption adjustment strategy (indicated by resource manager 303) and transmits the power adjustment proposal to worker node 100B.

[0038] The power analyzer 323 receives power consumption monitoring data from the power consumption collector 333, analyzes the power consumption monitoring data to obtain a power consumption analysis result, and generates a power consumption adjustment strategy based on the power consumption analysis result. In one embodiment, the power analyzer 323 performs power consumption analysis based on life cycle management events (e.g., creation, deletion, state transition) of containers on the worker nodes, and provides an appropriate power consumption adjustment strategy to the resource manager 303. The power planner 321 plans an appropriate power adjustment proposal based on the power consumption adjustment strategy.

[0039] For example, if there are no power consumption jobs scheduled on worker node 100B, the power throttling proposal suggests that the worker node enter a sleep mode. If the power consumption configuration of worker node 100B is too high, significantly higher than the current workload, the power throttling proposal suggests that the worker node perform dynamic voltage and frequency scaling (DVFS). For example, "performance" (CPU repairs the job at the highest supported frequency) is throttled to "powersave" (CPU repairs the job at the lowest supported frequency).

[0040] Furthermore, when all running worker nodes 100B are fully loaded, the power planar 321 issues a power on command to the worker nodes in sleep mode or power off mode, such as the worker node 100B-i, and then obtains again the node resource information reported by the worker node 100B-i and the other worker nodes 100B, respectively, after the worker node 100B-i in sleep mode or power off mode transitions to an operational state.

[0041] Figure 4 is a schematic diagram of a worker node architecture according to an embodiment of the present invention. Referring to Figure 4, the worker node 100B includes a local manager 400A and a container engine 400B. The local manager 400A periodically checks the workload and execution power consumption of the worker node 100B, and actively reports the resource monitoring results (i.e., node resource information) to the resource monitor 120B of the cloud resource allocation device 100A. The container engine 400B is the core of the container service and provides the computing resources required for job execution on the worker node 100B.

[0042] The local manager 400A includes a power consumption inspector 401 , a power module handler 403 , a job handler 405 , a performance data inspector 407 , and a system inspector 409 .

[0043] The power consumption inspector 401 obtains power consumption monitoring data through power monitoring and dedicated software. For example, the power consumption inspector 401 can obtain host power consumption information through an interface using an Intelligent Platform Management Interface (IPMI) or Redfish standard, analyze the power consumption of each schedule through a Scaphandre tool, obtain load power consumption using SPECpower and SERT tools developed by the Standard Performance Evaluation Corporation (SPEC), and obtain the configuration of power governors through CPUFreq or DVFS.

[0044] The power module handler 403 adjusts the system power state, such as power off mode, sleep mode, or one of the specific power consumption modes, in response to the power adjustment proposal (system level power consumption adjustment) received from the cloud resource allocation apparatus 100A. The power module handler 403 adjusts the power module of the worker node 100B based on the instruction of the power planner 321. For example, the power module is adjusted to the power off mode to achieve maximum energy savings and system repair. The power module is adjusted to the sleep mode to achieve maximum energy savings and reduce the job time until the next system start-up. The voltage and frequency of the power module are adjusted to achieve the optimal voltage and power consumption of the load.

[0045] When the job handler 405 receives a resource management command from the resource manager 303 of the cloud resource allocation device 100A, it executes container lifetime cycle management. The container lifetime cycle management includes any one of container creation, container deletion, and state transition. The job handler 405 determines to which application group job the process identifier (PID) currently executing the container provisioning, deletion, or state transition belongs, based on the resource management command sent by the resource manager 303. In this way, the power consumption inspector 401 is assisted to execute more accurate power consumption investigation for the job schedule, and the performance data inspector 407 is assisted to execute more accurate performance investigation for the job schedule.

[0046] The system inspector 409 checks system resource usage via system resource monitoring tools such as top, ps, turbostat, sar, pqos, free, vmstat, iostat, netstat, or other auxiliary tools to check for resource issues such as memory leaks.

[0047] The performance data inspector 407 checks the usage of container resources that are actually used by each workload of the container, for example, by using Kubernetes metric server, cAdvisor, and other resource inspection tools to check the usage of container resources that are actually used by the workload. The performance data inspector 407 further obtains workload monitoring data based on the usage of system resources and the usage of container resources.

[0048] 5 is a block diagram of an integrated mode node according to an embodiment of the present invention. In this embodiment, the integrated mode node 500 combines elements of a master node (cloud resource allocation device 100A) and a worker node 100B. The integrated mode node 500 includes an orchestrator 120A, a resource monitor 120B, a workload manager 120C, a power manager 120D, a local manager 400A, and a container engine 400B. The functions of each element can be referred to in FIG. 3 and FIG. 4, and will not be repeated here.

[0049] 6 is a schematic diagram of a worker node performance / power consumption monitoring according to an embodiment of the present invention. FIG. 7 is a flowchart of a worker node performance / power consumption monitoring according to an embodiment of the present invention.

[0050] 6 and 7, the process of performance monitoring will be described first. The data flow of performance monitoring is shown by routes R601, R603, R605, and R607 in FIG.

[0051] In the worker node 100B, in step S701, the system inspector 409 checks the usage of system resources. Next, in step S703, the performance data inspector 407 checks the usage of container resources actually used by the workload of each container, and returns workload monitoring data including the usage of system resources and the usage of container resources to the performance data collector 331.

[0052] Next, in the cloud resource allocation device 100A, in step S705, the performance data collector 331 stores the workload monitoring data. Furthermore, in step S707, the performance data collector 331 determines whether the workload monitoring data exceeds a predetermined workload upper limit. If the workload upper limit is exceeded, in step S709, the performance data collector 331 extracts history data of a preset time and enters it into the workload monitoring data, and executes step S711.

[0053] Specifically, a load upper limit is set for each worker node 100B, which is mainly to avoid the phenomenon that the workload of the worker node 100B exceeds the workload upper limit and the power consumption rises sharply. For example, power consumption information corresponding to different workloads in an offline environment can be first measured, and a critical value of the workload that significantly increases the power consumption can be found. Here, a workload upper limit can be set for the worker node 100B in a formal operating environment (online). Alternatively, the resource manager 303 can dynamically adjust the allowable workload upper limit of each worker node 100B according to the type and amount of the load on the worker node 100B through any published or self-designed power consumption model and calculation mechanism.

[0054] In the worker node 100B, the performance data inspector 407 determines whether the workload monitoring data exceeds a predetermined workload upper limit, and in response to determining that the workload monitoring data exceeds the workload upper limit, marks the workload monitoring data with a warning label. This allows the performance data collector 331 of the cloud resource allocation apparatus 100A to add historical data to the workload monitoring data based on a preset time in response to detecting that the received workload monitoring data has been marked with a warning label.

[0055] Next, in step S711, the workload analyzer 313 receives the workload monitoring data. Further, in step S713, the workload analyzer 313 transmits the workload monitoring data (which may be accompanied by state transition reminder data) to the resource manager 303. In response to the workload monitoring data exceeding the predetermined workload upper limit, the workload analyzer 313 generates state transition reminder data (source worker node) and transmits the workload monitoring data together with the state transition reminder data to the resource manager 303. If the workload monitoring data does not exceed the predetermined workload upper limit, the workload analyzer 313 does not need to generate state transition reminder data and transmits the workload monitoring data directly to the resource manager 303.

[0056] It is further described that in the cloud resource allocation apparatus 100A, the resource manager 303 is configured to trigger a node-level state transition if a source worker node (assuming it is worker node 100B-1) is determined to be experiencing system resource loss, to trigger a job group-level state transition if worker node 100B-1 is determined to be workload overloaded, and to trigger a system-level power consumption adjustment if the power consumption adjustment configuration of worker node 100B-1 is determined to be too high.

[0057] The implicit purpose of node-level state transition is: if a worker node has a system resource problem that needs to be repaired, state transitions of all jobs must be completed first before issuing a system restart command to the node; since worker nodes have sufficient available resources, the workload may be concentrated on some worker nodes, and worker nodes that are not running jobs will enter sleep mode to achieve power saving.

[0058] The implicit goals of job group level state transitions are: To balance the workload among multiple worker nodes and not exceed a given workload limit; To concentrate the workload on a few worker nodes so that the remaining worker nodes become standby nodes without the need to perform a node level shutdown or hibernation.

[0059] The implicit objectives of system level power consumption regulation are: Regulate the shutdown, hibernation and power consumption configuration of worker nodes.

[0060] In response to node-level and job-group-level state transition triggers, resource manager 303 performs resource checks before job group transition, with the smallest unit being a job group (e.g., an application group). For example, high priority job groups are processed first. Resource manager 303 determines whether the available resources of worker nodes 100B other than worker node 100B-1 satisfy the resource requirements of the job group.

[0061] If the available resources of the other worker node 100B satisfy the resource requirements of the job group, the resource manager 303 selects a target worker node (assuming worker node 100B-2) from the other worker nodes that directly satisfies the resource requirements of the job group and has the best performance / smallest power consumption increase.

[0062] If none of the available resources of the other worker node 100B satisfies the resource requirements of the job group but satisfies the resource preemption condition, the resource manager 303 selects one or more target worker nodes (assuming worker node 100B-3) corresponding to a single low priority job or multiple low priority jobs among the multiple jobs running on the other worker node 100B, in order from low priority to high priority.

[0063] Then, the resource manager 303 notifies the job scheduler 301 of the job group information currently undergoing state transition, the source worker node, the job group information of the preempted resource, the target worker node, etc. The job scheduler 301 updates the contents of the waiting queue and the execution queue. Then, the state transition between the source worker node and the target worker node is executed according to the start-up order and / or shutdown order of the job group defined by the job profile.

[0064] Next, the job handlers 405 of the source worker node and the target worker node sequentially activate or deactivate the corresponding container services via the respective container engines 400B according to the instructions of the resource manager 303. For example, the corresponding container services are pre-activated via the container engine 400B of the target worker node according to the dependency of the startup order of the job group. The operating state is frozen and transferred by the container engine 400B of the source worker node according to the dependency of the shutdown order of the job group. The state transition is performed via the respective container engines 400B of the source worker node and the target worker node according to the dependency of the startup order of the job group. The container services are stopped one by one via the container engine 400B of the source worker node according to the dependency of the shutdown order of the job group, and the occupied resources of the container services are released.

[0065] In response to determining to perform a node-level state transition and repair the system resource problem, the resource manager 303 either notifies the power module handler 403 of the source worker node to perform a shutdown to maximize energy conservation, or continues the normal startup process after the shutdown to repair the system resource problem.

[0066] In response to performing a node-level state transition that is determined not to be used to repair a system resource problem, the resource manager 303 notifies the power module handler 403 of the source worker node to go into sleep mode and store the system state to hard disk, thereby maximizing energy savings and significantly reducing the time it takes for the source worker node to later come online again.

[0067] Cloud Resource Allocation Device In 100A, the Workload Analyzer 313 analyzes the received workload monitoring data of the worker node 100B-1 and detects that the workload monitoring data of the worker node 100B-1 exceeds a predetermined workload upper limit (workload overload). At this time, the Workload Analyzer 313 generates job group level state transition reminder data (source worker node with state transition requirement) and sends the state transition reminder data to the Resource Manager 303. The Resource Manager 303 then generates and sends a state transition command (including the source worker node, the job group performing the state transition on the source worker node, and the target worker node with the best performance / lowest power consumption increase) to the State Transition Handler 311 according to the state transition reminder data (source worker node requiring state transition).

[0068] Next, the process of power consumption monitoring will be described with reference to Figures 6 and 7. The data flow of the power consumption monitoring is shown by routes R611, R613, and R615 in Figure 6.

[0069] In the worker node 100B, the power consumption inspector 401 obtains power consumption monitoring data and reports it to the power consumption collector 333 in step S721.

[0070] Next, in the cloud resource allocation device 100A, in step S723, the power consumption collector 333 stores the power consumption monitoring data. In step S725, the power consumption collector 333 determines whether a life cycle event has occurred. If a life cycle event has occurred, in step S709, the power consumption collector 333 extracts history data (related to power consumption) for a preset time from the original database DB and enters it into the power consumption monitoring data. Then, step S727 is executed.

[0071] Specifically, when a container lifecycle event (e.g., creation, preemption, termination, etc.) occurs on worker node 100B, a PID change occurs, and job handler 405 configured to perform container provisioning, deletion, and state transition notifies power consumption inspector 401 of the PID information (including job information of the application group) and instructs power consumption inspector 401 to put the PID information into the power consumption monitoring data. Thus, power consumption collector 333 can determine whether a lifecycle event has occurred by detecting whether the PID in the power consumption monitoring data changes.

[0072] Next, in step S727, the power analyzer 323 receives the power consumption monitoring data. Further, in step S729, the power analyzer 323 transmits the power consumption monitoring data (which may be accompanied by a power consumption adjustment command) to the resource manager 303. In response to the occurrence of a life cycle event, the power analyzer 323 generates power consumption adjustment reminder data and transmits the power consumption monitoring data together with the power consumption adjustment command to the resource manager 303. If no life cycle event occurs, the power analyzer 323 does not need to generate power consumption adjustment reminder data and transmits the power consumption monitoring data to the resource manager 303 directly.

[0073] During the course of performance and power consumption monitoring, in addition to storing the monitoring data, a performance / power consumption analysis is triggered to run only if the workload is found to exceed a workload limit and / or if a lifecycle state change is found.

[0074] If the workload analyzer 313 or the power analyzer 323 finds historical data (indicating past execution) during the analysis of the workload monitoring data or the power consumption monitoring data, the average performance and average power consumption of the jobs executed by the application are obtained, and a target worker node with the best performance and / or the least power consumption increase is selected from among the worker nodes that satisfy the requirements. Thus, both high performance and energy saving are considered in the process of direct resource allocation and container provisioning.

[0075] Figure 8 is a schematic diagram of container resource request and resource orchestration according to an embodiment of the present invention. Referring to the arrows shown in Figure 8, after receiving a job request, the job scheduler 301 performs scheduling according to the node resource information notified by the resource manager 303. Then, the resource manager 303 notifies the job handler 405 of the worker node 100B, which is the target worker node, according to the scheduling result. The job handler 405 performs container provisioning for the job to be processed via the container engine 400B.

[0076] Specifically, after receiving a job request, the job scheduler 301 places the job request in a waiting queue, analyzes the job request, obtains a job profile, and determines the priority of the application requested by the job request, the startup order and shutdown order of one or more job containers (belonging to the same application group) contained therein, and the jobs to be processed and resource requirements corresponding to each job container in the application group (shown in Figures 11A to 11C described below).

[0077] The job scheduler 301 communicates with the resource manager 303 to keep track of the workload monitoring data and power consumption monitoring data of all the worker nodes 100B, and estimates the performance and power consumption cost of each worker node 100B to accept a job request based on the workload monitoring data and power consumption monitoring data. If the available resources of the worker node 100B satisfy the resource requirements of the job request, the job scheduler 301 can further use the most energy-efficient (high performance / low power consumption) worker node as the node to take over the job request. Then, the resource manager 303 notifies the job handler 405 on the worker node 100B to be taken over, and the job handler 405 performs container provisioning via the container engine 400B according to the dependency relationship of the application group members (job containers).

[0078] Furthermore, in response to determining that none of the available resources of the worker node 100B satisfy the resource requirements of the job request, the job scheduler 301 further evaluates the possibility of preempting the low priority job. If the low priority job needs to be preempted, it issues a resource management command to the job handler 405 of the worker node 100B corresponding to the low priority job via the resource manager 303, and the job handler 405 backs up the operational state of the low priority job based on the resource management command and performs container lifetime cycle management (here, container termination). After completing the backup of the operational state, the resources occupied by the low priority job are released. Thereafter, the job handler 405 performs container provisioning via the container engine 400B according to the dependency relationship of the application group members (job containers).

[0079] FIG. 9 is a schematic diagram of power consumption adjustment according to an embodiment of the present invention. FIG. 10 is a schematic diagram of performance adjustment according to an embodiment of the present invention. The following embodiment is described with reference to FIG. 6. Performance / power consumption monitoring data is shown in FIG. 6. The resource manager 303 is the meeting point of performance and power consumption monitoring data (workload monitoring data and power consumption monitoring data) of all working worker nodes 100B and performance and power consumption analysis proposals (state transition proposals and power adjustment proposals), and as a resource explorer, can actively make performance and power consumption adjustment decisions. The resource manager 303 decides whether to send a state transition command to the state transition handler 311 or send a power consumption adjustment strategy to the power planner 321 according to reports from the workload analyzer 313 and the power analyzer 323.

[0080] 9, assuming that the power analyzer 323 analyzes the power consumption monitoring data reported by the worker node 100B and determines that there is no power consumption of the worker node 100B due to the job schedule after the application required by the job request is completed, the power analyzer 323 provides a power consumption adjustment strategy to the resource manager 303. The resource manager 303 sends the power consumption adjustment strategy to the power planner 321, which plans a power adjustment proposal including a command to instruct the worker node 100B to transition to a sleep mode according to the power consumption adjustment strategy. The power planner 321 then sends the power adjustment proposal to the power module handler 403 of the worker node 100B, which adjusts the system power state of the worker node 100B to a sleep mode.

[0081] In the worker node 100B, the power consumption inspector 401 determines whether a life cycle management event, such as container creation, container termination, and container preemption, is performed. If so, the power consumption inspector 401 marks a label corresponding to the life cycle management event in the power consumption monitoring data. In the cloud resource allocation apparatus 100A, the label corresponding to the life cycle management event in the power consumption monitoring data detected by the power analyzer 323 can be used as a basis for the power planner 321 to plan a power adjustment proposal.

[0082] For example, if the power analyzer 323 detects that the worker node 100B has no power consumption related to the job schedule based on the power consumption monitoring data, a node-level power adjustment proposal is generated via the power planner 321, such as to shut down, sleep, etc. the worker node 100B.

[0083] For example, if the power analyzer 323 detects that the power consumption adjustment configuration of the worker node 100B is too high based on the power consumption monitoring data (including history), a system-level power adjustment proposal is generated via the power planar 321 so that the worker node 100B can adjust its CPU operating frequency or other power consumption adjustments via DVFS.

[0084] FIG. 10 shows that the workload of the worker node 100B-1 exceeds the predetermined workload upper limit. Therefore, jobs X, Y, and Z on the worker node 100B-1 are transferred to the worker node 100B-2. In response to the workload of the worker node 100B-1 exceeding the predetermined workload upper limit, a state transition is triggered. In FIG. 10, the architecture of the worker node 100B-1 and the worker node 100B-2 can refer to the worker node 100B shown in FIG. 4, the functions of the job handlers 405-1 and 405-2 can refer to the description of the job handler 405 described above, and the functions of the container engines 400B-1 and 400B-2 can refer to the description of the container engine 400B described above.

[0085] Specifically, resource manager 303 controls node resource information actively reported by all worker nodes 100B. When resource manager 303 detects that the workload of worker node 100B-1 exceeds a predetermined workload upper limit, it finds worker node 100B-2 that has available resources to satisfy jobs X, Y, and Z in worker node 100B, and assigns jobs X, Y, and Z to worker node 100B-2.

[0086] The following are examples according to embodiments of the present invention.

[0087] Figures 11A-11C are schematic diagrams of a job profile of a job request according to one embodiment of the present invention, and Figures 12A-12E are schematic diagrams of distribution of a job request according to one embodiment of the present invention.

[0088] FIG. 11A shows a job profile 1 corresponding to a job request of application 1 “VR live broadcast” with a priority of 100, which includes three application groups of jobs including video streaming (VS), real-time video encoding / decoding (RVED), and live broadcast management service (LBMS). The startup order of the three application group members (three job containers) of application 1 is “real-time video encoding / decoding→video streaming→live broadcast management service”, and the shutdown order is “live broadcast management service→video streaming→real-time video encoding / decoding”. The total resource requirements required by application 1 are 14 CPU, 56 GB memory, and 212 GB hard disk, and are recorded as “(CPU, memory, hard disk)=(14, 56, 212)”.

[0089] For example, application 1 of "VR live streaming" requires three functions: video streaming, real-time video encoding / decoding, and live streaming management services, which are supported by different container services. There are natural dependencies between these container services, such as startup order and shutdown order.

[0090] FIG. 11B shows a job profile 2 corresponding to a job request of application 2 “connected car” with priority 180, which includes an application group of three jobs including data storage (DS), vehicle data streaming (VDS), and collision event detection (CED). The startup order of the three application group members (three job containers) of application 2 is “data storage→vehicle data streaming→collision event detection”, and the shutdown order is “vehicle data streaming→collision event detection→data storage”. The total resource requirement required by application 2 is (CPU, memory, hard disk)=(24, 80, 525).

[0091] 11C shows Job Profile 3 corresponding to a job request for application program 3 “document processing” with priority 85, which includes three job application groups including object storage (OS), natural language processing (NLP), and contract management (CM). The startup order of the three application group members (three job containers) of application 3 is “object storage→natural language processing→contract management”, and the shutdown order is “contract management→natural language processing→object storage”. The total resource requirements required by application 3 are (CPU, memory, hard disk) = (10, 16, 182).

[0092] Fig. 12A shows the states of the wait queue WQ, the run queue RQ, the worker node W1, and the worker node W2. As shown in Fig. 12A, the wait queue WQ includes applications APP_1, APP_2, and APP_3, which correspond to applications 1 to 3 shown in Figs. 11A to 11C, respectively, and the priority order is application APP_2>application APP_1>application APP_3. "APP_3 / 85 / (10,16,182)" indicates application APP_3 with priority 85, and necessary resource requirements (CPU, memory, hard disk) = (10,16,182), etc.

[0093] There are five running applications APP_A to APP_E in the run queue RQ. Applications APP_C, APP_B, and APP_D are run on worker node W1. The remaining resources of worker node W1 are (CPU, memory, hard disk) = (12, 76, 350). Applications APP_E and APP_A are run on worker node W2. The remaining resources of worker node W2 are (CPU, memory, hard disk) = (26, 90, 600).

[0094] Job requests to be processed wait in a waiting queue WQ, and requests from high-priority applications are given priority for scheduling.

[0095] In the embodiment shown in Figure 12A, the job scheduler 301 first takes the application APP_2 from the waiting queue WQ for scheduling. The resource requirements of the application APP_2 are compared with the remaining resources of the worker node W1 and the worker node W2, and a worker node W1 that satisfies the resource requirements of the application APP_2 is found.

[0096] 12B, the job scheduler 301 assigns the application APP_2 to the worker node W2, removes the job request from the waiting queue WQ, and adds the application APP_2 to the execution queue RQ. At this time, the remaining resources of the worker node W2 are (CPU, memory, hard disk) = (2, 10, 75).

[0097] Next, the job scheduler 301 retrieves the application APP_1 from the waiting queue WQ for scheduling. The resource requirements of the application APP_1 are compared with the remaining resources of the worker node W1 and the worker node W2, and it is determined that neither the worker node W1 nor the worker node W2 satisfies the resource requirements of the application APP_1. At this time, as shown in FIG. 12C, when the job scheduler 301 finds the lowest priority application APP_D that satisfies the resource preemption condition in the execution queue RQ, it notifies the worker node W1 to back up the operation state of the application APP_D and release the resources used by the application APP_D. At this time, the remaining resources of the worker node W1 are (CPU, memory, hard disk)=(22,136,550), which satisfies the resource requirements of the application APP_1.

[0098] Next, as shown in Fig. 12D, the job scheduler 301 assigns application APP_1 to worker node W1, removes the job request from the waiting queue WQ, and adds application APP_1 to the run queue RQ. At the same time, application APP_D is added to the waiting queue WQ. Since application APP_D has a priority of 80, which is lower than the priority of 85 of application APP_3, it is sorted after application APP_3. At this time, the remaining resources of worker node W1 are (CPU, memory, hard disk) = (8, 80, 338).

[0099] Next, the job scheduler 301 retrieves the application APP_3 from the scheduling waiting queue WQ. The resource requirements of the application APP_3 are compared with the remaining resources of the worker node W1 and the worker node W2, and it is determined that neither the worker node W1 nor the worker node W2 meets the resource requirements of the application APP_3. Furthermore, the resource preemption condition is not satisfied (i.e., they are not eligible to perform indirect resource allocation). At this time, the job scheduler 301 performs direct resource allocation for each of the job containers included in the application APP_3 (belonging to the APP_3 application group).

[0100] 12E, application APP_3 includes application group members APP_31, APP_32, and APP_33. "APP_3_Job_OS / 85 / (2,4,60)" shown in application group member APP_31 indicates the job container OS corresponding to application APP_3 with priority 85 and resource requirements of (CPU, memory, hard disk)=(2,4,60). The same applies to application group members APP_32 and APP_33.

[0101] After comparing the resource requirements of application group members APP_31, APP_32, and APP_33 with the remaining resources of worker nodes W1 and W2, job scheduler 301 assigns application group members APP_32 and APP_33 to worker node W1 and assigns application group member APP_31 to worker node W2.

[0102] Thereafter, the job scheduler 301 removes the application APP_3 from the waiting queue WQ, and adds the application group members (job containers) APP_31, APP_32, and APP_33 to the execution queue RQ.

[0103] Based on this, if the available resources of a worker node directly satisfy the resource requirements of a single application, direct resource allocation is performed. Running applications are added to a run queue RQ for easy management.

[0104] When the available resources of a worker node do not directly satisfy the resource requirements of a single application, a preemptive indirect resource allocation is performed. Also, during the evaluation of a preempted low-priority job, a backup of the low-priority job's operational state is performed to release the occupied available resources. The preempted application (low-priority job) enters a waiting queue (WQ) and waits for the next scheduling.

[0105] If the available resources of the worker nodes cannot directly satisfy the resource requirements of a single application and resource preemption is not possible, the total amount of available resources of all the worker nodes is evaluated to determine whether to perform container-level cross-node provisioning (as shown in Fig. 12E). After performing container-level cross-node provisioning for a single application, job management is also performed via run queues RQ.

[0106] The logic of group-based preemption is as follows: First, the high priority application group is considered. That is, group-based resource placement and preemption are performed starting from high priority applications. If the available resources are sufficient, placement is performed directly. If the available resources are insufficient, placement is performed preemptively. Also, for high priority applications in the execution queue, the members (job containers) of the related application group are made to run on the same worker node as much as possible, thereby reducing the communication cost between nodes. Then, the resource requirements are considered. For low priority applications in the waiting queue, the available resources distributed to each worker node are considered at this stage to satisfy the resource requirements as much as possible to support the operation of more applications. The configuration method of different priorities of applications is as follows: The platform administrator can first analyze the characteristics of the workload and then set the priorities one by one. And the priorities are set based on the following considerations: real-time applications for safety of life and property (highest priority), real-time interactive applications (high priority), non-interactive real-time applications (medium priority), and others (low priority). However, the present invention is not limited thereto.

[0107] Figure 13 is a schematic diagram of job dependency and resource checking according to an embodiment of the present invention. In Figure 13, application APP_1 is launched on worker node W1, and application group members (job containers) are assigned PIDs corresponding to RVED, VS, and LBMS according to the launch order, i.e., PID_RVED, PID_VS, and PID_LBMS.

[0108] Also, during container provisioning, the job handler 405 on the worker node W1 receives job profile 1 of a job request for application 1 “VR live streaming” as shown in Fig. 11A. In addition to sequentially provisioning containers based on container dependencies, it can also generate “performance and power consumption measurement information” and reports at schedule level, application level, and node level through job schedules of various containers.

[0109] The logic of container provisioning based on the dependency of application orchestration is as follows: Container provisioning is performed according to the dependency (startup order, shutdown order, etc.) of application group members (job containers). This ensures the usability of functions between container services in the application execution logic.

[0110] Under the monitoring architecture of worker node 100B (performance data inspector 407 and power consumption inspector 401), the time difference of the container provisioning service helps to efficiently identify the application to which the observed object (process identifier) ​​belongs, thereby improving the accuracy of resource monitoring.

[0111] Within the life cycle of an application, we obtain the energy efficiency of the application execution, i.e., Energy Efficiency of an Application = Average Performance / Average Power Consumption.

[0112] If the application has historical data (indicating that it has been run in the past), then from among the worker nodes that satisfy the resource requirements, a target worker node with the best performance and / or the least power consumption increase is selected based on the historical records of average performance and average power consumption. The process of allocating resources and provisioning the application takes into consideration both high performance and power saving.

[0113] In summary, the cloud resource allocation device disclosed in this invention has (1) job performance and power consumption monitoring and dynamic adjustment functions, and (2) application resource orchestration and group-based job preemption functions, so that the execution performance of high-priority application services is guaranteed and the power usage efficiency of computing resources is improved at the same time.

[0114] The present invention proposes dynamic performance and power consumption monitoring combined with dynamic state transition and configuration management, which can effectively reduce node resource and power peak phenomena, thereby extending the lifespan of physical server and equipment resources, and providing industrial application possibilities. The present invention proposes to utilize higher monitoring frequency to observe and analyze worker nodes with higher load or power consumption. The dynamic monitoring and frequency analysis design can effectively check and analyze the status of busy worker nodes, shortening the response time of detection errors, and providing industrial application possibilities.

[0115] The present invention has a scheduling mechanism that considers the priority of application groups, enables important application services to be provisioned immediately, and guarantees the execution rights and execution performance of high-priority application services. [Industrial Applicability]

[0116] The system, apparatus and method for cloud resource allocation of the present invention can be applied in the field of cloud resource orchestration. [Explanation of symbols]

[0117] 100: Cloud resource allocation system 100A: Cloud resource allocation device (master node) 100B, 100B-1 to 100B-N, W1, W2: Worker nodes 110: Processor 120: Storage 120A: Orchestrator 120B: Resource Monitor 120C: Workload Manager 120D: Power Manager 301: Job scheduler 303: Resource Manager 311: State transition handler 313: Workload Analyzer 321: Power Planer 323: Power Analyzer 331: Performance Data Controller 333: Power Consumption Collector 400A: Local Manager 400B, 400B-1, 400B-2: Container engine 401: Power Consumption Inspector 403: Power Module Handler 405, 405-1, 405-2: Job Handler 407: Performance Data Inspector 409: System Inspector 500: Integration mode nodes APP_A~APP_E,APP_1~APP_3: Applications APP_31,APP_32,APP_33: Application group members R601~R607,R611~R615: Route RQ: Execution Queue WQ: Waiting Queue S205~S250: Cloud resource allocation process S701 to S729: Worker node performance / power consumption monitoring process

Claims

1. A cloud resource allocation system including a plurality of worker nodes and a master node, The master node is Obtaining a plurality of node resource information reported by the plurality of worker nodes respectively via a resource manager, the node resource information including workload monitoring data checking workload and power consumption monitoring data checking power consumption, the power consumption monitoring data including power consumption statistics and energy efficiency, multi-level performance and power consumption statistics and analysis information including worker node level, job group level, and job schedule level, and proposing possible performance and power consumption adjustment strategies; and analyzing a job profile of the job request acquired from the waiting queue via a job scheduler, and determining whether to perform direct resource allocation or indirect resource allocation for the job to be processed requested in the job request based on the plurality of node resource information and the job profile. an orchestrator; The orchestrator determines whether the available resources of the worker nodes satisfy the resource requirements of the job request based on the node resource information and the job profile; determining that the direct resource allocation is to be performed for the job to be processed if the available resources of at least one of the worker nodes satisfy the resource requirements of the job request; if the available resources of any of the worker nodes do not satisfy the resource requirements of the job request and if the resource requirements of the job request are satisfied after preempting resources used by one or more lower priority jobs, it is determined that the indirect resource allocation is to be performed for the job to be processed; In response to determining to perform the direct resource allocation, the orchestrator: finding, via the job scheduler, a first worker node among the plurality of worker nodes that has the available resources matching the job profile; Dispatching the job to be processed to the first worker node via the resource manager; configured to queue the job to be processed via the job scheduler into an execution queue; In response to determining to perform the indirect resource allocation, the orchestrator: find a second worker node having the low priority job from among the plurality of worker nodes via the job scheduler, notify the second worker node to back up the operation state of the low priority job, and release resources used by the low priority job after the second worker node backs up the operation state of the low priority job; in response to receiving a resource release notification from the second worker node via the resource manager, placing another job request corresponding to the low priority job in the waiting queue via the job scheduler; Dispatching the job to be processed to the second worker node via the resource manager; configured to place the job to be processed in the execution queue via the job scheduler; Cloud resource allocation system.

2. In response to a decision to perform the direct resource allocation by the orchestrator, via the job scheduler, the first worker node is found that satisfies a job goal, where the job goal is lowest power consumption cost, best performance, or an overall measurement goal. The cloud resource allocation system of claim 1 .

3. In response to performing the indirect resource allocation by the orchestrator, finding, via the job scheduler, the second worker node having the low priority job; in response to the adjusted available resources still not satisfying the resource requirements of the job request after the second worker node releases the resources used by the lower priority job, notifying the second worker node via the job scheduler to continue to release resources used by another lower priority job until the adjusted available resources satisfy the resource requirements of the job request. The cloud resource allocation system of claim 1 .

4. In the master node, the orchestrator performing the direct resource allocation for each of a plurality of application group members in the job profile in response to determining that none of the plurality of worker nodes are eligible to perform the indirect resource allocation after determining that none of the available resources of the plurality of worker nodes satisfy the resource requirements of the job request; The direct resource allocation may include: finding, via the job scheduler, a plurality of third worker nodes from among the plurality of worker nodes that satisfy resource requirements of the application group members; dispatching, via the resource manager, each of the application group members to a corresponding third worker node; placing the job to be processed in the execution queue via the job scheduler; The cloud resource allocation system of claim 1 .

5. The master node is a resource monitor configured to collect the plurality of node resource information reported by the plurality of worker nodes respectively; Further comprising: After placing the job to be processed in the execution queue via the job scheduler, the orchestrator: in response to receiving, via the resource manager, a notification indicating that the job to be processed has been completed, removing, via the job scheduler, the job to be processed from the execution queue; The cloud resource allocation system of claim 1 .

6. Each of the worker nodes comprises a local manager; The local manager: Check system resource usage via the System Inspector Checking the usage of container resources actually used by the workload of each container through a performance data inspector, and obtaining workload monitoring data based on the usage of the system resources and the usage of the container resources; Obtain power consumption monitoring data via the Power Consumption Inspector; It is configured as follows: The node resource information corresponding to each of the worker nodes includes the workload monitoring data and the power consumption monitoring data. The cloud resource allocation system of claim 1 .

7. On each of the worker nodes, the local manager further comprises: determining, via the performance data inspector, whether the workload monitoring data exceeds a predetermined workload upper limit; and marking the workload monitoring data with a warning label in response to determining that the workload monitoring data exceeds the predetermined workload upper limit. The cloud resource allocation system of claim 6 .

8. The master node further comprises: a resource monitor configured to collect the workload monitoring data reported by each of the worker nodes via a performance data collector, and add historical data to the workload monitoring data based on a preset time in response to the workload monitoring data being marked with the warning label; a workload manager configured to receive the workload monitoring data from the performance data collector via a workload analyzer and determine whether each of the worker nodes has a resource anomaly by analyzing the workload monitoring data; The cloud resource allocation system of claim 7 .

9. The workload manager further comprises: In response to determining via the workload analyzer that the resource anomaly is a workload overload or a system resource loss, notifying the resource manager, which in turn sends a state transition command to a state transition handler; via the state transition handler, for each worker node on which the resource abnormality occurs, if the resource abnormality is determined to be the workload overload, generate a job group level state transition proposal, and if the resource abnormality is determined to be the system resource loss, generate a node level state transition proposal. The cloud resource allocation system of claim 8 .

10. The master node further comprises: a resource monitor configured to collect the power consumption monitoring data reported by each of the worker nodes via a power consumption collector; a power manager; The power manager includes: receiving the power consumption monitoring data from the power consumption collector via a power analyzer, obtaining a power consumption analysis result by analyzing the power consumption monitoring data, and generating a power consumption adjustment strategy based on the power consumption analysis result; and configured to generate, via a power planar, a power adjustment proposal based on the power consumption adjustment strategy. The cloud resource allocation system of claim 6 .

11. In the master node, The orchestrator is configured to, after obtaining the job request via the resource manager, determine whether the worker nodes are fully loaded based on the node resource information; issuing, via a power manager, a power on command to each of the worker nodes in a sleep mode or a power off mode in response to the plurality of worker nodes being fully loaded; reacquire, via the resource manager, the plurality of node resource information reported by the plurality of worker nodes in response to each of the worker nodes in the sleep mode or the power off mode transitioning to an operating state; The cloud resource allocation system of claim 1 .

12. Each of the worker nodes comprises a local manager; The local manager performing container lifetime cycle management in response to receiving a resource management command from the master node via a job handler, the container lifetime cycle management including one of container creation, container deletion, and state transitions; adjusting a system power state in response to receiving a power adjustment proposal from the master node via a power module handler, the system power state including one of a power off mode, a sleep mode, and a particular power consumption mode; It is configured as follows: The cloud resource allocation system of claim 1 .

13. A storage device that stores an orchestrator and provides a waiting queue and an execution queue, the orchestrator comprising a resource manager and a job scheduler; a processor coupled to the storage; The processor, Obtaining a plurality of node resource information reported by a plurality of worker nodes respectively via the resource manager, the node resource information including workload monitoring data checking workload and power consumption monitoring data checking power consumption, the power consumption monitoring data including power consumption statistics and energy efficiency, multi-level performance and power consumption statistics and analysis information including worker node level, job group level, and job schedule level, and proposing possible performance and power consumption adjustment strategies; a job profile of the job request acquired from the waiting queue is analyzed via the job scheduler, and a determination is made as to whether to perform direct resource allocation or indirect resource allocation for the job to be processed requested in the job request based on the plurality of node resource information and the job profile; The orchestrator determines whether the available resources of the worker nodes satisfy the resource requirements of the job request based on the node resource information and the job profile; determining that the direct resource allocation is to be performed for the job to be processed if the available resources of at least one of the worker nodes satisfy the resource requirements of the job request; if the available resources of any of the worker nodes do not satisfy the resource requirements of the job request and if the resource requirements of the job request are satisfied after preempting resources used by one or more lower priority jobs, it is determined that the indirect resource allocation is to be performed for the job to be processed; In response to determining to perform direct resource allocation, the processor: finding, via the job scheduler, a first worker node among the plurality of worker nodes that has the available resources matching the job profile; Dispatching the job to be processed to the first worker node via the resource manager; configured to place the job to be processed in the execution queue via the job scheduler; In response to determining to perform the indirect resource allocation, the processor: find a second worker node having the low priority job from among the plurality of worker nodes via the job scheduler, notify the second worker node to back up the operation state of the low priority job, and release resources used by the low priority job after the second worker node backs up the operation state of the low priority job; in response to receiving a resource release notification from the second worker node via the resource manager, placing, via the job scheduler, another job request corresponding to the low priority job in the waiting queue; Dispatching the job to be processed to the second worker node via the resource manager; configured to place the job to be processed in the execution queue via the job scheduler; Cloud resource allocation device.

14. Through the cloud resource allocation device, Obtaining a plurality of node resource information reported by a plurality of worker nodes respectively, the node resource information including workload monitoring data checking workload and power consumption monitoring data checking power consumption, the power consumption monitoring data including power consumption statistics and energy efficiency, multi-level performance and power consumption statistics and analysis information including worker node level, job group level, and job schedule level, and proposing possible performance and power consumption adjustment strategies; analyzing a job profile of the job request retrieved from the waiting queue, and determining whether to perform direct resource allocation or indirect resource allocation for the job to be processed requested in the job request based on the plurality of node resource information and the job profile; Run The orchestrator determines whether the available resources of the worker nodes satisfy the resource requirements of the job request based on the node resource information and the job profile; determining that the direct resource allocation is to be performed for the job to be processed if the available resources of at least one of the worker nodes satisfy the resource requirements of the job request; if the available resources of any of the worker nodes do not satisfy the resource requirements of the job request and if the resource requirements of the job request are satisfied after preempting resources used by one or more lower priority jobs, it is determined that the indirect resource allocation is to be performed for the job to be processed; determining to perform direct resource allocation includes: finding a first worker node among the plurality of worker nodes that has the available resources matching the job profile; dispatching the job to be processed to the first worker node; placing the job to be processed in a run queue; The performing of indirect resource allocation includes: Finding a second worker node having the low priority job from among the plurality of worker nodes, notifying the second worker node to back up an operation state of the low priority job, and releasing resources used by the low priority job after the second worker node backs up the operation state of the low priority job; in response to receiving a resource release notification from the second worker node, queueing another job request corresponding to the low priority job in the waiting queue; dispatching the job to be processed to the second worker node; placing the job to be processed in the execution queue. Cloud resource allocation methodology.

15. The step of determining to perform direct resource allocation for the job to be processed, comprising: Finding the first worker node that satisfies a job goal, the job goal being lowest power consumption cost, highest performance, or an overall metric goal. The cloud resource allocation method of claim 14.

16. The step of determining to execute the indirect resource allocation for the job to be processed comprises: finding the second worker node having the low priority job; in response to the adjusted available resources still not satisfying the resource requirements of the job request after the second worker node releases the resources used by the lower priority job, notifying the second worker node to continue to release resources used by another lower priority job until the adjusted available resources satisfy the resource requirements of the job request. The cloud resource allocation method of claim 15.

17. via the cloud resource allocation device, performing the direct resource allocation for each of a plurality of application group members in the job profile in response to determining that none of the plurality of worker nodes are eligible to perform the indirect resource allocation after determining that none of the available resources of the plurality of worker nodes satisfy the resource requirements of the job request; and performing The direct resource allocation may include: finding a plurality of third worker nodes among the plurality of worker nodes that satisfy resource requirements of the application group members; dispatching each said application group member to a corresponding third worker node; placing the job to be processed in the execution queue. The cloud resource allocation method of claim 15.

18. via the cloud resource allocation device, Collecting the plurality of node resource information reported by the plurality of worker nodes respectively; removing the job to be processed from the execution queue in response to receiving a notification indicating that the job to be processed has been completed after placing the job to be processed in the execution queue; [0033] The cloud resource allocation method of claim 14.

19. Through each of the worker nodes, Check your system resource usage, Check the usage of container resources actually used by the workload of each container, and obtain workload monitoring data based on the usage of the system resources and the usage of the container resources; Obtaining power consumption monitoring data; and performing The node resource information corresponding to each of the worker nodes includes the workload monitoring data and the power consumption monitoring data. The cloud resource allocation method of claim 14.

20. Through each of the worker nodes, determining whether the workload monitoring data exceeds a predetermined workload upper limit, and in response to determining that the workload monitoring data exceeds the predetermined workload upper limit, marking the workload monitoring data with a warning label; [0033] 20. The cloud resource allocation method of claim 19.

21. via the cloud resource allocation device, collecting the workload monitoring data reported by each of the worker nodes, and adding historical data to the workload monitoring data based on a preset time in response to the workload monitoring data being marked with the warning label; determining whether each of the worker nodes has a resource anomaly by analyzing the workload monitoring data; [0033] The cloud resource allocation method of claim 20.

22. After determining whether each of the worker nodes has the resource abnormality, further generating a job group level state transition proposal if the resource abnormality is determined to be a workload overload, and generating a node level state transition proposal if the resource abnormality is determined to be a system resource loss. The cloud resource allocation method of claim 21.

23. via the cloud resource allocation device, collecting the power consumption monitoring data reported by each of the worker nodes; Obtaining a power consumption analysis result by analyzing the power consumption monitoring data, and generating a power consumption adjustment strategy based on the power consumption analysis result; generating power adjustment proposals based on the power consumption adjustment strategy; [0033] 20. The cloud resource allocation method of claim 19.

24. via the cloud resource allocation device, After obtaining the job request, determine whether the plurality of worker nodes are fully loaded based on the plurality of node resource information; responsive to the plurality of worker nodes being fully loaded, issuing a power on command to each of the worker nodes that are in a sleep mode or a power off mode; reacquiring the plurality of node resource information reported by the plurality of worker nodes in response to each of the worker nodes in the sleep mode or the power off mode transitioning to an operating state; [0033] The cloud resource allocation method of claim 14.

25. Through each of the worker nodes, performing container lifetime cycle management in response to receiving a resource management command from the cloud resource allocation device, the container lifetime cycle management including one of container creation, container deletion, and state transition; adjusting a system power state in response to receiving a power adjustment proposal from the cloud resource allocation apparatus, the system power state including one of a power off mode, a sleep mode, and a particular power consumption mode; [0033] The cloud resource allocation method of claim 14.

Citation Information

Patent Citations

  • Multi-objective allocation of computational job in client-server or hosting environment

    JP2008234632A

  • Job management system and job control method

    JP2015530656A

  • Intelligent Partitioning Engine for Cluster Computing

    US20220261254A1

  • Method and system for automatic deployment of grid compute nodes

    WO2012141573A1