Cluster node management method and device, equipment and medium

By automatically obtaining and matching the hardware and application configuration information of cluster nodes and managing them, the time-consuming and error-prone problems of cluster node management are solved, and efficient and stable cluster node management is achieved.

CN119728689APending Publication Date: 2025-03-28LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411996504.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-31
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, the management of cluster nodes requires manual configuration and upgrade, which is time-consuming and error-prone. Especially when the cluster scale is large, the management cost increases sharply, and manual operations can easily lead to immeasurable omissions, affecting the stability of the cluster.

Method used

By using file system commands to determine the hardware configuration information of the server, match the application configuration information based on the hardware configuration information, and generate configuration files for application configuration; at the same time, monitor the operating status of the server, and automatically manage the hardware devices, operating systems and container applications.

Benefits of technology

It realizes efficient management of cluster nodes, reduces management costs and manual operation risks, avoids manual configuration errors and omissions, and improves the stability and reliability of the cluster.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728689A_ABST
    Figure CN119728689A_ABST
Patent Text Reader

Abstract

The invention discloses a cluster node management method and device, equipment and a medium in the technical field of computers. According to the invention, after the server accesses the cluster, full-automatic configuration and management from access to operation can be realized. Specifically, after access, hardware configuration information of the server is determined by using a file system command; matching application configuration information according to the hardware configuration information, and performing application configuration on the server according to a configuration file generated by the application configuration information; and monitoring the running state of the server, and managing hardware equipment, an operating system and container applications of the server. According to the scheme, the cluster nodes do not need to be configured manually, the management cost and the manual operation risk of the cluster nodes are reduced, and efficient management of the cluster nodes is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a cluster node management method, device, equipment and medium. Background Art

[0002] Currently, there are many server nodes in the cluster, and technicians need to manually configure and upgrade the operating system for each server node, manage the hardware devices and related drivers, etc. This process is time-consuming and error-prone, especially when the cluster is large, the management cost increases sharply. Manual operation is also prone to immeasurable omissions, making cluster risks difficult to control and affecting the stability of the cluster.

[0003] Therefore, how to efficiently manage cluster nodes is a problem that needs to be solved by those skilled in the art. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a cluster node management method, device, equipment and medium to efficiently manage cluster nodes. The specific scheme is as follows:

[0005] In a first aspect, the present application provides a cluster node management method, comprising:

[0006] When a server is connected to a cluster, the hardware configuration information of the server is determined using a file system command;

[0007] Matching the application configuration information according to the hardware configuration information, and performing application configuration on the server according to the configuration file generated by the application configuration information;

[0008] Monitor the operating status of the server and manage the server's hardware devices, operating system, and container applications.

[0009] Optionally, determining the hardware configuration information of the server by using a file system command includes:

[0010] querying hardware device files in the server using the file system command;

[0011] The hardware device file is parsed to obtain the hardware configuration information; the hardware configuration information includes: motherboard information, processor information, network card information, memory information and acceleration card information.

[0012] Optionally, matching the application configuration information according to the hardware configuration information includes:

[0013] Query the hardware configuration information in a preset application configuration table;

[0014] The configuration item corresponding to the hardware configuration information recorded in the application configuration table is used as the application configuration information.

[0015] Optionally, performing application configuration on the server according to a configuration file generated by the application configuration information includes:

[0016] Record the application configuration information according to a preset data format to obtain the configuration file;

[0017] The configuration file is transmitted to the server by using a remote management tool, and the server is controlled to parse and apply the configuration file.

[0018] Optionally, monitoring the operating status of the server includes:

[0019] Using a network monitoring tool to monitor the processor usage, memory usage, instantaneous bandwidth size, and accelerator card load size of the server;

[0020] The operating status is evaluated based on the processor usage, the memory usage, the instantaneous bandwidth size, and the acceleration card load size.

[0021] Optionally, managing the hardware device, operating system, and container application of the server includes:

[0022] Monitoring the server's hardware, operating system, and container applications;

[0023] If the driver version of any hardware device needs to be updated, the latest version of the driver is queried according to the device information of the hardware device, and the latest version of the driver is automatically installed;

[0024] If any hardware device is deleted, the driver of the hardware device will be automatically deleted;

[0025] If a new hardware device is detected, the corresponding driver file is obtained according to the device information of the new hardware device, and the driver file is automatically installed;

[0026] If an upgrade instruction for the operating system of the server is received, obtaining the latest installation package of the operating system of the server, and upgrading the operating system of the server based on the latest installation package;

[0027] If an operation instruction of any container application in the server is received, a deployment operation, an update operation or a deletion operation is performed on the container application according to the operation instruction.

