A Server Status Detection Method, Device, Equipment, and Readable Storage Medium

By detecting the configuration information of the management network, business network and storage network in the cloud platform, using the kolla-ansible component and moon container service to read the status information of each network, the problem of low accuracy of server status monitoring data in the prior art is solved, and higher accuracy of monitoring data is achieved.

CN114020557BActive Publication Date: 2025-07-11JINAN INSPUR DATA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111161504.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-07-11
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

In the prior art, the cloud platform server status monitoring data has low accuracy, especially when the management network is disconnected, the virtual machine status cannot be accurately monitored, resulting in misjudgment of the server status abnormality.

Method used

By detecting the configuration information of the management network, business network and storage network in the cloud platform, using the kolla-ansible component to obtain the configuration information of each network, and recall the corresponding moon container service from the container moon image, read the status information of each network, and combine this information to determine the server status.

Benefits of technology

It improves the accuracy of server status monitoring data, fully considers the impact of the service network and storage network on the server status, and improves the reliability of monitoring data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114020557B_ABST
    Figure CN114020557B_ABST
Patent Text Reader

Abstract

The present invention discloses a server status detection method, including: detecting whether a management network, a service network, and a storage network are configured in a cloud platform; if so, using the kolla-ansible component to obtain management network configuration information, service network configuration information, and storage network configuration information; invoking a management moon container service, a service moon container service, and a storage moon container service from a container moon image to read the management network configuration information, the service network configuration information, and the storage network configuration information, so as to obtain management network status information, service network status information, and storage network status information; and determining the server status in combination with the management network status information, the service network status information, and the storage network status information. The present invention takes into account the influence of the service network and the storage network on the server status, and greatly improves the accuracy of server status monitoring data. The present invention also discloses a device, a device, and a storage medium, which have corresponding technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technologies, and in particular, to a server status detection method, device, equipment, and computer-readable storage medium. Background Art

[0002] After the cloud platform is deployed, in order to timely understand the status of each server in the cloud platform, it is necessary to monitor the status of each server in the cloud platform.

[0003] In the prior art, the detection of the server status is mainly achieved by monitoring the heartbeat between the server and the computing node. However, there is only one default heartbeat network, which is usually deployed on the management network. When the management network is disconnected, users cannot perform operations such as starting and shutting down the virtual machines on the physical host with the disconnected management network, and it is determined that the server status is abnormal, resulting in low accuracy of the server status monitoring data.

[0004] In summary, how to effectively solve the problem of low accuracy of server status monitoring data is an urgent problem that those skilled in the art need to solve at present. Summary of the Invention

[0005] The purpose of the present invention is to provide a server status detection method, which fully considers the influence of the service network and the storage network on the server status and greatly improves the accuracy of the server status monitoring data; another purpose of the present invention is to provide a server status detection device, equipment, and computer-readable storage medium.

[0006] To solve the above technical problems, the present invention provides the following technical solutions:

[0007] A server status detection method includes:

[0008] When receiving a server status detection request, detecting whether a management network, a service network, and a storage network are configured in the cloud platform;

[0009] If so, using the kolla-ansible component to obtain the management network configuration information, the service network configuration information, and the storage network configuration information;

[0010] Retrieving the management moon container service corresponding to the management network, the service moon container service corresponding to the service network, and the storage moon container service corresponding to the storage network from the container moon image;

[0011] Using the management moon container service to read the management network configuration information to obtain the management network status information;

[0012] Using the service moon container service to read the service network configuration information to obtain the service network status information;

[0013] Read the storage network configuration information by using the storage moon container service to obtain the storage network status information;

[0014] Determine the server status by combining the management network status information, the service network status information, and the storage network status information.

[0015] In a specific embodiment of the present invention, determining the server status by combining the management network status information, the service network status information, and the storage network status information includes:

[0016] Obtain the preset management network status weight value, service network status weight value, and storage network status weight value;

[0017] Find the management network status value corresponding to the management network status information, the service network status value corresponding to the service network status information, and the storage network status value corresponding to the storage network status information from the preset network status statistical table;

[0018] Perform weighted calculation on the management network status value, the service network status value, and the storage network status value according to the management network status weight value, the service network status weight value, and the storage network status weight value to obtain the target network status value;

[0019] Determine the server status according to the target network status value.

[0020] In a specific embodiment of the present invention, determining the server status according to the target network status value includes:

[0021] Judge whether the target network status value is within the preset network status threshold range;

