Method and device for monitoring server resource instance

Through the combination of configuration management database and distributed object storage, real-time monitoring of server resource instances and timely transmission of alarm information are realized, which solves the problem of low server monitoring efficiency in the existing technology and improves the immediacy and accuracy of monitoring. .

CN118626337APending Publication Date: 2024-09-10BEIJING 21VIANET DATA CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410826311.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

It is difficult to implement real-time and effective monitoring of a large number of servers with existing technology, resulting in low efficiency in monitoring server resource instances.

Method used

Synchronize server resource instance information through the configuration management database, combine with distributed object storage to store and query monitoring data in real time, and send monitoring alarm information to the user to improve the timeliness of monitoring data and alarm information.

Benefits of technology

It effectively improves the real-time effectiveness of monitoring server resource instances, ensures the real-time nature of monitoring data and the timely transmission of alarm information, and improves the accuracy and efficiency of server status monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626337A
    Figure CN118626337A
Patent Text Reader

Abstract

The invention discloses a method and a device for monitoring a server resource instance. The method and the device are used for improving instant effectiveness of monitoring of the server resource instance. The scheme is applied to a monitoring alarm platform, and comprises the following steps: receiving a monitoring request from a client, the monitoring request carrying information of a server resource instance; synchronizing the information of the server resource instance to a monitoring alarm module through a configuration management database, wherein the information of the server resource instance is used for indicating the monitoring alarm module to collect monitoring data from the server resource instance in real time; monitoring data and monitoring rules corresponding to the information of the server resource instance are inquired from a distributed object storage, and the monitoring data are stored in the distributed object storage in real time by the monitoring alarm module; and sending monitoring alarm information of the server resource instance to the user side according to a monitoring rule hit by the monitoring data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for monitoring server resource instances. Background Art

[0002] Servers can be used to implement a variety of functions such as file storage services, computing services, and website services, and are widely used to meet various practical needs. In order to ensure that the server is in normal working condition, it is often necessary to monitor various parameters such as the server's material resources and business status. In actual applications, the parameters used to monitor servers for different application functions are often different. For a large number of servers, it is difficult to achieve real-time and effective monitoring.

[0003] How to improve the real-time effectiveness of monitoring server resource instances is a technical problem to be solved by this application. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method and apparatus for monitoring server resource instances, so as to improve the real-time effectiveness of monitoring server resource instances.

[0005] In a first aspect, a method for monitoring a server resource instance is provided, which is applied to a monitoring alarm platform, and includes:

[0006] receiving a monitoring request from a client, the monitoring request carrying information of a server resource instance;

[0007] Synchronize the information of the server resource instance to the monitoring and alarm module through the configuration management database, where the information of the server resource instance is used to instruct the monitoring and alarm module to collect monitoring data for the server resource instance in real time;

[0008] Querying the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage, wherein the monitoring data is stored in the distributed object storage in real time by the monitoring alarm module;

[0009] Monitoring alarm information of the server resource instance is sent to the user terminal according to the monitoring rules matched by the monitoring data.

[0010] In a second aspect, a device for monitoring a server resource instance is provided, which is applied to a monitoring alarm platform, and includes:

[0011] A receiving module receives a monitoring request from a client, wherein the monitoring request carries information of a server resource instance;

[0012] A synchronization module, which synchronizes the information of the server resource instance to the monitoring and alarm module through the configuration management database, wherein the information of the server resource instance is used to instruct the monitoring and alarm module to collect monitoring data for the server resource instance in real time;

[0013] A query module, which queries the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage, wherein the monitoring data is stored in real time in the distributed object storage by the monitoring alarm module;

[0014] A sending module sends monitoring alarm information of the server resource instance to the user terminal according to the monitoring rule matched by the monitoring data.

[0015] According to a third aspect, an electronic device is provided. The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the method according to the first aspect are implemented.

[0016] According to a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method according to the first aspect are implemented.

[0017] In a fifth aspect, a computer program product is provided, the computer program product comprising a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to execute part or all of the steps of the method of the first aspect.