[0028] Optionally, scanning the standby server information in the queue description file, and determining the server by using the scanned corresponding standby server; establishing a communication connection between the server and the cluster, so that the server is connected to the cluster;

[0029] Accordingly, the queue description file is updated to record the standby server information and the deleted server information.

[0030] Optionally, based on the processor usage rate, the memory usage rate, the instantaneous bandwidth size, and the accelerator card load size, evaluating the operating status includes:

[0031] A comprehensive evaluation value is calculated based on the processor usage rate, the memory usage rate, the instantaneous bandwidth size, the acceleration card load size and their corresponding weight values;

[0032] The comprehensive evaluation value is used as the operating status.

[0033] Optionally, the comprehensive evaluation value is calculated according to the processor usage rate, the memory usage rate, the instantaneous bandwidth size, the acceleration card load size and their corresponding weight values, including:

[0034] Calculate the comprehensive evaluation value according to the first formula;

[0035] Among them, the first formula is: S=a×A+b×B+c×C+d×D; S is the comprehensive evaluation value, a represents the processor usage rate, b represents the memory usage rate, c represents the instantaneous bandwidth size, d represents the acceleration card load size, A represents the weight value corresponding to the processor usage rate, B represents the weight value corresponding to the memory usage rate, C represents the weight value corresponding to the instantaneous bandwidth size, and D represents the weight value corresponding to the acceleration card load size.

[0036] Optionally, it also includes:

[0037] Receiving a logging policy corresponding to the server;

[0038] The log information file of the server is recorded according to the log recording policy.

[0039] Optionally, it also includes:

[0040] Simplifying the information in the log information file;

[0041] The simplified log information file is sent to the preset management terminal.

[0042] Optionally, it also includes:

[0043] Receiving a log query instruction sent by the management terminal;

[0044] The log information file is sent to the management end according to the log query instruction.

[0045] In a second aspect, the present application provides a cluster node management device, including:

[0046] A determination module, used to determine the hardware configuration information of the server using a file system command when the server is connected to the cluster;

[0047] A configuration module, used to match the application configuration information according to the hardware configuration information, and perform application configuration on the server according to a configuration file generated by the application configuration information;

[0048] The management module is used to monitor the operating status of the server and manage the hardware devices, operating system and container applications of the server.

[0049] Optionally, the determination module is specifically used for:

[0050] querying hardware device files in the server using the file system command;

[0051] The hardware device file is parsed to obtain the hardware configuration information; the hardware configuration information includes: motherboard information, processor information, network card information, memory information and acceleration card information.

[0052] Optionally, the configuration module is specifically used for:

[0053] Query the hardware configuration information in a preset application configuration table;

[0054] The configuration item corresponding to the hardware configuration information recorded in the application configuration table is used as the application configuration information.

[0055] Optionally, the configuration module is specifically used for:

[0056] Record the application configuration information according to a preset data format to obtain the configuration file;

[0057] The configuration file is transmitted to the server by using a remote management tool, and the server is controlled to parse and apply the configuration file.

[0058] Optionally, the management module is specifically used for:

[0059] Using a network monitoring tool to monitor the processor usage, memory usage, instantaneous bandwidth size, and accelerator card load size of the server;

[0060] The operating status is evaluated based on the processor usage, the memory usage, the instantaneous bandwidth size, and the acceleration card load size.

[0061] Optionally, the management module is specifically used for:

[0062] Monitoring the server's hardware, operating system, and container applications;

[0063] If the driver version of any hardware device needs to be updated, the latest version of the driver is queried according to the device information of the hardware device, and the latest version of the driver is automatically installed;

[0064] If any hardware device is deleted, the driver of the hardware device will be automatically deleted;

[0065] If a new hardware device is detected, the corresponding driver file is obtained according to the device information of the new hardware device, and the driver file is automatically installed;

[0066] If an upgrade instruction for the operating system of the server is received, obtaining the latest installation package of the operating system of the server, and upgrading the operating system of the server based on the latest installation package;

[0067] If an operation instruction of any container application in the server is received, a deployment operation, an update operation or a deletion operation is performed on the container application according to the operation instruction.

[0068] Optionally, the node management module is used to scan the backup server information in the queue description file, determine the server with the scanned corresponding backup server; establish a communication connection between the server and the cluster to enable the server to access the cluster; and accordingly, update the queue description file to record the backup server information and deleted server information.

[0069] In a third aspect, the present application provides an electronic device, including:

[0070] Memory for storing computer programs;

[0071] The processor is used to execute the computer program to implement the cluster node management method disclosed above.

[0072] In a fourth aspect, the present application provides a non-volatile storage medium for storing a computer program, wherein the computer program implements the aforementioned disclosed cluster node management method when executed by a processor.