[0022] If so, determine that the server status is normal;

[0023] If not, determine that the server status is abnormal.

[0024] In a specific embodiment of the present invention, determining the server status by combining the management network status information, the service network status information, and the storage network status information includes:

[0025] Report the management network status information, the service network status information, and the storage network status information to the msakari component, so that the msakari component determines the server status according to the management network status information, the service network status information, and the storage network status information.

[0026] In a specific embodiment of the present invention, before detecting whether the management network, the service network, and the storage network are configured in the cloud platform, it further includes:

[0027] Determine whether the cloud platform is to deploy the host high-availability service;

[0028] If so, execute the step of detecting whether the management network, service network, and storage network are configured in the cloud platform.

[0029] In a specific embodiment of the present invention, retrieving the management moon container service corresponding to the management network, the service moon container service corresponding to the service network, and the storage moon container service corresponding to the storage network from the container moon image includes:

[0030] Push the pre-built container moon image adapted to the kolla-ansible component to the image repository corresponding to the cloud platform;

[0031] Find the container moon image from the image repository;

[0032] Retrieve the management moon container service corresponding to the management network, the service moon container service corresponding to the service network, and the storage moon container service corresponding to the storage network from the container moon image.

[0033] In a specific embodiment of the present invention, before using the kolla-ansible component to obtain the management network configuration information, service network configuration information, and storage network configuration information, it further includes:

[0034] Perform moon container service support configuration on the kolla-ansible component.

[0035] A server status detection device includes:

[0036] A detection module, configured to detect whether the management network, service network, and storage network are configured in the cloud platform when receiving a server status detection request;

[0037] A configuration information acquisition module, configured to use the kolla-ansible component to obtain the management network configuration information, service network configuration information, and storage network configuration information when it is determined that the management network, service network, and storage network are configured in the cloud platform;

[0038] A container service retrieval module, configured to retrieve the management moon container service corresponding to the management network, the service moon container service corresponding to the service network, and the storage moon container service corresponding to the storage network from the container moon image;

[0039] A management network status acquisition module, configured to read the management network configuration information by using the management moon container service to obtain the management network status information;

[0040] A service network status acquisition module, configured to use the service moon container service to read the service network configuration information and obtain service network status information;

[0041] A storage network status acquisition module, configured to use the storage moon container service to read the storage network configuration information and obtain storage network status information;

[0042] A server status determination module, configured to determine the server status by combining the management network status information, the service network status information and the storage network status information.

[0043] A server status detection device, comprising:

[0044] A memory, configured to store a computer program;

[0045] A processor, configured to implement the steps of the server status detection method as described above when executing the computer program.

[0046] A computer-readable storage medium, on which a computer program is stored, and the computer program implements the steps of the server status detection method as described above when executed by a processor.

[0047] In the server status detection method provided by the present invention, when a server status detection request is received, it is detected whether a management network, a service network and a storage network are configured in the cloud platform; if so, the kolla-ansible component is used to obtain the management network configuration information, the service network configuration information and the storage network configuration information; the management moon container service corresponding to the management network, the service moon container service corresponding to the service network and the storage moon container service corresponding to the storage network are retrieved from the container moon image; the management moon container service is used to read the management network configuration information to obtain management network status information; the service moon container service is used to read the service network configuration information to obtain service network status information; the storage moon container service is used to read the storage network configuration information to obtain storage network status information; the server status is determined by combining the management network status information, the service network status information and the storage network status information.

[0048] As can be seen from the above technical solution, by configuring the kolla-ansible component to support the moon container service, the kolla-ansible component can obtain the management network configuration information, service network configuration information, and storage network configuration information, and then read the management network status information, service network status information, and storage network status information, and comprehensively determine the server status by combining the management network status information, service network status information, and storage network status information. Compared with the existing method of only judging the server status through the management network status, the influence of the service network and storage network on the server status is fully considered, and the accuracy of the server status monitoring data is greatly improved.

[0049] Correspondingly, the present invention also provides a server status detection device, device, and computer-readable storage medium corresponding to the above server status detection method, which have the above technical effects and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.

[0051] Figure 1 It is a flowchart of an implementation of the server status detection method in an embodiment of the present invention;

[0052] Figure 2 It is another flowchart of an implementation of the server status detection method in an embodiment of the present invention;

[0053] Figure 3 It is a structural block diagram of a server status detection device in an embodiment of the present invention;