[0018] In an embodiment of the present application, first, a monitoring request is received from a client, and the monitoring request carries information about a server resource instance; then, the information about the server resource instance is synchronized to a monitoring and alarm module through a configuration management database, and the information about the server resource instance is used to instruct the monitoring and alarm module to collect monitoring data about the server resource instance in real time; then, the monitoring data and monitoring rules corresponding to the information about the server resource instance are queried from a distributed object storage, wherein the monitoring data is stored in real time in the distributed object storage by the monitoring and alarm module; finally, the monitoring and alarm information about the server resource instance is sent to the user end according to the monitoring rules hit by the monitoring data, thereby enabling status monitoring of the server, wherein this solution can effectively improve the synchronization efficiency of the information about the server resource instance by synchronizing the information about the server resource instance through a configuration management database. Distributed object storage can be used to realize real-time storage of monitoring data, thereby improving the timeliness and effectiveness of the monitoring and alarm information sent to the client. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 This is one of the flowcharts of a method for monitoring a server resource instance according to an embodiment of the present application;

[0021] Figure 2a This is a second flow chart of a method for monitoring a server resource instance according to an embodiment of the present application;

[0022] Figure 2b It is a schematic diagram of a system structure of a monitoring server resource instance according to an embodiment of the present application;

[0023] Figure 3a This is a flowchart of a method for monitoring a server resource instance according to an embodiment of the present application;

[0024] Figure 3b It is a schematic diagram of the logical relationship between a visualization interface and user operations of a method for monitoring server resource instances in an embodiment of the present application;

[0025] Figure 4a This is a fourth flowchart of a method for monitoring a server resource instance according to an embodiment of the present application;

[0026] Figure 4b It is a flow chart of a method for monitoring a server resource instance in an embodiment of the present application for performing a pre-boot execution environment PXE installation on a bare metal server;

[0027] Figure 5 It is a structural diagram of a device for monitoring server resource instances according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. The numbering of the drawings in this application is only used to distinguish the various steps in the scheme, and is not used to limit the execution order of the various steps. The specific execution order is subject to the description in the specification.

[0029] In order to solve the problems existing in the prior art, the embodiment of the present application provides a method for monitoring server resource instances, which is applied to a monitoring alarm platform, such as Figure 1 As shown, including:

[0030] S11: receiving a monitoring request from a client, wherein the monitoring request carries information of a server resource instance.

[0031] The client can be a mobile phone, computer or other device. The client sends a monitoring request to the monitoring and alarm platform to inform the monitoring and alarm platform which server resource instances need to be monitored. The monitoring request can be actively controlled by the technician holding the client, or it can be automatically sent by the client based on pre-set tasks or rules.

[0032] In the examples of this application, server resource instances may include hardware resource instances and software resource instances. Among them, hardware resource instances may include hardware resources such as cabinets for carrying multiple servers and server devices in the cabinets, and software resource instances may specifically include available areas, memory capacity, hard disk storage capacity, etc. used by the server to provide functions. In actual applications, resource instances for servers providing different functions are often different and can be flexibly set according to actual needs.

[0033] S12: Synchronizing the information of the server resource instance to the monitoring and alarm module through the configuration management database, where the information of the server resource instance is used to instruct the monitoring and alarm module to collect monitoring data for the server resource instance in real time.

[0034] In this step, the monitoring and alarm platform synchronizes the information of the above server resource instances through the Configuration Management Database (CMDB). CMDB can be used to achieve real-time synchronization of information and effectively improve the timeliness of monitoring-related data.

[0035] The monitoring and alarm module may specifically include monitoring systems such as Prometheus. After the monitoring and alarm module obtains the information of the server resource instance, it can collect monitoring data for each server resource instance in real time. Among them, different rules can be used to obtain monitoring data for different server resource instances. The monitoring and alarm module can query the database based on the information of the server resource instance to be monitored and the rules for monitoring data for which data is specifically monitored by the server resource instance. Optionally, the above monitoring rules can also be queried through CMDB. When the monitoring request of the client carries the monitoring rules of the server resource instance, the corresponding server resources can be monitored according to the monitoring rules specified in the monitoring request.

[0036] S13: Query the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage, wherein the monitoring data is stored in real time in the distributed object storage by the monitoring alarm module.