[0073] In a fifth aspect, the present application provides a computer program product, including a computer program / instruction, which implements the steps of the aforementioned disclosed cluster node management method when executed by a processor.

[0074] It can be seen from the above scheme that the present application provides a cluster node management method, including: when a server is connected to a cluster, using a file system command to determine the hardware configuration information of the server; matching the application configuration information according to the hardware configuration information, and performing application configuration on the server according to the configuration file generated by the application configuration information; monitoring the operating status of the server, and managing the hardware devices, operating systems and container applications of the server.

[0075] It can be seen that after the server is connected to the cluster, this application can achieve fully automated configuration and management from access to operation. Specifically, after access, the file system command is used to determine the server's hardware configuration information; the application configuration information is matched according to the hardware configuration information, and the server application is configured according to the configuration file generated by the application configuration information; the server's operating status is monitored, and the server's hardware devices, operating systems, and container applications are managed. This solution does not require manual configuration of cluster nodes, reduces the management cost of cluster nodes and the risk of manual operations, and achieves efficient management of cluster nodes.

[0076] Correspondingly, a cluster node management device, equipment and medium provided by the present application also have the above-mentioned technical effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] In order to more clearly illustrate the embodiments of the present application 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 embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0078] Figure 1 A flow chart of a cluster node management method disclosed in this application;

[0079] Figure 2 A functional schematic diagram of a cluster management system disclosed in this application;

[0080] Figure 3 A flow chart of another cluster node management method disclosed in this application;

[0081] Figure 4 A schematic diagram of a cluster node management device disclosed in this application;

[0082] Figure 5 A schematic diagram of an electronic device disclosed in this application;

[0083] Figure 6 A server structure diagram provided for this application;

[0084] Figure 7A terminal structure diagram provided for this application. DETAILED DESCRIPTION

[0085] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other examples obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0086] At present, there are many server nodes in the cluster, and technicians are required to manually configure and upgrade the operating system for each server node, manage the hardware devices and related drivers, etc. This process is time-consuming and error-prone, especially when the cluster scale is large, the management cost increases sharply. Manual operation is also prone to immeasurable omissions, making cluster risks difficult to control and affecting the stability of the cluster. To this end, the present application provides a cluster node management solution that can reduce the management cost and manual operation risk of cluster nodes and realize efficient management of cluster nodes.

[0087] See also Figure 1 As shown, the embodiment of the present application discloses a cluster node management method, including:

[0088] S101. When a server is connected to a cluster, the hardware configuration information of the server is determined using a file system command.

[0089] In this embodiment, the hardware configuration information of the server can be obtained from the / proc / cpuinfo file and the files in the / sys / class / dmi directory. The server can be an AI server, a storage server, etc. In one embodiment, the hardware configuration information of the server is determined using a file system command, including: querying the hardware device file in the server using a file system command; parsing the hardware device file to obtain the hardware configuration information; the hardware configuration information includes: motherboard information (such as: motherboard model, manufacturer, etc.), processor information (such as: main frequency, manufacturer, etc.), network card information (such as: port type, supported bandwidth size, etc.), memory information (such as: capacity, etc.) and acceleration card information (such as: card type, etc.).

[0090] S102: Match the application configuration information according to the hardware configuration information, and perform application configuration on the server according to the configuration file generated by the application configuration information.

[0091] It should be noted that the present embodiment is pre-set with an application configuration table, which records configuration items of software such as operating systems applicable to various types of hardware configuration information. Therefore, in one embodiment, matching application configuration information according to hardware configuration information includes: searching for hardware configuration information in a preset application configuration table; using configuration items corresponding to the hardware configuration information recorded in the application configuration table as application configuration information.

[0092] In one embodiment, the application configuration of the server is performed according to the configuration file generated by the application configuration information, including: recording the application configuration information according to a preset data format to obtain the configuration file; using a remote management tool to transmit the configuration file to the server, and controlling the server to parse and apply the configuration file. For example: recording the application configuration information as a JSON file, and using the SSH protocol and related remote management tools to transmit the JSON file to the server.

[0093] S103: Monitor the running status of the server and manage the hardware devices, operating system and container applications of the server.

[0094] After the server is started, this embodiment monitors the running status of the server and manages the server's hardware, operating system, and container applications. If the server only enters the cluster but is not started, then after the server is configured according to this embodiment, it is monitored in real time whether it is started.