[0054] Figure 4 It is a structural block diagram of a server status detection device in an embodiment of the present invention;

[0055] Figure 5 It is a specific structural schematic diagram of a server status detection device provided in this embodiment. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0056] In order to enable those skilled in the art to better understand the solution of the present invention, the following will further elaborate on the present invention in conjunction with the drawings and specific embodiments. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.

[0057] See Figure 1 , Figure 1 which is a flowchart of an implementation of the server status detection method in an embodiment of the present invention. The method may include the following steps:

[0058] S101: When a server status detection request is received, detect whether a management network, a service network, and a storage network are configured in the cloud platform. If so, execute step S102; if not, output a prompt message indicating that the three-network configuration has not been performed.

[0059] When it is necessary to detect the server status, a server status detection request is generated and sent to the server status detection center. When the server status detection center receives the server status detection request, it detects whether a management network, a service network, and a storage network are configured in the cloud platform. If so, it means that the three-network configuration has been pre-performed, and step S102 is executed; if not, a prompt message indicating that the three-network configuration has not been performed is output.

[0060] The cloud platform can be an OpenStack cloud platform, which supports almost all types of cloud environments, is simple to implement, and is a cloud computing management platform that can be massively expanded, enriched, and standardized while providing high availability.

[0061] S102: Use the kolla-ansible component to obtain the management network configuration information, the service network configuration information, and the storage network configuration information.

[0062] A management network configuration file, a service network configuration file, and a storage network configuration file are pre-created and mapped to the kolla-ansible component. When it is detected that the management network, the service network, and the storage network are configured in the cloud platform, it means that the three-network configuration has been pre-performed, and the kolla-ansible component is used to obtain the management network configuration information, the service network configuration information, and the storage network configuration information.

[0063] The kolla-ansible component is responsible for deploying each service and infrastructure component of the containerized OpenStack cloud platform, configuring the services of the OpenStack cloud platform using the kolla-ansible component, and orchestrating the deployment of each service container of the OpenStack cloud platform. By using the isolation of containers, the upgrade and rollback of each service container of the OpenStack cloud platform are achieved, the influence range of the upgrade and rollback is controlled, and the complexity of the operation and maintenance of the OpenStack cloud platform cluster is reduced.

[0064] S103: Retrieve the management moon container service corresponding to the management network, the business moon container service corresponding to the business network, and the storage moon container service corresponding to the storage network from the container moon image.

[0065] Pre-build the container moon image, which deploys the management moon container service corresponding to the management network, the business moon container service corresponding to the business network, and the storage moon container service corresponding to the storage network. After obtaining the management network configuration information, business network configuration information, and storage network configuration information using the kolla-ansible component, retrieve the management moon container service corresponding to the management network, the business moon container service corresponding to the business network, and the storage moon container service corresponding to the storage network from the container moon image.

[0066] The moon container service is a service discovery and configuration management center service developed in the Go language. It incorporates a service registration and discovery framework, implementation of distributed consistency protocols, health checks, key / value storage, multi-data center solutions, and so on.

[0067] S104: Use the management moon container service to read the management network configuration information and obtain the management network status information.

[0068] The management network configuration information contains the management network status information. After retrieving the management moon container service corresponding to the management network from the container moon image, use the management moon container service to read the management network configuration information and obtain the management network status information.

[0069] S105: Use the business moon container service to read the business network configuration information and obtain the business network status information.

[0070] The business network configuration information contains the business network status information. After retrieving the business moon container service corresponding to the business network from the container moon image, use the business moon container service to read the business network configuration information and obtain the business network status information.

[0071] S106: Use the storage moon container service to read the storage network configuration information and obtain the storage network status information.

[0072] The storage network configuration information contains the storage network status information. After retrieving the storage moon container service corresponding to the storage network from the container moon image, use the storage moon container service to read the storage network configuration information and obtain the storage network status information.

[0073] S107: Determine the server status by combining the management network status information, business network status information, and storage network status information.

[0074] After reading the management network status information, service network status information, and storage network status information, the server status is determined by combining the management network status information, service network status information, and storage network status information. Through the three-network monitoring solution composed of the container moon image, the accuracy of server status judgment is greatly improved.