[0037] The monitoring data obtained by the monitoring alarm module from the server resource instance is sent to the distributed object storage in real time, so that the monitoring alarm platform can query the monitoring data corresponding to the information of the server resource instance from the distributed object storage. Distributed object storage can specifically refer to a distributed object used to implement a storage function, and the distributed object can specifically refer to a distributed data center. The distributed data center is the background management system of the global managed cloud platform of Interconnect Technology, which is used for the overall management of direct digital control (DDC), cabinets and computing, network and other equipment. At the same time, it can also provide background application configuration capabilities, and can visually browse and operate cabinets and computing, network and other equipment according to customer needs.

[0038] In addition, the distributed object storage may also pre-store monitoring rules corresponding to the server resource instances. These monitoring rules may be generated based on historical alarm information of the corresponding server resource instances, or may be pre-set by a technician.

[0039] Among them, the monitoring rules can be used to determine whether the monitoring data of the corresponding server resource instance is within a reasonable range, and then determine whether the server resource instance is in a normal service state.

[0040] S14: Send monitoring alarm information of the server resource instance to the user terminal according to the monitoring rule matched by the monitoring data.

[0041] In this step, the monitoring data acquired in real time is compared with the corresponding monitoring rules. Once the monitoring data matches the monitoring rules, the monitoring alarm information of the server resource instance is sent to the user end according to the matched monitoring rules.

[0042] Optionally, the monitoring alarm information may include monitoring data that hits the monitoring rule, information about the server resource instance, and specific content of the hit monitoring rule. If the hit monitoring rule pre-stores a suggested disposal method, a processing suggestion may also be sent to the user terminal based on the state represented by the monitoring data of the server resource instance.

[0043] In an embodiment of the present application, first, a monitoring request is received from a client, and the monitoring request carries information about a server resource instance; then, the information about the server resource instance is synchronized to a monitoring and alarm module through a configuration management database, and the information about the server resource instance is used to instruct the monitoring and alarm module to collect monitoring data about the server resource instance in real time; then, the monitoring data and monitoring rules corresponding to the information about the server resource instance are queried from a distributed object storage, wherein the monitoring data is stored in real time in the distributed object storage by the monitoring and alarm module; finally, the monitoring and alarm information about the server resource instance is sent to the user end according to the monitoring rules hit by the monitoring data, thereby enabling status monitoring of the server, wherein this solution can effectively improve the synchronization efficiency of the information about the server resource instance by synchronizing the information about the server resource instance through a configuration management database. Distributed object storage can be used to realize real-time storage of monitoring data, thereby improving the timeliness and effectiveness of the monitoring and alarm information sent to the client.

[0044] The method provided in the embodiment of the present application can be applied to the Neolink Global Managed Cloud Platform (NEOLINK CLOUDPLATFORM) to provide one-stop end-to-end services from cloud infrastructure to hybrid cloud solutions. The Neolink Global Managed Cloud Platform relies on Neolink's high-quality data center and line connections, based on professional automated operation and maintenance management services and vertical cloud native services, and organically coordinates Neolink IDC (Internet Data Center), customer-built IDC, private cloud and public cloud to provide business applications with the best hybrid cloud operating environment with complementary multi-cloud advantages, which can effectively support the digital transformation of users' cloud native businesses.

[0045] Based on the solution provided in the above embodiment, optionally, the information of the server resource instance is used to instruct the monitoring alarm module to collect monitoring data in real time for at least one of the following server resource instances: physical resources, business layer resources, and management area resources;

[0046] Wherein, the physical resources include physical machine resources and / or network device resources;

[0047] The business layer resources are pushed by the monitoring agent to the monitoring alarm module through the push gateway;

[0048] The management area resources are pushed to the monitoring alarm module by the middle layer stack through the push gateway.

[0049] In actual applications, there are many types of server resource instances, and it can be determined which specific server resource instances to monitor based on the service functions provided by the server.

[0050] Among them, physical resources can be understood as entity resources, physical machine resources refer to physical servers, computers and other resources, and network device resources refer to device resources used to provide network functions.

[0051] Business layer resources refer to resources used to provide business functions. The business layer can monitor server resource instances through ipmi-exporter (Intelligent Platform Management Interface), and can obtain basic information and corresponding status of server resource instances. These business layer resources are pushed to the monitoring alarm module by the monitoring agent through the push gateway.