[0095] This embodiment can monitor the operating status of each node in the cluster in real time. Specifically, in one embodiment, monitoring the operating status of the server includes: using a network monitoring tool to monitor the processor usage, memory usage, instantaneous bandwidth size and acceleration card load size of the server; based on the processor usage, memory usage, instantaneous bandwidth size and acceleration card load size, evaluating the operating status. For example: setting the weight values ​​A, B, C and D corresponding to the processor usage, memory usage, instantaneous bandwidth size and acceleration card load size, respectively, normalizing the processor usage, memory usage, instantaneous bandwidth size and acceleration card load size, and calculating S=processor usage×A+memory usage×B+instantaneous bandwidth size×C+acceleration card load size×D, and using S as a representation of the operating status. In one embodiment, based on the processor usage, memory usage, instantaneous bandwidth size and acceleration card load size, evaluating the operating status includes: calculating a comprehensive evaluation value according to the processor usage, memory usage, instantaneous bandwidth size and acceleration card load size and their corresponding weight values; using the comprehensive evaluation value as the operating status. In one embodiment, a comprehensive evaluation value is calculated according to a processor usage rate, a memory usage rate, an instantaneous bandwidth size, an accelerator card load size and their corresponding weight values, including: calculating the comprehensive evaluation value according to a first formula; wherein the first formula is: S=a×A+b×B+c×C+d×D; S is a comprehensive evaluation value, a represents the processor usage rate, b represents the memory usage rate, c represents the instantaneous bandwidth size, d represents the accelerator card load size, A represents the weight value corresponding to the processor usage rate, B represents the weight value corresponding to the memory usage rate, C represents the weight value corresponding to the instantaneous bandwidth size, and D represents the weight value corresponding to the accelerator card load size.

[0096] This embodiment can flexibly and dynamically manage the hardware devices, operating systems, and container applications of each server node in the cluster. In one embodiment, the hardware devices, operating systems, and container applications of the server are managed, including: monitoring the hardware devices, operating systems, and container applications of the server; if the driver version of any hardware device needs to be updated, query the latest version of the driver according to the device information of the hardware device, and automatically install the latest version of the driver; if any hardware device is deleted, the driver of the hardware device is automatically deleted; if a new hardware device is detected, the corresponding driver file is obtained according to the device information of the new hardware device, and the driver file is automatically installed; if an upgrade instruction of the server's operating system is received, the latest installation package of the server's operating system is obtained, and the server's operating system is upgraded based on the latest installation package; if an operation instruction of any container application in the server is received, the container application is deployed, updated, or deleted according to the operation instruction.

[0097] In one implementation, the standby server information in the queue description file is scanned, and the corresponding standby server scanned is used to determine the server; a communication connection between the server and the cluster is established to enable the server to access the cluster; accordingly, the queue description file is updated to record the standby server information and the deleted server information. It can be seen that the queue description file records the standby server information and the deleted server information, thereby realizing the dynamic management of the cluster nodes. In other words, the servers that are not connected to the cluster are recorded in the queue description file. In one example, if the server is not connected to the cluster, its relevant information is recorded in the queue description file and it is used as a standby server.

[0098] In this embodiment, relevant log information can also be recorded during the entire process from server access to operation. Specifically, a specific log recording policy can be set for the server, and the events and fields to be recorded can be set in the log recording policy. For the entire cluster system, the log recording policies corresponding to different servers can be the same or different. In one embodiment, this embodiment also receives the log recording policy corresponding to the server; records the log information file of the server according to the log recording policy. The information in the log information file is simplified to remove repeated redundant information, or to remove temporarily unimportant information; the log information file after the information is simplified is sent to the preset management terminal. If more log information of the server needs to be queried, the technician can send a log query instruction to the server based on the management terminal, then receive the log query instruction sent by the management terminal; send the log information file to the management terminal according to the log query instruction.

[0099] It can be seen that after the server is connected to the cluster, this embodiment can realize fully automated configuration and management from access to operation. Specifically, after access, the hardware configuration information of the server is determined using the file system command; the application configuration information is matched according to the hardware configuration information, and the application configuration of the server is performed according to the configuration file generated by the application configuration information; the running status of the server is monitored, and the server's hardware devices, operating systems, and container applications are managed. This solution does not require manual configuration of cluster nodes, reduces the management cost of cluster nodes and the risk of manual operation, and realizes efficient management of cluster nodes.

[0100] See also Figure 2 , Figure 2 An example of a cluster node management system is provided, the system comprising:

[0101] Machine type identification module: If the server is deployed in a Linux environment, the system file command is used to automatically identify the machine type.

[0102] For example, by parsing the / proc / cpuinfo file in the operating system, you can get detailed information about the processor in the server, including the model, architecture, etc. At the same time, you can also view the files in the / sys / class / dmi directory to obtain hardware information such as the network card, GPU, and motherboard. Based on all the information identified, accurately identify the machine type, and select the appropriate application configuration plan based on the identification results to determine the configuration of the operating system and server. The machine type identification module can accurately identify different types of physical machines based on the hardware architecture and device characteristics. Different types of physical machines include: X86 servers, ARM servers, GPU servers, CPU servers, etc.