[0075] As can be seen from the above technical solution, by configuring the kolla-ansible component to support the moon container service, the kolla-ansible component can obtain the management network configuration information, service network configuration information, and storage network configuration information, and then read the management network status information, service network status information, and storage network status information, and comprehensively determine the server status by combining the management network status information, service network status information, and storage network status information. Compared with the existing method of only judging the server status through the management network status, the influence of the service network and storage network on the server status is fully considered, and the accuracy of the server status monitoring data is greatly improved.

[0076] It should be noted that based on the above embodiments, the embodiments of the present invention also provide corresponding improvement solutions. In the subsequent embodiments, the same steps or corresponding steps involved in the above embodiments can be referred to each other, and the corresponding beneficial effects can also be referred to each other, and will not be repeated one by one in the following improved embodiments.

[0077] In a specific implementation manner of the present invention, determining the server status by combining the management network status information, service network status information, and storage network status information may include the following steps:

[0078] Report the management network status information, service network status information, and storage network status information to the msakari component, so that the msakari component determines the server status according to the management network status information, service network status information, and storage network status information.

[0079] The masakari component is a set of virtual HA (High Availability) solutions. The Masakari component supports the monitoring of virtual machine processes, virtualization processes, and compute node processes. By monitoring the virtual machine process, Nova-compute service (i.e., the entry for managing and configuring virtual machines), and compute node status through shell scripts, the host high-availability function is realized.

[0080] See Figure 2 , Figure 2 which is another implementation flowchart of the server status detection method in the embodiments of the present invention. The method may include the following steps:

[0081] S201: When a server status detection request is received, determine whether the cloud platform is to deploy the host high-availability service. If so, execute step S202; if not, perform server status detection according to the preset conventional server status detection means.

[0082] When a server status detection request is received, determine whether the cloud platform is to deploy the host high-availability service. If so, it means that three-network monitoring of the server status is required, and step S202 is executed; if not, it means that three-network monitoring of the server status is not required, and server status detection is performed according to the preset conventional server status detection means. The preset conventional server status detection means can be to perform server status monitoring through a certain network among the management network, service network, and storage network that are preset.

[0083] S202: Detect whether the management network, service network, and storage network are configured in the cloud platform. If so, execute step S203; if not, output a prompt message indicating that three-network configuration has not been performed.

[0084] S203: Configure the kolla-ansible component to support the moon container service.

[0085] When it is determined that the management network, service network, and storage network are configured in the detected cloud platform, configure the kolla-ansible component to support the moon container service. The process of configuring the kolla-ansible component to support the moon container service can include the following four items:

[0086] A. Add moon-related fields in the global control file (globals.yml), which can control whether to deploy the moon service in the cluster;

[0087] B. Use to add moon-related fields in the host inventory files (multinode and all-in-one) to specify the nodes where the moon service is deployed;

[0088] C. Add moon-related fields in the file module entry file (site.yml) to include the moon service in the ansible project;

[0089] D. Add the startup configuration of the moon container under the role directory (roles).

[0090] By configuring the kolla-ansible component to support the moon container service, it is not necessary to first use the kolla-ansible component to deploy the OpenStack cloud platform and then separately deploy the moon container service to achieve host high availability, which simplifies the complexity and difficulty of the OpenStack on-site deployment.

[0091] S204: Use the kolla-ansible component to obtain the management network configuration information, service network configuration information, and storage network configuration information.

[0092] S205: Push the pre-built container moon image adapted to the kolla-ansible component to the corresponding image repository on the cloud platform.

[0093] There is a pre-set image repository in the cloud platform for storing each image. A container moon image adapted to the kolla-ansible component is pre-built. After the configuration for supporting the moon container service of the kolla-ansible component is completed, the pre-built container moon image adapted to the kolla-ansible component is pushed to the corresponding image repository on the cloud platform.

[0094] S206: Search for the container moon image in the image repository.

[0095] When receiving a server status detection request, search for the container moon image in the image repository.

[0096] S207: Invoke the management moon container service corresponding to the management network, the business moon container service corresponding to the service network, and the storage moon container service corresponding to the storage network from the container moon image.

[0097] S208: Use the management moon container service to read the management network configuration information to obtain the management network status information.

[0098] S209: Use the business moon container service to read the service network configuration information to obtain the service network status information.

[0099] S210: Use the storage moon container service to read the storage network configuration information to obtain the storage network status information.

[0100] S211: Obtain the preset management network status weight value, service network status weight value, and storage network status weight value.

[0101] The management network status weight value corresponding to the management network, the service network status weight value corresponding to the service network, and the storage network status weight value corresponding to the storage network are pre-set. Obtain the preset management network status weight value, service network status weight value, and storage network status weight value.