[0052] Management area resources can be used to provide servers and other business devices with resources for implementing management functions. For example, they can include server address information, boot files for implementing control functions, receiving instruction information, and related information of proxy services. Management area resources are pushed to the monitoring and alarm module by the middle layer stack through the push gateway.

[0053] Through the solution provided in the embodiment of the present application, the information of the server resource instance can effectively instruct the monitoring alarm module to collect monitoring data of multiple server resource instances in real time, thereby obtaining real-time monitoring data of the server resource instances, and can instantly obtain monitoring data of multiple dimensions of each server resource instance, which is conducive to comprehensively determining whether the server resource instance is in a normal service state.

[0054] Based on the solution provided in the above embodiment, optionally, the information of the server resource instance includes information of the server resource instance that the user account logged in by the client is authorized to monitor, and / or, the information of the server resource instance includes information of the server resource instance specified by the user operation received by the client.

[0055] Optionally, the technician can communicate with the monitoring and alarm platform through the client, and determine which server resource instances the technician is authorized to monitor through authentication methods such as logging in to an account. The client can then automatically generate a monitoring request based on the information of the server resource instances that the technician is authorized to monitor, and send it to the monitoring and alarm platform.

[0056] Optionally, if the number of server resource instances that the technician can monitor is large, the number of server resource instances that can be monitored can also be displayed to the technician in the form of a visual interface. The technician operates the visual interface to perform focused monitoring on some server resource instances in a targeted manner.

[0057] Through the solution provided by the embodiment of the present application, the monitoring authority of the client to the server resource instance can be determined by authentication methods such as login account, or the server resource instance to be monitored can be determined based on the user operation. In the case where there are a large number of server resource instances and multiple technicians are required to collaborate in monitoring, the solution provided by the embodiment of the present application can help to allocate monitoring tasks to multiple technicians and avoid omissions or duplications in the status monitoring of server resource instances.

[0058] In actual applications, server resource instances that need to be monitored can also be assigned to multiple different technicians for monitoring according to actual needs, thereby improving the effectiveness of monitoring key server resource instances. In addition, multiple associated server resource instances can be flexibly combined according to the association status between multiple server resource instances, so that technicians can monitor the associated server resource instances in batches, which is conducive to improving the effectiveness of abnormal handling.

[0059] Based on the solution provided in the above embodiment, optionally, Figure 2a As shown, in the above step S13, querying the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage includes:

[0060] S21: Call the storage Store interface through the query component of the Thanos architecture to query the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage, wherein the monitoring data is stored in real time in the distributed object storage by the monitoring alarm module through the sidecar.

[0061] Figure 2b A schematic diagram of the system structure for monitoring server resource instances is shown.

[0062] The client can send a monitoring request with information about the server resource instance to the monitoring and alarm platform through an API (Application Programming Interface) interface via a WEB (World Wide Web) interface. In this example, the client can be a platform monitoring device or a cloud monitoring device.

[0063] The monitoring and alarm platform synchronizes the information of the server resource instance to the Prometheus monitoring and alarm module through the CMDB platform according to the information of the server resource instance. Specifically, the synchronization can be achieved through a synchronization module.

[0064] The Prometheus monitoring and alarm module pulls monitoring data from the corresponding server resource instance based on the information of the synchronized server resource instance, and then stores it in real time to the distributed object storage through the Thanos-Sidecar sidecar.

[0065] Prometheus can pull monitoring data in many ways, for example, from physical machines and network devices in the physical resource layer.

[0066] Alternatively, the business layer data is pulled from a demilitarized zone (DMZ), and the business layer data may be monitoring data of business layer resources pushed to the demilitarized zone by a cloud monitoring agent.

[0067] Alternatively, the monitoring data of the management area resources of the push gateway (Push Gateway) is pulled from the management area, and the monitoring data of the management area resources may be pushed to the push gateway by the middle layer stack (Stack).

[0068] On the other hand, the monitoring and alarm platform queries the monitoring data and monitoring rules from the distributed object storage. Specifically, the monitoring and alarm platform queries the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage by calling the storage Store interface through the query component of the Thanos architecture.

[0069] Among them, the rule engine can push alarms to the monitoring alarm platform through Push alert when the monitoring data hits the monitoring rules. The monitoring alarm platform sends an alarm Send alert to the message center based on the monitoring data, the hit monitoring rules, the information of the server resource instance, etc.