[0103] Software type identification module: responsible for classifying the types of software running in the node. This module analyzes the running characteristics and resource consumption of the software and classifies the software into different types such as high memory type, high CPU type, high floating point operation type and mixed type. According to the different types of software, the system can carry out targeted resource allocation and scheduling to improve the overall performance and efficiency of the cluster.

[0104] Configuration transmission synchronization module: responsible for transmitting the configuration information of the operating system and other software determined according to the machine type to the target node. This module establishes a connection with the target node based on the communication protocol, and transmits the confirmed feasible configuration files, configuration scripts, etc. to the specified storage path of the target node. The target node automatically calls the system management tool according to the content of the configuration file to configure the operating system, virtual machine, container and other software, and ensure the correct application and effectiveness of the configuration. Among them, the configuration information of the operating system, virtual machine, container and other software is centrally managed by the management center. The management center is responsible for centrally managing all configuration files and configuration items, and provides a unified configuration storage and management interface, including configuration file version control, permission management, configuration item classification and other functions. Through the center, administrators can easily view and edit configuration files to ensure the consistency and integrity of the configuration. The distribution of configuration items is automatically completed by the configuration management center, and the administrator only needs to set and adjust the configuration items in the center.

[0105] In the Linux environment, SSH (Secure Shell) is a commonly used remote management tool that is safe and reliable. Therefore, the SSH protocol can be used to transfer and apply configuration files. The configuration file is transferred to the target node through a pre-written script, and then the configuration is actively applied on the target node through a Shell script or configuration management tool. This process can ensure the correctness and consistency of the configuration and improve the reliability and stability of the system.

[0106] In the Linux system, the drivers of each hardware device in the server node usually exist in the form of a kernel module. This embodiment can regularly check the hardware compatibility list and automatically update it. The driver information of each hardware device is recorded in the hardware compatibility list. Based on this list, it can be checked whether there is a problem with the driver of each hardware device. When there is a problem, the latest hardware driver is obtained, and the modprobe and other commands provided by Linux are used to automatically load and update the driver of the corresponding hardware, thereby automatically selecting and installing the adapted hardware driver, ensuring the compatibility and stability of the hardware and the operating system, improving the performance and reliability of the system, and realizing the active management and update of the hardware driver. When the driver is updated, the system will automatically detect and download the latest driver version to ensure the compatibility and stability of the hardware and the operating system.

[0107] The system provided in this embodiment can also dynamically monitor the addition and deletion of hardware devices in the server node. When the node starts, all the hardware in the node is automatically scanned and parsed, and the parsing results are output; according to the parsing result information, the hardware driver that is adapted to the hardware device is automatically selected and loaded into the system kernel. If there are hardware conflicts and errors, they can be further resolved. In addition, the system log module records key information and events in the hardware adaptation process, including but not limited to device scanning results, driver download and installation status, whether the hardware adaptation is successful or not, etc. These logs are of great significance for monitoring and troubleshooting the system operation status, and also provide a reference for subsequent performance optimization and upgrades.

[0108] Automatic expansion and contraction module: Use network monitoring tools such as ethtool and system monitors such as top to monitor the status and performance of cluster nodes, and realize automatic discovery of cluster nodes, and automatically incorporate newly added nodes into the cluster; such a process will greatly reduce the workload of administrators and improve the availability and reliability of the system. At the same time, monitor and handle node failures and anomalies to ensure the stable operation of the cluster. This module performs periodic health checks and node monitoring. Once a node anomaly or failure is found, the system will automatically perform failover and node recovery to ensure the normal operation of the cluster. And realize node management and expansion and contraction based on queues: Use system service management tools to construct queues to manage node services. Use queue description unit files to describe the capacity of the queue, which backup servers are available, and other information, and implement node management and expansion and contraction based on this queue. Specifically, the number of nodes is dynamically adjusted according to the access tasks of the backup servers in the queue to meet the computing needs of the cluster. Such a process can improve the flexibility and scalability of the system, meet the needs of dynamic adjustment of the cluster, and ensure the rational use and dynamic adjustment of cluster resources.