[0102] S212: Search for the management network status value corresponding to the management network status information, the service network status value corresponding to the service network status information, and the storage network status value corresponding to the storage network status information in the preset network status statistical table.

[0103] A network status statistical table for pre-setting and managing the correspondence relationships between various network status information and various management network status values, various service network status information and various service network status values, and various storage network status information and various storage network status values is set up. After reading the management network status information, service network status information, and storage network status information, the management network status value corresponding to the management network status information, the service network status value corresponding to the service network status information, and the storage network status value corresponding to the storage network status information are searched for from the pre-set network status statistical table.

[0104] S213: According to the management network status weight value, service network status weight value, and storage network status weight value, perform weighted calculations on the management network status value, service network status value, and storage network status value to obtain the target network status value.

[0105] After searching for the management network status value corresponding to the management network status information, the service network status value corresponding to the service network status information, and the storage network status value corresponding to the storage network status information from the pre-set network status statistical table, and obtaining the pre-set management network status weight value, service network status weight value, and storage network status weight value, perform weighted calculations on the management network status value, service network status value, and storage network status value according to the management network status weight value, service network status weight value, and storage network status weight value to obtain the target network status value.

[0106] S214: Determine whether the target network status value is within the pre-set network status threshold range. If so, execute step S215; if not, execute step S216.

[0107] A network status threshold range for determining whether the server status is normal is pre-set. After performing weighted calculations on the management network status value, service network status value, and storage network status value according to the management network status weight value, service network status weight value, and storage network status weight value to obtain the target network status value, determine whether the target network status value is within the pre-set network status threshold range. If so, execute step S215; if not, execute step S216.

[0108] S215: Determine that the server status is normal.

[0109] When it is currently determined that the target network status value is within the pre-set network status threshold range, determine that the server status is normal.

[0110] S216: Determine that the server status is abnormal.

[0111] When it is currently determined that the target network status value does not belong to the pre-set network status threshold range, determine that the server status is abnormal.

[0112] Corresponding to the above method embodiments, the present invention also provides a server status detection device. The server status detection device described below can be correspondingly referred to the server status detection method described above.

[0113] See Figure 3 , Figure 3 which is a structural block diagram of a server status detection device in an embodiment of the present invention. The device may include:

[0114] A detection module 31, configured to detect whether a management network, a service network, and a storage network are configured in the cloud platform when receiving a server status detection request;

[0115] A configuration information acquisition module 32, configured to use the kolla-ansible component to obtain management network configuration information, service network configuration information, and storage network configuration information when it is determined that a management network, a service network, and a storage network are configured in the cloud platform;

[0116] A container service invocation module 33, configured to invoke a management moon container service corresponding to the management network, a service moon container service corresponding to the service network, and a storage moon container service corresponding to the storage network from the container moon image;

[0117] A management network status acquisition module 34, configured to read the management network configuration information by using the management moon container service to obtain management network status information;

[0118] A service network status acquisition module 35, configured to read the service network configuration information by using the service moon container service to obtain service network status information;

[0119] A storage network status acquisition module 36, configured to read the storage network configuration information by using the storage moon container service to obtain storage network status information;

[0120] A server status determination module 37, configured to determine the server status by combining the management network status information, the service network status information, and the storage network status information.

[0121] It can be seen from the above technical solutions that by configuring the kolla-ansible component to support the moon container service, the kolla-ansible component can obtain the management network configuration information, the service network configuration information, and the storage network configuration information, and then read the management network status information, the service network status information, and the storage network status information, and comprehensively determine the server status by combining the management network status information, the service network status information, and the storage network status information. Compared with the existing method of only determining the server status through the management network status, the influence of the service network and the storage network on the server status is fully considered, and the accuracy of the server status monitoring data is greatly improved.

[0122] In a specific embodiment of the present invention, the server status determination module 37 includes:

[0123] A weight value acquisition sub-module, configured to acquire a preset management network status weight value, a service network status weight value, and a storage network status weight value;

[0124] A status value search sub-module, configured to search for a management network status value corresponding to the management network status information, a service network status value corresponding to the service network status information, and a storage network status value corresponding to the storage network status information from a preset network status statistical table;

[0125] A weighted calculation sub-module, configured to perform weighted calculation on the management network status value, the service network status value, and the storage network status value according to the management network status weight value, the service network status weight value, and the storage network status weight value to obtain a target network status value;

