Micro server monitoring system, method, device and electronic equipment
By connecting the BMC to the programmable logic device in the microserver system, the status information of the microserver module is obtained, which solves the cost and complexity problems caused by adding BMC to each microserver module, and realizes efficient monitoring and control of the microserver system. Operation and maintenance.
Patent Information
- Application Number
- CN202110462198.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-04-27
AI Technical Summary
In a microserver system, adding a BMC to each microserver module will increase costs and waste resources, and increase the complexity of monitoring and operation and maintenance.
By connecting the programmable logic devices in the BMC and the microserver to each other, and connecting the expansion interface of the programmable logic device to the signal end of the microserver module, the status information of each microserver module is obtained and stored, so that the BMC can obtain and store the status information from the programmable logic device. Obtain the status information of any microserver module in the logic device.
It achieves precise monitoring of multiple microserver modules through one BMC, reduces operation and maintenance costs and resource waste, and improves monitoring accuracy and flexibility.
Smart Images

Figure CN113220524B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, in particular to the field of artificial intelligence, cloud computing and big data technology, and proposes a monitoring system, method, device and electronic equipment for a microserver. Background Art
[0002] Microserver refers to a new type of server system designed based on a low-energy architecture and with higher density. As green information technology and data centers put forward higher requirements for server performance such as low energy consumption and high density, and cloud computing is gradually implemented, microservers will occupy a place in the market.
[0003] In the related art, for traditional standard servers, the baseboard management controller (BMC) on the server motherboard can be used to monitor, manage and automate the operation and maintenance of the server. However, in the actual business environment, each microserver may include up to hundreds of microserver modules. If a BMC is added to each microserver module, it will lead to increased costs and waste of resources, and increase the complexity of monitoring and operation and maintenance. Summary of the invention
[0004] The present application provides a monitoring system, method, device, electronic device, storage medium and computer program product for a micro server.
[0005] According to one aspect of the present application, a monitoring system for a microserver is provided, comprising: a BMC and a programmable logic device connected to each other; wherein each expansion interface of the programmable logic device is respectively connected to each signal end of each microserver module to be monitored, so as to obtain status information of each microserver module through each signal end, and store the status information of each microserver module into a designated storage address; the BMC is used to obtain the status information of each microserver module from the designated storage address in the programmable logic device.
[0006] According to another aspect of the present application, a method for monitoring a micro server is provided, comprising: acquiring current status information of each micro server module to be monitored from a specified storage address in a programmable logic device.
[0007] According to another aspect of the present application, a monitoring device for a microserver is provided, comprising: a first acquisition module, configured to acquire current status information of each microserver module to be monitored from a specified storage address in a programmable logic device.
[0008] According to another aspect of the present application, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the micro-server monitoring method as described above.
[0009] According to another aspect of the present application, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the micro-server monitoring method as described above.
[0010] According to another aspect of the present application, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of the micro-server monitoring method as described above.
[0011] According to the technical solution of the present application, the problem that each microserver can include up to hundreds of microserver modules in the related art, and if a BMC is added to each microserver module, it will lead to increased costs and waste of resources, and increase the complexity of monitoring and operation and maintenance is solved. By connecting the BMC and the programmable logic device in the microserver to each other, and connecting each extension interface of the programmable logic device to each signal end of each microserver module to be monitored in the microserver, the status information of each microserver module is obtained through each signal end, and the status information of each microserver module is stored in a specified storage address, and then the BMC obtains the status information of each microserver module from the specified storage address in the programmable logic device. Thus, the programmable logic device is connected to each microserver module in the microserver, so as to obtain and store the status information of each microserver module through the programmable logic device, so that the BMC can obtain the status information of any microserver module from the programmable logic device at any time, thereby realizing the accurate monitoring of the operating status of any microserver module in the microserver through a BMC, which not only reduces the operation and maintenance cost and resource waste, but also improves the accuracy of monitoring the operating status of the microserver.
[0012] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0014] Figure 1A schematic diagram of the structure of a micro-server monitoring system provided in an embodiment of the present application;
[0015] Figure 2 A schematic diagram of the structure of another micro-server monitoring system provided in an embodiment of the present application;
[0016] Figure 3 A schematic diagram of the structure of another micro-server monitoring system provided in an embodiment of the present application;
[0017] Figure 4 A schematic diagram of the structure of another micro-server monitoring system provided in an embodiment of the present application;
[0018] Figure 5 A flowchart of a micro-server monitoring method provided in an embodiment of the present application;
[0019] Figure 6 A flowchart of another micro-server monitoring method provided in an embodiment of the present application;
[0020] Figure 7 A schematic diagram of the structure of a monitoring device for a micro server provided in an embodiment of the present application;
[0021] Figure 8 The present invention is a block diagram of an electronic device used to implement the monitoring method of a micro server according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0023] The following is a brief description of the technical field involved in the solution of this application:
[0024] Artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.
[0025] Cloud computing is a type of distributed computing. It refers to breaking down huge data computing programs into countless small programs through the network "cloud", and then processing and analyzing these small programs through a system composed of multiple servers to obtain results and return them to users. In the early days of cloud computing, simply put, it was simple distributed computing to solve task distribution and merge computing results. Therefore, cloud computing is also called grid computing. Through this technology, tens of thousands of data can be processed in a very short time (a few seconds), thereby achieving powerful network services. At this stage, the cloud service is not just a kind of distributed computing, but the result of the hybrid evolution and leap of computer technologies such as distributed computing, utility computing, load balancing, parallel computing, network storage, hot backup redundancy and virtualization.
[0026] Big data refers to a collection of data that cannot be captured, managed, and processed by conventional software tools within a certain time frame. It is a massive, high-growth, and diversified information asset that requires new processing models to have stronger decision-making power, insight discovery, and process optimization capabilities. Big data has 5V characteristics: Volume, Velocity, Variety, Value, and Veracity.
[0027] In the embodiment of the present application, in view of the related technology, each microserver may include up to hundreds of microserver modules. If a BMC is added to each microserver module, it will lead to increased costs and waste of resources, and increase the complexity of monitoring and operation and maintenance. A monitoring system for a microserver is proposed.
[0028] The following describes in detail the monitoring system, method, device, electronic device, storage medium and computer program product of the microserver provided by the present application with reference to the accompanying drawings.
[0029] Figure 1 A schematic diagram of the structure of a micro-server monitoring system provided in an embodiment of the present application.
[0030] like Figure 1 As shown, the monitoring system 10 of the micro server includes: a BMC 110 and a programmable logic device 120 connected to each other;
[0031] Among them, each expansion interface of the programmable logic device 120 is respectively connected to each signal end of each micro-server module 130 to be monitored, and is used to obtain the status information of each micro-server module 130 through each signal end, and store the status information of each micro-server module 130 in a designated storage address;
[0032] The BMC 110 is used to obtain status information of each micro-server module 130 from a specified storage address in the programmable logic device 120 .
[0033] It should be noted that the microserver monitoring system 10 of the embodiment of the present application can be used in the scenario of monitoring and operating the operating status of a microserver including multiple microserver modules, so as to achieve accurate monitoring of multiple microserver modules through one BMC.
[0034] As a possible implementation, the BMC 110 and the programmable logic device 120 can be arranged on the mainboard of the microserver, and all the microserver modules in the microserver can be connected to the programmable logic device as the microserver modules 130 to be monitored; or according to actual needs, some of the microserver modules that need to be monitored in the microserver can be used as the microserver modules 130 to be monitored. Figure 1 As shown, the microserver includes 2n microserver modules, namely microserver modules 0 to 2n-1, so that these 2n microserver modules can be used as microserver modules 130 to be monitored and are respectively connected to the expansion interface of the programmable logic device 120, so that the programmable logic device 120 can obtain the status information of each microserver module 130 at any time.
[0035] Optional, such as Figure 2 As shown, the expansion interface of the programmable logic device 120 can be connected to each signal end of each micro-server module 130 through the detection circuit 140, so as to detect the potential information of each signal end of the micro-server module 130 through the detection circuit 140, and then the programmable logic device 120 can determine the status information of the micro-server module according to the potential information of each signal end of the micro-server module 130.
[0036] In the embodiment of the present application, the status information of the micro-server module 130 may include at least one of the in-place status information, the power status information, the operating system status information, and the temperature information. For example, when the status information of the micro-server module 130 includes the in-place status information, the power status information, the operating system status information, and the temperature information, the signal end of each micro-server module 130 may include four signal pins, and each signal pin is used to indicate the signal in-place status information, the power status information, the operating system status information, and the temperature information of the micro-server module 130, respectively.
[0037] As a possible implementation, each micro-server module 130 may also include a microcontroller, which can adjust the potential information of the corresponding signal pin when any of the in-place status, power status, operating system status, and temperature of the micro-server module 130 in which it is located changes.
[0038] Optionally, the microcontroller in the microserver module 130 can determine the operating system state of the microserver module 130 according to the acquired heartbeat signal, and when the acquired heartbeat signal is normal, determine that the operating system state of the microserver module 130 is normal; when the acquired heartbeat signal is abnormal or no heartbeat signal is acquired, determine that the operating system state of the microserver module 130 is abnormal. In addition, a temperature sensor can be set near each microserver module 130 to detect the temperature of each microserver module 130, so that the microcontroller can obtain the temperature value detected by the corresponding temperature sensor as the temperature information of the microserver module 130 where it is located.
[0039] In the embodiment of the present application, the programmable logic device 120 can sequentially conduct the signal end of the expansion interface and each micro-server module 130 at a preset frequency to sequentially obtain the status information of each micro-server module 130. In addition, the programmable logic device 120 can include a register, and after obtaining the status information of each micro-server module 130, the programmable logic device 120 can store the status information of each micro-server module 130 in the register according to a preset designated storage address.
[0040] It should be noted that, in actual use, the type of the programmable logic device 120 and the preset frequency for obtaining the status information can be determined according to actual needs and specific application scenarios, and the embodiments of the present application do not limit this. For example, the programmable logic device can be a complex programmable logic device (CPLD), and the preset frequency can be 1 second, 5 seconds, 10 seconds, etc.
[0041] In the embodiments of the present application, Figure 2 As shown, the BMC 110 can be connected to the programmable logic device 120 via a system management bus (SMbus) 111, and can obtain status information of each micro-server module 130 from the register of the programmable logic device 120 according to a specified storage address at a preset frequency or when a status query instruction is obtained.
[0042] Furthermore, the status information of different micro-server modules 130 can be stored in different designated storage addresses, so that the BMC 110 can obtain the status information of each micro-server module. That is, in a possible implementation of the embodiment of the present application, the above-mentioned BMC 110 can also be used for:
[0043] Determine the first micro-server module identifier to be currently monitored;
[0044] According to the preset mapping relationship between the micro-server module identifier and the storage address, the current state information of the first micro-server module is read from the first designated storage address corresponding to the first micro-server module identifier in the programmable logic device 120.
[0045] The first micro-server module refers to a micro-server module whose corresponding status information currently needs to be obtained.
[0046] In an embodiment of the present application, when the BMC 110 obtains the status information of the microserver module at a preset frequency, the first microserver module may be all the microserver modules 130 to be monitored, and the identifiers of all the microserver modules 130 are determined as the first microserver module identifier; when the BMC obtains the status information of the microserver module according to the obtained status query instruction, the BMC may parse the obtained status query instruction to determine the first microserver module identifier contained in the status query instruction.
[0047] As a possible implementation, a mapping relationship between a preset micro-server module identifier and a storage address may be preset, so that after obtaining the status information of each micro-server module 130, the programmable logic device 120 may store the status information of each micro-server module 130 in a corresponding storage address according to the mapping relationship between the preset micro-server module identifier and the storage address. Furthermore, the BMC 110 may determine the first designated storage address of the first micro-server module identifier according to the first micro-server module identifier and the mapping relationship between the preset micro-server module identifier and the storage address, and obtain the status information of the first micro-server module from the first designated storage address.
[0048] Furthermore, when the micro-server module corresponds to multiple types of status information, each type of status information corresponding to each micro-server module 130 can also be stored in different storage addresses to further improve the efficiency and convenience of status information storage and reading. That is, in a possible implementation of the embodiment of the present application, the above-mentioned BMC110 can also be used for:
[0049] Determine a second micro-server module identifier to be currently monitored and a first type of status information to be monitored;
[0050] According to the preset mapping relationship between the micro-server module identifier, the status information type and the storage address, the first type status information of the current second server is read from the second designated storage address corresponding to the second micro-server module identifier and the first type in the programmable logic device.
[0051] The second micro-server module refers to the micro-server module whose corresponding state information needs to be obtained currently. The first type refers to the type corresponding to the state information that needs to be obtained currently.
[0052] In an embodiment of the present application, when the BMC 110 obtains the status information of the microserver module at a preset frequency, the second microserver module may be all the microserver modules 130 to be monitored, and the first type may include the types of all status information corresponding to the microserver modules, so that the identifiers of all the microserver modules 130 can be determined as the second microserver module identifiers, and the types of status information corresponding to the microserver modules 130 can all be determined as the first type; when the BMC obtains the status information of the microserver module according to the obtained status query instruction, the BMC can parse the obtained status query instruction to determine the second microserver module identifier and the first type of status information contained in the status query instruction.
[0053] As a possible implementation, a mapping relationship between a preset micro-server module identifier, a state information type, and a storage address can be pre-set, so that after obtaining the state information of each micro-server module 130, the programmable logic device 120 can store each type of state information of each micro-server module 130 to a corresponding storage address according to the mapping relationship between the preset micro-server module identifier, the state information type, and the storage address. Furthermore, the BMC 110 can determine the second micro-server module identifier and the second designated storage address corresponding to the first type according to the mapping relationship between the first micro-server module identifier and the first type of state information, and the preset micro-server module identifier and the storage address, and obtain the first type of state information of the second micro-server module from the second designated storage address.
[0054] According to the technical solution of the embodiment of the present application, by interconnecting the BMC and the programmable logic device in the microserver, and connecting each expansion interface of the programmable logic device to each signal end of each microserver module to be monitored in the microserver, the status information of each microserver module is obtained through each signal end, and the status information of each microserver module is stored in a specified storage address, and then the BMC obtains the status information of each microserver module from the specified storage address in the programmable logic device. Thus, the programmable logic device is connected to each microserver module in the microserver, so as to obtain and store the status information of each microserver module through the programmable logic device, so that the BMC can obtain the status information of any microserver module from the programmable logic device at any time, thereby realizing the accurate monitoring of the operating status of any microserver module in the microserver through a BMC, which not only reduces the operation and maintenance costs and resource waste, but also improves the accuracy of monitoring the operating status of the microserver.
[0055] Combine the following Figure 3 , the monitoring system of the microserver provided in the embodiment of the present application is further explained.
[0056] Figure 3 A schematic diagram of the structure of another micro-server monitoring system provided in an embodiment of the present application.
[0057] like Figure 3 As shown, in Figure 1 and Figure 2 On the basis of, the monitoring system 10 of the micro server may further include: a multi-way switch;
[0058] The Universal Asynchronous Receiver / Transmitter (UART) interface 112 of the BMC 110 is connected to the first connection end of the multi-way switch 150, and each second connection end of the multi-way switch 150 is respectively connected to the UART interface 131 of each micro-server module 130;
[0059] The common terminal of the multi-way switch 150 is connected to the control output terminal of the programmable logic device 120;
[0060] The programmable logic device 120 may also be used to control the common end of the multi-way switch 150 to be connected to any second connection end according to a control instruction obtained from the BMC 110 .
[0061] In the embodiment of the present application, since a large number of micro-server modules 130 may be included in the micro-server, and the number of pins of the BMC 110 and the programmable logic device 120 is limited, there is usually a limit on the number of peripherals, and directly connecting each micro-server module 130 to the BMC 110 and the programmable logic device 120 will also increase the complexity of the circuit. Therefore, in the embodiment of the present application, the BMC 110 and the programmable logic device 120 can be connected to each micro-server module 130 through the serial port switch 150, so that the number of interfaces of the BMC 110 is adapted to the number of micro-server modules 130.
[0062] As a possible implementation, direct data transmission between the BMC 110 and each micro-server module 130 can be achieved through the UART interface 112 of the BMC 110 and the UART interface 131 of each micro-server module 130. Therefore, the UART interface 112 of the BMC 110 can be connected to the first connection end of the multi-way switch 150, and each second connection end of the multi-way switch 150 can be connected to the UART interface 131 of each micro-server module 130.
[0063] Accordingly, the common end of the multi-way switch 150 may also be connected to the control output end of the programmable logic device 120, so as to control the multi-way switch 150 through the programmable logic device 120, thereby realizing control, management, monitoring, etc. of a specific micro-server module 130. For example, the programmable logic device 120 may determine the micro-server module identifier contained in the control instruction according to the control instruction obtained from the BMC, and determine the second connection end corresponding to the micro-server module according to the micro-server module identifier, thereby controlling the common end of the multi-way switch 150 to be connected to the second connection end, thereby realizing control of the micro-server module 130 corresponding to the second connection end.
[0064] Furthermore, the monitoring system 10 of the micro-server module of the embodiment of the present application may also include a monitoring terminal (not shown in the figure). The monitoring terminal can restart the micro-server module 130 when it is determined that the operating system of the micro-server module 130 is down, or when it is necessary to obtain the startup information of the micro-server module 130, so as to perform operation and maintenance management of the micro-server module and ensure the reliability of the operation of each micro-server module.
[0065] Therefore, in a possible implementation of the embodiment of the present application, the control instruction may be a micro-server module startup instruction, and the BMC 110 may also be used to receive the micro-server module startup instruction, wherein the startup instruction includes a third micro-server module identifier, and send the startup instruction to the programmable logic device;
[0066] The programmable logic device 120 may also be used to control the common end of the multi-way switch 150 to be connected to the second connection end connected to the third micro-server module;
[0067] The BMC 110 is further configured to obtain startup information of the third micro-server module through the UART interface 112 .
[0068] Among them, the third micro server module refers to the micro server module that currently needs to be started.
[0069] In the embodiment of the present application, when the BMC determines that the status information of the micro-server module 130 is abnormal, the status information of the micro-server module 130 can be fed back to the monitoring terminal, so that the operation and maintenance personnel can timely understand the operation status of the micro-server module 130 through the monitoring terminal, and can control each micro-server module 130 through the monitoring terminal. Therefore, the BMC 110 can obtain the micro-server module startup instruction sent by the monitoring terminal and send it to the programmable logic device 120, so that the programmable logic device 120 can determine the second connection end of the multi-way switch 150 connected to the UART interface of the third micro-server module according to the third micro-server module identifier contained in the micro-server module startup instruction, and control the multi-way switch 150 to be connected to the second connection end connected to the third micro-server module, so that the programmable logic device 120 can start the third micro-server module according to the startup instruction, and during the startup process of the third micro-server module, the BMC 110 can also obtain the startup information of the third micro-server module through the UART interface connected to the third micro-server module.
[0070] Furthermore, management instructions can be customized according to actual application requirements to achieve automated operation and maintenance of micro servers, further improving the flexibility of micro server monitoring. That is, in a possible implementation of the embodiment of the present application, the above BMC can also be used for:
[0071] Receive micro-server module status information query instruction;
[0072] Parsing the query instruction according to a preset query instruction rule to determine the fourth micro-server module identifier to be queried and the second type of status information to be queried;
[0073] Returns the second type of status information of the current fourth micro-server module.
[0074] In an embodiment of the present application, the operation and maintenance personnel can send a micro-server module status information query instruction to BMC 110 through the monitoring terminal according to actual needs to query the specific status information of a specific micro-server module. That is, the operation and maintenance personnel can specify the fourth micro-server module identifier to be queried and the second type of status information to be queried according to the preset query instruction rules through the monitoring terminal to generate a micro-server module status information query instruction and send it to BMC110. After BMC 110 receives the micro-server module status information query instruction, it can parse the query instruction according to the preset query instruction rules to determine the fourth micro-server module identifier and the second type of status information to be queried. Furthermore, BMC 110 can determine the third designated storage address corresponding to the fourth micro-server module identifier and the second type according to the mapping relationship between the preset micro-server module identifier, the status information type and the storage address, and obtain the second type of status information of the fourth micro-server module from the third designated storage address of the programmable logic device 120, and return it to the monitoring terminal.
[0075] For example, the preset query instruction rule may be a rule as shown in Table 1, wherein the micro-server module status query instruction may include 2 bytes, the first byte is used to indicate the second type of status information to be queried, wherein "0" indicates obtaining the power status, "1" indicates obtaining the operating system status, and "2" indicates obtaining the in-place status; the second byte is used to indicate the fourth micro-server module identifier to be queried. After obtaining the status information, BMC 110 may generate return data according to the rules shown in Table 1 and return the value monitoring terminal, wherein the return data packet includes 2 bytes, the first byte is used to indicate the completion code, which is used to indicate whether the query instruction is executed successfully; the second byte is used to indicate the second type of status information of the fourth micro-server module obtained. For example, if the micro-server module status information query instruction is "ipmitool raw0x30 0x1 0x2 0x9", it can be determined that the fourth micro-server module is identified as "0x9" and the second type of status information is "0x2", that is, the in-place status information of the micro-server module identified as 9 is obtained; if 0 is returned, it can be determined that the in-place status of the fourth micro-server module is not in place (Not Present); if 1 is returned, it can be determined that the in-place status of the fourth micro-server module is in place (Present).
[0076] Table 1
[0077]
[0078] Furthermore, the temperature of the micro-server module 130 will also affect the normal operation of the micro-server module 130, so the temperature of the micro-server module can be adjusted by the temperature control system to keep the micro-server module in a suitable operating temperature range, thereby further improving the operating stability of the micro-server. Figure 3 On the basis of Figure 4 As shown, the monitoring system 10 of the micro server may further include a temperature control system 160, and the BMC may also be used for:
[0079] Determine the current operation mode of the temperature control system 160 according to the current temperature information of each micro-server module 130;
[0080] According to the current operation mode, the operation state of the temperature control system 160 is adjusted.
[0081] In an embodiment of the present application, after obtaining the temperature information of each micro-server module 130 each time, the BMC 110 can determine the maximum temperature corresponding to each micro-server module 130, and then determine the current operating mode of the temperature control system 160 based on the maximum temperature, and adjust the operating state of the temperature control system according to the current operating mode to keep the temperature of each micro-server module 130 within an appropriate range.
[0082] Optionally, in a possible implementation of the embodiment of the present application, the correspondence between the temperature and the operating mode of the temperature control system can be pre-set, so that the BMC 110 can determine the operating mode corresponding to the highest temperature as the current operating mode of the temperature control system 160 based on the highest temperature corresponding to each micro-server module 130 and the correspondence between the temperature and the operating mode of the temperature control system.
[0083] Optionally, in another possible implementation of the embodiment of the present application, the BMC 110 may also use a PID algorithm to determine the operating state of the temperature control system 160 according to the maximum temperature.
[0084] As a possible implementation method, when the BMC 110 is connected to the UART interface 131 of each micro-server module 130 through the UART interface 112 and the multi-way switch 150, and the BMC 110 includes multiple UART interfaces 112, the micro-server modules 130 can be grouped according to the number of UART interfaces 112 and the number of micro-server modules 130, and each group of micro-server modules 130 is connected to one of the UART interfaces 112 of the BMC 110 through a multi-way switch 150.
[0085] For example, if Figure 4As shown, the BMC 110 includes two UART interfaces (UART0 and UART1), and the number of micro-server modules 130 is 2n, then the micro-server modules 130 can be divided into two groups, each group including n micro-server modules 130; and then two multiplexers 150 with n interfaces can be used to connect the UART interfaces 131 of the micro-server modules 0 to n-1 to the UART0 of the BMC 110 through one multiplexer 150, and connect the UART interfaces 131 of the micro-server modules n to 2n-1 to the UART1 of the BMC 110 through another multiplexer 150.
[0086] As a possible implementation method, when the micro-server modules 130 are divided into multiple groups and respectively connected to multiple UART interfaces 112 of the BMC 110, a temperature control system 160 can be set for each group of micro-server modules 130, and the current operating mode of the corresponding temperature control system 160 can be determined according to the temperature information of each group of micro-server modules 130.
[0087] For example, if Figure 4 As shown, the micro-server modules 130 are divided into two groups, and the BMC 110 can determine the operating mode of the temperature control system 160 corresponding to the micro-server modules of this group according to the highest temperature among the micro-server modules 0 to n-1; and can determine the operating mode of the temperature control system 160 corresponding to the micro-server modules of this group according to the highest temperature among the micro-server modules n to 2n-1.
[0088] Further, when the micro-server modules 130 are divided into multiple groups and connected to different UART interfaces 112 of the BMC 110, the BMC can simultaneously obtain the status information of multiple micro-server modules 130 belonging to different groups through different threads to further improve the monitoring and operation efficiency of the micro-server. That is, in a possible implementation of the embodiment of the present application, the number of the micro-server modules 130 currently to be monitored is multiple, and the BMC 110 can also be used for:
[0089] Determine the group to which each micro-server module identifier belongs;
[0090] By using the query thread corresponding to each group, the status information of each micro-server module 130 in each current group is read in sequence from the designated storage address corresponding to each micro-server module identifier in the programmable logic device 120.
[0091] In an embodiment of the present application, when the micro-server modules 130 are divided into multiple groups and connected to multiple UART interfaces 112 of the BMC 110, each group can correspond to a thread, and multiple threads can be processed in parallel to improve the monitoring and operation efficiency of the micro-server. Therefore, when the BMC 110 reads the status information of each micro-server module 130 from the programmable logic device 120, it can first determine the group described by each micro-server module identifier according to each micro-server module identifier, and then use the query thread corresponding to each group to query the status information of the micro-server modules 130 belonging to different groups in parallel, that is, read the status information of each micro-server module 130 in each current group in sequence from the specified storage address corresponding to each micro-server module identifier in the programmable logic device 120.
[0092] It should be noted that the method of grouping the micro-server modules 130 in the embodiment of the present application and the specific method of reading the status information of each micro-server module 130 from the programmable logic device 120 can be referred to the detailed description of the above embodiment and will not be repeated here.
[0093] According to the technical solution of the embodiment of the present application, the programmable logic device and the BMC are connected to each micro-server module in the micro-server through a multi-way switch, so as to obtain and store the status information of each micro-server module through the programmable logic device, so that the BMC can not only obtain the status information of any micro-server module from the programmable logic device at any time, but also overcome the limitation on the number of peripherals that can be connected to the BMC, thereby realizing accurate monitoring of the operating status of any micro-server module in the micro-server through a BMC, which not only reduces the operation and maintenance cost and resource waste, improves the accuracy of monitoring the operating status of the micro-server, but also improves the flexibility and versatility of monitoring the operating status of the micro-server and operation and maintenance.
[0094] Figure 5 A flowchart of a micro-server monitoring method provided in an embodiment of the present application.
[0095] like Figure 5 As shown, the monitoring method of the micro server includes the following steps:
[0096] Step 501, obtaining the current status information of each micro-server module to be monitored from a specified storage address in a programmable logic device.
[0097] It should be noted that the micro-server monitoring method of the embodiment of the present application can be applied to the BMC of the micro-server monitoring system described in the above embodiment, so as to achieve accurate monitoring of multiple micro-server modules through one BMC.
[0098] As a possible implementation method, the BMC and the programmable logic device can be set on the main board of the microserver, and all the microserver modules in the microserver are connected to the programmable logic device as the microserver modules to be monitored; or according to actual needs, some of the microserver modules that need to be monitored in the microserver are used as the microserver modules to be monitored. Figure 1 As shown, the microserver includes 2n microserver modules, namely, microserver modules 0 to 2n-1, so that the 2n microserver modules can be used as microserver modules to be monitored and respectively connected to the expansion interface of the programmable logic device, so that the programmable logic device can obtain the status information of each microserver module at any time.
[0099] In an embodiment of the present application, the status information of the micro-server module may include at least one of in-place status information, power status information, operating system status information, and temperature information.
[0100] In the embodiment of the present application, the programmable logic device can sequentially conduct the signal end of the expansion interface and each micro-server module at a preset frequency to sequentially obtain the status information of each micro-server module. In addition, the programmable logic device can include a register, and after obtaining the status information of each micro-server module, the programmable logic device can store the status information of each micro-server module in the register according to a preset designated storage address.
[0101] It should be noted that in actual use, the type of programmable logic device and the preset frequency for obtaining status information can be determined according to actual needs and specific application scenarios, and the embodiments of the present application do not limit this. For example, the programmable logic device can be a CPLD, and the preset frequency can be 1 second, 5 seconds, 10 seconds, etc.
[0102] In the embodiments of the present application, Figure 2 As shown, the BMC can be connected to the programmable logic device through the SMbus, and can obtain the status information of each micro-server module from the register of the programmable logic device according to the specified storage address at a preset frequency or when a status query instruction is obtained.
[0103] Furthermore, the status information of different micro-server modules 130 may be stored in different designated storage addresses, so that the BMC 110 can obtain the status information of each micro-server module. That is, in a possible implementation of the embodiment of the present application, the above step 501 may include:
[0104] Determine the first micro-server module identifier to be currently monitored;
[0105] According to a preset mapping relationship between the micro-server module identifier and the storage address, the current state information of the first micro-server module is read from a first designated storage address corresponding to the first micro-server module identifier in the programmable logic device.
[0106] The first micro-server module refers to a micro-server module whose corresponding status information currently needs to be obtained.
[0107] In an embodiment of the present application, when the BMC obtains the status information of the microserver module at a preset frequency, the first microserver module may be all the microserver modules to be monitored, and the identifiers of all the microserver modules are determined as the first microserver module identifier; when the BMC obtains the status information of the microserver module according to the obtained status query instruction, the BMC may parse the obtained status query instruction to determine the first microserver module identifier contained in the status query instruction.
[0108] As a possible implementation, a mapping relationship between a preset micro-server module identifier and a storage address can be pre-set, so that after obtaining the status information of each micro-server module, the programmable logic device can store the status information of each micro-server module in a corresponding storage address according to the mapping relationship between the preset micro-server module identifier and the storage address. Furthermore, the BMC can determine the first designated storage address of the first micro-server module identifier according to the first micro-server module identifier and the mapping relationship between the preset micro-server module identifier and the storage address, and obtain the status information of the first micro-server module from the first designated storage address.
[0109] Furthermore, when the micro-server module corresponds to multiple types of status information, each type of status information corresponding to each micro-server module can be stored in different storage addresses to further improve the efficiency and convenience of storing and reading status information. That is, in a possible implementation of the embodiment of the present application, the above step 501 may include:
[0110] Determine a second micro-server module identifier to be currently monitored and a first type of status information to be monitored;
[0111] According to the preset mapping relationship between the micro-server module identifier, the status information type and the storage address, the first type status information of the current second server is read from the second designated storage address corresponding to the second micro-server module identifier and the first type in the programmable logic device.
[0112] The second micro-server module refers to the micro-server module whose corresponding state information needs to be obtained currently. The first type refers to the type corresponding to the state information that needs to be obtained currently.
[0113] In an embodiment of the present application, when the BMC obtains the status information of the microserver module at a preset frequency, the second microserver module may be all the microserver modules to be monitored, and the first type may include the types of all status information corresponding to the microserver modules, so that the identifiers of all microserver modules can be determined as the second microserver module identifiers, and the status information types corresponding to the microserver module 130 are all determined as the first type; when the BMC obtains the status information of the microserver module according to the obtained status query instruction, the BMC can parse the obtained status query instruction to determine the second microserver module identifier and the first type of status information contained in the status query instruction.
[0114] As a possible implementation, a mapping relationship between a preset micro-server module identifier, a state information type, and a storage address can be pre-set, so that after obtaining the state information of each micro-server module, the programmable logic device can store each type of state information of each micro-server module to a corresponding storage address according to the mapping relationship between the preset micro-server module identifier, the state information type, and the storage address. Furthermore, the BMC can determine the second micro-server module identifier and the second designated storage address corresponding to the first type according to the mapping relationship between the first micro-server module identifier and the first type of state information, and the preset micro-server module identifier and the storage address, and obtain the first type of state information of the second micro-server module from the second designated storage address.
[0115] According to the technical solution of the embodiment of the present application, the BMC and the programmable logic device in the microserver are connected to each other, and then the BMC obtains the status information of each microserver module from the specified storage address in the programmable logic device. Thus, the programmable logic device is connected to each microserver module in the microserver to obtain and store the status information of each microserver module through the programmable logic device, so that the BMC can obtain the status information of any microserver module from the programmable logic device at any time, thereby realizing accurate monitoring of the operating status of any microserver module in the microserver through a BMC, which not only reduces the operation and maintenance costs and resource waste, but also improves the accuracy of monitoring the operating status of the microserver.
[0116] Combine the following Figure 6 , the monitoring method of the microserver provided in the embodiment of the present application is further explained.
[0117] Figure 6 A flowchart of another micro-server monitoring method provided in an embodiment of the present application.
[0118] like Figure 6 As shown, the monitoring method of the micro server includes the following steps:
[0119] Step 601, obtaining the current status information of each micro-server module to be monitored from a specified storage address in a programmable logic device.
[0120] The specific implementation process and principle of the above step 601 can refer to the detailed description of the above embodiment, which will not be repeated here.
[0121] It should be noted that in the embodiment of the present application, step 601 can be performed before steps 602-604 or after steps 602-604, and the embodiment of the present application does not limit this. The step numbers in the embodiment of the present application and the arrow directions in the drawings are only schematic and cannot be regarded as limitations on the present application.
[0122] Step 602: Receive a micro-server module startup instruction, wherein the startup instruction includes a third micro-server module identifier.
[0123] Among them, the third micro server module refers to the micro server module that currently needs to be started.
[0124] In the embodiment of the present application, the operation and maintenance personnel may also include a monitoring terminal to perform operation and maintenance management on the micro-server module, so that the monitoring terminal can restart the micro-server module when determining that the operating system of the micro-server module is down, or when it is necessary to obtain the startup information of the micro-server module, so as to perform operation and maintenance management on the micro-server module and ensure the reliability of the operation of each micro-server module. Therefore, the BMC can obtain the micro-server module startup instruction sent by the monitoring terminal in real time, and parse the micro-server module startup instruction to determine the third micro-server module identifier contained in the micro-server startup instruction.
[0125] Step 603: Send a start instruction to the programmable logic device, so that the programmable logic device controls the UART interface of the third micro-server module to communicate with the UART interface of the BMC.
[0126] In the embodiment of the present application, since a large number of micro-server modules may be included in the micro-server, and the number of pins of the BMC and the programmable logic device is limited, there is usually a limit on the number of peripherals, and directly connecting each micro-server module to the BMC and the programmable logic device will also increase the complexity of the circuit. Therefore, in the embodiment of the present application, the BMC and the programmable logic device can be connected to each micro-server module through a serial port switch, so that the number of interfaces of the BMC is adapted to the number of micro-server modules.
[0127] As a possible implementation, direct data transmission between the BMC and each micro-server module can be achieved through the UART interface of the BMC and the UART interface of each micro-server module. Therefore, the UART interface of the BMC can be connected to the first connection end of the multi-way switch, and each second connection end of the multi-way switch can be connected to the UART interface of each micro-server module.
[0128] Accordingly, the common end of the multi-way switch can also be connected to the control output end of the programmable logic device, so as to control the multi-way switch through the programmable logic device, thereby realizing control, management, monitoring, etc. of a specific micro-server module. For example, the programmable logic device can determine the micro-server module identifier contained in the control instruction according to the control instruction obtained from the BMC, and determine the second connection end corresponding to the micro-server module according to the micro-server module identifier, and then control the common end of the multi-way switch to be connected to the second connection end, so as to realize control of the micro-server module corresponding to the second connection end.
[0129] In an embodiment of the present application, the BMC can obtain the micro-server module startup instruction sent by the monitoring terminal and send it to the programmable logic device, so that the programmable logic device can determine the second connection end of the multi-way switch connected to the UART interface of the third micro-server module according to the third micro-server module identifier contained in the micro-server module startup instruction, and control the multi-way switch to be connected to the second connection end connected to the third micro-server module, so that the programmable logic device can start the third micro-server module according to the startup instruction.
[0130] Step 604: Obtain startup information of the second micro-server module through the UART interface.
[0131] In the embodiment of the present application, during the startup process of the third micro-server module, the BMC can also directly obtain the startup information of the third micro-server module through the UART interface connected to the third micro-server module.
[0132] Furthermore, management instructions can be customized according to actual application requirements to achieve automated operation and maintenance of the microserver, further improving the flexibility of microserver monitoring. That is, in a possible implementation of the embodiment of the present application, the above method can also include:
[0133] Receive micro-server module status information query instruction;
[0134] Parsing the query instruction according to a preset query instruction rule to determine the fourth micro-server module identifier to be queried and the second type of status information to be queried;
[0135] Returns the second type of status information of the current fourth micro-server module.
[0136] In an embodiment of the present application, the operation and maintenance personnel can send a micro-server module status information query instruction to the BMC through the monitoring terminal according to actual needs to query the specific status information of a specific micro-server module. That is, the operation and maintenance personnel can specify the fourth micro-server module identifier to be queried and the second type of status information to be queried according to the preset query instruction rules through the monitoring terminal to generate a micro-server module status information query instruction and send it to the BMC. After the BMC receives the micro-server module status information query instruction, it can parse the query instruction according to the preset query instruction rules to determine the fourth micro-server module identifier and the second type of status information to be queried. Furthermore, the BMC can determine the third designated storage address corresponding to the fourth micro-server module identifier and the second type according to the mapping relationship between the preset micro-server module identifier, the status information type and the storage address, and obtain the second type of status information of the fourth micro-server module from the third designated storage address of the programmable logic device, and return it to the monitoring terminal.
[0137] For example, the preset query instruction rule may be a rule as shown in Table 1, wherein the micro-server module status query instruction may include 2 bytes, the first byte is used to indicate the second type of status information to be queried, wherein "0" indicates obtaining the power status, "1" indicates obtaining the operating system status, and "2" indicates obtaining the in-place status; the second byte is used to indicate the fourth micro-server module identifier to be queried. After obtaining the status information, BMC 110 may generate return data according to the rules shown in Table 1 and return the value monitoring terminal, wherein the return data packet includes 2 bytes, the first byte is used to indicate the completion code, which is used to indicate whether the query instruction is executed successfully; the second byte is used to indicate the second type of status information of the fourth micro-server module obtained. For example, if the micro-server module status information query instruction is "ipmitool raw0x30 0x1 0x2 0x9", it can be determined that the fourth micro-server module is identified as "0x9" and the second type of status information is "0x2", that is, the in-place status information of the micro-server module identified as 9 is obtained; if 0 is returned, it can be determined that the in-place status of the fourth micro-server module is not in place (Not Present); if 1 is returned, it can be determined that the in-place status of the fourth micro-server module is in place (Present).
[0138] Furthermore, the temperature of the micro-server module will also affect the normal operation of the micro-server module, so the temperature of the micro-server module can be adjusted by the temperature control system to keep the micro-server module in a suitable operating temperature range, thereby further improving the operating stability of the micro-server. That is, in a possible implementation of the embodiment of the present application, the status information of each micro-server module includes temperature information; accordingly, the above method may also include:
[0139] Determine the current operating mode of the temperature control system based on the current temperature information of each micro-server module;
[0140] According to the current operating mode, the operating status of the temperature control system is adjusted.
[0141] In an embodiment of the present application, after obtaining the temperature information of each micro-server module each time, the BMC can determine the maximum temperature corresponding to each micro-server module, and then determine the current operating mode of the temperature control system based on the maximum temperature, and adjust the operating state of the temperature control system according to the current operating mode to keep the temperature of each micro-server module within an appropriate range.
[0142] Optionally, in a possible implementation method of the embodiment of the present application, the correspondence between the temperature and the operating mode of the temperature control system can be pre-set, so that the BMC can determine the operating mode corresponding to the highest temperature as the current operating mode of the temperature control system based on the highest temperature corresponding to each micro-server module and the correspondence between the temperature and the operating mode of the temperature control system.
[0143] Optionally, in another possible implementation of the embodiment of the present application, the BMC may also use a PID algorithm to determine the operating state of the temperature control system according to the maximum temperature.
[0144] As a possible implementation method, when the micro-server modules are divided into multiple groups and connected to multiple UART interfaces of the BMC respectively, a temperature control system can be set for each group of micro-server modules, and the current operating mode of the corresponding temperature control system can be determined according to the temperature information of each group of micro-server modules.
[0145] For example, if Figure 4 As shown, the micro-server modules 130 are divided into two groups, and the BMC 110 can determine the operating mode of the temperature control system 160 corresponding to the micro-server modules of this group according to the highest temperature among the micro-server modules 0 to n-1; and can determine the operating mode of the temperature control system 160 corresponding to the micro-server modules of this group according to the highest temperature among the micro-server modules n to 2n-1.
[0146] Furthermore, when the micro-server modules are divided into multiple groups and connected to different UART interfaces of the BMC respectively, the status information of multiple micro-server modules belonging to different groups can be obtained simultaneously through different threads to further improve the monitoring and operation efficiency of the micro-server. That is, in a possible implementation of the embodiment of the present application, the above method may also include:
[0147] Determine the group to which each micro-server module identifier belongs;
[0148] By using the query thread corresponding to each group, the status information of each micro-server module in each current group is read in sequence from the designated storage address corresponding to each micro-server module identifier in the programmable logic device.
[0149] In an embodiment of the present application, when the micro-server modules are divided into multiple groups and connected to multiple UART interfaces of the BMC respectively, each group can correspond to a thread respectively, and multiple threads can be processed in parallel to improve the monitoring and operation efficiency of the micro-server. Therefore, when the BMC reads the status information of each micro-server module from the programmable logic device, it can first determine the group described by each micro-server module identifier according to each micro-server module identifier, and then use the query thread corresponding to each group to query the status information of the micro-server modules belonging to different groups in parallel, that is, read the status information of each micro-server module in each current group in turn from the specified storage address corresponding to each micro-server module identifier in the programmable logic device.
[0150] It should be noted that the method of grouping the micro-server modules in the embodiment of the present application and the specific method of reading the status information of each micro-server module from the programmable logic device can refer to the detailed description of the above embodiment and will not be repeated here.
[0151] According to the technical solution of the embodiment of the present application, the programmable logic device and the BMC are connected to each micro-server module in the micro-server through a multi-way switch, so as to obtain and store the status information of each micro-server module through the programmable logic device, so that the BMC can not only obtain the status information of any micro-server module from the programmable logic device at any time, but also overcome the limitation on the number of peripherals that can be connected to the BMC, thereby realizing accurate monitoring of the operating status of any micro-server module in the micro-server through a BMC, which not only reduces the operation and maintenance cost and resource waste, improves the accuracy of monitoring the operating status of the micro-server, but also improves the flexibility and versatility of monitoring the operating status of the micro-server and operation and maintenance.
[0152] In order to implement the above embodiments, the present application also proposes a monitoring device for a micro server.
[0153] Figure 7 A schematic diagram of the structure of a monitoring device for a micro server provided in an embodiment of the present application.
[0154] like Figure 7 As shown, the monitoring device 70 of the micro server includes:
[0155] The first acquisition module 71 is used to acquire the current status information of each micro-server module to be monitored from a specified storage address in the programmable logic device.
[0156] In actual use, the monitoring device for a micro-server provided in the embodiment of the present application can be configured in any electronic device to execute the aforementioned monitoring method for a micro-server.
[0157] According to the technical solution of the embodiment of the present application, by interconnecting the BMC and the programmable logic device in the microserver, and connecting each expansion interface of the programmable logic device to each signal end of each microserver module to be monitored in the microserver, the status information of each microserver module is obtained through each signal end, and the status information of each microserver module is stored in a specified storage address, and then the BMC obtains the status information of each microserver module from the specified storage address in the programmable logic device. Thus, the programmable logic device is connected to each microserver module in the microserver, so as to obtain and store the status information of each microserver module through the programmable logic device, so that the BMC can obtain the status information of any microserver module from the programmable logic device at any time, thereby realizing the accurate monitoring of the operating status of any microserver module in the microserver through a BMC, which not only reduces the operation and maintenance costs and resource waste, but also improves the accuracy of monitoring the operating status of the microserver.
[0158] In a possible implementation form of the present application, the status information of the different micro-server modules corresponds to different designated storage addresses, and the first acquisition module 71 includes:
[0159] A first determining unit, used to determine the first micro-server module identifier currently to be monitored;
[0160] The first reading unit is used to read the current state information of the first micro-server module from the first designated storage address corresponding to the first micro-server module identifier in the programmable logic device according to the preset mapping relationship between the micro-server module identifier and the storage address.
[0161] Furthermore, in another possible implementation form of the present application, each of the micro-server modules corresponds to multiple types of status information, and the first acquisition module 71 further includes:
[0162] A second determining unit, used to determine the second micro-server module identifier to be currently monitored and the first type of state information to be monitored;
[0163] The second reading unit is used to read the first type of status information of the current second server from the second designated storage address corresponding to the second micro-server module identifier and the first type in the programmable logic device according to the preset mapping relationship between the micro-server module identifier, the status information type and the storage address.
[0164] Furthermore, in another possible implementation form of the present application, the monitoring device 70 of the micro server further includes:
[0165] A first receiving module is used to receive a micro-server module startup instruction, wherein the startup instruction includes a third micro-server module identifier;
[0166] A sending module, used for sending a startup instruction to the programmable logic device, so that the programmable logic device controls the UART interface of the third micro-server module to communicate with the UART interface of the BMC;
[0167] The second acquisition module is used to obtain the startup information of the second micro-server module through the UART interface.
[0168] Furthermore, in another possible implementation form of the present application, the monitoring device 70 of the micro server further includes:
[0169] A second receiving module, used to receive a micro-server module status information query instruction;
[0170] A first determination module, used to parse the query instruction according to a preset query instruction rule to determine the fourth micro-server module identifier to be queried and the second type of state information to be queried;
[0171] The return module is used to return the second type of status information of the current fourth micro-server module.
[0172] Furthermore, in another possible implementation form of the present application, the status information of each micro-server module includes temperature information, and the monitoring device 70 of the micro-server further includes:
[0173] A second determination module is used to determine the current operation mode of the temperature control system according to the current temperature information of each micro-server module;
[0174] The adjustment module is used to adjust the operating state of the temperature control system according to the current operating mode.
[0175] Furthermore, in another possible implementation form of the present application, the first acquisition module 71 includes:
[0176] A third determining unit, configured to determine the group to which each micro-server module identifier belongs;
[0177] The third reading unit is used to use the query thread corresponding to each group to sequentially read the status information of each micro-server module in each current group from the specified storage address corresponding to each micro-server module in the programmable logic device.
[0178] It should be noted that the above Figure 5 , Figure 6 The explanation of the embodiment of the monitoring method of the micro-server shown is also applicable to the monitoring device 70 of the micro-server of this embodiment, and will not be repeated here.
[0179] According to the technical solution of the embodiment of the present application, the programmable logic device and the BMC are connected to each micro-server module in the micro-server through a multi-way switch, so as to obtain and store the status information of each micro-server module through the programmable logic device, so that the BMC can not only obtain the status information of any micro-server module from the programmable logic device at any time, but also overcome the limitation on the number of peripherals that can be connected to the BMC, thereby realizing accurate monitoring of the operating status of any micro-server module in the micro-server through a BMC, which not only reduces the operation and maintenance cost and resource waste, improves the accuracy of monitoring the operating status of the micro-server, but also improves the flexibility and versatility of monitoring the operating status of the micro-server and operation and maintenance.
[0180] According to an embodiment of the present application, the present application also provides an electronic device, a readable storage medium and a computer program product.
[0181] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0182] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0183] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0184] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the monitoring method of the microserver. For example, in some embodiments, the monitoring method of the microserver may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the monitoring method of the microserver described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the monitoring method of the microserver in any other appropriate manner (e.g., by means of firmware).
[0185] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0186] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0187] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0188] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0189] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0190] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS (Virtual Private Server) services.
[0191] According to the technical solution of the embodiment of the present application, the BMC and the programmable logic device in the microserver are connected to each other, and then the BMC obtains the status information of each microserver module from the specified storage address in the programmable logic device. Thus, the programmable logic device is connected to each microserver module in the microserver to obtain and store the status information of each microserver module through the programmable logic device, so that the BMC can obtain the status information of any microserver module from the programmable logic device at any time, thereby realizing accurate monitoring of the operating status of any microserver module in the microserver through a BMC, which not only reduces the operation and maintenance costs and resource waste, but also improves the accuracy of monitoring the operating status of the microserver.
[0192] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0193] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A monitoring system for a micro server, comprising: Interconnected baseboard management controller BMC and programmable logic devices; Wherein, each expansion interface of the programmable logic device is respectively connected to each signal end of each micro-server module to be monitored, and is used to obtain the status information of each micro-server module through each signal end, and store the status information of each micro-server module in a designated storage address, wherein the expansion interface of the programmable logic device is connected to each signal end of each micro-server module through a detection circuit, so as to detect the potential information of each signal end of the micro-server module through the detection circuit, and then the programmable logic device determines the status information of the micro-server module according to the potential information of each signal end of the micro-server module; The BMC is used to obtain the status information of each micro-server module from a specified storage address in the programmable logic device; The system further comprises: a multi-way switch; The universal asynchronous receiver-transmitter UART interface of the BMC is connected to the first connection end of the multi-way switch, and each second connection end of the multi-way switch is respectively connected to the UART interface of each micro-server module; The common terminal of the multi-way switch is connected to the control output terminal of the programmable logic device so as to control the multi-way switch through the programmable logic device; The programmable logic device is further used to control the common end of the multi-way switch to be connected to any second connection end according to the control instruction obtained from the BMC; Each of the micro-server modules corresponds to multiple types of status information, and the BMC is also used for: Determine a second micro-server module identifier to be currently monitored and a first type of status information to be monitored; According to a preset mapping relationship between a micro-server module identifier, a state information type and a storage address, read the first type of state information of the current second server from a second designated storage address corresponding to the second micro-server module identifier and the first type in the programmable logic device; The BMC is also used to receive a micro-server module startup instruction, wherein the startup instruction includes a third micro-server module identifier, and send the startup instruction to the programmable logic device; The programmable logic device is further used to control the common end of the multi-way switch to be connected to the second connection end connected to the third micro-server module; The BMC is also used to obtain the startup information of the third micro-server module through the UART interface; The system also includes: each of the micro-server modules includes a microcontroller, and the microcontroller determines the operating system status of the micro-server module based on the acquired heartbeat signal, and when the acquired heartbeat signal is normal, determines that the operating system status of the micro-server module is normal; when the acquired heartbeat signal is abnormal or no heartbeat signal is acquired, determines that the operating system status of the micro-server module is abnormal.
2. The system of claim 1, wherein: The status information of different micro-server modules corresponds to different designated storage addresses. The BMC is also used for: Determine the first micro-server module identifier to be monitored currently; According to a preset mapping relationship between the micro-server module identifier and the storage address, the current state information of the first micro-server module is read from a first designated storage address corresponding to the first micro-server module identifier in the programmable logic device.
3. The system of claim 1, wherein: The BMC is also used to: Receive micro-server module status information query instruction; According to a preset query instruction rule, the query instruction is parsed to determine the fourth micro-server module identifier to be queried and the second type of status information to be queried; Return the second type of status information of the fourth micro-server module.
4. A system as claimed in any one of claims 1 to 3, wherein: The status information of each micro-server module includes temperature information, and the BMC is further used for: Determine the current operating mode of the temperature control system based on the current temperature information of each micro-server module; According to the current operating mode, the operating state of the temperature control system is adjusted.
5. The system according to any one of claims 1 to 3, wherein: The number of the micro-server modules to be monitored is multiple, and the BMC is specifically used for: Determine the group to which each of the micro-server module identifiers belongs; By using the query thread corresponding to each group, the status information of each micro-server module in each current group is read in sequence from the designated storage address corresponding to each micro-server module identifier in the programmable logic device.
6. A micro-server monitoring method, applied to the micro-server monitoring system according to any one of claims 1 to 5, comprising: The current status information of each micro-server module to be monitored is obtained from a specified storage address in the programmable logic device.
7. The method of claim 6, wherein: The status information of different micro-server modules corresponds to different designated storage addresses, and the step of obtaining the status information of each micro-server module to be monitored currently includes: Determine the first micro-server module identifier to be monitored currently; According to a preset mapping relationship between the micro-server module identifier and the storage address, the current state information of the first micro-server module is read from a first designated storage address corresponding to the first micro-server module identifier in the programmable logic device.
8. The method of claim 6, wherein: Each of the micro-server modules corresponds to multiple types of status information, and the state information of each micro-server module to be monitored is obtained, including: Determine a second micro-server module identifier to be currently monitored and a first type of status information to be monitored; According to the preset mapping relationship between the micro-server module identifier, the status information type and the storage address, the first type status information of the current second server is read from the second designated storage address corresponding to the second micro-server module identifier and the first type in the programmable logic device.
9. The method of claim 6, wherein: Also includes: Receiving a micro-server module startup instruction, wherein the startup instruction includes a third micro-server module identifier; Sending the startup instruction to the programmable logic device so that the programmable logic device controls the UART interface of the third micro-server module to communicate with the UART interface of the BMC; The startup information of the second micro-server module is obtained through the UART interface.
10. The method of claim 6, wherein: Also includes: Receive micro-server module status information query instruction; According to a preset query instruction rule, the query instruction is parsed to determine the fourth micro-server module identifier to be queried and the second type of status information to be queried; Return the second type of status information of the fourth micro-server module.
11. The method according to any one of claims 6 to 10, wherein: The status information of each micro-server module includes temperature information, and the method further includes: Determining the current operating mode of the temperature control system according to the current temperature information of each of the micro-server modules; According to the current operating mode, the operating state of the temperature control system is adjusted.
12. The method according to any one of claims 6 to 10, wherein: The step of obtaining the current status information of each micro-server module to be monitored from a specified storage address in the programmable logic device includes: Determine the group to which each of the micro-server module identifiers belongs; By using the query thread corresponding to each group, the status information of each micro-server module in each current group is read in sequence from the designated storage address corresponding to each micro-server module identifier in the programmable logic device.
13. A monitoring device for a micro server, applied to the monitoring system for a micro server according to any one of claims 1 to 5, comprising: The first acquisition module is used to acquire the current status information of each micro-server module to be monitored from a specified storage address in the programmable logic device.
14. The device of claim 13, wherein: The status information of different micro-server modules corresponds to different designated storage addresses, and the first acquisition module includes: A first determining unit, used to determine the first micro-server module identifier currently to be monitored; The first reading unit is used to read the current state information of the first micro-server module from the first designated storage address corresponding to the first micro-server module identifier in the programmable logic device according to the preset mapping relationship between the micro-server module identifier and the storage address.
15. The device of claim 13, wherein: Each of the micro-server modules corresponds to multiple types of status information, and the first acquisition module further includes: A second determining unit, used to determine the second micro-server module identifier to be currently monitored and the first type of state information to be monitored; The second reading unit is used to read the first type of status information of the current second server from the second designated storage address corresponding to the second micro-server module identifier and the first type in the programmable logic device according to the mapping relationship between the preset micro-server module identifier, status information type and storage address.
16. The device of claim 13, wherein: Also includes: A first receiving module, configured to receive a micro-server module startup instruction, wherein the startup instruction includes a third micro-server module identifier; A sending module, used for sending the startup instruction to the programmable logic device, so that the programmable logic device controls the UART interface of the third micro-server module to be connected with the UART interface of the BMC; The second acquisition module is used to obtain the startup information of the second micro-server module through the UART interface.
17. The device of claim 13, wherein: Also includes: A second receiving module, used to receive a micro-server module status information query instruction; A first determination module, used to parse the query instruction according to a preset query instruction rule to determine the fourth micro-server module identifier to be queried and the second type of state information to be queried; The return module is used to return the second type of status information of the fourth micro-server module.
18. The device according to any one of claims 13 to 17, wherein: The status information of each micro-server module includes temperature information, and the device further includes: A second determination module, used to determine the current operation mode of the temperature control system according to the current temperature information of each micro-server module; The adjustment module is used to adjust the operating state of the temperature control system according to the current operating mode.
19. The device according to any one of claims 13 to 17, wherein: The first acquisition module includes: A third determining unit, configured to determine the group to which each micro-server module identifier belongs; The third reading unit is used to use the query thread corresponding to each group to sequentially read the status information of each micro-server module in each current group from the specified storage address corresponding to each micro-server module in the programmable logic device.
20. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 6 to 12.
21. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 6 to 12.
22. A computer program product comprising a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 6 to 12.
Citation Information
Patent Citations
Server and method for remotely upgrading programmable logic device thereof
CN102130951A
Server monitoring device, method and system thereof
CN109508279A
Server management method and device based on microserver architecture and server
CN109542833A
Monitoring method and device for power-on timeout of system equipment
CN111625386A
Programmable logical controller, its expanded module and its hardware expanding method
CN1936744A