[0109] Grayscale upgrade module: Use the package manager of the Linux system, such as yum, apt, etc., to realize the active upgrade of the node operating system. The node regularly checks whether the operating system needs to be updated, and automatically downloads and installs the software package. Due to the large number of nodes in the cluster, this embodiment adopts a grayscale upgrade method to first upgrade some nodes, and then upgrade the remaining nodes, thereby gradually completing the node upgrade in the entire cluster to ensure the security and stability of the upgrade process. It can be seen that an active upgrade engine has been developed in the grayscale upgrade module, which can realize grayscale release and batch upgrade of the operating system, automatically send the upgrade files in batches to the nodes in the cluster, and implement grayscale release during the upgrade process to ensure the stability and security of the upgrade process.

[0110] Cloud deployment module: Use the API provided by the cloud platform to dynamically add and delete GuestOS, and use container technology to implement container deployment. It also implements dynamic changes and deployment of container operating system images, which can adapt to deployment requirements in different scenarios. This can realize adaptation modules with various cloud platforms, dynamically manage GuestOS on the cloud platform, and support container deployment. Support hybrid deployment of container and virtual machine operating systems, and realize dynamic changes and deployment of operating system images.

[0111] See also Figure 3 This embodiment can automatically identify the machine type and apply the appropriate operating system configuration, simplifying the configuration process; it also realizes automatic hardware adaptation, reduces manual intervention, and improves the compatibility and maintainability of the cluster; through the automatic discovery and queue configuration capabilities of the cluster, it improves the dynamic scalability and stability of the cluster; introduces a grayscale upgrade solution, reduces upgrade risks, and improves the security of the cluster; supports dynamic integration and adaptation with the GuestOS operating system of the cloud platform.

[0112] A cluster node management device provided in an embodiment of the present application is introduced below. The cluster node management device described below can be referenced to other embodiments described in this document.

[0113] See also Figure 4 As shown, the embodiment of the present application discloses a cluster node management device, including:

[0114] Determination module 401, used to determine the hardware configuration information of the server using a file system command when the server is connected to the cluster;

[0115] Configuration module 402, used to match application configuration information according to hardware configuration information, and perform application configuration on the server according to a configuration file generated by the application configuration information;

[0116] The management module 403 is used to monitor the running status of the server and manage the hardware devices, operating system and container applications of the server.

[0117] In one implementation, the determination module is specifically configured to:

[0118] Use file system commands to query hardware device files in the server;

[0119] Parse the hardware device file to obtain hardware configuration information; the hardware configuration information includes: motherboard information, processor information, network card information, memory information and acceleration card information.

[0120] In one implementation, the configuration module is specifically used to:

[0121] Query hardware configuration information in the preset application configuration table;

[0122] The configuration items corresponding to the hardware configuration information recorded in the application configuration table are used as application configuration information.

[0123] In one implementation, the configuration module is specifically used to:

[0124] Record application configuration information according to a preset data format to obtain a configuration file;

[0125] Use remote management tools to transfer the configuration file to the server and control the server to parse and apply the configuration file.

[0126] In one embodiment, the management module is specifically used to:

[0127] Use network monitoring tools to monitor the server's processor usage, memory usage, instantaneous bandwidth, and accelerator card load;

[0128] Evaluate the operating status based on processor usage, memory usage, instantaneous bandwidth, and accelerator card load.

[0129] In one embodiment, the management module is specifically used to:

[0130] Monitor server hardware, operating systems, and container applications;

[0131] If the driver version of any hardware device needs to be updated, the latest driver version will be queried based on the device information of the hardware device and automatically installed;

[0132] If any hardware device is deleted, the driver of the hardware device will be automatically deleted;

[0133] If a new hardware device is detected, the corresponding driver file is obtained according to the device information of the new hardware device, and the driver file is automatically installed;

[0134] If an upgrade instruction of the server's operating system is received, the latest installation package of the server's operating system is obtained, and the server's operating system is upgraded based on the latest installation package;

[0135] If an operation instruction of any container application in the server is received, a deployment operation, an update operation or a deletion operation is performed on the container application according to the operation instruction.

[0136] In one embodiment, the node management module is used to scan the backup server information in the queue description file, determine the server according to the scanned corresponding backup server; establish a communication connection between the server and the cluster to enable the server to access the cluster; accordingly, update the queue description file to record the backup server information and the deleted server information.

[0137] Among them, for more specific working processes of each module and unit in this embodiment, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0138] It can be seen that this embodiment provides a cluster node management device, which can reduce the management cost and manual operation risk of cluster nodes and realize efficient management of cluster nodes.

[0139] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below can be referenced to other embodiments described in this document.

[0140] See also Figure 5 As shown, the embodiment of the present application discloses an electronic device, including:

[0141] Memory 501, used for storing computer programs;

[0142] The processor 502 is used to execute the computer program to implement the method disclosed in any of the above embodiments.