[0126] A server status determination sub-module, configured to determine the server status according to the target network status value.

[0127] In a specific embodiment of the present invention, the server status determination sub-module includes:

[0128] A judgment unit, configured to judge whether the target network status value is within a preset network status threshold range;

[0129] A first status determination unit, configured to determine that the server status is normal when it is determined that the target network status value is within the preset network status threshold range;

[0130] A second status determination unit, configured to determine that the server status is abnormal when it is determined that the target network status value is not within the preset network status threshold range.

[0131] In a specific embodiment of the present invention, the server status determination module 37 is specifically a module that reports the management network status information, the service network status information, and the storage network status information to the msakari component, so that the msakari component determines the server status according to the management network status information, the service network status information, and the storage network status information.

[0132] In a specific embodiment of the present invention, the device may further include:

[0133] A judgment module, configured to judge whether the cloud platform is to deploy the host high-availability service;

[0134] The detection module 31 is specifically a module that detects whether the management network, the service network, and the storage network are configured in the cloud platform when it is determined that the cloud platform is to deploy the host high-availability service.

[0135] In a specific embodiment of the present invention, the container service invocation module 33 includes:

[0136] A container image push sub-module, configured to push the pre-built container moon image adapted to the kolla-ansible component to the corresponding image repository on the cloud platform;

[0137] A container image search sub-module, configured to search for the container moon image from the image repository;

[0138] A container service invocation sub-module, configured to invoke the management moon container service corresponding to the management network, the business moon container service corresponding to the business network, and the storage moon container service corresponding to the storage network from the container moon image.

[0139] In a specific embodiment of the present invention, the device may further include:

[0140] A container service configuration module, configured to perform moon container service support configuration on the kolla-ansible component before obtaining the management network configuration information, the business network configuration information, and the storage network configuration information by using the kolla-ansible component.

[0141] Corresponding to the above method embodiment, refer to Figure 4 , Figure 4 which is a schematic diagram of the server status detection device provided by the present invention. The device may include:

[0142] A memory 332, configured to store a computer program;

[0143] A processor 322, configured to implement the steps of the server status detection method in the above method embodiment when executing the computer program.

[0144] Specifically, please refer to Figure 5 , Figure 5 which is a specific structural schematic diagram of a server status detection device provided in this embodiment. The server status detection device may vary greatly due to configuration or performance differences, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332. The memory 332 stores one or more computer application programs 342 or data 344. Among them, the memory 332 may be short-term storage or persistent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the data processing device. Further, the processor 322 may be configured to communicate with the memory 332 and execute a series of instruction operations in the memory 332 on the server status detection device 301.

[0145] The server status detection device 301 may further include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input / output interfaces 358, and / or one or more operating systems 341.

[0146] The steps in the server status detection method described above may be implemented by the structure of the server status detection device.

[0147] Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the following steps may be implemented:

[0148] When a server status detection request is received, detect whether a management network, a service network, and a storage network are configured in the cloud platform; if so, use the kolla-ansible component to obtain the management network configuration information, the service network configuration information, and the storage network configuration information; retrieve the management moon container service corresponding to the management network, the service moon container service corresponding to the service network, and the storage moon container service corresponding to the storage network from the container moon image; use the management moon container service to read the management network configuration information to obtain the management network status information; use the service moon container service to read the service network configuration information to obtain the service network status information; use the storage moon container service to read the storage network configuration information to obtain the storage network status information; determine the server status by combining the management network status information, the service network status information, and the storage network status information.

[0149] The computer-readable storage medium may include: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.

[0150] For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, and the present invention will not be elaborated herein.

[0151] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments may be referred to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts may be referred to the description of the method part.

[0152] In this article, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only to help understand the technical solution and its core idea of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

Claims