[0070] In this application example, efficient data query is achieved through the Thanos architecture. Among them, the Query component can be used to collect the data required for the query from the underlying Store API, execute the query operation and return the result. The store of the Thanos architecture can be used to provide the IP address and port for data query, which can specifically include the address and port of Sidecar and Store in this example.

[0071] The solution provided by the embodiment of this application, based on the sum architecture of Thanos+Prometheus+distributed object storage, can meet the needs of long-term storage, high availability and easy expansion of monitoring data. Among them, resource instance synchronization is achieved based on CMDB, monitoring data can be collected in real time and efficiently, and stored in distributed object storage through Thanos-sidecar to ensure the timeliness of monitoring.

[0072] In some application scenarios, cabinets and servers are browsed and operated in a list state. Due to space limitations such as the length and height of the list, less relevant information can be displayed. When users perform specific operations, some functions require entering the cabinet or server details page to operate. The cumbersome operation steps make the user's operability and interactive experience poor. The bottom layer lacks high-time monitoring and basic data for cabinets and servers through the cleaning and aggregation of historical data. Moreover, it is impossible to display the effective monitoring data and basic information of cabinets and servers in real time, and the monitoring data has a certain lag.

[0073] Based on the solution provided in the above embodiment, optionally, Figure 3a As shown, after the above step S14, that is, after the monitoring alarm information of the server resource instance is sent to the user terminal according to the monitoring rule and the monitoring data, it also includes:

[0074] S31: If the monitoring data triggers a control instruction in the monitoring rule, or a control instruction triggered by a user performing an operation on a visualization card is received from the client, a control operation is performed on the server resource instance based on the control instruction, wherein the client displays the monitoring alarm information of the server resource instance through the visualization card and the details page associated with the visualization card.

[0075] In this example, the monitoring and alarm platform can perform control operations on server resource instances according to control instructions, wherein the control instructions may include specific content of the control operations to be performed, and on which server resource instances the above control operations are performed.

[0076] The control instruction can be automatically generated when the monitoring data triggers the monitoring rule. Optionally, the monitoring rule can pre-set the specific content and triggering conditions of the control instruction, which is particularly suitable for abnormal situations involving security risks, or situations that may cause multiple server resource instances to have associated abnormalities. By automatically triggering the control instruction, it is convenient to deal with abnormal server resource instances in a timely manner, avoid the expansion of abnormalities, and ensure the overall security of server resource instances.

[0077] The control command can be triggered by a technician through a visual card on the client. In this example, the information and monitoring data of the server resource instance are displayed in the form of a visual card, which can facilitate the technician to perform the required operation while clearing the displayed information, thereby reducing the complexity of the operation.

[0078] Specifically, technicians can expand the side drawer by clicking the cabinet name or cabinet graphic on the card. The side drawer can display multiple server resource instances carried by the cabinet, and then by clicking the target to perform the operation, the details page of the target can be displayed.

[0079] The actual display mode of the drawer can be flexibly set according to needs. For example, the interface where the drawer is located can be divided into two parts, the left side is the cabinet picture details, which can intuitively display the specific U position and service status of the server in the cabinet; the right side is the cabinet text details, which can display the cabinet number, region, available zone, DDC, number of U positions, opening time, number of servers, number of switches, etc., and can copy the cabinet name, edit the cabinet name, and copy the cabinet number.

[0080] The solution provided by the embodiment of the present application can flexibly trigger control instructions, thereby performing timely and flexible control processing on server resource instances where abnormalities occur, thereby improving the timeliness and effectiveness of monitoring abnormality control.

[0081] Figure 3b A schematic diagram of the logical relationship between a visualization interface and user operations is shown. In actual applications, a variety of flexible control operations can be implemented on server resource instances through the visualization interface. For example, multiple controllable exclusive cabinets are first displayed through an exclusive cabinet list, and then multiple devices carried in the cabinet are displayed in the side drawer by selecting the target cabinet card, and then the detailed monitoring data and basic properties of the target device are viewed by clicking the target device in the side drawer. Optionally, operations such as power on and off, and system installation can be performed on one or more cabinets, or one or more devices in the cabinet. After the operation is performed, the operation results and the monitoring data of the server resource instance after the operation are performed can also be displayed in the visualization interface to view the effectiveness of the operation control. Among them, any of the above operations can be triggered by the system after the front-end and back-end interaction of the technician's user account for the server's operation request.

