Server node monitoring method and device
By embedding monitoring services in the server substrate management controller system, the original data is collected and structured and sent to an external monitoring system, the problem of difficulty in monitoring server nodes when the CPU system is abnormal is solved, and efficient and load-free monitoring effect is achieved.
Patent Information
- Application Number
- CN202411837570.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-03-25
AI Technical Summary
The existing server node monitoring method depends on feedback from the CPU system. If the CPU system has abnormalities, it is difficult to determine the operating status of the server node, making it difficult to execute the monitoring function.
By embedding monitoring services in the server substrate management controller system, using a dedicated interface to call the underlying functions, collecting original data, and then sending them to an external monitoring system, ensuring the smooth execution of the monitoring function.
It can also monitor the operating status of the server nodes when there is an abnormality in the CPU system, avoid the load pressure of the CPU system, and improve the monitoring effect and efficiency.
Smart Images

Figure CN119690781A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for monitoring a server node. Background Art
[0002] With the development of technology, computer technology has also improved. Unlike ordinary computer equipment, servers are devices that are oriented to a large number of users and a large amount of data. The stability of their operating status has a greater impact on the daily lives of users. Generally speaking, many companies network multiple servers to form a cluster to meet the needs of users. In this process, each server is a server node, and the operating status of each node will affect the operation of the entire cluster. Therefore, monitoring of server nodes has become a necessary means to ensure the normal operation of the cluster.
[0003] At present, in the existing monitoring process of server nodes, it is generally necessary to issue monitoring instructions to the CPU system in the server node through an external monitoring system, and determine the operating status of the server node where each server is located based on the data fed back by the CPU system. However, in actual applications, the existing monitoring method relies on the cooperation of the CPU system inside the server in each server node. Once the CPU system is abnormal and cannot normally feed back the external monitoring system, it is difficult for the existing monitoring method to determine the operating status of the current server node, which makes it difficult for the existing server node monitoring function to be smoothly executed. Summary of the invention
[0004] The embodiment of the present application provides a server node monitoring method and device, the main purpose of which is to implement a server node monitoring method to ensure that when there is an abnormality in the CPU system, the operating status of the server node corresponding to the CPU system can also be monitored to ensure that the monitoring function of the server node can be smoothly executed.
[0005] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:
[0006] In a first aspect, the present application provides a server node monitoring method, which is applied to a monitoring service, wherein the monitoring service is embedded in a server baseboard management controller system, and the monitoring service is provided with a dedicated interface for docking various underlying functions in the server baseboard management controller system, and the dedicated interface is used to call the underlying functions of the server baseboard management controller system; the method comprises:
[0007] Calling a first function to collect raw data from a server; the first function is a function built into the server baseboard controller system for collecting data in the server;
[0008] Structuring the raw data to obtain structured data that conforms to a target format, wherein the target format matches an external monitoring system that monitors the status of a server node;
[0009] The second function is called to send the structured data to the external monitoring system so that the external monitoring system can obtain the operating status of the server node corresponding to the server based on the structured data; the second function is a function built into the server baseboard controller system for transmitting data outward.
[0010] Optionally, the original data includes hardware data; and calling the first function to collect the original data from the server includes:
[0011] The sensor collection service of the first function is called to collect real-time hardware data for each hardware, and the real-time hardware data is determined as the hardware data; wherein the real-time hardware data is used to characterize the real-time running state of the hardware.
[0012] Optionally, the calling of the first function to collect raw data from the server further includes:
[0013] The log collection service of the first function is called to obtain the historical hardware data of each hardware in the hardware log of the server, and the historical hardware data is determined as the hardware data; wherein the historical hardware data is used to characterize the historical operating status of the hardware; the hardware log is stored in the built-in memory of the server baseboard management controller system.
[0014] Optionally, the structuring the original data to obtain structured data conforming to a target format includes:
[0015] Performing data formatting processing on the data content of the original data to obtain first data; wherein the data formatting processing is used to process the hardware data of different hardware into data with the same standardized measurement unit;
[0016] Performing data encapsulation processing on the first data to obtain encapsulated data, wherein the data encapsulation processing is used to process the data into a data format that is easy to be recognized by the external monitoring system;
[0017] A transmission protocol of a corresponding data format is set for each of the encapsulated data to obtain the structured data.
[0018] Optionally, before structuring the original data to obtain structured data conforming to the target format, the method further includes:
[0019] Sending a data monitoring request to the CPU system through a preset interface so that the CPU system feeds back internal monitoring information of the CPU system based on the data monitoring request; wherein the preset interface is a communication interface between the server baseboard management controller system and the CPU system;
[0020] Receive feedback information fed back by the CPU system and add the feedback information to the original data; wherein the feedback information includes at least one of CPU system performance information, hardware monitoring information, system log information, resource occupancy information, operating system information, service and application status information, and energy consumption information.
[0021] Optionally, after calling the second function to send the structured data to the external monitoring system, the method further includes:
[0022] When a power control instruction is detected, a third function is called to perform a target operation on the server, wherein the target operation includes power on and power off operations of the server; the third function is a function built into the server baseboard controller system for managing the power supply of the server.
[0023] Optionally, after calling the second function to send the structured data to the external monitoring system, the method further includes:
[0024] When a system update instruction is detected, a fourth function is called to perform an update operation on the server, and the fourth function is a function built into the server baseboard controller system for updating the firmware of the server.
[0025] In a second aspect, the present application further provides a monitoring device for a server node, which is applied to a monitoring service, wherein the monitoring service is embedded in a server baseboard management controller system, and the monitoring service is provided with a dedicated interface for docking various underlying functions in the server baseboard management controller system, and the dedicated interface is used to call the underlying functions of the server baseboard management controller system; the device comprises:
[0026] A collection unit, used to call a first function to collect raw data from a server; the first function is a function built into the server baseboard controller system for collecting data in the server;
[0027] A processing unit, configured to perform structured processing on the raw data to obtain structured data conforming to a target format, wherein the target format matches an external monitoring system for monitoring the status of a server node;
[0028] A transmission unit is used to call a second function to send the structured data to the external monitoring system, so that the external monitoring system can obtain the operating status of the server node corresponding to the server based on the structured data; the second function is a function built into the server baseboard controller system for transmitting data outward.
[0029] Optionally, the original data includes hardware data; the acquisition unit is specifically used to call the sensor acquisition service of the first function to collect real-time hardware data for each hardware, and determine the real-time hardware data as the hardware data; wherein, the real-time hardware data is used to characterize the real-time operating status of the hardware.
[0030] Optionally, the collection unit is further specifically used to call the log collection service of the first function to obtain historical hardware data of each hardware in the hardware log in the server, and determine the historical hardware data as the hardware data; wherein, the historical hardware data is used to characterize the historical operating status of the hardware; the hardware log is stored in the built-in memory of the server baseboard management controller system.
[0031] Optionally, the processing unit is used to perform data formatting processing on the data content of the original data to obtain first data; wherein the data formatting processing is used to process the hardware data of different hardware into data with the same standardized measurement unit; and, perform data encapsulation processing on the first data to obtain encapsulated data, wherein the data encapsulation processing is used to process the data into a data format that is convenient for the external monitoring system to recognize; and, set a transmission protocol of a corresponding data format for each of the encapsulated data to obtain the structured data.
[0032] Optionally, the device further comprises
[0033] A sending unit, used to send a data monitoring request to the CPU system through a preset interface, so that the CPU system feeds back the internal monitoring information of the CPU system based on the data monitoring request; wherein the preset interface is a communication interface between the server baseboard management controller system and the CPU system;
[0034] A receiving unit is used to receive feedback information fed back by the CPU system and add the feedback information to the original data; wherein the feedback information includes at least one of the CPU system's performance information, hardware monitoring information, system log information, resource occupancy information, operating system information, service and application status information, and energy consumption information.
[0035] Optionally, the device further comprises:
[0036] A power control unit is used to call a third function to perform a target operation on the server when a power control instruction is detected, and the target operation includes a power on operation and a power off operation of the server; the third function is a function built into the server baseboard controller system for managing the power supply of the server.
[0037] Optionally, the device further comprises:
[0038] The updating unit is used to call a fourth function to perform an updating operation on the server when a system updating instruction is detected. The fourth function is a function built into the server baseboard controller system for updating the firmware of the server.
[0039] In a third aspect, the present application further provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the server node monitoring method described in the first aspect.
[0040] In a fourth aspect, the present application also provides a testing device, comprising a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the server node monitoring method described in any one of the first aspects is executed.
[0041] By means of the above technical solution, the technical solution provided by this application has at least the following advantages:
[0042] The present application provides a monitoring method and device for a server node, which are applied to a monitoring service, wherein the monitoring service is embedded in a server baseboard management controller system, and the monitoring service is provided with a dedicated interface for docking with various underlying functions in the server baseboard management controller system, and the dedicated interface is used to call the underlying functions of the server baseboard management controller system; the present application first calls a first function to collect raw data from a server; the first function is a function built into the server baseboard controller system for collecting data in a server; then, the raw data is structured to obtain structured data conforming to a target format, and the target format matches an external monitoring system for monitoring the status of server nodes; finally, a second function is called to send the structured data to the external monitoring system, so that the external monitoring system obtains the operating status of the server node corresponding to the server based on the structured data; the second function is a function built into the server baseboard controller system for transmitting data outward, thereby realizing a monitoring device for server nodes. Compared with the prior art, the method in the present application is applied to the monitoring service, and the monitoring service is embedded in the server baseboard management controller system. Since the server baseboard management controller system itself is an independent system outside the CPU system, its operation process is not interfered by the operation of the CPU system. This ensures that when the CPU system is abnormal, it can also collect raw data based on the first function built into the server baseboard management controller system, and process it and send it to the external monitoring system using the second function, so as to achieve the effect of being able to monitor the operation status of the server node even when it is separated from the CPU system. At the same time, since the data to the external monitoring system is not the original data itself, but structured data adapted to the external system, it ensures that the subsequent external monitoring server no longer needs to process the format of the data after obtaining the data, eliminating the subsequent identification process, and can improve the monitoring effect of the server node as a whole. In addition, based on the method of the present application, the execution process is based on the server baseboard controller system without the intervention of the CPU system, which can avoid the load pressure on the CPU system during the monitoring of the server node.
[0043] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0045] Figure 1 A flow chart of a server node monitoring method provided in an embodiment of the present application is shown;
[0046] Figure 2 A block diagram showing a monitoring device for a server node provided in an embodiment of the present application is shown;
[0047] Figure 3 A block diagram showing the composition of another server node monitoring device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0049] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0050] The present application embodiment provides a flow chart of a method for monitoring a server node, such as Figure 1 As shown, the method includes:
[0051] 101. Call a first function to collect raw data from a server.
[0052] The first function is a function built into the server baseboard controller system for collecting data in the server.
[0053] Generally speaking, the server baseboard management controller system, namely BMC (Baseboard Management Controller, server baseboard management controller, referred to as BMC) is a separate hardware management system in the server equipment. The BMC system has become a standard configuration of the server, which can manage the interfaces of various hardware and is responsible for the signal collection, processing, storage of various sensors, and monitoring of the operating status of various devices. The BMC provides the chassis management module with information such as the hardware status and alarms of the managed object, realizing the device management function of the managed object.
[0054] In this embodiment, the monitoring method of the server node is executed by a monitoring service, wherein the monitoring service is embedded in the server baseboard management controller system, that is, embedded in the BMC system. The monitoring service is provided with a dedicated interface for docking with various underlying functions in the server baseboard management controller system, and the dedicated interface is used to call the underlying functions of the server baseboard management controller system. That is to say, when executing the method of this embodiment, each time you want to obtain a certain data in the server, you can call the corresponding function of the server baseboard management controller system through different interfaces. For example, if you want to obtain the current temperature of a certain hardware of the server, you can call the temperature detection function of the corresponding hardware in the BCM system through the interface to collect the temperature.
[0055] In this embodiment, the first function is a general term, which does not represent a single function, but any one or more of the multiple functions that can collect information in the BMC system. The specific one is not limited here, and the corresponding function can be determined based on the type of data actually required to be obtained. In addition, the raw data can be understood as the data directly obtained by the function in the BMC system after the sensor collects the data of a certain hardware or device, without any form of processing. Therefore, when the raw data of multiple different hardware or devices are collected in this step, the types and forms of these data may be different. The specific data format is not limited here, and can be determined based on the function when each data is collected.
[0056] 102. Structuring the original data to obtain structured data that conforms to the target format.
[0057] The target format matches an external monitoring system that monitors the status of the server nodes.
[0058] After the raw data is obtained in the above steps, based on the description of the above steps, it can be known that the specific format of the raw data is actually determined by the specific function of collecting the data in the server baseboard controller system. In this step, in order to facilitate subsequent identification and analysis, the raw data can also be processed. Specifically, the raw data can be structured as in this step, that is, the messy and original data are processed into data of a certain format and structure, that is, the target format. The specific target format can be determined based on the external monitoring system that needs to be identified later. For example, if the external monitoring system can only recognize data in format A, then in this step, after the raw data is processed, the structured data that conforms to the target format is the data in the form of format A. Here, the structured processing only illustrates the processing of the format. In actual applications, it can also involve multiple contents such as the encapsulation of the entire data and the processing of the data content. The specific is not limited, but it is necessary to ensure that the processed structured data can be easily identified by the external monitoring system.
[0059] 103. Call the second function to send the structured data to the external monitoring system, so that the external monitoring system obtains the operating status of the server node corresponding to the server based on the structured data.
[0060] The second function is a function built into the server baseboard controller system for transmitting data outward.
[0061] After obtaining the processed structured data, the structured data can be transmitted next. Specifically, the data can be transmitted to an external monitoring system through the second function. The second function can be understood as a data transmission function built into the BMC system. Of course, the channel used in the data transmission process is a channel in the server dedicated to the BMC system for transmitting data, which is independent of the CPU system's external transmission channel. In this way, it can be ensured that no matter what kind of problem the CPU system is in, the structured data can be sent to the external monitoring system using the second function, so that the external monitoring system can also determine the current server node's operating status in real time based on the structured data.
[0062] Based on this, the present embodiment provides a monitoring method for a server node. Compared with the prior art, the method in the present application is applied to a monitoring service, and the monitoring service is embedded in the server baseboard management controller system. Since the server baseboard management controller system itself is an independent system outside the CPU system, its operation process is not interfered by the operation of the CPU system. This ensures that when the CPU system is abnormal, it can also collect raw data based on the first function built into the server baseboard management controller system, and process it and send it to the external monitoring system using the second function, thereby achieving the effect of being able to monitor the operation status of the server node even when it is separated from the CPU system. At the same time, since the data to the external monitoring system is not the original data itself, but structured data adapted to the external system, it ensures that the subsequent external monitoring server no longer needs to process the format of the data after obtaining the data, eliminating the subsequent identification process, and can improve the monitoring effect of the server node as a whole. In addition, based on the method of the present application, the execution process is based on the server baseboard controller system without the intervention of the CPU system, which can avoid the load pressure on the CPU system during the monitoring of the server node.
[0063] In some embodiments, since the BMC system can monitor various hardware in the server corresponding to various sensors, in this embodiment, the original data may include hardware data;
[0064] Based on this, the aforementioned step 101 “calling the first function to collect raw data from the server” may include:
[0065] The sensor collection service of the first function is called to collect real-time hardware data for each hardware, and the real-time hardware data is determined as the hardware data; wherein the real-time hardware data is used to characterize the real-time running state of the hardware.
[0066] In the process of calling the sensor acquisition service of the first function to collect the actual hardware data of each hardware, the first function can specifically communicate with the sensor of the target hardware through buses such as I2C / PECI, and control it to collect the current information of the target hardware as real-time hardware data and feedback, including but not limited to temperature, voltage load and other information.
[0067] In this way, through the sensor acquisition service of the first function, the function of controlling the corresponding sensors to collect the original data of the corresponding hardware by using the sensor acquisition service built into the BMC system is realized. Since the data is collected in real time, it is ensured that the obtained original data can represent the most real real-time status of the current server, ensuring the accuracy of subsequent monitoring of the server node operation status.
[0068] In some embodiments, since the data that can characterize the operating status of the server node may be not only real-time data but also data within a period of time in the past, historical data may also be collected during the process of collecting original data.
[0069] Based on this, the aforementioned step 101 “calling the first function to collect raw data from the server” may also include:
[0070] The log collection service of the first function is called to obtain the historical hardware data of each hardware in the hardware log of the server, and determine the historical hardware data as the hardware data.
[0071] The historical hardware data is used to represent the historical operating status of the hardware; and the hardware log is stored in a built-in memory in the server baseboard management controller system.
[0072] In this embodiment, the hardware log is actually stored in the built-in memory of the BMC system. Since the BMC system will regularly detect the status of each hardware or device it manages, these detection results will be reported in the built-in memory in the form of logs, which can reflect the operation status of the server node in the previous period of time.
[0073] By using the log collection service of the first function to obtain historical hardware data from the hardware log, it is possible to ensure that in the subsequent monitoring of the server node operation status, historical data can be combined for analysis to ensure the accuracy of subsequent monitoring results. At the same time, it can also ensure that in the case of a hardware sensor failure, when it is impossible to obtain real-time hardware data, historical hardware data can be used to analyze it, ensuring the smooth operation of the server node monitoring function.
[0074] In some embodiments, the aforementioned step 102 of “structuring the original data to obtain structured data conforming to the target format” may include:
[0075] First, the data content of the raw data is formatted to obtain first data; wherein the data formatting is used to process the hardware data of different hardware into data with the same standardized measurement unit. Specifically, in the process of processing into the first data, the different raw data are actually converted into a unified unit, which usually involves converting sensor readings into standardized measurement units (such as degrees Celsius, volts, revolutions per minute, etc.).
[0076] Then, the first data is subjected to data encapsulation processing to obtain encapsulated data, and the data encapsulation processing is used to process the data into a data format that is easy for the external monitoring system to recognize. In this process, various data can also be summarized, sorted, and classified, and then encapsulated, that is, after summarizing, sorting, classifying and encapsulating, the first data can be processed into an information format that can be recognized by the external monitoring system. Specifically, the specific format in the encapsulation process includes but is not limited to any format that can be recognized by the external monitoring system, such as JSON, XML or Protobuf, etc., which are generally widely supported by external monitoring systems.
[0077] Finally, a transmission protocol of a corresponding data format is set for each of the encapsulated data to obtain the structured data. Since the structured data is to be transmitted to an external monitoring system, the encapsulated data can also be set with the transmission protocol required for subsequent transmission in this step, so that the interface and protocol (such as HTTP protocol, etc.) required for transmission are set for the encapsulated data, which can ensure that the subsequent transmission can be automatically transmitted based on the protocol contained in the structured data, eliminating the need to configure the corresponding transmission protocol for each data each time it is transmitted, which can improve the efficiency of subsequent transmission.
[0078] In some embodiments, when the load pressure of the CPU system is relatively small, the server nodes may be monitored with the assistance of the CPU system through the interface between the CPU system and the BMC system.
[0079] Based on this, before the aforementioned step 102 of "structuring the original data to obtain structured data conforming to the target format" is executed, the method further includes:
[0080] Sending a data monitoring request to the CPU system through a preset interface so that the CPU system feeds back internal monitoring information of the CPU system based on the data monitoring request; wherein the preset interface is a communication interface between the server baseboard management controller system and the CPU system;
[0081] Receive feedback information fed back by the CPU system and add the feedback information to the original data; wherein the feedback information includes at least one of CPU system performance information, hardware monitoring information, system log information, resource occupancy information, operating system information, service and application status information, and energy consumption information.
[0082] By utilizing the preset interface to make a request to the CPU system and obtaining corresponding feedback information, it is possible to ensure that when the CPU system load pressure is relatively low, the relevant data can be obtained with the help of the functions of the CPU system, thereby ensuring that the method described in this embodiment not only relies on the BMC system itself, but can also monitor the server nodes with the help of the CPU system. In this way, through the data collection of the two systems, not only can the comparison after data collection be ensured, the accuracy of the monitoring results can be improved, but also different data collection items can be allocated to the two systems, thereby improving the efficiency of the collection process, and then the monitoring efficiency of the server node monitoring process can be improved as a whole.
[0083] In some embodiments, when the CPU load is abnormal or paralyzed, if the power supply of the server node is not managed as soon as possible, the server may be damaged. In view of this, in this embodiment, the power supply of the server can also be operated through the BMC system to achieve the effect of restarting.
[0084] Based on this, after step 103 “calling the second function to send the structured data to the external monitoring system” is executed, the method further includes:
[0085] When a power control instruction is detected, a third function is called to perform a target operation on the server, wherein the target operation includes power on and power off operations of the server; the third function is a function built into the server baseboard controller system for managing the power supply of the server.
[0086] When a power control instruction is detected, the monitoring service can analyze the instruction to determine whether it is a shutdown instruction or a power-on instruction. After determining the type of instruction, the server can be controlled to perform corresponding operations based on the instruction through the corresponding third function. For example, when it is determined that the power control instruction is a power-on instruction, the third service of the controllable BMC system issues a power-on instruction through the IPMI (Intelligent Platform Management Interface) protocol, thereby directly implementing the power-on operation of the server from the server baseboard level.
[0087] In some embodiments, in some cases, the server may need to perform a firmware update, but at this time the firmware update may be affected by an abnormality in the CPU system. In some cases, the server firmware update is issued precisely to resolve the CPU system abnormality. In this embodiment, the monitoring service can be used to directly update the server based on the BMC system.
[0088] Based on this, after step 103 “calling the second function to send the structured data to the external monitoring system” is executed, the method further includes:
[0089] When a system update instruction is detected, a fourth function is called to perform an update operation on the server, and the fourth function is a function built into the server baseboard controller system for updating the firmware of the server.
[0090] When a system update instruction is detected, it means that the server of the current server node needs to update the firmware. Then the fourth function can be called to implement the update process. Specifically, the fourth function can be a built-in underlying operation and maintenance service of the BMC system. Based on this service, the firmware update operation can be implemented. Of course, the update data packet required in the update process can be obtained by using the transmission channel to a specific area based on the update instruction. Of course, in some cases, the user can also include the update data packet when issuing a system update instruction. After the monitoring service detects the system update instruction, the update data packet can be parsed from the instruction. Here, the method for obtaining the update data packet is not limited, and the user can select it based on actual needs.
[0091] Furthermore, as a response to the above Figure 1 In order to realize the method shown in the figure, another embodiment of the present application also provides a monitoring device for a server node. This device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. In order to realize a monitoring method for a server node, the device is specifically as follows Figure 2 As shown, it is applied to a monitoring service, the monitoring service is embedded in a server baseboard management controller system, the monitoring service is provided with a dedicated interface for docking various underlying functions in the server baseboard management controller system, and the dedicated interface is used to call the underlying functions of the server baseboard management controller system; the device includes:
[0092] The collection unit 21 can be used to call the first function to collect raw data from the server; the first function is a function built into the server baseboard controller system that can be used to collect data in the server;
[0093] The processing unit 22 may be used to perform structured processing on the raw data collected by the collecting unit 21 to obtain structured data conforming to a target format, wherein the target format matches an external monitoring system for monitoring the status of a server node;
[0094] The transmission unit 23 can be used to call the second function to send the structured data obtained by the processing unit 22 to the external monitoring system, so that the external monitoring system can obtain the operating status of the server node corresponding to the server based on the structured data; the second function is a function built into the server baseboard controller system that can be used to transmit data externally.
[0095] In some embodiments, Figure 2 As shown, the original data includes hardware data; the acquisition unit 21 can be specifically used to call the sensor acquisition service of the first function to collect real-time hardware data for each hardware, and determine the real-time hardware data as the hardware data; wherein, the real-time hardware data can be used to characterize the real-time operating status of the hardware.
[0096] In some embodiments, Figure 2 As shown, the collection unit 21 can also be specifically used to call the log collection service of the first function to obtain the historical hardware data of each hardware in the hardware log of the server, and determine the historical hardware data as the hardware data; wherein, the historical hardware data can be used to characterize the historical operating status of the hardware; the hardware log is stored in the built-in memory of the server baseboard management controller system.
[0097] In some embodiments, Figure 2 As shown, the processing unit 22 can be used to perform data formatting processing on the data content of the original data to obtain first data; wherein the data formatting processing can be used to process the hardware data of different hardware into data with the same standardized measurement unit; and, perform data encapsulation processing on the first data to obtain encapsulated data, and the data encapsulation processing can be used to process the data into a data format that is convenient for the external monitoring system to recognize; and, set a transmission protocol of a corresponding data format for each of the encapsulated data to obtain the structured data.
[0098] In some embodiments, Figure 2 As shown, the device also includes
[0099] The sending unit 24 may be used to send a data monitoring request to the CPU system through a preset interface, so that the CPU system feeds back the internal monitoring information of the CPU system based on the data monitoring request; wherein the preset interface is a communication interface between the server baseboard management controller system and the CPU system;
[0100] The receiving unit 25 can be used to receive feedback information fed back by the CPU system and add the feedback information to the original data obtained by the acquisition unit 21; wherein the feedback information includes at least one of the CPU system's performance information, hardware monitoring information, system log information, resource occupancy information, operating system information, service and application status information, and energy consumption information.
[0101] In some embodiments, Figure 2 As shown, the device also includes:
[0102] The power control unit 26 can be used to call a third function to perform a target operation on the server when a power control instruction is detected. The target operation includes power on and off operations of the server. The third function is a function built into the server baseboard controller system for managing the power supply of the server.
[0103] In some embodiments, Figure 2 As shown, the device also includes:
[0104] The updating unit 27 may be configured to call a fourth function to perform an updating operation on the server when a system updating instruction is detected. The fourth function is a function built into the server baseboard controller system for updating the firmware of the server.
[0105] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application further provides a storage medium, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned server node monitoring method.
[0106] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application also provides a monitoring device for a server node, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the above-mentioned server node monitoring method is executed.
[0107] The embodiment of the present application provides a monitoring method and device for a server node, which is applied to a monitoring service. The monitoring service is embedded in a server baseboard management controller system. The monitoring service is provided with a dedicated interface for docking with various underlying functions in the server baseboard management controller system, and the dedicated interface is used to call the underlying functions of the server baseboard management controller system. In the embodiment of the present application, the first function is first called to collect raw data from the server; the first function is a function built into the server baseboard controller system for collecting data in the server; then, the raw data is structured to obtain structured data that conforms to a target format, and the target format matches an external monitoring system that monitors the status of server nodes; finally, the second function is called to send the structured data to the external monitoring system, so that the external monitoring system can obtain the operating status of the server node corresponding to the server based on the structured data; the second function is a function built into the server baseboard controller system for transmitting data to the outside, thereby realizing a monitoring device for server nodes. Compared with the prior art, the method in the present application is applied to the monitoring service, and the monitoring service is embedded in the server baseboard management controller system. Since the server baseboard management controller system itself is an independent system outside the CPU system, its operation process is not interfered by the operation of the CPU system. This ensures that when the CPU system is abnormal, it can also collect raw data based on the first function built into the server baseboard management controller system, and process it and send it to the external monitoring system using the second function, so as to achieve the effect of being able to monitor the operation status of the server node even when it is separated from the CPU system. At the same time, since the data to the external monitoring system is not the original data itself, but structured data adapted to the external system, it ensures that the subsequent external monitoring server no longer needs to process the format of the data after obtaining the data, eliminating the subsequent identification process, and can improve the monitoring effect of the server node as a whole. In addition, based on the method of the present application, the execution process is based on the server baseboard controller system without the intervention of the CPU system, which can avoid the load pressure on the CPU system during the monitoring of the server node.
[0108] The monitoring device of the server node includes a processor and a memory. The above-mentioned acquisition unit, processing unit, and transmission unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0109] The processor contains a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and a server node monitoring method is implemented by adjusting kernel parameters to ensure that when there is an abnormality in the CPU system, the operating status of the server node corresponding to the CPU system can also be monitored to ensure that the monitoring function of the server node can be successfully executed.
[0110] An embodiment of the present application provides a testing device, which includes a storage medium; and one or more processors, wherein the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the monitoring method of the server node described in any one of the above items is executed.
[0111] An embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned server node monitoring method.
[0112] The storage medium may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.
[0113] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: calling a first function to collect raw data from a server; the first function is a function built into the server baseboard controller system for collecting data in the server; structuring the raw data to obtain structured data that conforms to a target format, and the target format matches an external monitoring system that monitors the status of server nodes; calling a second function to send the structured data to the external monitoring system, so that the external monitoring system obtains the operating status of the server node corresponding to the server based on the structured data; the second function is a function built into the server baseboard controller system for transmitting data to the outside.
[0114] Further, the original data includes hardware data; and the calling of the first function to collect the original data from the server includes:
[0115] The sensor collection service of the first function is called to collect real-time hardware data for each hardware, and the real-time hardware data is determined as the hardware data; wherein the real-time hardware data is used to characterize the real-time running state of the hardware.
[0116] Furthermore, the calling of the first function to collect raw data from the server also includes:
[0117] The log collection service of the first function is called to obtain the historical hardware data of each hardware in the hardware log of the server, and the historical hardware data is determined as the hardware data; wherein the historical hardware data is used to characterize the historical operating status of the hardware; the hardware log is stored in the built-in memory of the server baseboard management controller system.
[0118] Furthermore, the structuring of the original data to obtain structured data conforming to the target format includes:
[0119] Performing data formatting processing on the data content of the original data to obtain first data; wherein the data formatting processing is used to process the hardware data of different hardware into data with the same standardized measurement unit;
[0120] Performing data encapsulation processing on the first data to obtain encapsulated data, wherein the data encapsulation processing is used to process the data into a data format that is easy to be recognized by the external monitoring system;
[0121] A transmission protocol of a corresponding data format is set for each of the encapsulated data to obtain the structured data.
[0122] Furthermore, before the original data is structured to obtain structured data conforming to the target format, the method further includes:
[0123] Sending a data monitoring request to the CPU system through a preset interface so that the CPU system feeds back internal monitoring information of the CPU system based on the data monitoring request; wherein the preset interface is a communication interface between the server baseboard management controller system and the CPU system;
[0124] Receive feedback information fed back by the CPU system and add the feedback information to the original data; wherein the feedback information includes at least one of CPU system performance information, hardware monitoring information, system log information, resource occupancy information, operating system information, service and application status information, and energy consumption information.
[0125] Furthermore, after calling the second function to send the structured data to the external monitoring system, the method further includes:
[0126] When a power control instruction is detected, a third function is called to perform a target operation on the server, wherein the target operation includes power on and power off operations of the server; the third function is a function built into the server baseboard controller system for managing the power supply of the server.
[0127] Furthermore, after calling the second function to send the structured data to the external monitoring system, the method further includes:
[0128] When a system update instruction is detected, a fourth function is called to perform an update operation on the server, and the fourth function is a function built into the server baseboard controller system for updating the firmware of the server.
[0129] The present application also provides a computer program product, which can execute corresponding functions, including: calling a first function to collect raw data from a server; the first function is a function built into the server baseboard controller system for collecting data in the server; structuring the raw data to obtain structured data that conforms to a target format, and the target format matches an external monitoring system that monitors the status of server nodes; calling a second function to send the structured data to the external monitoring system, so that the external monitoring system obtains the operating status of the server node corresponding to the server based on the structured data; the second function is a function built into the server baseboard controller system for transmitting data to the outside.
[0130] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0134] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0135] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0136] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0137] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0138] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0139] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for monitoring a server node, characterized in that: Applied to a monitoring service, the monitoring service is embedded in a server baseboard management controller system, the monitoring service is provided with a dedicated interface for docking various underlying functions in the server baseboard management controller system, the dedicated interface is used to call the underlying functions of the server baseboard management controller system; the method comprises: Calling a first function to collect raw data from a server; the first function is a function built into the server baseboard controller system for collecting data in the server; Structuring the raw data to obtain structured data that conforms to a target format, wherein the target format matches an external monitoring system that monitors the status of a server node; The second function is called to send the structured data to the external monitoring system so that the external monitoring system can obtain the operating status of the server node corresponding to the server based on the structured data; the second function is a function built into the server baseboard controller system for transmitting data outward.
2. The method according to claim 1, characterized in that: The original data includes hardware data; the calling of the first function to collect the original data from the server includes: The sensor collection service of the first function is called to collect real-time hardware data for each hardware, and the real-time hardware data is determined as the hardware data; wherein the real-time hardware data is used to characterize the real-time running state of the hardware.
3. The method according to claim 2, characterized in that The calling of the first function to collect raw data from the server also includes: The log collection service of the first function is called to obtain the historical hardware data of each hardware in the hardware log of the server, and the historical hardware data is determined as the hardware data; wherein the historical hardware data is used to characterize the historical operating status of the hardware; the hardware log is stored in the built-in memory of the server baseboard management controller system.
4. The method according to claim 1, characterized in that The step of structuring the original data to obtain structured data conforming to a target format includes: Performing data formatting processing on the data content of the original data to obtain first data; wherein the data formatting processing is used to process the hardware data of different hardware into data with the same standardized measurement unit; Performing data encapsulation processing on the first data to obtain encapsulated data, wherein the data encapsulation processing is used to process the data into a data format that is easy to be recognized by the external monitoring system; A transmission protocol of a corresponding data format is set for each of the encapsulated data to obtain the structured data.
5. The method according to claim 1, characterized in that Before the original data is structured to obtain structured data conforming to the target format, the method further includes: Sending a data monitoring request to the CPU system through a preset interface so that the CPU system feeds back internal monitoring information of the CPU system based on the data monitoring request; wherein the preset interface is a communication interface between the server baseboard management controller system and the CPU system; Receive feedback information fed back by the CPU system and add the feedback information to the original data; wherein the feedback information includes at least one of CPU system performance information, hardware monitoring information, system log information, resource occupancy information, operating system information, service and application status information, and energy consumption information.
6. The method according to any one of claims 1 to 5, characterized in that After calling the second function to send the structured data to the external monitoring system, the method further includes: When a power control instruction is detected, a third function is called to perform a target operation on the server, wherein the target operation includes power on and power off operations of the server; the third function is a function built into the server baseboard controller system for managing the power supply of the server.
7. The method according to any one of claims 1 to 5, characterized in that After calling the second function to send the structured data to the external monitoring system, the method further includes: When a system update instruction is detected, a fourth function is called to perform an update operation on the server, and the fourth function is a function built into the server baseboard controller system for updating the firmware of the server.
8. A monitoring device for a server node, characterized in that: Applied to monitoring service, the monitoring service is embedded in the server baseboard management controller system, the monitoring service is provided with a dedicated interface for docking various underlying functions in the server baseboard management controller system, the dedicated interface is used to call the underlying functions of the server baseboard management controller system; the device comprises: A collection unit, used to call a first function to collect raw data from a server; the first function is a function built into the server baseboard controller system for collecting data in the server; A processing unit, configured to perform structured processing on the raw data to obtain structured data conforming to a target format, wherein the target format matches an external monitoring system for monitoring the status of a server node; A transmission unit is used to call a second function to send the structured data to the external monitoring system, so that the external monitoring system can obtain the operating status of the server node corresponding to the server based on the structured data; the second function is a function built into the server baseboard controller system for transmitting data outward.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the server node monitoring method described in any one of claims 1 to 7.
10. A testing device, characterized in that: The device includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the server node monitoring method described in any one of claims 1-7 is executed.
Citation Information
Cited By
Server state monitoring method and electronic equipment
CN121050971A