Cloud host high availability system and cloud platform
By introducing FDA and FDM components into the cloud host system to exchange heartbeat information, monitor node status in real time and automatically respond to processing, the problem of cloud host high availability is solved, and rapid fault recovery and cost reduction are achieved.
Patent Information
- Application Number
- CN202410561929.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-08
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-08
AI Technical Summary
Existing technologies cannot effectively guarantee the high availability of cloud hosts, resulting in long unplanned downtime and high operation and maintenance costs, affecting business continuity.
A cloud host high-availability system is designed, including multiple computing nodes and master control nodes. It exchanges heartbeat information through FDA service components and FDM monitoring components, monitors node status in real time, and automatically responds to failures in case of failures, reducing downtime and operation. dimension cost.
It achieves rapid business recovery when a failure occurs, ensures the stability of the high-availability function of the cloud host, and reduces unplanned downtime and operation and maintenance costs.
Smart Images

Figure CN118138588B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud hosts, and in particular to a cloud host high-availability system and a cloud platform. Background Art
[0002] With the expansion of enterprises and the advancement of technology, it has become a trend to deploy cloud services to meet corporate business needs. In the process of providing services on cloud platforms, high availability has always been a very important function. If the cloud host goes down, it will have a great impact on business continuity and may cause business interruption for too long, thus affecting the user experience.
[0003] Although some related technologies such as CN106775953A provide some methods for achieving high availability, they cannot effectively guarantee the stability of the high availability function of the cloud host. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first object of the present invention is to provide a cloud host high availability system that can reduce the unplanned downtime and operation and maintenance costs of the cloud host, quickly restore services when a failure occurs, and ensure the stability of the cloud host high availability function.
[0005] The second objective of the present invention is to provide a cloud platform.
[0006] To achieve the above-mentioned purpose, an embodiment of the first aspect of the present invention proposes a cloud host high-availability system, which includes: multiple computing nodes, each of which includes multiple virtual machines and FDA (Fault Domain Agent, high-availability agent component) service components; a ceph (scalable high-performance object storage system) storage pool, the ceph storage pool is used to store the first heartbeat information written by the virtual machine to the storage network through the FDA service component every first preset time period; multiple master control nodes, each of which includes an FDM (Fault Domain Manager, high-availability management component) monitoring component, the FDM monitoring component is used to receive the second heartbeat information sent by the virtual machine to the management network through the FDA service component every second preset time period, and is also used to read the latest first heartbeat information in the ceph storage pool through the storage network, and determine the status of the computing node according to the reception status of the second heartbeat information and the update status of the latest first heartbeat information, and respond to the computing node according to the status.
[0007] In this embodiment, the cloud host high availability system includes multiple computing nodes, ceph storage pools and multiple master nodes, wherein the virtual machines in the computing nodes can send heartbeat information to the management network and storage network through the FDA service component, so that the master node can receive the heartbeat information in the management network and storage network through the FDM monitoring component, and determine the status information of the computing node according to the reception status and update status of the heartbeat information, and then respond to the computing node according to the status information of the computing node. Therefore, this embodiment can reduce the unplanned downtime and operation and maintenance costs of the cloud host, quickly restore the business when a failure occurs, and ensure the stability of the high availability function of the cloud host.
[0008] In some embodiments of the present invention, each of the master control nodes also includes an FDI (Fault Domain API, high availability API component) service component, which provides an API (Application Programming Interface) service. The management page of the cloud host accesses and sets the master control node through the API service of the FDI service component.
[0009] In some embodiments of the present invention, the multiple master control nodes determine a master FDM monitoring component and at least one slave FDM monitoring component from the multiple FDM monitoring components by competing for etcd locks, and automatically release the etcd lock when the master FDM monitoring component fails, so that the at least one slave FDM monitoring component can re-determine the master FDM monitoring component by competing for etcd locks.
[0010] In some embodiments of the present invention, the computing node also sends update information to the local file through the FDA service component every third preset time period, and restarts the FDA service component when no update information is sent to the local file for a fourth preset time period.
[0011] In some embodiments of the present invention, the state of the computing node is determined according to the reception status of the second heartbeat information and the update status of the latest first heartbeat information, including: when it is determined according to the reception status of the second heartbeat information that the FDM monitoring component has not received the second heartbeat information for a fifth preset period of time, and it is determined according to the update status of the latest first heartbeat information that the virtual machine normally writes the first heartbeat information to the storage network, then it is determined that the computing node is in an isolated state; when it is determined according to the reception status of the second heartbeat information that the FDM monitoring component has not received the second heartbeat information for a fifth preset period of time, and it is determined according to the update status of the latest first heartbeat information that the virtual machine does not normally write the first heartbeat information to the storage network, then it is determined that the computing node is in a fault state; when it is determined according to the reception status of the second heartbeat information that the FDA service component has not written the first heartbeat information to the storage network for a sixth preset period of time, then it is determined that the computing node is in a storage abnormality state.
[0012] In some embodiments of the present invention, after determining that the FDM monitoring component has not received the second heartbeat information for a fifth preset period of time based on the reception status of the second heartbeat information, the main control node also sends a ping (Packet Internet Groper) command to the management network to determine if the management network is abnormal.
[0013] In some embodiments of the present invention, when the computing node is in the isolated state, the computing node is responded to according to the state, including: disabling, soft-shutdown or hard-shutdown of the computing node according to the isolated state, wherein the disabling is to release an alarm message; the soft-shutdown is to shut down the virtual machine after releasing the alarm message, and if the virtual machine is not shut down normally after a seventh preset time, the power supply of the virtual machine is turned off, and the virtual machines in the computing node in the isolated state are evacuated to computing nodes in a normal state in order of priority; the hard-shutdown is to shut down the power supply of the virtual machine after releasing the alarm message, and the virtual machines in the computing node in the isolated state are evacuated to computing nodes in a normal state in order of priority.
[0014] In some embodiments of the present invention, when the computing node is in the storage abnormality state, the computing node is responded to according to the state, including: disabling or hard shutting down the computing node according to the storage abnormality state, wherein the disabling process is to release an alarm message; the hard shutting down process is to turn off the power supply of the virtual machine after releasing the alarm message, and evacuate the virtual machines in the computing node in the storage abnormality state to the computing nodes in a normal state in order of priority.
[0015] In some embodiments of the present invention, the FDM monitoring component is also used to: after receiving a second heartbeat message sent by the computing node to the management network through the FDA service component, if the second heartbeat message includes storage normal notification information, suspend the evacuation task of the virtual machine in the computing node and start the computing node to run the computing node.
[0016] In some embodiments of the present invention, when the computing node is in the fault state, the computing node is responded to according to the state, including: disabling or restarting the computing node according to the fault state, wherein the disabling process is to release the alarm information; the restart process is to add the storage network IP of the computing node to the blacklist of the ceph storage pool after releasing the alarm information, and evacuate the virtual machines in the computing node in the isolated state to the computing node in normal state in order of priority, and after receiving the second heartbeat information of the computing node in the fault state, turn off the power supply of all virtual machines in the computing node, cancel the storage network IP of the computing node from the blacklist of the ceph storage pool, and then write the first heartbeat information to the storage network through the FDA service component of the computing node in the isolated state, suspend the evacuation task of the virtual machines in the computing node after the FDA service component writes the first heartbeat information normally, and restart the computing node.
[0017] To achieve the above objectives, a second aspect of the present invention provides a cloud platform, which includes the cloud host high-availability system described in any one of the above embodiments.
[0018] The cloud platform of the embodiment of the present invention can reduce the unplanned downtime and operation and maintenance costs of the cloud host through the cloud host high availability system in the above embodiment, quickly restore business when a failure occurs, and ensure the stability of the cloud host's high availability function.
[0019] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a schematic diagram of a cloud host high availability system in a specific embodiment of the present invention;
[0021] Figure 2 It is a schematic diagram of the structure of FDI high availability in a specific embodiment of the present invention;
[0022] Figure 3 It is a schematic diagram of the structure of FDM high availability in a specific embodiment of the present invention;
[0023] Figure 4 is a schematic diagram of a computing node in an isolated state in a specific embodiment of the present invention;
[0024] Figure 5 is a schematic diagram of a computing node in a storage abnormality state in a specific embodiment of the present invention;
[0025] Figure 6 is a schematic diagram of a computing node in a fault state in a specific embodiment of the present invention;
[0026] Figure 7 It is a structural block diagram of the cloud platform in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0028] The cloud host high availability system and cloud platform according to the embodiments of the present invention are described below with reference to the accompanying drawings.
[0029] The present invention proposes a cloud host high-availability system, which includes multiple computing nodes, a ceph storage pool and multiple master control nodes.
[0030] Among them, each computing node includes multiple virtual machines and FDA service components; the ceph storage pool is used to store the first heartbeat information written by the virtual machine to the storage network through the FDA service component every first preset time period; each master control node includes an FDM monitoring component, the FDM monitoring component is used to receive the second heartbeat information sent by the virtual machine to the management network through the FDA service component every second preset time period, and is also used to read the latest first heartbeat information in the ceph storage pool through the storage network, and determine the status of the computing node according to the reception status of the second heartbeat information and the update status of the latest first heartbeat information, and respond to the computing node according to the status.
[0031] Specifically, Figure 1The specific embodiment shown describes the cloud host high availability system of the present invention. It should be noted that this embodiment is described with a computing node and a master control node, wherein the computing node includes multiple virtual machines VM (Virtual Machine, virtual machine) and FDA service components, and the master control node includes an FDM monitoring component. The virtual machine VM writes the first heartbeat information to the storage network through the FDA service component every first preset time, and then the ceph storage pool can store the first heartbeat information, and the master control node can obtain the first heartbeat information stored in the ceph from the storage network through the FDM monitoring component, that is, the computing node and the master control node can send the first heartbeat information through the ceph storage pool. The master control node can also receive the second heartbeat information sent by the virtual machine to the management network through the FDA service component every second preset time through the FDM monitoring component. Specifically, the FDA service component can send the second heartbeat information to the management network every second preset time, so that the FDM health monitoring component can receive the second heartbeat information through the management network. It can be understood that both the first heartbeat information and the second heartbeat information can be used to indicate the health status of the computing node, and the status of the computing node can be determined specifically based on the reception status of the second heartbeat information and the latest update status of the first heartbeat information, and response processing can be performed based on the status to ensure that the computing node can quickly resume business after a failure occurs.
[0032] Optionally, the first preset duration of this embodiment is 5 seconds, and the second preset duration is 2 seconds. Of course, in other embodiments, the preset durations can also be adaptively modified, which is not specifically limited here.
[0033] In some embodiments of the present invention, each master control node also includes an FDI service component, which provides an API interface service. The management page of the cloud host accesses and sets the master control node through the API interface of the FDI service component.
[0034] Specifically, Figure 1 As shown, the master control node also includes an FDI service component, and the FDI service component also provides an API interface service. The cloud host management page portal can access and set the master control node where the FDI service component is located through the API interface service. For more details, see Figure 2It can be seen that the FDI service component can achieve its own high availability through haproxy and keepalived. It should be noted that the FDI service components are set on different master nodes to avoid affecting other FDI service components when the FDI service component in one master node fails. By setting the FDI service components on different master nodes, even if one FDI service component fails, the load can be automatically distributed to other FDI service components to achieve load balancing.
[0035] In some embodiments of the present invention, multiple master control nodes determine a master FDM monitoring component and at least one slave FDM monitoring component from multiple FDM monitoring components by competing for etcd locks, and automatically release the etcd lock when the master FDM monitoring component fails, so that at least one slave FDM monitoring component can re-determine the master FDM monitoring component by competing for the etcd lock.
[0036] Specifically, since the FDM monitoring component is the most important service in the cloud host high availability, in order to prevent the failure of a single FDM monitoring component from causing the entire cloud host high availability function to be unavailable, this embodiment uses the active-standby mode to deploy the FDM monitoring component service. Figure 3 As shown, the FDM monitoring component is run in multiple master nodes, and the service is ensured to be provided by only one master FDM monitoring component at the same time by competing for etcd locks. The DB in the figure represents the Database. When the master FDM monitoring component fails, the etcd lock held will be automatically released after a timeout (the timeout can be set to 5s). The standby FDM monitoring component will start to compete for the etcd lock. The FDM monitoring component that competes for the etcd lock will become the new master FDM monitoring component, take over the work of the previous master FDM monitoring component, and start to manage the high-availability cluster. It should be noted that the failures of the FDM monitoring component in this embodiment include the master node being unable to access the storage cluster, the FDM service being abnormally stopped, or the FDM service thread being hung.
[0037] In some embodiments of the present invention, the computing node also sends update information to the local file through the FDA service component every third preset time period, and restarts the FDA service component when no update information is sent to the local file for a fourth preset time period.
[0038] Specifically, in the high availability setting of the FDA service component, if the FDA service component is abnormally terminated or the program hangs, the FDA service component may not be able to operate normally, and then when the FDM monitoring component cannot receive the heartbeat sent by the FDA service component, it may cause a misjudgment of the cloud host. Therefore, in order to avoid this situation, the present embodiment also sets a watchdog processing mechanism, which can restart the FDA service component when the FDA service component is abnormal to ensure the availability of the FDA service component. More specifically, the FDA main thread can send update information to the local file every third preset time, and then the watchdog service can continue to monitor the update information of the file. If the file does not have any update information for a fourth preset time, the FDA service component can be restarted. Among them, the fourth preset time can be longer than the third preset time. Optionally, the third preset time can be 2 seconds and the fourth preset time can be 10 seconds.
[0039] In some embodiments of the present invention, the state of a computing node is determined based on the reception status of a second heartbeat message and the update status of the latest first heartbeat message, including: when it is determined based on the reception status of the second heartbeat message that the FDM monitoring component has not received the second heartbeat message for a fifth preset period of time, and it is determined based on the update status of the latest first heartbeat message that the virtual machine normally writes the first heartbeat message to the storage network, then it is determined that the computing node is in an isolated state; when it is determined based on the reception status of the second heartbeat message that the FDM monitoring component has not received the second heartbeat message for a fifth preset period of time, and it is determined based on the update status of the latest first heartbeat message that the virtual machine normally writes the first heartbeat message to the storage network, then it is determined that the computing node is in a fault state; when it is determined based on the reception status of the second heartbeat message that the FDA service component has not written the first heartbeat message to the storage network for a sixth preset period of time, then it is determined that the computing node is in a storage abnormality state.
[0040] Specifically, if the FDM monitoring component has not received the second heartbeat information for the fifth preset time period, the first heartbeat information is further read from the storage network. If the first heartbeat information obtained by the FDM monitoring component indicates that the FDA service component is still writing the first heartbeat information to the storage network normally, it can be determined that the FDA service component cannot send the second heartbeat information through the management network, but can write the first heartbeat information through the configured storage cluster, so it can be determined that the computing node is in an isolated state. If the FDM monitoring component has not received the second heartbeat information for the fifth preset time period, the first heartbeat information is further read from the storage network. If the first heartbeat information obtained by the FDM monitoring component indicates that the FDA service component is currently unable to write the first heartbeat information to the storage network normally, it can be determined that the FDA service component cannot send the second heartbeat information through the management network, and cannot write the first heartbeat information through the configured storage cluster, so it can be determined that the computing node is in a faulty state. If the FDA service component is unable to write the first heartbeat information to the ceph storage pool for the sixth preset period of time, the information can be incorporated into the second heartbeat information and sent together through the management network to the FDM monitoring component. The FDM monitoring component determines based on the second heartbeat information that the FDA service component has not written the first heartbeat information to the storage network for the sixth preset period of time, and then it can be determined that the computing node is in a storage abnormality state.
[0041] Optionally, the fifth preset time length and the sixth preset time length in this embodiment can both be set to 60 seconds.
[0042] In this embodiment, after determining according to the reception status of the second heartbeat information that the FDM monitoring component has not received the second heartbeat information for a fifth preset period of time, the main control node further sends a ping command to the management network to determine that the management network is abnormal.
[0043] Specifically, in the process of determining whether the computing node is in an isolated state or a faulty state, if it is determined that the FDM monitoring component has not received the second heartbeat information for the fifth preset time period, the master control node can send a ping command to the management network to determine whether the node network is normal. If the management network address does not receive a return packet, it can be determined that there is an abnormality in the node network. If a report is received from the node, it means that the node network is normal but the FDA service component has an abnormality. At this time, a cloud host alarm message needs to be issued.
[0044] In some embodiments of the present invention, when a computing node is in an isolated state, a response process is performed on the computing node according to the state, including: disabling, soft-shutdown or hard-shutdown of the computing node according to the isolation state, wherein the disabling process is to release an alarm message; the soft-shutdown process is to shut down the virtual machine after releasing the alarm message, and if the virtual machine is not shut down normally after a seventh preset time period, the power supply of the virtual machine is turned off, and the virtual machines in the computing node in the isolated state are evacuated to computing nodes in a normal state in order of priority; the hard-shutdown process is to shut down the power supply of the virtual machine after releasing the alarm message, and evacuate the virtual machines in the computing node in the isolated state to computing nodes in a normal state in order of priority.
[0045] Specifically, Figure 4 As shown, the master can be understood as the FDM monitoring component, the agent can be understood as the FDA service component, and the storage can be understood as the ceph storage pool. The isolation state is that the management heartbeat (i.e., the second heartbeat information) sent by the agent to the master is abnormal, but the storage heartbeat (i.e., the first heartbeat information) can be updated normally in the storage, and the master does not receive a response packet after executing the icmp ping command to the agent, but can monitor the normal storage heartbeat in the storage. For the isolation state, the response adopted by this embodiment is to disable the computing node, perform soft shutdown or hard shutdown. The specific response strategy can be set in the management page portal through 'Resource Cluster → High Availability Configuration'. This implementation can be set to disable by default. Among them, the disabling process is to release the alarm information; the soft shutdown process is to shut down the virtual machine after releasing the alarm information, and if the virtual machine is not shut down normally after the seventh preset time, the power supply of the virtual machine is turned off, and the virtual machines in the computing nodes in the isolated state are evacuated to the computing nodes in the normal state according to the priority order; the hard shutdown process is to shut down the power supply of the virtual machine after releasing the alarm information, and evacuate the virtual machines in the computing nodes in the isolated state to the computing nodes in the normal state according to the priority order.
[0046] More specifically, the disabling process only issues a platform alarm, and does not perform any response operations on the affected cloud hosts and virtual machines. In the soft shutdown process, the HA (High Availability) system first issues a platform alarm, then disables and forcibly shuts down the computing service nova-compute on the isolated host, stops the nova-compute service and cinder-volume service on the isolated host, and then performs a normal shutdown operation on all running virtual machines on the isolated host. If the normal shutdown cannot be performed within 60 seconds, the power is turned off, and then the virtual machines in the isolated compute node are evacuated to the compute nodes in the normal state in order of priority. In the hard shutdown process, the HA system first issues a platform alarm, then disables and forcibly shuts down the computing service nova-compute on the isolated host, stops the nova-compute service and cinder-volume service on the isolated host, and then performs a power off operation on all running virtual machines on the isolated host, and then evacuates the virtual machines in the isolated compute node to the compute nodes in the normal state in order of priority.
[0047] In some embodiments of the present invention, when a computing node is in a storage abnormality state, a response process is performed on the computing node according to the state, including: disabling or hard shutting down the computing node according to the storage abnormality state, wherein the disabling process is to release an alarm message; the hard shutting down process is to turn off the power supply of the virtual machine after releasing the alarm message, and evacuate the virtual machines in the computing node in the storage abnormality state to the computing node in a normal state in order of priority.
[0048] Specifically, Figure 5 As shown, the master can be understood as the FDM monitoring component, the agent can be understood as the FDA service component, and the storage can be understood as the ceph storage pool. The storage abnormal state is that the agent can send the management heartbeat (i.e., the second heartbeat information) to the master normally, but the storage heartbeat (i.e., the first heartbeat information) written by the agent to the storage is abnormal, and the management heartbeat sent by the agent received by the master for 60 seconds carries the storage heartbeat abnormal information. For the storage abnormal state, the response adopted by this embodiment is to disable or hard shut down the computing node. The specific response strategy can be set in the management page portal through 'Resource Cluster → High Availability Configuration'. This embodiment can be set to hard shutdown by default. Among them, the disabling process is to release the alarm information; the hard shutdown process is to turn off the power supply of the virtual machine after releasing the alarm information, and evacuate the virtual machines in the computing node in the storage abnormal state to the computing node in the normal state according to the priority order.
[0049] More specifically, the disabling process only issues a platform alarm and does not perform any response operations on the affected cloud hosts and virtual machines. In the hard shutdown process, the HA (High Availability) system first issues a platform alarm, then disables and forcibly shuts down the computing service nova-compute on the storage abnormal host, stops the nova-compute service and cinder-volume service on the storage abnormal host, and then shuts down the power of all running virtual machines on the storage abnormal host. Then, the virtual machines in the computing nodes with storage abnormality are evacuated to the computing nodes in normal state according to the priority order.
[0050] In one embodiment of the present invention, the FDM monitoring component is also used to: after receiving the second heartbeat information sent by the computing node to the management network through the FDA service component, if the second heartbeat information includes storage normal notification information, suspend the evacuation task of the virtual machine in the computing node and start the computing node to run the computing node.
[0051] Specifically, in the isolation state and the storage exception state, in the process of evacuating the virtual machines in the computing node in the isolation state or the storage exception state to the computing node in the normal state in order of priority, if the second heartbeat information sent by the computing node in the isolation state or the storage exception state is received, it means that the management network heartbeat can be executed normally, and if it is detected that the second heartbeat information includes normal storage communication information, it means that the current storage exception has also been resolved, so the evacuation task of the virtual machine in the computing node can be suspended and the computing node in the isolation state or the storage exception state can be started, and then the computing node can be run.
[0052] More specifically, after the FDM monitoring component receives the management heartbeat from the FDA service component, it determines from the management heartbeat that the storage heartbeat of the node is written normally, and then suspends the evacuation task of the faulty node (i.e., the computing node in the isolation state or storage abnormal state mentioned above), and waits for the completion of the virtual machine task being evacuated on the node, and then cancels the virtual machine tasks that have not started evacuation and failed evacuation on the faulty node, and starts the nova-compute service and cinder-volume service on the faulty node, and sets the node status to running. In this way, the node that has been restored to health can be quickly enabled to continue to provide services for the cloud platform.
[0053] It should be noted that in this embodiment, when evacuating the virtual machine tasks on the faulty node to other computing nodes, different high availability priorities can be set for the virtual machines according to different business priorities, and then the virtual machines can be evacuated in an orderly manner according to high, medium and low priorities during the evacuation process. The evacuation waiting time between different priorities can also be set through the cluster setting interface. After all virtual machines of the previous priority are evacuated successfully, wait for a period of time before starting to evacuate the virtual machines of the next priority to ensure that the low-priority virtual machines will not affect the startup of the high-priority virtual machines.
[0054] In one embodiment of the present invention, when a computing node is in a faulty state, a response process is performed on the computing node according to the state, including: disabling or restarting the computing node according to the faulty state, wherein the disabling process is to release the alarm information; the restart process is to add the storage network IP of the computing node to the blacklist of the ceph storage pool after releasing the alarm information, and evacuate the virtual machines in the computing node in the isolated state to the computing node in the normal state in order of priority, and after receiving the second heartbeat information of the computing node in the faulty state, shut down the power supply of all virtual machines in the computing node, cancel the storage network IP of the computing node from the blacklist of the ceph storage pool, and then write the first heartbeat information to the storage network through the FDA service component of the computing node in the faulty state, suspend the evacuation task of the virtual machines in the computing node after the FDA service component writes the first heartbeat information normally, and restart the computing node.
[0055] Specifically, Figure 6 As shown, the master can be understood as the FDM monitoring component, the agent can be understood as the FDA service component, and the storage can be understood as the ceph storage pool. The fault state is that the management heartbeat (i.e., the second heartbeat information) sent by the agent to the master is abnormal, and the storage heartbeat (i.e., the first heartbeat information) written by the agent to the storage is also abnormal. Furthermore, the master does not receive a response packet after executing the icmp ping command to the agent, and the master detects that the storage heartbeat update in the storage is abnormal. For the fault state, the response adopted by this embodiment is to disable or restart the computing node. The specific response strategy can be set in the management page portal through 'Resource Cluster → High Availability Configuration'. This implementation can be set to restart by default.
[0056] The disabling process is to release the alarm information. In the restart process, the HA (High Availability) system first releases the alarm information and then shuts down, then disables and forcibly shuts down the computing service nova-compute on the isolated host, and then evacuates the virtual machines in the isolated computing nodes to the computing nodes in normal state according to the priority order.
[0057] In order to protect the virtual machine, when the computing node is in a faulty state, if the response operation of the restart process is configured, the FDM monitoring component will evacuate the virtual machine and the virtual machine will be started on several new nodes. At this time, if the virtual machine of the faulty node is still running, it will cause the problem of two virtual machines writing to the same disk at the same time, which will cause confusion. For this fault scenario, since the faulty node cannot be accessed through the network, the FDM monitoring component cannot send relevant instructions to let the FDA service component execute the virtual machine shutdown operation. This embodiment uses the ceph storage blacklist to prevent the double writing problem of the virtual machine. The ceph blacklist mechanism is to add the faulty node to the blacklist of the ceph cluster, so that all virtual machines on the faulty node cannot read and write to the storage cluster. Specifically, the storage network IP of the faulty node can be added to the ceph cluster blacklist, and then the evacuation action is performed on the virtual machine on the faulty node to ensure that the virtual machine that is successfully evacuated will not have the disk double writing problem.
[0058] Based on the above-mentioned ceph blacklist mechanism and the feature that the computing node will continue to send heartbeat information to the management network after it recovers, the restart processing of this embodiment also includes, after receiving the second heartbeat information of the computing node in a faulty state, stopping the nova-compute service and cinder-volume service of the FDA service component, shutting down the power supply of all virtual machines in the computing node, canceling the storage network IP of the computing node from the blacklist of the ceph storage pool, and then writing the first heartbeat information to the storage network through the FDA service component of the computing node in a faulty state, suspending the evacuation task of the virtual machine in the computing node after the FDA service component writes the first heartbeat information normally, waiting for the completion of the virtual machine task being evacuated by the computing node, canceling the virtual machine task that has not started evacuation and failed evacuation on the faulty node, and then starting the virtual machine that has not been evacuated, as well as starting the nova-compute service and cinder-volume service on the faulty node, and then setting the status of the computing node to running.
[0059] In summary, the cloud host high availability system of the embodiment of the present invention can reduce the unplanned downtime and operation and maintenance costs of the cloud host, quickly restore services when a failure occurs, and ensure the stability of the cloud host's high availability function.
[0060] Figure 7 It is a structural block diagram of the cloud platform in an embodiment of the present invention.
[0061] like Figure 7 As shown, the present invention proposes a cloud platform 100, which includes the cloud host high availability system in the above embodiment.
[0062] The cloud platform of the embodiment of the present invention can reduce the unplanned downtime and operation and maintenance costs of the cloud host through the cloud host high availability system in the above embodiment, quickly restore business when a failure occurs, and ensure the stability of the cloud host's high availability function.
[0063] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0064] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.
[0065] In addition, the terms "first", "second", etc. used in the embodiments of the present invention are only used for descriptive purposes and should not be understood as indicating or implying relative importance, or implicitly indicating the number of technical features indicated in the present embodiment. Therefore, the features defined by the terms "first", "second", etc. in the embodiments of the present invention can explicitly or implicitly indicate that the embodiment includes at least one of the features. In the description of the present invention, the word "multiple" means at least two or two or more, such as two, three, four, etc., unless otherwise clearly and specifically defined in the embodiments.
[0066] In the present invention, unless otherwise clearly specified or limited in the embodiments, the terms "installed", "connected", "connected" and "fixed" etc. in the embodiments should be understood in a broad sense. For example, the connection can be a fixed connection, a detachable connection, or an integrated connection. It can be understood that it can also be a mechanical connection, an electrical connection, etc.; of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two elements, or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific implementation situation.
[0067] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0068] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A cloud host high availability system, characterized in that: The system comprises: A plurality of computing nodes, each of the computing nodes comprising a plurality of virtual machines and an FDA service component; A ceph storage pool, wherein the ceph storage pool is used to store first heartbeat information written by the virtual machine to the storage network through the FDA service component every first preset time period; A plurality of master control nodes, each of which includes an FDM monitoring component, the FDM monitoring component is used to receive a second heartbeat message sent by the virtual machine to the management network through the FDA service component every second preset time, and is also used to read the latest first heartbeat message in the ceph storage pool through the storage network, and determine the state of the computing node according to the reception state of the second heartbeat message and the update state of the latest first heartbeat message, and perform response processing on the computing node according to the state of the computing node; Wherein, determining the state of the computing node according to the receiving state of the second heartbeat information and the updating state of the latest first heartbeat information includes: When it is determined according to the reception status of the second heartbeat information that the FDM monitoring component has not received the second heartbeat information for a fifth preset time period, and it is determined according to the update status of the latest first heartbeat information that the virtual machine normally writes the first heartbeat information to the storage network, it is determined that the computing node is in an isolated state; When it is determined according to the reception status of the second heartbeat information that the FDM monitoring component has not received the second heartbeat information for a fifth preset time period, and it is determined according to the update status of the latest first heartbeat information that the virtual machine has not normally written the first heartbeat information to the storage network, it is determined that the computing node is in a fault state; When it is determined based on the reception status of the second heartbeat information that the FDA service component has not written the first heartbeat information to the storage network for a sixth preset time period, it is determined that the computing node is in a storage abnormality state.
2. The cloud host high availability system according to claim 1, characterized in that: Each of the master control nodes also includes an FDI service component, which provides an API interface service. The management page of the cloud host accesses and sets the master control node through the API interface of the FDI service component.
3. The cloud host high availability system according to claim 1, characterized in that: The multiple master control nodes determine a master FDM monitoring component and at least one slave FDM monitoring component from the multiple FDM monitoring components by competing for etcd locks, and automatically release the etcd lock when the master FDM monitoring component fails, so that the at least one slave FDM monitoring component can re-determine the master FDM monitoring component by competing for etcd locks.
4. The cloud host high availability system according to claim 1, characterized in that: The computing node also sends update information to the local file through the FDA service component every third preset time period, and restarts the FDA service component when no update information is sent to the local file for a fourth preset time period.
5. The cloud host high availability system according to claim 1, characterized in that: After determining, based on the reception status of the second heartbeat information, that the FDM monitoring component has not received the second heartbeat information for a fifth preset period of time, the main control node further sends a ping command to the management network to determine that the management network is abnormal.
6. The cloud host high availability system according to claim 1, characterized in that: When the computing node is in the isolated state, performing response processing on the computing node according to the state includes: The computing node is disabled, soft-shutdowned, or hard-shutdowned according to the isolation state, wherein the disabling process is to release an alarm message; the soft-shutdown process is to shut down the virtual machine after releasing the alarm message, and if the virtual machine is not shut down normally after a seventh preset time period, the power supply of the virtual machine is turned off, and the virtual machines in the computing node in the isolation state are evacuated to computing nodes in a normal state in order of priority; the hard-shutdown process is to shut down the power supply of the virtual machine after releasing the alarm message, and evacuate the virtual machines in the computing node in the isolation state to computing nodes in a normal state in order of priority.
7. The cloud host high availability system according to claim 1, characterized in that: When the computing node is in the storage abnormal state, performing response processing on the computing node according to the state includes: The computing node is disabled or hard shut down according to the storage abnormality state, wherein the disabling process is to release the alarm information; the hard shutdown process is to shut off the power supply of the virtual machine after releasing the alarm information, and evacuate the virtual machines in the computing node in the storage abnormality state to the computing nodes in normal state in order of priority.
8. The cloud host high availability system according to claim 6 or 7, characterized in that: The FDM monitoring component is also used to: After receiving the second heartbeat information sent by the computing node to the management network through the FDA service component, if the second heartbeat information includes storage normal notification information, the evacuation task of the virtual machine in the computing node is suspended and the computing node is started to run the computing node.
9. The cloud host high availability system according to claim 1, characterized in that: When the computing node is in the fault state, performing response processing on the computing node according to the state includes: The computing node is disabled or restarted according to the fault state, wherein the disabling process is to release the alarm information; the restarting process is to add the storage network IP of the computing node to the blacklist of the ceph storage pool after releasing the alarm information, and evacuate the virtual machines in the computing node in the isolated state to the computing node in the normal state in order of priority, and after receiving the second heartbeat information of the computing node in the fault state, turn off the power supply of all virtual machines in the computing node, cancel the storage network IP of the computing node from the blacklist of the ceph storage pool, and then write the first heartbeat information to the storage network through the FDA service component of the computing node in the fault state, suspend the evacuation task of the virtual machines in the computing node after the FDA service component writes the first heartbeat information normally, and restart the computing node.
10. A cloud platform, characterized in that: The cloud platform includes the cloud host high-availability system described in any one of claims 1-9.