[0082] In one application scenario, the technician can first log into the Interconnect Technology global managed cloud platform by logging into an account, and then click the dedicated cabinet button in the sidebar of the distributed data center to open the dedicated cabinet page. Then, the user can visually browse the important information on the cabinet card on the page, or perform some important operations on the cabinet displayed on the page. For example, operate the server in the cabinet or operate the cabinet. If you need to view the details of the equipment carried in the cabinet, the user can click on the cabinet name or cabinet icon to trigger the side drawer to view the cabinet details and perform operations. Based on the content displayed in the side drawer, the user can click on the server, switch and other equipment in the cabinet image to view details and perform operations. Figure 3b Single operation or batch operation as shown.

[0083] Optionally, the size and number of visualization cards can be flexibly set according to the size of the page, for example, a page can display 4 to 6 cabinet cards, and the excess can be viewed by sliding the page up and down, thereby improving operational flexibility and information display clarity.

[0084] In actual applications, the operations on the cabinet and the operations on the servers in the cabinet can be flexibly set. For example, the operations on the cabinet may include copying the cabinet name, editing the cabinet name, triggering the drawer to view the cabinet details, etc. The operations on the servers in the cabinet can be implemented by issuing instructions on the page to call server management software, management software and other functions. Specifically, the following functions may be included:

[0085] DHCP (Dynamic Host Configuration Protocol) service: used to provide IP address information to the server in the PXE (Pre-boot Execution Environment) process.

[0086] TFTP (Trivial File Transfer Protocol) service: provides the server with necessary PXE boot files such as remdisk and kernel.

[0087] webServer service: accepts instructions issued by the page, such as power operation, installation, etc.

[0088] Agent service: runs in the virtual memory disk remdisk in the PXE process. In actual applications, it needs to be connected to the IPMI network to complete the actual operation of the server.

[0089] In terms of specific operations performed by users, the operations that can be performed by different server resource instances can be flexibly set. For example, the executable operations include viewing dedicated server information and configuration information, as well as copying a single server name, editing a single server name, copying a single server ID, single server startup, single shutdown, single installation system, and triggering "more" to achieve single system formatting, single VNC remote, single restart, and by checking, batches of the above operations can be performed on selected servers.

[0090] Based on the solution provided in the above embodiment, optionally, the control instruction includes a pre-boot execution environment PXE installation instruction, and the server resource instance includes a bare metal server;

[0091] Among them, Figure 4a As shown, in the above step S31, the control operation is performed on the server resource instance based on the control instruction, including:

[0092] S41: Create an installation boot file according to the PXE installation instruction.

[0093] Figure 4b This is a flow chart of performing a pre-boot execution environment (PXE) installation on a bare metal server in this application example.

[0094] First, Lstack (Link Stack) calls the API to create the installation boot file through icore-pxe-server according to the PXE installation instruction. Specifically, you can create the Boot file through CreateBootFile, the Grub template file and agent context through CreateGrubFile, and execute IPMI to set PXE boot through SetPXEBoot.

[0095] S42: Providing the installation boot file to the bare metal server through a Trivial File Transfer Protocol (TFTP) service, where the installation boot file is used to instruct the bare metal server to perform PXE installation.

[0096] After creating the installation boot file, you can use the tftp-server file to store the Icore-pxe-agent to load the boot boot item (bootx64.efi), grub.cfg, Context.json and other files required for installation to the bare metal server.

[0097] S43: Allocate an Internet Protocol IP address to the bare metal server through a Dynamic Host Configuration Protocol DHCP service.

[0098] After setting up PXE boot based on IPMI, the bare metal server performs PXE boot, and then the bare metal server requests dhcp-erver, and the dynamic host configuration protocol DHCP service allocates an Internet connection protocol IP address to the bare metal server. After obtaining the IP address, the bare metal server can perform PXE installation based on the IP and the various installation files obtained above. During the installation process, a heartbeat report can be sent to icore-pxe-server based on a preset period to report the progress of PXE execution.

