Scheduling and resource management system without hard disk nodes
By designing a cloud scheduling manager, node controller and cluster node system in a hard disk node environment, combined with a resource scheduler, container orchestration system and fault detection mechanism, the problem of Kubernetes's insufficient support for hard disk node scheduling is solved and achieved Efficient and reliable resource management and fault recovery improve the scalability and availability of the system.
Patent Information
- Application Number
- CN202410988396.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The native scheduling and management functions of Kubernetes have insufficient support for demand scheduling of hard disk-less nodes, resulting in low resource scheduling efficiency, inability to automatically handle node hardware status changes, lack of advanced fault recovery mechanisms, insufficient scalability, and inability to ensure high availability and data consistency of applications. sex.
A scheduling and resource management system without hard disk nodes is designed, including cloud scheduling manager, node controller and cluster node. It uses resource scheduler and container orchestration system for dynamic configuration and deployment, combined with fault detection and recovery mechanism and power controller. , to achieve efficient disk resource scheduling and fault handling.
It provides efficient and reliable scheduling and management solutions, improves resource utilization, reduces operating costs, ensures rapid recovery and data integrity of the system in the event of hardware or network failure, simplifies deployment and maintenance, and is scalable and flexibility.
Smart Images

Figure CN118740761A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and more specifically to a scheduling and resource management system for hard disk-free nodes. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the present application as recited in the claims. The description herein is not admitted to be prior art as disclosed by virtue of its inclusion in this section.
[0003] In modern data centers and cloud infrastructure, the popularity of containerization technology has changed the way applications are deployed and managed. Kubernetes provides powerful tools and extensive ecosystem support for managing the container lifecycle. With the pursuit of cost optimization and operational flexibility, more and more data centers are using diskless nodes. These nodes load the operating system and application data from the central server through the network when they start up, without relying on local permanent storage. This architecture reduces hardware investment and simplifies system upgrades and maintenance.
[0004] However, Kubernetes' native scheduling and management functions are mainly designed for stateful nodes, and lack support for the unique scheduling requirements of diskless nodes. These nodes require efficient network startup and frequent data exchange, which poses new challenges to the responsiveness and resource allocation strategy of the scheduling system.
[0005] At present, the implementation scheme closest to the present invention is to use standard Kubernetes with customized scheduling strategies to manage diskless nodes. For example, some systems may extend Kubernetes through custom resource definitions (CRDs) and operator modes to adapt to specific hardware configurations and scheduling requirements. These solutions usually require major modifications to Kubernetes, increasing the complexity and maintenance costs of the system.
[0006] However, these methods usually lack scheduling algorithms optimized for diskless environments, have low resource scheduling efficiency, cannot automatically handle changes in the hardware status of nodes, and fail to effectively use existing data analysis and prediction technologies to optimize resource allocation. In addition, these solutions often do not support advanced fault recovery mechanisms and cannot ensure high application availability and data consistency in the event of network or hardware failures. The system's scalability is also insufficient, and it is impossible to effectively manage the power supply of diskless nodes dynamically. Summary of the invention
[0007] The purpose of the present invention is to provide a scheduling and resource management system for hard disk-free nodes, and to provide a more efficient and reliable solution for hard disk-free environments.
[0008] The present invention provides a scheduling and resource management system for hard disk-free nodes, including a cloud scheduling manager, a node controller and a cluster node:
[0009] The cloud scheduling manager is connected to one or more of the node controllers, and each of the node controllers is connected to one or more of the cluster nodes;
[0010] The cloud scheduling manager includes a resource scheduler and a container orchestration system; the cloud scheduling manager is used to receive instance application or instance release requests, initialize network configuration, send a request to initialize the cluster node to the node controller through the resource scheduler, update node configuration information and status according to the feedback of the node controller, perform node scheduling, send node application or release requests to the node controller, and perform dynamic cluster node configuration deployment in cooperation with the resource scheduler through the container orchestration system;
[0011] The node controller includes a message distributor and a disk manager; the node controller is used to initialize local resources and process messages between the cloud scheduling manager and the cluster nodes through the message distributor; the node controller checks and reports node status to the cluster nodes according to the initialization request sent by the cloud scheduling manager, allocates disk resources through the disk manager, controls nodes according to the node application or release request sent by the cloud scheduling manager, and sends power on / off messages to the cluster nodes;
[0012] The cluster nodes are deployed with a container orchestration system for automatic configuration.
[0013] In a preferred example, the container orchestration system used by the cloud scheduling manager includes Kubernetes and Kubeedge, and the container orchestration system used by the cluster node includes Kubeedge; or
[0014] The scheduling and resource management system uses Docker Swarm or Apache Mesos for container orchestration.
[0015] In a preferred embodiment, the system includes a fault detection and recovery mechanism;
[0016] The cloud scheduling manager further includes a fault detector and recovery device, and the node controller further includes a fault collector, wherein the fault detector and recovery device is used to monitor and identify node faults in real time and perform fault processing, and the fault collector is used to check and report abnormal states of the cluster nodes, wherein the abnormal states include the faults;
[0017] The node controller further comprises a power supply controller, which is used to provide power support to the node controller under the constraint of saving electricity.
[0018] In a preferred example, the resource scheduler predicts future node usage requirements based on existing instance applications or instance release requests, combined with the workload requirements of the node controller and power saving control requirements, and dynamically adjusts the allocation scheduling of the disk resources and the cluster nodes.
[0019] The present application also discloses a scheduling and resource management method for hard disk-free nodes, including:
[0020] When the cloud scheduling manager receives the instance application, it matches the optimal node according to the node information in the database and the scheduling mechanism of the optimal node, and then sends the instance application message to the node controller corresponding to the optimal node;
[0021] The node controller allocates disk resources to the optimal node and wakes up the optimal node according to the request of the instance application;
[0022] The node controller notifies the cloud scheduling manager of information of the allocated disk resources;
[0023] The cloud scheduling manager updates the configuration storage and is ready to schedule the K8S configuration of the optimal node; and
[0024] After the optimal node is powered on, the automated configuration software is started and added to the K8S cluster.
[0025] In a preferred embodiment, it also includes:
[0026] When the cloud scheduling manager receives a request to release an instance of a designated node, it notifies the node controller to recycle the designated node and updates the node status according to the feedback message;
[0027] The node controller sends a shutdown command to the designated node and monitors the status of the designated node;
[0028] After the node controller monitors that the optimal node is shut down, the disk resources used by the designated node are released.
[0029] In a preferred embodiment, it also includes:
[0030] After the node controller detects that an abnormality occurs in the first node, it reports the abnormality to the cloud scheduler;
[0031] The cloud scheduler starts the standby node according to the standby node scheduling mechanism, determines a second node matching the first node from the current standby nodes through the database, and updates the resource configuration of the first node to the second node;
[0032] The node controller initiates scheduling of the second node, initiates a startup application for the second node, and updates the status of the first node and the second node.
[0033] In a preferred example, the scheduling mechanism of the optimal node specifically includes:
[0034] Step 801, check the resources of all current node controllers and find the node controller where the optimal node determined by the algorithm is located;
[0035] Step 802, check the node status of the corresponding node controller, if there is a matching node, determine the matching node, if not, return to step 801;
[0036] Step 803, check whether the node is in a ready state, if it is ready, check the node usage state, if it is in an idle state, directly initiate a node application; if it is not ready or in a non-idle state, continue to step 802;
[0037] Step 804, if the ready node is scheduled, a standby node application is initiated at the same time, and the new node is placed in the database as a standby node;
[0038] Step 805: The standby node reaches the threshold value and no more new nodes are added.
[0039] In a preferred example, the node status update specifically includes:
[0040] Keep the node resources in the ready state and update the node usage status to the idle state.
[0041] In a preferred embodiment, the standby node calling mechanism specifically includes:
[0042] Extract the resource configuration of the existing instance and search for a standby node that matches the first node for scheduling, wherein:
[0043] The first node is preferentially searched in the backup nodes under the same node controller as the first node. If not found, a backup node is searched across the node controllers.
[0044] Compared with the prior art, the main differences and effects of the embodiments of the present invention are:
[0045] In an environment without hard disk nodes, it provides a complete and effective scheduling and management solution, efficiently and reliably scheduling and allocating disk resources according to task arrangements.
[0046] Furthermore, the present application can dynamically adjust resource allocation based on real-time scheduling status monitoring and prediction models of hard disk-free nodes, significantly improving resource utilization and reducing operating costs.
[0047] Furthermore, the present application sets up advanced fault detection and recovery mechanisms, which ensure that the system can recover quickly when facing hardware or network failures, maintaining service continuity and data integrity.
[0048] Furthermore, the present application provides a simplified deployment strategy, including reducing the burden on system administrators and the complexity of system maintenance by using automated management functions;
[0049] Furthermore, the present application is scalable and flexible, and can dynamically adjust the cluster size according to the controller load status, achieve seamless expansion and scaling, and reduce energy consumption.
[0050] It should be understood that within the scope of the present invention, the above-mentioned technical features of the present invention and the technical features specifically described below (such as embodiments) can be combined with each other to form a new or preferred technical solution. Due to space limitations, they will not be described one by one here. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 It is a system block diagram according to one embodiment of the present application.
[0053] Figure 2 It is a schematic diagram of the scheduling process in one embodiment of the present application.
[0054] Figure 3 It is a schematic diagram of the scheduling timing of initialization and instance application in one embodiment of the present application.
[0055] Figure 4 It is a schematic diagram of the scheduling timing of the release according to an example in one embodiment of the present application.
[0056] Figure 5 It is a schematic diagram of the scheduling timing of exception handling in one embodiment of the present application.
[0057] Figure 6 This is a flow chart of an optimal node scheduling mechanism in one embodiment of the present application.
[0058] In the accompanying drawings, the symbols are as follows:
[0059] 1-Cloud scheduling manager;
[0060] 101-resource scheduler;
[0061] 102-fault detection and recovery device;
[0062] 2-Node controller;
[0063] 201-message distributor;
[0064] 202-Disk Manager;
[0065] 203-power controller;
[0066] 204-Fault Collector;
[0067] 3-Cluster nodes;
[0068] 4-Container orchestration system;
[0069] 5- Database. DETAILED DESCRIPTION
[0070] In the following description, many technical details are provided to help readers better understand the present application. However, those skilled in the art can understand that the technical solution claimed in the present application can be implemented even without these technical details and various changes and modifications based on the following embodiments.
[0071] Description of some concepts
[0072] Cluster: refers to a group of networked computers that work together as a whole and appear to be a single system. Clusters are composed of multiple nodes, usually to enhance computing power, provide higher availability, and achieve load balancing.
[0073] Node: A single computer or device in a cluster that is part of the cluster. Each node carries a portion of the cluster's functionality and may be responsible for processing data, storing information, or performing specific services. A node can be a physical machine or a virtual machine.
[0074] Kubernetes (k8s) cluster: is a group of collaborative computers, usually called nodes, that work together to run containerized applications. Kubernetes cluster provides a distributed environment for automating the deployment, expansion, and management of container applications to ensure that these applications can run efficiently and reliably.
[0075] KubeEdge: It is used to extend the native containerized application orchestration function to the edge side of the enterprise. It is built on the basis of Kubernetes, so that the functions of Kubernetes can be applied in the edge computing environment.
[0076] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0077] One embodiment of the present application relates to a scheduling and resource management system for hard disk-free nodes, whose structure is as follows: Figure 1 As shown, the system includes:
[0078] The cloud scheduling manager 1 is connected to one or more node controllers 2, and each node controller 2 is connected to one or more cluster nodes 3;
[0079] The cloud scheduling manager 1 includes a resource scheduler 101 and a container orchestration system 4; the cloud scheduling manager 1 is used to receive a request for instance application or instance release, initialize network configuration, send a request for initializing cluster nodes 3 to the node controller 2 through the resource scheduler 101, update node configuration information and status according to the feedback of the node controller 2, perform node scheduling, send a request for node application or release to the node controller 2, and perform dynamic cluster node 3 configuration deployment in cooperation with the resource scheduler 101 through the container orchestration system 4;
[0080] The node controller 2 includes a message distributor 201 and a disk manager 202; the node controller 2 is used to initialize local resources, and processes messages between the cloud scheduling manager 1 and the cluster node 3 through the message distributor 201; the node controller 2 checks and reports the node status to the cluster node 3 according to the initialization request sent by the cloud scheduling manager 1, allocates disk resources through the disk manager 202, controls the node according to the node application or release request sent by the cloud scheduling manager 1, and sends a power on / off message to the cluster node 3;
[0081] The cluster nodes 3 are deployed with a container orchestration system 4 for automatic configuration.
[0082] In one embodiment, the functions of the resource scheduler 101 include dynamically adjusting resource allocation scheduling according to the real-time scheduling data of the diskless node and the workload requirements of the node controller 2; dynamically applying for and releasing resources according to the user's demand for node usage, including resource power saving control. It predicts node requirements and optimizes task allocation based on machine learning algorithms.
[0083] In one embodiment, the container orchestration system 4 used by the cloud scheduling manager 1 includes Kubernetes and Kubeedge, and the container orchestration system 4 used by the cluster nodes 3 includes Kubeedge; or Docker Swarm or Apache Mesos is used for container orchestration. The functions of the container orchestration system 4 include managing and coordinating containerized applications and their dependencies, while ensuring that they run in a secure, efficient and reliable environment. In this system, the cloud scheduling manager 1 is assisted in quickly deploying and configuring the cluster nodes 3, and the cluster nodes 3 are quickly joined and exited.
[0084] The container orchestration system 4 provides assistance for simplifying node deployment and dynamically scaling clusters. Node deployment simplification specifically provides an automated node configuration device to simplify the deployment process of hard disk-free nodes. When implemented, it is necessary to automate node configuration and deployment through self-starting services based on Kubernetes' configuration capabilities. Dynamically scaling clusters specifically dynamically adjust the cluster size according to the controller load status to achieve seamless expansion and scaling. It requires status monitoring of the node controller 2 based on the scheduler, as well as Kubernetes' own extension interface, to achieve rapid addition and release of hard disk-free nodes.
[0085] In one embodiment, the system includes a fault detection and recovery mechanism;
[0086] The cloud scheduling manager 1 also includes a fault detector and recovery device 102, and the node controller 2 also includes a fault collector 204. The fault detector and recovery device 102 is used to monitor and identify node faults in real time and perform fault processing. The fault collector 204 is used to check and report abnormal states of cluster nodes 3, which include faults. The functions of the fault detector and recovery device include real-time monitoring of node health status, automatic recovery of instance scheduling, and ensuring the continuous operation of the system. Specifically, distributed monitoring technology is used to identify and respond to node failures through a health check mechanism.
[0087] The node controller 2 further includes a power controller 203 , which is used to provide power support to the node controller 2 under the constraint of saving electricity.
[0088] In one embodiment, the resource scheduler 101 predicts future node usage requirements based on existing instance applications or instance release requests, combined with the workload requirements of the node controller 2 and the requirements of power saving control, and dynamically adjusts the allocation scheduling of disk resources and cluster nodes 3.
[0089] The present application also discloses a scheduling and resource management method for hard disk-free nodes, such as Figure 2 and Figure 3 As shown, including:
[0090] When the cloud scheduling manager 1 receives the instance application, it matches the optimal node according to the node information in the database 5 and the scheduling mechanism of the optimal node, and then sends the instance application message to the node controller 2 corresponding to the optimal node;
[0091] Node controller 2 allocates disk resources to the optimal node and wakes up the optimal node according to the instance application request;
[0092] The node controller 2 notifies the cloud scheduling manager 1 of the information of the allocated disk resources;
[0093] The cloud scheduling manager 1 updates the configuration storage and prepares the scheduling configuration of K8S for the optimal node; and
[0094] After the optimal node is powered on, start the automated configuration software and add it to the K8S cluster.
[0095] In one embodiment, Figure 4 As shown, it also includes:
[0096] When the cloud scheduling manager 1 receives a request to release the instance of a specified node, it notifies the node controller 2 to recycle the specified node and updates the node status according to the feedback message;
[0097] The node controller 2 sends a shutdown command to the designated node and monitors the status of the designated node;
[0098] After node controller 2 monitors that the optimal node is shut down, it releases the disk resources used by the designated node.
[0099] In one embodiment, Figure 5 As shown, it also includes:
[0100] After the node controller 2 detects that an abnormality occurs in the first node, it reports the abnormality to the cloud scheduler;
[0101] The cloud scheduler starts the standby node according to the standby node scheduling mechanism, determines the second node matching the first node from the current standby nodes through the database 5, and updates the resource configuration of the first node to the second node;
[0102] The node controller 2 initiates scheduling of the second node, initiates a startup application for the second node, and updates the status of the first node and the second node.
[0103] In one embodiment, Figure 3 As shown, Figure 6 The scheduling mechanism of the optimal node is explained in detail.
[0104] Step 801, check the resources of all current node controllers 2, and find the node controller 2 where the optimal node determined by the algorithm is located;
[0105] Step 802, check the node status of the corresponding node controller 2, if there is a matching node, determine the matching node, if not, return to step 801;
[0106] Step 803, check whether the node is in a ready state. If it is ready, check the node usage state. If it is in an idle state, directly initiate a node application; if it is not ready or in a non-idle state, continue to step 802;
[0107] Step 804, if the ready node is scheduled, a standby node application is initiated at the same time, and the new node is placed in database 5 as a standby node;
[0108] Step 805: The standby node reaches the threshold value and no more new nodes are added.
[0109] In one embodiment, Figure 4 As shown, the node status update specifically includes:
[0110] Keep the node resources in the ready state and update the node usage status to the idle state.
[0111] In one embodiment, Figure 5 As shown, the standby node calling mechanism specifically includes:
[0112] Extract the resource configuration of the existing instance and find a backup node that matches the first node for scheduling, where:
[0113] The first node is searched in the backup node under the same node controller 2 as the first node first. If not found, a backup node is searched across node controllers 2.
[0114] It should be noted that in the claims and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0115] All documents mentioned in the present invention are cited as references in this application, just as each document is cited as reference individually. In addition, it should be understood that after reading the above teachings of the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms also fall within the scope defined by the claims attached to this application.
Claims
1. A scheduling and resource management system without hard disk nodes, characterized in that: Including cloud scheduling manager, node controller and cluster nodes: The cloud scheduling manager is connected to one or more of the node controllers, and each of the node controllers is connected to one or more of the cluster nodes; The cloud scheduling manager includes a resource scheduler and a container orchestration system; the cloud scheduling manager is used to receive instance application or instance release requests, initialize network configuration, send a request to initialize the cluster node to the node controller through the resource scheduler, update node configuration information and status according to the feedback of the node controller, perform node scheduling, send node application or release requests to the node controller, and perform dynamic cluster node configuration deployment in cooperation with the resource scheduler through the container orchestration system; The node controller includes a message distributor and a disk manager; the node controller is used to initialize local resources and process messages between the cloud scheduling manager and the cluster nodes through the message distributor; the node controller checks and reports node status to the cluster nodes according to the initialization request sent by the cloud scheduling manager, allocates disk resources through the disk manager, controls nodes according to the node application or release request sent by the cloud scheduling manager, and sends power on / off messages to the cluster nodes; The cluster nodes are deployed with a container orchestration system for automatic configuration.
2. The scheduling and resource management system according to claim 1, characterized in that: The container orchestration system used by the cloud scheduling manager includes Kubernetes and Kubeedge, and the container orchestration system used by the cluster node includes Kubeedge; or The scheduling and resource management system uses Docker Swarm or Apache Mesos for container orchestration.
3. The scheduling and resource management system according to claim 1, characterized in that: The system includes a fault detection and recovery mechanism; The cloud scheduling manager further includes a fault detector and recovery device, and the node controller further includes a fault collector, wherein the fault detector and recovery device is used to monitor and identify node faults in real time and perform fault processing, and the fault collector is used to check and report abnormal states of the cluster nodes, wherein the abnormal states include the faults; The node controller further comprises a power supply controller, which is used to provide power support to the node controller under the constraint of saving electricity.
4. The scheduling and resource management system according to claim 1, characterized in that: The resource scheduler predicts the future node usage demand based on the existing instance application or instance release request, combined with the workload demand of the node controller and the requirements of power saving control, and dynamically adjusts the allocation scheduling of the disk resources and the cluster nodes.
5. A scheduling and resource management method for hard disk-free nodes, characterized in that: include: When the cloud scheduling manager receives the instance application, it matches the optimal node according to the node information in the database and the scheduling mechanism of the optimal node, and then sends the instance application message to the node controller corresponding to the optimal node; The node controller allocates disk resources to the optimal node and wakes up the optimal node according to the request of the instance application; The node controller notifies the cloud scheduling manager of information of the allocated disk resources; The cloud scheduling manager updates the configuration storage and is ready to schedule the K8S configuration of the optimal node; and After the optimal node is powered on, the automated configuration software is started and added to the K8S cluster.
6. The scheduling and resource management method according to claim 5, characterized in that: Also includes: When the cloud scheduling manager receives a request to release an instance of a designated node, it notifies the node controller to recycle the designated node and updates the node status according to the feedback message; The node controller sends a shutdown command to the designated node and monitors the status of the designated node; After the node controller monitors that the optimal node is shut down, the disk resources used by the designated node are released.
7. The scheduling and resource management method according to claim 5, characterized in that: Also includes: After the node controller detects that an abnormality occurs in the first node, it reports the abnormality to the cloud scheduler; The cloud scheduler starts the standby node according to the standby node scheduling mechanism, determines a second node matching the first node from the current standby nodes through the database, and updates the resource configuration of the first node to the second node; The node controller initiates scheduling of the second node, initiates a startup application for the second node, and updates the status of the first node and the second node.
8. The scheduling and resource management method according to claim 5, characterized in that: The optimal node scheduling mechanism specifically includes: Step 801, check the resources of all current node controllers and find the node controller where the optimal node determined by the algorithm is located; Step 802, check the node status of the corresponding node controller, if there is a matching node, determine the matching node, if not, return to step 801; Step 803, check whether the node is in a ready state, if it is ready, check the node usage state, if it is in an idle state, directly initiate a node application; if it is not ready or in a non-idle state, continue to step 802; Step 804, if the ready node is scheduled, a standby node application is initiated at the same time, and the new node is placed in the database as a standby node; Step 805: The standby node reaches the threshold value and no more new nodes are added.
9. The scheduling and resource management method according to claim 6, characterized in that: The node status update specifically includes: Keep the node resources in the ready state and update the node usage status to the idle state.
10. The scheduling and resource management method according to claim 7, characterized in that: The standby node calling mechanism specifically includes: Extract the resource configuration of the existing instance and search for a standby node that matches the first node for scheduling, wherein: The first node is preferentially searched in the backup nodes under the same node controller as the first node. If not found, a backup node is searched across the node controllers.
Citation Information
Patent Citations
Container set abnormality processing method and device, storage medium and server
CN111176789A
Computing cluster building method and system, computer equipment and storage medium
CN113076149A
Container scheduling method based on Kubernetes
CN114090176A
Shared image installation image stream
CN114500522A
Disk management system in Kubernetes environment
CN114816272A