[0143] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: when the server is connected to the cluster, the hardware configuration information of the server is determined using the file system command; the application configuration information is matched according to the hardware configuration information, and the application configuration of the server is performed according to the configuration file generated by the application configuration information; the running status of the server is monitored, and the hardware equipment, operating system and container application of the server are managed.

[0144] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: querying the hardware device file in the server using the file system command; parsing the hardware device file to obtain hardware configuration information; the hardware configuration information includes: motherboard information, processor information, network card information, memory information and acceleration card information.

[0145] In this embodiment, when the processor executes the computer program stored in the memory, the following steps may be specifically implemented: querying hardware configuration information in a preset application configuration table; and using configuration items corresponding to the hardware configuration information recorded in the application configuration table as application configuration information.

[0146] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: recording application configuration information according to a preset data format to obtain a configuration file; using a remote management tool to transmit the configuration file to the server, and controlling the server to parse and apply the configuration file.

[0147] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: using a network monitoring tool to monitor the server's processor usage, memory usage, instantaneous bandwidth size, and accelerator card load size; based on the processor usage, memory usage, instantaneous bandwidth size, and accelerator card load size, evaluate the operating status.

[0148] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: monitoring the hardware devices, operating system and container applications of the server; if the driver version of any hardware device needs to be updated, querying the latest version of the driver according to the device information of the hardware device, and automatically installing the latest version of the driver; if any hardware device is deleted, automatically deleting the driver of the hardware device; if a new hardware device is detected, obtaining the corresponding driver file according to the device information of the new hardware device, and automatically installing the driver file; if an upgrade instruction of the server's operating system is received, obtaining the latest installation package of the server's operating system, and upgrading the server's operating system based on the latest installation package; if an operation instruction of any container application in the server is received, deploying, updating or deleting the container application according to the operation instruction.

[0149] In this embodiment, when the processor executes the computer program stored in the memory, the following steps can be specifically implemented: scan the backup server information in the queue description file, and determine the server according to the scanned corresponding backup server; establish a communication connection between the server and the cluster to enable the server to access the cluster; accordingly, update the queue description file to record the backup server information and the deleted server information.

[0150] Furthermore, the present application also provides an electronic device. The electronic device can be Figure 6 The server shown can also be Figure 7 Terminal shown. Figure 6 and Figure 7All of them are structural diagrams of electronic devices according to an exemplary embodiment, and the contents in the diagrams cannot be regarded as any limitation on the scope of use of the present application.

[0151] Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present application. The server may specifically include: at least one processor, at least one memory, a power supply, a communication interface, an input / output interface, and a communication bus. The memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the relevant steps in cluster node management disclosed in any of the aforementioned embodiments.

[0152] In this embodiment, the power supply is used to provide working voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0153] In addition, the memory as a carrier for resource storage can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include operating system, computer programs and data, etc. The storage method can be temporary storage or permanent storage.

[0154] The operating system is used to manage and control the hardware devices and computer programs on the server to realize the operation and processing of the data in the memory by the processor, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the cluster node management method disclosed in any of the aforementioned embodiments, the computer program can further include computer programs that can be used to complete other specific tasks. In addition to data such as application update information, the data can also include data such as application developer information.

[0155] Figure 7 A schematic diagram of the structure of a terminal provided in an embodiment of the present application, the terminal may specifically include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer, etc.

[0156] Generally, the terminal in this embodiment includes: a processor and a memory.

[0157] Among them, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0158] The memory may include one or more computer non-volatile storage media, which may be non-transitory. The memory may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory is used to store at least the following computer program, wherein, after the computer program is loaded and executed by the processor, it can implement the relevant steps in the cluster node management method executed by the terminal side disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory may also include an operating system and data, etc., and the storage method may be short-term storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, update information of the application.

[0159] In some embodiments, the terminal may also include a display screen, an input and output interface, a communication interface, a sensor, a power supply, and a communication bus.

[0160] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than those shown in the figure.

[0161] A non-volatile storage medium provided in an embodiment of the present application is introduced below. The non-volatile storage medium described below can be cross-referenced with other embodiments described herein.

[0162] A non-volatile storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the cluster node management method disclosed in the above-mentioned embodiment. The non-volatile storage medium is a computer-readable non-volatile storage medium, which, as a carrier for resource storage, may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system, a computer program and data, etc., and the storage method may be temporary storage or permanent storage.

[0163] A computer program product provided in an embodiment of the present application is introduced below. The computer program product described below can be cross-referenced with other embodiments described in this document.

[0164] A computer program product includes a computer program / instruction, which implements the steps of the aforementioned disclosed cluster node management method when executed by a processor.

[0165] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0166] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of non-volatile storage medium known in the art.

