Server operation monitoring method and device
By introducing the information extraction module into the server system, the target server installs and reports information when it starts, which solves the problem of low server operation monitoring efficiency in the existing technology and achieves timely and accurate monitoring of server operation.
Patent Information
- Application Number
- CN202410868186.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
The operation monitoring efficiency of the server system in the existing technology is low, requires manual maintenance and is easy to miss server data, resulting in the inability to monitor the operation of the server in a timely manner.
By establishing an information extraction module between the management server and the reference server, the target server installs the module when it starts, reports server information to the management server, and adds the target server to the server system based on this information to monitor the server's operating performance.
It improves the efficiency of server operation monitoring in the server system, ensures timely and accurate acquisition of server information and adds it to the system, and realizes timely monitoring of server operation.
Smart Images

Figure CN118733388A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the computer field, and more specifically, to a method and device for monitoring the operation of a server. Background Art
[0002] With the continuous development of server systems, people are paying more and more attention to the operation monitoring of server systems. At present, the operation monitoring of server data in the server system remains in the stage of manual maintenance, and it is necessary to manually maintain the relevant data of the server in a table. On the one hand, this method is cumbersome to maintain document operations and it is easy to miss server data. On the other hand, for server devices that are suddenly put on the shelves, it is easy to miss the information of the device without discovering the device, resulting in the inability to monitor the operation of all servers in the server system. The efficiency of the operation monitoring of servers in the server system in the related technology is poor. Summary of the invention
[0003] The embodiments of the present application provide a method and device for monitoring the operation of a server, so as to at least solve the problem of poor efficiency in monitoring the operation of a server in a server system in the related art.
[0004] According to an embodiment of the present application, a method for monitoring the operation of a server is provided. The server system currently includes a reference server and a management server. The reference server is used to run a server service and report reference server information to the management server. The management server is used to monitor the operation performance of the reference server running the server service according to the reference server information. The method is applied to the management server, and the method includes:
[0005] Receiving a start request initiated by a target server to be added to the server system, wherein the start request is used to request to start the target server;
[0006] In response to the startup request, a target server startup program is sent to the target server, wherein the target server startup program carries an information extraction module, the target server startup program is used to install the information extraction module on the server during the process of controlling the server startup, and the information extraction module is used to report the server information of the server to the management server;
[0007] Receiving target server information of the target server reported by the information extraction module installed on the target server;
[0008] The target server is added to the server system according to the target server information, and the target operating performance of the target server in operating the server service is monitored according to the target server information.
[0009] In an exemplary embodiment, adding the target server to the server system according to the target server information includes:
[0010] Identifying a historical registration status of the target server according to the target server characteristic information, wherein the historical registration status is used to indicate whether the target server has currently been registered with the management server, and the target server information includes the target server characteristic information;
[0011] The target server is added to the server system according to the historical registration status.
[0012] In an exemplary embodiment, the identifying the historical registration status of the target server according to the target server characteristic information includes:
[0013] Searching for the target serial number of the target server in a registration list of the management server, wherein the registration list is used to record server information of servers that have been registered in the management server, and the target server characteristic information includes the target serial number;
[0014] In the case where the target serial number of the target server is found in the registration list of the management server, determining that the historical registration state of the target server is a registered state;
[0015] When the target serial number of the target server is not found in the registration list of the management server, it is determined that the historical registration state of the target server is an unregistered state.
[0016] In an exemplary embodiment, adding the target server to the server system according to the historical registration status includes:
[0017] In the case of determining that the historical registration status of the target server is a registered status, searching the registration list for first controller information of the target server, wherein the first controller information includes first baseboard management controller address information, first baseboard management controller user information and first baseboard management controller password information; sending the first controller information to the information extraction module, wherein the information extraction module is used to write the first controller information into the baseboard management controller of the target server based on the local intelligent platform management interface; receiving first power status information of the target server reported by the information extraction module; displaying the first power status information on the server system management display interface of the management server, wherein the server system management display interface is used to display the operation status of the server of the server system;
[0018] When it is determined that the historical registration status of the target server is an unregistered status, the target server information is written into the registration list; the second controller information of the target server is obtained and the second controller information is written into the registration list, wherein the second controller information includes the second baseboard management controller address information, the second baseboard management controller user information and the second baseboard management controller password information; the second controller information is sent to the information extraction module, wherein the information extraction module is used to write the second controller information into the baseboard management controller of the target server based on the local intelligent platform management interface and report the second power status information of the target server to the management server; receive the second power status information; and display the second power status information in the server system management display interface of the management server, wherein the server system management display interface is used to display the operation status of the server of the server system.
[0019] In an exemplary embodiment, sending a target server startup program to the target server includes:
[0020] Obtaining an initial server startup program and an installation package of the information extraction module, wherein the initial server startup program is used to control the server startup by executing the server startup process, the installation package is used to install the information extraction module into the memory file system of the server, and the information extraction module is used to report the server information of the server to the management server through the memory file system of the server;
[0021] Carrying the installation package in the initial server startup program, and adding the installation process of the installation package in the startup process to obtain the target server startup program;
[0022] The target server startup program is sent to the target server.
[0023] In an exemplary embodiment, the receiving the target server information of the target server reported by the information extraction module installed on the target server includes:
[0024] receiving a connection request sent by a target information extraction module, wherein the target information extraction module is installed on the target server by running the target server startup program, and the connection request is used to request to establish a connection with the management server;
[0025] In response to the connection request, establishing a full-duplex communication protocol connection with the target information extraction module;
[0026] The target server information reported by the target information extraction module through the full-duplex communication protocol connection is received.
[0027] In an exemplary embodiment, before receiving a start request initiated by a target server to be added to the server system, the method further includes:
[0028] Sending an initial server registration table, wherein the initial server registration table includes server feature information items and baseboard management controller information items;
[0029] Receiving a target server registry, wherein the target server registry records target server feature information and baseboard management controller information of the target server;
[0030] The registration list of the management server is updated using the target server registration table, wherein the registration list is used to record server information of servers that have been registered in the management server.
[0031] According to another embodiment of the present application, a server operation monitoring device is provided. The server system currently includes a reference server and a management server. The reference server is used to run server services and report reference server information to the management server. The management server is used to monitor the operation performance of the reference server running the server services according to the reference server information. The device is applied to the management server, and the device includes:
[0032] A first receiving module, configured to receive a start request initiated by a target server to be added to the server system, wherein the start request is used to request to start the target server;
[0033] a first sending module, configured to respond to the startup request and send a target server startup program to the target server, wherein the target server startup program carries an information extraction module, the target server startup program is configured to install the information extraction module on the server during the process of controlling the server startup, and the information extraction module is configured to report server information of the server to the management server;
[0034] A second receiving module, configured to receive target server information of the target server reported by the information extraction module installed on the target server;
[0035] An adding module is used to add the target server to the server system according to the target server information, and monitor the target operating performance of the target server in running the server business according to the target server information.
[0036] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0037] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0038] Through the present application, since the server system currently includes a reference server and a management server, the reference server is used to run server services and report reference server information to the management server, and the management server is used to monitor the operating performance of the reference server in running server services based on the reference server information. By accepting a startup request initiated by a target server to be added to the server system for requesting to start the target server, responding to the startup request, and sending a target server startup program carrying an information extraction module for reporting server information of the server to the management server to the target server, the target server startup program is used to install the information extraction module on the server during the process of controlling server startup, receive the target server information of the target server reported by the information extraction module installed on the target server, and according to the target server information, The target server is added to the server system, and the target operating performance of the target server running the server business is monitored according to the target server information. That is, when a startup request of the target server to be added to the server system is received, a target server startup program carrying an information extraction module is sent to the target server. The target server installs the information extraction module on the target server during the startup process. The information extraction module reports the target server information of the target server, so that the server information can be obtained in time and accurately to identify the existence of the server and add the target server to the server system, and the operation of the server can be monitored in time and accurately. Therefore, the problem of poor efficiency in monitoring the operation of servers in the server system in the related technology can be solved, and the effect of improving the efficiency of monitoring the operation of servers in the server system can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a hardware structure block diagram of a server device of a server operation monitoring method according to an embodiment of the present application;
[0040] Figure 2 is a flow chart of a method for monitoring the operation of a server according to an embodiment of the present application;
[0041] Figure 3 It is a flow chart of a method for discovering, registering and managing a bare metal server according to an embodiment of the present application;
[0042] Figure 4 It is a structural block diagram of a server operation monitoring device according to an embodiment of the present application. DETAILED DESCRIPTION
[0043] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0044] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0045] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a server operation monitoring method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0046] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the operation monitoring method of the server in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0047] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0048] In this embodiment, a method for monitoring the operation of a server is provided. The server system currently includes a reference server and a management server. The reference server is used to run server services and report reference server information to the management server. The management server is used to monitor the operating performance of the reference server running the server services according to the reference server information. The method is applied to the management server. Figure 2 is a flow chart of a method for monitoring the operation of a server according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:
[0049] Step S202, receiving a start request initiated by a target server to be added to the server system, wherein the start request is used to request to start the target server;
[0050] Step S204, in response to the startup request, sending a target server startup program to the target server, wherein the target server startup program carries an information extraction module, the target server startup program is used to install the information extraction module on the server during the process of controlling the server startup, and the information extraction module is used to report the server information of the server to the management server;
[0051] Step S206, receiving the target server information of the target server reported by the information extraction module installed on the target server;
[0052] Step S208: adding the target server to the server system according to the target server information, and monitoring the target operating performance of the target server in operating the server service according to the target server information.
[0053] Through the above steps, since the server system currently includes a reference server and a management server, the reference server is used to run the server business and report the reference server information to the management server, and the management server is used to monitor the running performance of the reference server running the server business according to the reference server information, by accepting a startup request initiated by the target server to be added to the server system for requesting to start the target server, responding to the startup request, sending a target server startup program carrying an information extraction module for reporting the server information of the server to the management server to the target server, the target server startup program is used to install the information extraction module on the server during the process of controlling the server startup, receiving the target server information of the target server reported by the information extraction module installed on the target server, and according to the target server information The target server is added to the server system, and the target operating performance of the target server running the server business is monitored according to the target server information. That is, when a startup request of the target server to be added to the server system is received, a target server startup program carrying an information extraction module is sent to the target server. The target server installs the information extraction module on the target server during the startup process. The information extraction module reports the target server information of the target server, so that the server information can be obtained in a timely and accurate manner to identify the existence of the server and add the target server to the server system, and the operation of the server can be monitored in a timely and accurate manner. Therefore, the problem of poor efficiency in monitoring the operation of servers in the server system in the related technology can be solved, thereby achieving the effect of improving the efficiency of monitoring the operation of servers in the server system.
[0054] Optionally, in the embodiment of the present application, the server system includes but is not limited to a management server and one or more reference servers. The management server includes but is not limited to being able to implement long-term server power on / off status monitoring for the reference server.
[0055] In the embodiment provided in step S202, receiving a startup request initiated by a target server to be added to the server system includes but is not limited to receiving an initial server startup program acquisition request initiated by the target server, wherein the initial server startup program is used to control server startup by executing the server startup process.
[0056] In the embodiment provided in step S204, the target server startup program carries an information extraction module, including but not limited to an installation package of the information extraction module and an installation process program of the information extraction module in addition to the initial server startup program. The information extraction module will be installed on the target server when the target server runs the target server startup program.
[0057] Optionally, in an embodiment of the present application, the information extraction module of the target server includes but is not limited to having high-priority usage permissions equivalent to the target server kernel, and the information extraction module includes but is not limited to being able to interact with the management server to obtain the management server's functional management instructions for the target server, and at the same time can be the target server's own serial number, product name, raid card, cpu, architecture, memory, network card, disk, usage rate, power consumption and other information feedback to the management server.
[0058] Optionally, in the embodiment of the present application, the information extraction module can interact with the target server kernel and apply for high priority occupation under the instruction of the management server. After the kernel allocates memory and CPU to the information extraction module, the CPU and memory cannot be allocated to other processes unless the information extraction module actively releases them.
[0059] In the embodiment provided in step S206, receiving the target server information of the target server reported by the information extraction module installed on the target server includes but is not limited to reporting the server information of the target server for the first time through the information extraction module after the target server receives the target server startup program and installs the information extraction module on the target server during the startup process. In addition to the reporting process of reporting the server information for the first time, it includes but is not limited to the information extraction module identifying the importance of the server business corresponding to the server system, and determining the reporting frequency of actively reporting the server information according to the importance of the server business corresponding to the server system, that is, the information extraction module identifies the importance of the server business corresponding to the server system, and determines a higher active reporting frequency when the importance of the server business is high, and determines a lower active reporting frequency when the importance of the server business is low. In addition, it includes but is not limited to sending a server information reporting instruction to the information extraction module through the management server at any time, and the information extraction module responds to the server information reporting instruction to report the server information. Through the above steps, the operating resources of the server system can be saved while monitoring the server operation as much as possible.
[0060] In the embodiment provided in step S208, adding the target server to the server system according to the target server information includes but is not limited to recording the target server information into the management server and configuring the baseboard management controller information for the target server through the management server, and the information extraction module in the target server reports the power status information of the target server to the management server.
[0061] Optionally, in an embodiment of the present application, monitoring the target operating performance of the target server running the server service according to the target server information includes but is not limited to monitoring whether the target server is started and running normally.
[0062] As an optional implementation manner, adding the target server to the server system according to the target server information includes:
[0063] Identifying a historical registration status of the target server according to the target server characteristic information, wherein the historical registration status is used to indicate whether the target server has currently been registered with the management server, and the target server information includes the target server characteristic information;
[0064] The target server is added to the server system according to the historical registration status.
[0065] Optionally, in the embodiment of the present application, the historical registration status includes but is not limited to a registered state and an unregistered state. The identification of the historical registration status includes but is not limited to finding out whether the serial number of the target server is recorded in the management server.
[0066] As an optional implementation manner, the identifying the historical registration status of the target server according to the target server characteristic information includes:
[0067] Searching for the target serial number of the target server in a registration list of the management server, wherein the registration list is used to record server information of servers that have been registered in the management server, and the target server characteristic information includes the target serial number;
[0068] In the case where the target serial number of the target server is found in the registration list of the management server, determining that the historical registration state of the target server is a registered state;
[0069] When the target serial number of the target server is not found in the registration list of the management server, it is determined that the historical registration state of the target server is an unregistered state.
[0070] Through the above steps, by querying whether the server serial number exists in the registration list used to record the server information of the servers that have been registered in the server system, the registration status of the server can be accurately determined, avoiding resource waste caused by repeated execution of some operations or even server status confusion.
[0071] As an optional implementation manner, adding the target server to the server system according to the historical registration status includes:
[0072] In the case of determining that the historical registration status of the target server is a registered status, searching the registration list for first controller information of the target server, wherein the first controller information includes first baseboard management controller address information, first baseboard management controller user information and first baseboard management controller password information; sending the first controller information to the information extraction module, wherein the information extraction module is used to write the first controller information into the baseboard management controller of the target server based on the local intelligent platform management interface; receiving first power status information of the target server reported by the information extraction module; displaying the first power status information on the server system management display interface of the management server, wherein the server system management display interface is used to display the operation status of the server of the server system;
[0073] When it is determined that the historical registration status of the target server is an unregistered status, the target server information is written into the registration list; the second controller information of the target server is obtained and the second controller information is written into the registration list, wherein the second controller information includes the second baseboard management controller address information, the second baseboard management controller user information and the second baseboard management controller password information; the second controller information is sent to the information extraction module, wherein the information extraction module is used to write the second controller information into the baseboard management controller of the target server based on the local intelligent platform management interface and report the second power status information of the target server to the management server; receive the second power status information; and display the second power status information in the server system management display interface of the management server, wherein the server system management display interface is used to display the operation status of the server of the server system.
[0074] Optionally, in an embodiment of the present application, the baseboard management controller BMC is a hardware management tool integrated on the server motherboard, which is used to monitor, manage and control the hardware resources and operating system of the server. BMC can provide remote management functions, including remote startup, remote shutdown, remote restart, remote monitoring, remote control, etc. Through BMC, administrators can monitor the operating status of the server without being on site, diagnose and solve problems, and improve the availability and operating efficiency of the server. BMC can also be integrated into server management software to achieve centralized management and monitoring of server resources. Through BMC, administrators can monitor the usage of the server's hardware resources in real time, detect problems in a timely manner and take measures to ensure the stable operation of the server.
[0075] Optionally, in an embodiment of the present application, the Intelligent Platform Management Interface, i.e., IPMI, is a standard interface for managing and monitoring computer system hardware. IPMI has many functions, including remote startup, remote shutdown, hardware monitoring, remote virtual console, system event logging and alarms, etc. IPMI can help administrators improve the reliability, availability, and security of the system and reduce the time for system maintenance and troubleshooting. IPMI can be used in conjunction with server hardware to communicate with the server through a network connection. Administrators can use IPMI tools to access the server's management interface, view system information, monitor hardware status, perform remote operations, etc.
[0076] Through the above steps, different operation schemes are adopted to write BMC-related configurations into the BMC corresponding to different registration states. Afterwards, the BMC can be controlled by the information extraction module to collect server information of the server and report the server information, thereby improving the operation monitoring efficiency of the server in the server system.
[0077] As an optional implementation manner, sending a target server startup program to the target server includes:
[0078] Obtaining an initial server startup program and an installation package of the information extraction module, wherein the initial server startup program is used to control the server startup by executing the server startup process, the installation package is used to install the information extraction module into the memory file system of the server, and the information extraction module is used to report the server information of the server to the management server through the memory file system of the server;
[0079] Carrying the installation package in the initial server startup program, and adding the installation process of the installation package in the startup process to obtain the target server startup program;
[0080] The target server startup program is sent to the target server.
[0081] Through the above steps, the installation package of the information extraction module is added to the initial server startup program, and the installation process of the installation package is added to the startup process, so that the information extraction module can be installed on the server as soon as possible, and the server information can be reported to the management server as soon as possible, so as to complete the joining of the target server and monitor the operation of the target server.
[0082] As an optional implementation manner, the receiving the target server information of the target server reported by the information extraction module installed on the target server includes:
[0083] receiving a connection request sent by a target information extraction module, wherein the target information extraction module is installed on the target server by running the target server startup program, and the connection request is used to request to establish a connection with the management server;
[0084] In response to the connection request, establishing a full-duplex communication protocol connection with the target information extraction module;
[0085] The target server information reported by the target information extraction module through the full-duplex communication protocol connection is received.
[0086] Optionally, in an embodiment of the present application, the full-duplex communication protocol connection is a websocket connection, which is a full-duplex communication protocol performed on a single TCP connection, allowing real-time communication between a client and a server. Compared with the traditional HTTP protocol, websocket has lower latency and higher efficiency.
[0087] Optionally, in an embodiment of the present application, it includes but is not limited to establishing and maintaining a single full-duplex communication protocol long link between the target information extraction module and the management server.
[0088] Optionally, in an embodiment of the present application, including but not limited to adding a timed heartbeat detection to the full-duplex communication protocol long link established between the target information extraction module and the management server to ensure the survival of the websocket long link, and when the heartbeat detection fails, try to rebuild a new websocket long link.
[0089] Through the above steps, a long websocket link is established between the target information extraction module and the management server, so that the management server can actively obtain server information and the information extraction module can actively report server information. The server to be added to the server system can be discovered and managed by the system as soon as possible to realize the operation monitoring of the server, thereby improving the operation monitoring efficiency of the servers in the server system.
[0090] As an optional implementation manner, before receiving the start request initiated by the target server to be added to the server system, the method further includes:
[0091] Sending an initial server registration table, wherein the initial server registration table includes server feature information items and baseboard management controller information items;
[0092] Receiving a target server registry, wherein the target server registry records target server feature information and baseboard management controller information of the target server;
[0093] The registration list of the management server is updated using the target server registration table, wherein the registration list is used to record server information of servers that have been registered in the management server.
[0094] Optionally, in an embodiment of the present application, when establishing a server system including multiple servers, all servers can be registered on the management server at one time by filling in an initial server registration table, and all servers can be added to the server system.
[0095] As an optional implementation scheme, the present application also provides a method for realizing automatic discovery, automatic registration and management of bare metal machines, which can realize rapid discovery, registration, BMC configuration and management of bare metal machines (i.e., target servers) without any configuration in a unified integrated management system (i.e., management server) after they are put on the shelf and powered on, without manual intervention.
[0096] Based on the traditional PXE, this application adds a bare metal management agent (i.e., information extraction module) in the memory file system. The bare metal management agent runs in the memory file system and bare metal operating system guided by PXE, and has high priority usage rights equivalent to the kernel. In addition, the agent can interact with the unified integrated management system to obtain the functional management instructions of the unified integrated management system for the bare metal. At the same time, the bare metal's own serial number, product name, RAID card, CPU, architecture, memory, network card, disk, each usage rate, power consumption and other information usage can be fed back to the unified integrated management system. The agent can also interact with the bare metal server kernel and apply for high priority occupation under the instruction of the unified integrated management system. After the kernel distributes the memory and CPU to the agent, unless the agent actively releases it, the CPU and memory address cannot be distributed to other processes. The agent sends the bare metal server's own serial number, product name, RAID card, CPU, architecture, memory, network card, disk, BMC address, each usage rate, power consumption and other information usage to the unified integrated management system. Based on this series of information, the unified integrated management system can understand the usage status of bare metal servers, perform specific configurations, and implement dynamic resource management functions.
[0097] Figure 3 1 is a flow chart of a method for discovering, registering and managing a bare metal server according to an embodiment of the present application. Figure 3 As shown, first deploy the unified integrated management system, then place the system and the newly launched bare metal in the same network. At this time, you can perform early bare metal registration or bare metal automatic discovery registration.
[0098] Optionally, in an embodiment of the present application, the bare metal server discovery, registration and management method specifically includes two methods for server registration: a bare metal registration method in advance and a bare metal automatic discovery and registration method.
[0099] 1.1. Methods for early bare metal registration:
[0100] Log in to the unified integrated management system, download the template (i.e. the initial server registration table), fill in the bare metal server serial number according to the template, and fill in the BMC address, BMC user, and BMC password planned in advance into the template one by one. After filling in, import the template into the unified integrated management system. The bare metal has been pre-registered in the unified integrated management system;
[0101] 1.2. Bare metal automatic discovery and registration method:
[0102] The bare metal server that needs to be automatically discovered and registered will be powered on. At this time, the bare metal server enters the PEX system, and the unified integrated management system automatically issues an IP address and automatically obtains the memory file system image through the address. The memory file system image has the required agent built in. When entering the memory file system, when the bare metal server is running normally, the agent automatically runs in the bare metal server and only produces a very small performance loss. It establishes a websocket connection (i.e., a full-duplex communication protocol connection) with the unified integrated management system, and maintains a single websocket long link, adds a timed heartbeat detection, and ensures the survival of the long link. When the heartbeat detection fails, try to rebuild a new websocket long link. The agent automatically collects the server's own serial number, product name, raid card, cpu, architecture, memory, network card, disk, various usage rates, power consumption and other information, and sends it to the unified integrated management system. In the unified integrated management system, the system will parse the automatically collected information. If the serial number is consistent with the serial number that has been registered in advance in the unified integrated management system, the serial number will be matched and all the above information will be entered; if the serial number does not exist in the database of the unified integrated management system, the serial number will be registered in the unified integrated management system, and the remaining information will be matched with the serial number and entered.
[0103] Optionally, in an embodiment of the present application, the bare metal server discovery, registration and management method includes the following operations in automatic server management:
[0104] 2.1. For pre-registered bare metal devices:
[0105] Since the bare metal machine that has been registered in advance has completed serial number matching and information entry, the unified integrated management system now already has the BMC address, BMC user, and BMC password (i.e., the first controller information) preset for the serial number. The unified integrated management system automatically sends the BMC address, BMC user, and BMC password to the agent through a websocket connection. The agent is activated via the websocket connection, and after parsing the obtained information, it automatically writes the BMC address, BMC user, and BMC password into the BMC through the local IPMI (i.e., intelligent platform management interface) protocol. After the writing is completed, the power status of the bare metal server is reported to the unified integrated management system, and the power status of the bare metal server is displayed on the unified integrated management system interface (i.e., the server system management display interface). At this time, the automatic management of the bare metal machine that has been registered in advance has been completed.
[0106] 2.2. For bare metal devices that have not been registered in advance:
[0107] Since the BMC address, BMC user, and BMC password preset for the serial number of the bare metal that has not been registered in advance do not exist in the database of the unified integrated management system, it is necessary to enter the BMC address, BMC user, and BMC password of this serial number in the unified integrated management system interface. After saving the information, the unified integrated management system automatically sends the BMC address, BMC user, and BMC password to the agent through the websocket connection. The agent is activated via the websocket connection, and after parsing the obtained information, it automatically writes the BMC address, BMC user, and BMC password into the BMC through the local IPMI protocol. After the writing is completed, the power status of the bare metal server is reported to the unified integrated management system, and the power status of the bare metal server is displayed on the unified integrated management system interface. At this time, the automatic management of the bare metal that has not been registered in advance has been completed.
[0108] Optionally, in the embodiment of the present application, the bare metal server discovery, registration and management method further includes the following contents after the server is automatically managed:
[0109] 3. After the bare metal server is automatically managed, it can be turned on and off in the unified integrated management system interface, and long-term server power on and off status monitoring can be achieved. For bare metal servers that support HTML5 console, the HTML5 console can be directly jumped to in the interface; for bare metal servers that do not support HTML5 console, the Java console program can be directly downloaded in the interface.
[0110] From the above content, it can be seen that this application provides:
[0111] 1. A method for realizing automatic discovery, automatic registration and management of bare metal, which can realize rapid discovery, registration to the management system, BMC configuration and management of bare metal without any configuration in a unified integrated management system after it is put on the rack and powered on without manual intervention;
[0112] 2. A bare metal server built-in agent that can interact with the unified integrated management system to obtain the unified integrated management system's functional management instructions for bare metals. At the same time, the bare metal's own serial number, product name, raid card, cpu, architecture, memory, network card, disk, various usage rates, power consumption and other information can be fed back to the unified integrated management system;
[0113] 3. A solution that can automatically link a unified integrated management system with a bare metal server’s built-in agent to complete automated bare metal server information recording; automated BMC address, BMC user, and BMC password configuration; visualized bare metal server power on and off status and interfaced bare metal server power on and off operations.
[0114] In scenarios where cloud computing, big data, AI, edge computing, etc. are increasingly used as infrastructure, the solution provided in this application can meet the needs of overall management of bare metal servers in large-scale scenarios while saving a lot of manpower and material resources, and achieve more flexible, convenient and fast automatic discovery, automatic registration and management of bare metal servers, thereby improving the degree of automation of bare metal server management in large-scale scenarios such as cloud computing, big data, AI, edge computing, etc.
[0115] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0116] In this embodiment, a server operation monitoring device is also provided. The server system currently includes a reference server and a management server. The reference server is used to run server services and report reference server information to the management server. The management server is used to monitor the operating performance of the reference server in running the server services based on the reference server information. The device is applied to the management server. The device is used to implement the above-mentioned embodiments and preferred implementation modes. Those that have been explained will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and conceivable.
[0117] Figure 4 is a structural block diagram of a server operation monitoring device according to an embodiment of the present application, such as Figure 4 As shown, the device comprises:
[0118] A first receiving module 402 is used to receive a start request initiated by a target server to be added to the server system, wherein the start request is used to request to start the target server;
[0119] A first sending module 404 is used to respond to the startup request and send a target server startup program to the target server, wherein the target server startup program carries an information extraction module, the target server startup program is used to install the information extraction module on the server during the process of controlling the server startup, and the information extraction module is used to report the server information of the server to the management server;
[0120] A second receiving module 406, configured to receive target server information of the target server reported by the information extraction module installed on the target server;
[0121] The adding module 408 is used to add the target server to the server system according to the target server information, and monitor the target operating performance of the target server in operating the server service according to the target server information.
[0122] Through the above steps, since the server system currently includes a reference server and a management server, the reference server is used to run the server business and report the reference server information to the management server, and the management server is used to monitor the running performance of the reference server running the server business according to the reference server information. By accepting a startup request initiated by the target server to be added to the server system for requesting to start the target server, responding to the startup request, sending a target server startup program carrying an information extraction module for reporting the server information of the server to the management server to the target server, the target server startup program is used to install the information extraction module on the server during the process of controlling the server startup, receiving the target server information of the target server reported by the information extraction module installed on the target server, and according to the target server information The target server is added to the server system, and the target operating performance of the target server running the server business is monitored according to the target server information. That is, when a startup request of the target server to be added to the server system is received, a target server startup program carrying an information extraction module is sent to the target server. The target server installs the information extraction module on the target server during the startup process. The information extraction module reports the target server information of the target server, so that the server information can be obtained in a timely and accurate manner to identify the existence of the server and add the target server to the server system, and the operation of the server can be monitored in a timely and accurate manner. Therefore, the problem of poor efficiency in monitoring the operation of servers in the server system in the related technology can be solved, thereby achieving the effect of improving the efficiency of monitoring the operation of servers in the server system.
[0123] As an optional implementation, the adding module includes:
[0124] an identification unit, configured to identify a historical registration status of the target server according to the target server characteristic information, wherein the historical registration status is used to indicate whether the target server has currently been registered with the management server, and the target server information includes the target server characteristic information;
[0125] The first adding unit is used to add the target server to the server system according to the historical registration status.
[0126] As an optional implementation manner, the identification unit is further used to:
[0127] Searching for the target serial number of the target server in a registration list of the management server, wherein the registration list is used to record server information of servers that have been registered in the management server, and the target server characteristic information includes the target serial number;
[0128] In the case where the target serial number of the target server is found in the registration list of the management server, determining that the historical registration state of the target server is a registered state;
[0129] When the target serial number of the target server is not found in the registration list of the management server, it is determined that the historical registration state of the target server is an unregistered state.
[0130] As an optional implementation manner, the first adding unit is further used for:
[0131] In the case of determining that the historical registration status of the target server is a registered status, searching the registration list for first controller information of the target server, wherein the first controller information includes first baseboard management controller address information, first baseboard management controller user information and first baseboard management controller password information; sending the first controller information to the information extraction module, wherein the information extraction module is used to write the first controller information into the baseboard management controller of the target server based on the local intelligent platform management interface; receiving first power status information of the target server reported by the information extraction module; displaying the first power status information on the server system management display interface of the management server, wherein the server system management display interface is used to display the operation status of the server of the server system;
[0132] When it is determined that the historical registration status of the target server is an unregistered status, the target server information is written into the registration list; the second controller information of the target server is obtained and the second controller information is written into the registration list, wherein the second controller information includes the second baseboard management controller address information, the second baseboard management controller user information and the second baseboard management controller password information; the second controller information is sent to the information extraction module, wherein the information extraction module is used to write the second controller information into the baseboard management controller of the target server based on the local intelligent platform management interface and report the second power status information of the target server to the management server; receive the second power status information; and display the second power status information in the server system management display interface of the management server, wherein the server system management display interface is used to display the operation status of the server of the server system.
[0133] As an optional implementation manner, the first sending module includes:
[0134] an acquisition unit, configured to acquire an initial server startup program and an installation package of the information extraction module, wherein the initial server startup program is used to control the server startup by executing the server startup process, the installation package is used to install the information extraction module into the memory file system of the server, and the information extraction module is used to report the server information of the server to the management server through the memory file system of the server;
[0135] A second adding unit is used to carry the installation package in the initial server startup program, and add the installation process of the installation package in the startup process to obtain the target server startup program;
[0136] A sending unit is used to send the target server startup program to the target server.
[0137] As an optional implementation manner, the second receiving module includes:
[0138] A first receiving unit is used to receive a connection request sent by a target information extraction module, wherein the target information extraction module is installed on the target server by running the target server startup program, and the connection request is used to request to establish a connection with the management server;
[0139] An establishing unit, configured to respond to the connection request and establish a full-duplex communication protocol connection with the target information extraction module;
[0140] The second receiving unit is used to receive the target server information reported by the target information extraction module through the full-duplex communication protocol connection.
[0141] As an optional implementation, the device further includes:
[0142] A second sending module, configured to send an initial server registration table, wherein the initial server registration table includes a server feature information item and a baseboard management controller information item;
[0143] A third receiving module is used to receive a target server registration table, wherein the target server registration table records target server feature information and baseboard management controller information of the target server;
[0144] An updating module is used to update a registration list of the management server using the target server registration table, wherein the registration list is used to record server information of servers that have been registered in the management server.
[0145] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0146] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0147] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0148] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0149] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0150] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.
[0151] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0152] An embodiment of the present application also provides a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0153] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0154] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0155] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for monitoring the operation of a server, characterized in that: The server system currently includes a reference server and a management server, wherein the reference server is used to run server services and report reference server information to the management server, and the management server is used to monitor the running performance of the reference server running the server services according to the reference server information. The method is applied to the management server, and the method includes: Receiving a startup request initiated by a target server to be added to the server system, wherein the startup request is used to request to start the target server; In response to the startup request, a target server startup program is sent to the target server, wherein the target server startup program carries an information extraction module, the target server startup program is used to install the information extraction module on the server during the process of controlling the server startup, and the information extraction module is used to report the server information of the server to the management server; Receive the target server information of the target server reported by the information extraction module installed on the target server; add the target server to the server system according to the target server information, and monitor the target operation performance of the target server running the server business according to the target server information.
2. The method according to claim 1, characterized in that The step of adding the target server to the server system according to the target server information includes: Identifying a historical registration status of the target server according to the target server characteristic information, wherein the historical registration status is used to indicate whether the target server has currently been registered with the management server, and the target server information includes the target server characteristic information; The target server is added to the server system according to the historical registration status.
3. The method according to claim 2, characterized in that The identifying the historical registration status of the target server according to the target server characteristic information includes: Searching for the target serial number of the target server in a registration list of the management server, wherein the registration list is used to record server information of servers that have been registered in the management server, and the target server characteristic information includes the target serial number; In the case where the target serial number of the target server is found in the registration list of the management server, determining that the historical registration state of the target server is a registered state; When the target serial number of the target server is not found in the registration list of the management server, it is determined that the historical registration state of the target server is an unregistered state.
4. The method according to claim 3, characterized in that The step of adding the target server to the server system according to the historical registration status includes: In the case of determining that the historical registration status of the target server is a registered status, searching the registration list for first controller information of the target server, wherein the first controller information includes first baseboard management controller address information, first baseboard management controller user information and first baseboard management controller password information; sending the first controller information to the information extraction module, wherein the information extraction module is used to write the first controller information into the baseboard management controller of the target server based on the local intelligent platform management interface; receiving first power status information of the target server reported by the information extraction module; displaying the first power status information on the server system management display interface of the management server, wherein the server system management display interface is used to display the operation status of the server of the server system; When it is determined that the historical registration status of the target server is an unregistered status, the target server information is written into the registration list; the second controller information of the target server is obtained and the second controller information is written into the registration list, wherein the second controller information includes the second baseboard management controller address information, the second baseboard management controller user information and the second baseboard management controller password information; the second controller information is sent to the information extraction module, wherein the information extraction module is used to write the second controller information into the baseboard management controller of the target server based on the local intelligent platform management interface and report the second power status information of the target server to the management server; receive the second power status information; and display the second power status information in the server system management display interface of the management server, wherein the server system management display interface is used to display the operation status of the server of the server system.
5. The method according to claim 1, characterized in that The sending a target server startup program to the target server includes: Obtaining an initial server startup program and an installation package of the information extraction module, wherein the initial server startup program is used to control the server startup by executing the server startup process, the installation package is used to install the information extraction module into the memory file system of the server, and the information extraction module is used to report the server information of the server to the management server through the memory file system of the server; Carrying the installation package in the initial server startup program, and adding the installation process of the installation package in the startup process to obtain the target server startup program; The target server startup program is sent to the target server.
6. The method according to claim 1, characterized in that The receiving target server information of the target server reported by the information extraction module installed on the target server includes: receiving a connection request sent by a target information extraction module, wherein the target information extraction module is installed on the target server by running the target server startup program, and the connection request is used to request to establish a connection with the management server; In response to the connection request, establishing a full-duplex communication protocol connection with the target information extraction module; The target server information reported by the target information extraction module through the full-duplex communication protocol connection is received.
7. The method according to claim 1, characterized in that Before receiving the start request initiated by the target server to be added to the server system, the method further includes: Sending an initial server registration table, wherein the initial server registration table includes server feature information items and baseboard management controller information items; Receiving a target server registry, wherein the target server registry records target server feature information and baseboard management controller information of the target server; The registration list of the management server is updated using the target server registration table, wherein the registration list is used to record server information of servers that have been registered in the management server.
8. A server operation monitoring device, characterized in that: The server system currently includes a reference server and a management server, wherein the reference server is used to run the server service and report the reference server information to the management server, and the management server is used to monitor the running performance of the reference server running the server service according to the reference server information. The device is applied to the management server, and the device includes: A first receiving module, configured to receive a start request initiated by a target server to be added to the server system, wherein the start request is used to request to start the target server; a first sending module, configured to respond to the startup request and send a target server startup program to the target server, wherein the target server startup program carries an information extraction module, the target server startup program is configured to install the information extraction module on the server during the process of controlling the server startup, and the information extraction module is configured to report server information of the server to the management server; A second receiving module, configured to receive target server information of the target server reported by the information extraction module installed on the target server; An adding module is used to add the target server to the server system according to the target server information, and monitor the target operating performance of the target server in running the server business according to the target server information.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