[0099] S44: If an installation progress notification indicating that the installation is completed is received from the bare metal server, the server is restarted and installation verification is performed through the intelligent platform management interface IPMI.

[0100] The bare metal server may report the execution progress periodically or after the execution is completed. After receiving the installation progress notification indicating that the installation has been completed, the bare metal server that has been installed is controlled by IPMI to perform a system restart, and then perform an installation verification to determine whether the installation is successful.

[0101] In the solution provided by the example of this application, through the IPMI network, the management node (icore-pxe-server) can remotely control the server equipment's power on / off, network boot, and disk boot. Through the PXE service, the system installation and reinstallation can be effectively realized. In addition, operations such as full startup, full shutdown, and full system installation can be performed, and by triggering "more", full system formatting, full VNC remote, full restart, etc. can be realized, and instructions can be flexibly issued through the page.

[0102] The solution provided by the embodiment of the present application can be used to improve the immediate effectiveness of monitoring server resource instances. Among them, this solution obtains data from CMDB and monitoring systems, and realizes the collection and integration of resource information and all-round real-time coverage of monitoring. Some important information of the cabinet is displayed on the page, and some common and important operation buttons of the cabinet are set at the bottom of the card, which can facilitate the technicians to visually browse the cabinet and support the quick management operation of the equipment by interacting with the management software on the current page. In addition, the technician can also use the VUE component to expand the side drawer effect by clicking the cabinet name or cabinet graphic on the card, and provide more information display in a limited space layout, such as: viewing the detailed information of the cabinet, the detailed information and status of the server, switch and other equipment in the cabinet, changing the device name, the form and interaction of a single operation, etc. By opening the link from top to bottom, this solution realizes the form from data collection to page design, and finally realizes a clear, concise and feature-rich management terminal, reduces the interactive steps of the operation, and greatly improves the operability and functionality of existing products.

[0103] This solution improves the convenience and effectiveness of technicians' control over server resource instances in terms of interface visualization and operational control effectiveness. In this solution, CMDB is used to improve the timeliness of monitoring data, improve data indicators, and clarify the information collection and display of cabinets and equipment inside the cabinets. On the basis of providing accurate material information, flexible operational control can also be achieved based on the server management of the IPMI intelligent platform management interface and the management software of the PXE installation function. Break through the barriers between the page and the bottom layer, reduce the interactive steps of the operation, and improve the operability and interactive experience of existing products.

[0104] In order to solve the problems existing in the prior art, the embodiment of the present application also provides a device 50 for monitoring server resource instances, such as Figure 5 As shown in the figure, it is applied to the monitoring and alarm platform, including:

[0105] A receiving module 51 receives a monitoring request from a client, wherein the monitoring request carries information about a server resource instance;

[0106] A synchronization module 52, which synchronizes the information of the server resource instance to the monitoring and alarm module through the configuration management database, wherein the information of the server resource instance is used to instruct the monitoring and alarm module to collect monitoring data for the server resource instance in real time;

[0107] A query module 53, which queries the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage, wherein the monitoring data is stored in the distributed object storage in real time by the monitoring alarm module;

[0108] The sending module 54 sends the monitoring alarm information of the server resource instance to the user terminal according to the monitoring rule matched by the monitoring data.

[0109] Through the device provided by the embodiment of the present application, first, a monitoring request is received from the client, and the monitoring request carries the information of the server resource instance; then, the information of the server resource instance is synchronized to the monitoring alarm module through the configuration management database, and the information of the server resource instance is used to instruct the monitoring alarm module to collect monitoring data for the server resource instance in real time; then, the monitoring data and monitoring rules corresponding to the information of the server resource instance are queried from the distributed object storage, wherein the monitoring data is stored in real time to the distributed object storage by the monitoring alarm module; finally, the monitoring alarm information of the server resource instance is sent to the user end according to the monitoring rules hit by the monitoring data, so that the status monitoring of the server can be realized, wherein, this scheme synchronizes the information of the server resource instance through the configuration management database, which can effectively improve the synchronization efficiency of the information of the server resource instance. Distributed object storage can be used to realize real-time storage of monitoring data, thereby improving the timeliness and effectiveness of the monitoring alarm information sent to the client.