[0167] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A cluster node management method, characterized in that: include: When a server is connected to a cluster, the hardware configuration information of the server is determined using a file system command; Matching the application configuration information according to the hardware configuration information, and performing application configuration on the server according to the configuration file generated by the application configuration information; Monitor the operating status of the server and manage the server's hardware devices, operating system, and container applications.

2. The method according to claim 1, characterized in that Determining the hardware configuration information of the server using a file system command includes: querying hardware device files in the server using the file system command; The hardware device file is parsed to obtain the hardware configuration information; the hardware configuration information includes: motherboard information, processor information, network card information, memory information and acceleration card information.

3. The method according to claim 1, characterized in that Matching the application configuration information according to the hardware configuration information includes: Query the hardware configuration information in a preset application configuration table; The configuration item corresponding to the hardware configuration information recorded in the application configuration table is used as the application configuration information.

4. The method according to claim 1, characterized in that: Performing application configuration on the server according to the configuration file generated by the application configuration information includes: Record the application configuration information according to a preset data format to obtain the configuration file; The configuration file is transmitted to the server by using a remote management tool, and the server is controlled to parse and apply the configuration file.

5. The method according to claim 1, characterized in that Monitoring the running status of the server includes: Using a network monitoring tool to monitor the processor usage, memory usage, instantaneous bandwidth size, and accelerator card load size of the server; The operating status is evaluated based on the processor usage, the memory usage, the instantaneous bandwidth size, and the acceleration card load size.

6. The method according to claim 5, characterized in that Based on the processor usage rate, the memory usage rate, the instantaneous bandwidth size, and the accelerator card load size, evaluating the operating state includes: A comprehensive evaluation value is calculated based on the processor usage rate, the memory usage rate, the instantaneous bandwidth size, the acceleration card load size and their corresponding weight values; The comprehensive evaluation value is used as the operating status.

7. The method according to claim 6, characterized in that The comprehensive evaluation value is calculated based on the processor usage rate, the memory usage rate, the instantaneous bandwidth size, the acceleration card load size and their corresponding weight values, including: Calculate the comprehensive evaluation value according to the first formula; Among them, the first formula is: S=a×A+b×B+c×C+d×D; S is the comprehensive evaluation value, a represents the processor usage rate, b represents the memory usage rate, c represents the instantaneous bandwidth size, d represents the acceleration card load size, A represents the weight value corresponding to the processor usage rate, B represents the weight value corresponding to the memory usage rate, C represents the weight value corresponding to the instantaneous bandwidth size, and D represents the weight value corresponding to the acceleration card load size.

8. The method according to claim 1, characterized in that Also includes: Receiving a logging policy corresponding to the server; The log information file of the server is recorded according to the log recording policy.

9. The method according to claim 8, characterized in that Also includes: Simplifying the information in the log information file; The simplified log information file is sent to the preset management terminal.

10. The method according to claim 9, characterized in that Also includes: Receiving a log query instruction sent by the management terminal; The log information file is sent to the management end according to the log query instruction.

11. The method according to any one of claims 1 to 10, characterized in that: Manage the server's hardware, operating system, and container applications, including: Monitoring the server's hardware, operating system, and container applications; If the driver version of any hardware device needs to be updated, the latest version of the driver is queried according to the device information of the hardware device, and the latest version of the driver is automatically installed; If any hardware device is deleted, the driver of the hardware device will be automatically deleted; If a new hardware device is detected, the corresponding driver file is obtained according to the device information of the new hardware device, and the driver file is automatically installed; If an upgrade instruction for the operating system of the server is received, obtaining the latest installation package of the operating system of the server, and upgrading the operating system of the server based on the latest installation package; If an operation instruction of any container application in the server is received, a deployment operation, an update operation or a deletion operation is performed on the container application according to the operation instruction.

12. The method according to any one of claims 1 to 10, characterized in that: Scanning the standby server information in the queue description file, determining the server by scanning the corresponding standby server; establishing a communication connection between the server and the cluster, so that the server can access the cluster; Accordingly, the queue description file is updated to record the standby server information and the deleted server information.

13. A cluster node management device, characterized in that: include: A determination module, used to determine the hardware configuration information of the server using a file system command when the server is connected to the cluster; A configuration module, used to match the application configuration information according to the hardware configuration information, and perform application configuration on the server according to a configuration file generated by the application configuration information; The management module is used to monitor the operating status of the server and manage the hardware devices, operating system and container applications of the server.

14. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to execute the computer program to implement the method according to any one of claims 1 to 12.

15. A non-volatile storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Cited By

  • Graphic processor resource allocation method

    CN120892216A

  • Method for allocating graphics processor resources

    CN120892216B