1. A server status detection method, characterized in that including: When receiving a server status detection request, determine whether the cloud platform is to deploy the host high-availability service; If not, perform server status detection according to the preset conventional server status detection means; wherein, the preset conventional server status detection means is to monitor the server status through any one of the management network, the service network, and the storage network set in advance; If so, detect whether the management network, the service network, and the storage network are configured in the cloud platform; If so, perform moon container service support configuration on the kolla-ansible component, and use the kolla-ansible component to obtain the management network configuration information, the service network configuration information, and the storage network configuration information; Push the pre-built container moon image adapted to the kolla-ansible component to the mirror repository corresponding to the cloud platform; Search for the container moon image in the mirror repository; Invoke the management moon container service corresponding to the management network, the business moon container service corresponding to the service network, and the storage moon container service corresponding to the storage network from the container moon image; Use the management moon container service to read the management network configuration information to obtain the management network status information; Use the business moon container service to read the service network configuration information to obtain the service network status information; Use the storage moon container service to read the storage network configuration information to obtain the storage network status information; Determine the server status by combining the management network status information, the service network status information, and the storage network status information; Determining the server status by combining the management network status information, the service network status information, and the storage network status information includes: Obtain the preset management network status weight value, service network status weight value, and storage network status weight value; Search for the management network status value corresponding to the management network status information, the service network status value corresponding to the service network status information, and the storage network status value corresponding to the storage network status information from the preset network status statistical table; According to the management network status weight value, the service network status weight value, and the storage network status weight value, perform weighted calculation on the management network status value, the service network status value, and the storage network status value to obtain the target network status value; Judge whether the target network status value is within the preset network status threshold range; If so, determine that the server status is normal; If not, determine that the server status is abnormal.

2. The server status detection method according to claim 1, wherein Determining the server status by combining the management network status information, the service network status information, and the storage network status information includes: Report the management network status information, the service network status information, and the storage network status information to the msakari component, so that the msakari component determines the server status according to the management network status information, the service network status information, and the storage network status information.

3. A server status detection device, characterized in that, including: A judgment module, configured to determine whether the cloud platform is to deploy the host high-availability service when receiving a server status detection request; A detection module, which is used to detect whether a management network, a service network, and a storage network are configured in the cloud platform when it is determined that the high-availability service of the host to be deployed in the cloud platform; when it is determined that the high-availability service of the host in the cloud platform is not the host to be deployed, perform server status detection according to the preset conventional server status detection means; wherein, the preset conventional server status detection means is to perform server status monitoring through any one of the management network, the service network, and the storage network which is preset. A container service configuration module, which is used to perform moon container service support configuration for the kolla-ansible component when it is determined that a management network, a service network, and a storage network are configured in the cloud platform. A configuration information acquisition module, which is used to use the kolla-ansible component to acquire management network configuration information, service network configuration information, and storage network configuration information. A container service invocation module, and the container service invocation module includes: A container image push sub-module, which is used to push the pre-built container moon image adapted to the kolla-ansible component to the corresponding image repository in the cloud platform. A container image search sub-module, which is used to search for the container moon image in the image repository. A container service invocation sub-module, which is used to invoke the management moon container service corresponding to the management network, the service moon container service corresponding to the service network, and the storage moon container service corresponding to the storage network from the container moon image. A management network status acquisition module, which is used to use the management moon container service to read the management network configuration information to obtain management network status information. A service network status acquisition module, which is used to use the service moon container service to read the service network configuration information to obtain service network status information. A storage network status acquisition module, which is used to use the storage moon container service to read the storage network configuration information to obtain storage network status information. A server status determination module, which is used to determine the server status by combining the management network status information, the service network status information, and the storage network status information. The server status determination module includes: A weight value acquisition sub-module, which is used to acquire the preset weight value of the management network status, the weight value of the service network status, and the weight value of the storage network status. A status value search sub-module, which is used to search for the management network status value corresponding to the management network status information, the service network status value corresponding to the service network status information, and the storage network status value corresponding to the storage network status information from the preset network status statistical table. A weighted calculation sub-module, which is used to perform weighted calculation on the management network status value, the service network status value, and the storage network status value according to the weight value of the management network status, the weight value of the service network status, and the weight value of the storage network status to obtain the target network status value. A server status determination sub-module, and the server status determination sub-module includes: A judgment unit, which is used to judge whether the target network status value is within the preset network status threshold range. A first status determination unit, which is used to determine that the server status is normal when it is determined that the target network status value is within the preset network status threshold range. A second status determination unit, configured to determine that the server status is abnormal when it is determined that the target network status value is not within a preset network status threshold range.

4. A server status detection device, characterized in that, Including: A memory, configured to store a computer program; A processor, configured to implement the steps of the server status detection method according to any one of claims 1 to 2 when executing the computer program.

5. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the server status detection method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Network disaster tolerance method for information synchronization

    CN106713025A

  • Container service deployment method, device and equipment and readable storage medium

    CN111736956A

  • Method based on distributed fault monitoring and virtual machine high-availability system

    CN111953566A