[0110] Among them, the above modules in the device provided by the embodiment of the present application can also implement the method steps provided by the above method embodiment. Alternatively, the device provided by the embodiment of the present application can also include other modules in addition to the above modules to implement the method steps provided by the above method embodiment. And the device provided by the embodiment of the present application can achieve the technical effects that can be achieved by the above method embodiment.

[0111] Preferably, an embodiment of the present application also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned method embodiment for monitoring server resource instances are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0112] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned method embodiment for monitoring server resource instances is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0113] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. The computer program can be operated to enable a computer to execute part or all of the steps of the above-mentioned method embodiment for monitoring server resource instances, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0114] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0115] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0116] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0118] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0119] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0120] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0121] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0122] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0123] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for monitoring server resource instances, characterized in that: Applied to monitoring and alarm platforms, including: receiving a monitoring request from a client, the monitoring request carrying information of a server resource instance; Synchronize the information of the server resource instance to the monitoring and alarm module through the configuration management database, where the information of the server resource instance is used to instruct the monitoring and alarm module to collect monitoring data for the server resource instance in real time; Querying the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage, wherein the monitoring data is stored in the distributed object storage in real time by the monitoring alarm module; Monitoring alarm information of the server resource instance is sent to the client according to the monitoring rule matched by the monitoring data.

2. The method according to claim 1, characterized in that The information of the server resource instance is used to instruct the monitoring alarm module to collect monitoring data in real time for at least one of the following server resource instances: physical resources, business layer resources, and management area resources; Wherein, the physical resources include physical machine resources and / or network device resources; The business layer resources are pushed by the monitoring agent to the monitoring alarm module through the push gateway; The management area resources are pushed to the monitoring alarm module by the middle layer stack through the push gateway.

3. The method according to claim 1, characterized in that The information of the server resource instance includes information of the server resource instance that the user account logged in by the client has the right to monitor, and / or the information of the server resource instance includes information of the server resource instance specified by the user operation received by the client.

4. The method according to claim 1, characterized in that Querying the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage includes: The query component of the Thanos architecture calls the storage Store interface to query the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage, wherein the monitoring data is stored in real time in the distributed object storage by the monitoring alarm module through the sidecar.

5. The method according to any one of claims 1 to 4, characterized in that: After sending the monitoring alarm information of the server resource instance to the client according to the monitoring rule and the monitoring data, the method further includes: If the monitoring data triggers a control instruction in the monitoring rule, or a control instruction triggered by a user performing an operation on a visualization card is received from the client, a control operation is performed on the server resource instance based on the control instruction, wherein the client displays the monitoring alarm information of the server resource instance through the visualization card and the details page associated with the visualization card.

6. The method according to claim 5, characterized in that The control instruction includes a pre-boot execution environment (PXE) installation instruction, and the server resource instance includes a bare metal server; The performing of a control operation on the server resource instance based on the control instruction includes: Create installation boot files according to PXE installation instructions; Providing the installation boot file to the bare metal server through a simple file transfer protocol TFTP service, wherein the installation boot file is used to instruct the bare metal server to perform PXE installation; Allocate an Internet Protocol (IP) address to the bare metal server through a Dynamic Host Configuration Protocol (DHCP) service; If an installation progress notification indicating that the installation is completed is received from the bare metal server, the server is restarted and installation verification is performed through the intelligent platform management interface IPMI.

7. A device for monitoring server resource instances, characterized in that: Applied to monitoring and alarm platforms, including: A receiving module receives a monitoring request from a client, wherein the monitoring request carries information of a server resource instance; A synchronization module, which synchronizes the information of the server resource instance to the monitoring and alarm module through the configuration management database, wherein the information of the server resource instance is used to instruct the monitoring and alarm module to collect monitoring data for the server resource instance in real time; A query module, which queries the monitoring data and monitoring rules corresponding to the information of the server resource instance from the distributed object storage, wherein the monitoring data is stored in real time in the distributed object storage by the monitoring alarm module; A sending module sends monitoring alarm information of the server resource instance to the client according to the monitoring rule matched by the monitoring data.

8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the method according to any one of claims 1 to 6 when executed by the processor.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, characterized in that The computer program product comprises a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to execute part or all of the steps of the method according to any one of claims 1 to 6.