CN107870801B - Method, device and system for automatically opening high-availability function of virtual machine - Google Patents

Method, device and system for automatically opening high-availability function of virtual machine Download PDF

Info

Publication number
CN107870801B
CN107870801B CN201610850710.2A CN201610850710A CN107870801B CN 107870801 B CN107870801 B CN 107870801B CN 201610850710 A CN201610850710 A CN 201610850710A CN 107870801 B CN107870801 B CN 107870801B
Authority
CN
China
Prior art keywords
virtual machine
function
management platform
cloud management
agent device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610850710.2A
Other languages
Chinese (zh)
Other versions
CN107870801A (en
Inventor
赖培源
刘艺
樊勇兵
陈天
黄志兰
丁圣勇
李巧玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN201610850710.2A priority Critical patent/CN107870801B/en
Publication of CN107870801A publication Critical patent/CN107870801A/en
Application granted granted Critical
Publication of CN107870801B publication Critical patent/CN107870801B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device and a system for automatically opening a high-availability function of a virtual machine. The method comprises the following steps: the method comprises the steps that a cloud management platform receives a high-availability function opening application sent by a user through a virtual machine agent device in a virtual machine; the method comprises the steps that a cloud management platform detects whether a virtualization host where a virtual machine is located supports a high-availability function; if the virtualization host where the virtual machine is located supports the high-availability function, the cloud management platform lists the virtual machine in a heartbeat monitoring list and informs the virtual machine agent device to start reporting heartbeat information. The invention provides a self-service opening system architecture for the user by initiating the HA opening function in the virtual machine, is beneficial to the user to quickly manage the HA function of the virtual machine according to the requirement, and effectively solves the problem of resource waste caused by default opening and the problem of process response when the service is accepted to the back end.

Description

Method, device and system for automatically opening high-availability function of virtual machine
Technical Field
The invention relates to the field of server virtualization, in particular to a method, a device and a system for automatically opening a high-availability function of a virtual machine.
Background
The virtual machine HA (High Availability) function refers to a function of providing High Availability to an application program running on a virtual machine. If a server fails, the affected virtual machines will restart on other production servers with excess capacity, effectively reducing down time and service interruption time.
The HA function allows a virtual machine on a failed virtualized host (physical server with installed virtualization software, the same below) to be started on other virtualized hosts with resource permissions in a cluster, with the business time break between: VM system boot time + application boot time + heartbeat detection time, which typically does not exceed 15 seconds, typically this total interrupt time can be kept within 3 minutes.
The current common HA mechanism of operation is that an agent placed on each virtualized host continually sends a "heartbeat" to the other hosts in the cluster, and once the "heartbeat" is terminated, all affected virtual machines will restart on the other hosts. For example, in the most common VMware virtualization software at present, the running state of the virtual machine may be monitored by installing VMtools, and a monitoring signal is sent by the VMtools, and if no signal is received within a specified time, it indicates that the virtualization host is abnormal, and the above virtual machine will be automatically restarted. There are three options for this specified time, 2 minutes, 1 minute, and 30 seconds.
A relatively common HA starting method for a virtual machine is to start an HA function for a whole server virtualization cluster, where all virtual machines in the cluster have HA function protection, and when a new virtual machine is created, the virtual machine HAs the HA function of the virtual machine. With the rapid development and large-scale application of virtualization technology, the configuration function of the virtual machine HA gradually develops from cluster configuration to a configuration mode that can use a single virtual machine as granularity, that is, the virtual machines in the whole HA cluster are not protected by HA, but the virtual machines needing protection are specified on the management platform, when a virtualization host fails, the virtual machines with the "opened HA" are restarted only on other hosts, and the virtual machines without the HA function being opened are not restarted. Currently, in the actual operation of a cloud service provider, an HA management mode in which a virtual machine is configured with granularity is widely applied.
However, the HA configuration with the virtual machine as granularity generally requires the configuration of the underlying system on the backend platform, or the default configuration during creation, which is not favorable for the user to perform self-service on demand; however, the physical host performs the function configuration of the virtual machine, and system parameters need to be changed, which easily causes system instability and affects other virtual machines on the host system.
Disclosure of Invention
In view of the above technical problems, the present invention provides an automatic virtual machine high-availability function provisioning method, a cloud management platform, a virtual machine agent apparatus and a system, which initiate the provisioning of an HA function inside a virtual machine, and are beneficial for a user to quickly manage the HA function of the virtual machine of the user as required.
According to one aspect of the invention, a method for automatically opening high-availability functions of a virtual machine is provided, which comprises the following steps:
the method comprises the steps that a cloud management platform receives a high-availability function opening application sent by a user through a virtual machine agent device in a virtual machine;
the method comprises the steps that a cloud management platform detects whether a virtualization host where a virtual machine is located supports a high-availability function;
if the virtualization host where the virtual machine is located supports the high-availability function, the cloud management platform lists the virtual machine in a heartbeat monitoring list and informs the virtual machine agent device to start reporting heartbeat information.
In one embodiment of the invention, the method further comprises:
if the virtualization host where the virtual machine is located does not support the high-availability function, the cloud management platform migrates the virtual machine to other virtualization hosts which support the HA function and have sufficient redundant resources, and then executes the steps of listing the virtual machine in a heartbeat monitoring list and informing a virtual machine agent device of the virtual machine to start reporting heartbeat information.
In an embodiment of the present invention, migrating the virtual machine to other virtualization hosts which support HA functions and have sufficient redundant resources by the cloud management platform includes:
the cloud management platform selects one of other virtualization hosts which support HA functions and have sufficient redundant resources as an alternative virtualization host;
and migrating the virtual machine to an alternative virtualization host by the cloud management platform.
In an embodiment of the present invention, the notifying the virtual machine agent device to start reporting the heartbeat information includes:
informing the virtual machine agent device to report heartbeat information to the cloud management platform;
or,
and informing the virtual machine agent device to report heartbeat information to the heartbeat monitoring host through the heartbeat network.
According to another aspect of the present invention, there is provided a method for automatically opening a high available function of a virtual machine, including:
a virtual machine agent device inside a virtual machine receives a high-availability function opening request of a user;
the virtual machine agent device sends a high-availability function opening application to the cloud management platform according to the high-availability function opening request, so that the cloud management platform can list the virtual machine in a heartbeat monitoring list;
responding to a heartbeat information reporting instruction sent by the cloud management platform, and starting to report heartbeat information by the virtual machine agent device.
According to another aspect of the present invention, a cloud management platform is provided, which includes an opening application receiving module, a function detecting module, and a heartbeat monitoring module, wherein:
the opening application receiving module is used for receiving a high-availability function opening application sent by a user through a virtual machine agent device in a virtual machine;
the function detection module is used for detecting whether a virtualization host where the virtual machine is located supports a high-availability function;
and the heartbeat monitoring module is used for listing the virtual machine into a heartbeat monitoring list and informing the virtual machine agent device to start reporting heartbeat information under the condition that the function detection module detects that the virtualization host machine where the virtual machine is located supports the high available function.
In an embodiment of the present invention, the cloud management platform further includes a virtual machine migration module, wherein:
and the virtual machine migration module is used for migrating the virtual machine to other virtualization hosts which support HA function and have sufficient redundant resources under the condition that the function detection module detects that the virtualization host where the virtual machine is located does not support the high-availability function, then instructing the heartbeat monitoring module to execute the operation of listing the virtual machine into a heartbeat monitoring list and informing a virtual machine agent device of the virtual machine to start reporting heartbeat information.
In an embodiment of the present invention, the virtual machine migration module includes an alternative physical machine determination submodule and a virtual machine migration submodule, where:
the alternative physical machine determining submodule is used for selecting one of other virtualization hosts which support the HA function and have sufficient redundant resources as an alternative virtualization host;
and the virtual machine migration submodule is used for migrating the virtual machine to the alternative virtualization host.
In an embodiment of the present invention, the heartbeat monitoring module is configured to notify the virtual machine agent device to begin reporting heartbeat information to the cloud management platform when notifying the virtual machine agent device to begin reporting heartbeat information; or, the virtual machine agent device is informed to report heartbeat information to the heartbeat monitoring host through the heartbeat network.
According to another aspect of the present invention, there is provided a virtual machine agent apparatus, the virtual machine agent apparatus being located inside a virtual machine;
the virtual machine agent device comprises an opening request receiving module, an opening application sending module and a heartbeat information reporting module, wherein:
the opening request receiving module is used for receiving a high-availability function opening request of a user;
the opening application sending module is used for sending a high-availability function opening application to the cloud management platform according to the high-availability function opening request so that the cloud management platform can list the virtual machine into a heartbeat monitoring list;
and the heartbeat information reporting module is used for responding to a heartbeat information reporting instruction sent by the cloud management platform and starting to report heartbeat information.
According to another aspect of the present invention, there is provided a virtual machine high availability function automatic opening system, including the cloud management platform according to any of the above embodiments, and the virtual machine agent apparatus according to any of the above embodiments.
The invention provides a self-service opening system architecture for the user by initiating the HA opening function in the virtual machine, is beneficial to the user to quickly manage the HA function of the virtual machine according to the requirement, and effectively solves the problem of resource waste caused by default opening and the problem of process response when the service is accepted to the back end.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an embodiment of an automatic activation system for high availability functions of a virtual machine according to the present invention.
Fig. 2 is a schematic diagram comparing the prior art and the high-availability function-enabling mode of the present invention.
Fig. 3 is a schematic flow chart illustrating virtual machine bearer and HA activation according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a cloud management platform according to a first embodiment of the present invention.
Fig. 5 is a schematic diagram of a cloud management platform according to a second embodiment of the present invention.
Fig. 6 is a schematic diagram of a virtual machine migration module according to an embodiment of the present invention.
Fig. 7 is a schematic diagram of a first embodiment of a method for automatically activating a high availability function of a virtual machine according to the present invention.
FIG. 8 is a diagram illustrating an embodiment of a virtual machine proxy apparatus according to the present invention.
Fig. 9 is a schematic diagram of a second embodiment of the method for automatically opening a high availability function of a virtual machine according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
Fig. 1 is a schematic diagram of an embodiment of an automatic activation system for high availability functions of a virtual machine according to the present invention. As shown in fig. 1, the virtual machine high availability function automatic opening system may include a cloud management platform 200 and a virtual machine agent apparatus 100, wherein:
the virtual machine agent apparatus 100 is provided inside the virtual machine 300.
The virtual machine agent device 100 is configured to receive function configuration performed by a user (a virtual machine user or an application system administrator, etc.) in the virtual machine agent device 100, send a service provisioning request to the cloud management platform 200 through the heartbeat network, and start reporting heartbeat information to the cloud management platform 200 after successful provisioning.
Fig. 2 is a schematic diagram comparing the prior art and the high-availability function-enabling mode of the present invention. As shown in fig. 2, the agent module is a virtual machine agent device, and the hypervisor is a virtualization host.
The method aims at solving the technical problems that the prior art virtual machine high-availability function can only be opened through a long flow or default of service acceptance as shown in the left diagram of fig. 2, and is not beneficial to agile service opening and user self-service because the opening is carried out through a back-end platform of a virtualization management system. The invention provides a user self-service opening system as shown in the right diagram of fig. 2, which initiates the opening of the HA function in the virtual machine, thereby being beneficial to the user to quickly manage the HA function of the virtual machine according to the requirement, effectively solving the problem of resource waste caused by default opening and the problem of process response when the service is accepted to the back end.
In an embodiment of the present invention, the cloud management platform 200 of the virtual machine high-availability function automatic provisioning system may also be configured to, when the system reserved resources are insufficient, automatically perform migration of the virtual machine after receiving a service provisioning request, so as to implement automatic and fast provisioning of the virtual machine high-availability function.
The above embodiment of the present invention does not require that all physical servers support the HA function in the cluster where the virtual machine is located. The above embodiment of the present invention is initiated by the inside of the virtual machine, and the HA configuration of the virtual machine can be automatically completed through the migration function of the management platform.
The following describes the method for automatically opening the high-availability function of the virtual machine according to a specific example:
fig. 3 is a schematic flow chart illustrating virtual machine bearer and HA activation according to an embodiment of the present invention.
First, as shown in fig. 3, when a user of the virtual machine 1 needs to open the HA function of the virtual machine 1, the user can directly apply for opening the function through a proxy device inside the virtual machine 1. When a cloud management platform receives an HA (home agent) opening request of a virtual machine 1 through a management network, checking whether a virtualization host (namely a physical machine 1) where the virtual machine 1 is located supports an HA function, if the physical machine 1 supports the HA function, listing the virtual machine 1 into a heartbeat monitoring list by the cloud management platform, and informing an agent device of the virtual machine 1 to begin to report heartbeat information to the cloud management platform, or sending the heartbeat information to the heartbeat monitoring host through a heartbeat network;
as shown in fig. 3, when a user of the virtual machine 3 needs to open the HA function of the virtual machine 3, the user can directly apply for opening the function through the proxy device inside the virtual machine 3. When the cloud management platform receives an HA provisioning request of a virtual machine 3 through a management network, it is checked whether a virtualized host (i.e., a physical machine 2) where the virtual machine 3 is located supports an HA function, and when the virtualized host where the virtual machine 3 is located does not support the HA function, the cloud management platform migrates the virtual machine 3 to other virtualized hosts which support the HA function and have sufficient redundant resources, such as the physical machine 3, and then lists the virtual machine 3 in a heartbeat monitoring list, and notifies an agent device of the virtual machine to start to report heartbeat information to the cloud management platform, or sends the heartbeat information to the heartbeat monitoring host through the heartbeat network.
The following describes the structures and functions of the cloud management platform 200 and the virtual machine agent apparatus 100 of the virtual machine high-availability function automatic provisioning system in the embodiment of fig. 1 by specific examples:
fig. 4 is a schematic diagram of a cloud management platform according to a first embodiment of the present invention. As shown in fig. 4, the cloud management platform of the foregoing embodiment may include an opening application receiving module 210, a function detecting module 220, and a heartbeat monitoring module 230, where:
the opening application receiving module 210 is configured to receive a high-availability function opening application sent by a user through the virtual machine agent device 100 inside the virtual machine 300. When a user needs to start the HA function of the virtual machine, the user can directly apply for starting the function through the proxy device in the virtual machine.
A function detecting module 220, configured to detect whether a virtualization host in which the virtual machine 300 is located supports a high available function.
The heartbeat monitoring module 230 is configured to, when the function detecting module 220 detects that the virtualization host where the virtual machine 300 is located supports a high available function, list the virtual machine 300 in a heartbeat monitoring list, and notify the virtual machine agent device 100 to start reporting heartbeat information.
In an embodiment of the present invention, when notifying the virtual machine agent device 100 to start reporting the heartbeat information, the heartbeat monitoring module 230 may be specifically configured to notify the virtual machine agent device 100 to start reporting the heartbeat information to the cloud management platform 200; or, the virtual machine agent device 100 is notified to start reporting heartbeat information to the heartbeat monitoring host through the heartbeat network.
Based on the cloud management platform provided by the embodiment of the invention, the HA function is automatically and quickly opened for the virtual machine in response to the application for opening the HA function initiated in the virtual machine, so that a user can quickly manage the HA function of the virtual machine according to needs, and the problems of resource waste caused by default opening and process response from service acceptance to the back end are effectively solved.
Fig. 5 is a schematic diagram of a cloud management platform according to a second embodiment of the present invention. Compared to the embodiment shown in fig. 4, in the embodiment shown in fig. 5, the cloud management platform 200 may further include a virtual machine migration module 240, where:
the virtual machine migration module 240 is configured to, when the function detection module 220 detects that the virtualization host where the virtual machine 300 is located does not support the high-availability function, migrate the virtual machine 300 to another virtualization host that supports the HA function and HAs sufficient redundant resources, then instruct the heartbeat monitoring module 230 to perform an operation of listing the virtual machine 300 in a heartbeat monitoring list, and notify the virtual machine agent device 100 of the virtual machine 300 to start reporting heartbeat information.
In an embodiment of the present invention, as shown in fig. 6, the virtual machine migration module 240 may include an alternative physical machine determination submodule 241 and a virtual machine migration submodule 242, where:
the alternative physical machine determining submodule 241 is configured to select one of the other virtualization hosts that support the HA function and have sufficient remaining resources as an alternative virtualization host.
For example: the alternative physical machine determination submodule 241 may select, as the alternative virtualization host, the virtualization host that supports the HA function and HAs the most remaining resources.
A virtual machine migration sub-module 242, configured to migrate the virtual machine 300 to an alternative virtualization host.
The above embodiment of the present invention does not require that all physical servers support the HA function in the cluster where the virtual machine is located. The above embodiment of the present invention is initiated by the inside of the virtual machine, and the HA configuration of the virtual machine can be automatically completed through the migration function of the management platform.
Fig. 7 is a schematic diagram of a first embodiment of a method for automatically activating a high availability function of a virtual machine according to the present invention. Preferably, the embodiment can be executed by the cloud management platform. As shown in fig. 7, the method for automatically opening the high available function of the virtual machine may include:
in step 701, the cloud management platform 200 receives a high-availability function provisioning application sent by a user through the virtual machine agent device 100 inside the virtual machine 300. When a user needs to start the HA function of the virtual machine, the user can directly apply for starting the function through the proxy device in the virtual machine.
In step 702, the cloud management platform 200 detects whether the virtualization host where the virtual machine 300 is located supports a high available function.
In step 703, if the virtualization host where the virtual machine 300 is located supports the high availability function, the cloud management platform 200 lists the virtual machine 300 in a heartbeat monitoring list, and notifies the virtual machine agent device 100 to start reporting heartbeat information.
In an embodiment of the present invention, in step 703 of the embodiment in fig. 7, the notifying the virtual machine agent device 100 to start reporting the heartbeat information may include: notifying the virtual machine agent device 100 to start reporting heartbeat information to the cloud management platform 200; or, the virtual machine agent device 100 is notified to start reporting heartbeat information to the heartbeat monitoring host through the heartbeat network.
In an embodiment of the present invention, after step 703 of the embodiment of fig. 7, the method may further include:
step 704, if the virtualized host in which the virtual machine 300 is located does not support the high-availability function, the cloud management platform 200 migrates the virtual machine 300 to another virtualized host that supports the HA function and HAs sufficient excess resources, and then executes the step of listing the virtual machine 300 in the heartbeat monitoring list and notifying the virtual machine agent apparatus 100 of the virtual machine 300 to start reporting heartbeat information.
In an embodiment of the present invention, in step 704, the step of migrating the virtual machine 300 to other virtualization hosts that support HA functions and have sufficient redundant resources by the cloud management platform 200 may include: the cloud management platform 200 selects one of other virtualization hosts which support the HA function and have sufficient redundant resources as an alternative virtualization host; the cloud management platform 200 migrates the virtual machine 300 to an alternative virtualization host.
FIG. 8 is a diagram illustrating an embodiment of a virtual machine proxy apparatus according to the present invention. As shown in fig. 8, the virtual machine proxy apparatus in the foregoing embodiment may include an activation request receiving module 110, an activation application sending module 120, and a heartbeat information reporting module 130, where:
the activation request receiving module 110 is configured to receive a high-availability function activation request of a user, where when the user needs to activate an HA function of a virtual machine, the user sends the high-availability function activation request to the virtual machine proxy apparatus, and performs function configuration in the virtual machine proxy apparatus.
The provisioning application sending module 120 is configured to send a high-availability function provisioning application to the cloud management platform 200 according to the high-availability function provisioning request, so that the cloud management platform 200 lists the virtual machine 300 in a heartbeat monitoring list.
The heartbeat information reporting module 130 is configured to start to report heartbeat information in response to a heartbeat information reporting instruction sent by the cloud management platform 200.
Based on the virtual machine agent device provided by the embodiment of the invention, aiming at the technical problems that the high-availability function of the virtual machine in the prior art can only be opened through a longer flow or default of service acceptance, the opening is carried out through the rear-end platform of the virtualization management system, which is not beneficial to agile service opening and user self-service, the opening of the HA function is initiated inside the virtual machine, so that the user can manage the own HA function of the virtual machine according to the requirement and quickly, the resource waste problem of default opening is effectively solved, and the flow response problem of service acceptance to the rear end is solved.
Fig. 9 is a schematic diagram of a second embodiment of the method for automatically opening a high availability function of a virtual machine according to the present invention. Preferably, this embodiment can be executed by the virtual machine agent apparatus of the present invention. As shown in fig. 9, the method for automatically opening the high available function of the virtual machine may include:
in step 901, the virtual machine agent apparatus 100 inside the virtual machine 300 receives a high-available-function activation request from a user.
Step 902, the virtual machine agent device 100 sends a high-availability function provisioning application to the cloud management platform 200 according to the high-availability function provisioning request, so that the cloud management platform 200 lists the virtual machine 300 in a heartbeat monitoring list.
Step 903, in response to the heartbeat information reporting instruction sent by the cloud management platform 200, the virtual machine agent device 100 starts to report heartbeat information.
The above-described functional units such as the provisioning request receiving module 110, the provisioning application sending module 120, the heartbeat information reporting module 130, the provisioning application receiving module 210, the function detecting module 220, the heartbeat monitoring module 230, and the virtual machine migration module 240 may be implemented as a general processor, a Programmable Logic Controller (PLC), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or any suitable combination thereof for executing the functions described in the present application.
Thus far, the present invention has been described in detail. Some details well known in the art have not been described in order to avoid obscuring the concepts of the present invention. It will be fully apparent to those skilled in the art from the foregoing description how to practice the presently disclosed embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to practitioners skilled in this art. The embodiment was chosen and described in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

Claims (9)

1. A method for automatically opening high-availability functions of a virtual machine is characterized by comprising the following steps:
the method comprises the steps that a cloud management platform receives a high-availability function opening application sent by a user through a virtual machine agent device in a virtual machine;
the method comprises the steps that a cloud management platform detects whether a virtualization host where a virtual machine is located supports a high-availability function;
if the virtualization host where the virtual machine is located supports the high-availability function, the cloud management platform lists the virtual machine in a heartbeat monitoring list and informs a virtual machine agent device to begin to report heartbeat information;
the method for automatically opening the high available function of the virtual machine further comprises the following steps:
if the virtualization host where the virtual machine is located does not support the high-availability function, the cloud management platform migrates the virtual machine to other virtualization hosts which support the HA function and have sufficient redundant resources, and then executes the steps of listing the virtual machine in a heartbeat monitoring list and informing a virtual machine agent device of the virtual machine to start reporting heartbeat information.
2. The method of claim 1, wherein migrating the virtual machine to other virtualization hosts that support HA functionality and have sufficient excess resources by the cloud management platform comprises:
the cloud management platform selects one of other virtualization hosts which support HA functions and have sufficient redundant resources as an alternative virtualization host;
and migrating the virtual machine to an alternative virtualization host by the cloud management platform.
3. The method according to claim 1 or 2, wherein the notifying the virtual machine agent device to start reporting heartbeat information comprises:
informing the virtual machine agent device to report heartbeat information to the cloud management platform;
or,
and informing the virtual machine agent device to report heartbeat information to the heartbeat monitoring host through the heartbeat network.
4. A method for automatically opening high-availability functions of a virtual machine is characterized by comprising the following steps:
a virtual machine agent device inside a virtual machine receives a high-availability function opening request of a user;
the virtual machine agent device sends a high-availability function opening application to a cloud management platform according to the high-availability function opening request so that the cloud management platform can detect whether a virtualization host machine where the virtual machine is located supports the high-availability function, and under the condition that the virtualization host machine where the virtual machine is located supports the high-availability function, the virtual machine is listed in a heartbeat monitoring list and the virtual machine agent device is informed to start reporting heartbeat information; under the condition that a virtualization host where the virtual machine is located does not support a high-availability function, the cloud management platform migrates the virtual machine to other virtualization hosts which support HA functions and have sufficient redundant resources, then lists the virtual machine in a heartbeat monitoring list, and informs a virtual machine agent device of the virtual machine to start reporting heartbeat information;
responding to a heartbeat information reporting instruction sent by the cloud management platform, and starting to report heartbeat information by the virtual machine agent device.
5. The utility model provides a cloud management platform which characterized in that, including opening application receiving module, function detection module and heartbeat monitoring module, wherein:
the opening application receiving module is used for receiving a high-availability function opening application sent by a user through a virtual machine agent device in a virtual machine;
the function detection module is used for detecting whether a virtualization host where the virtual machine is located supports a high-availability function;
the heartbeat monitoring module is used for listing the virtual machine into a heartbeat monitoring list and informing a virtual machine agent device to start reporting heartbeat information under the condition that the function detection module detects that the virtualization host machine where the virtual machine is located supports a high available function;
wherein, the cloud management platform further comprises a virtual machine migration module, wherein:
and the virtual machine migration module is used for migrating the virtual machine to other virtualization hosts which support HA function and have sufficient redundant resources under the condition that the function detection module detects that the virtualization host where the virtual machine is located does not support the high-availability function, then instructing the heartbeat monitoring module to execute the operation of listing the virtual machine into a heartbeat monitoring list and informing a virtual machine agent device of the virtual machine to start reporting heartbeat information.
6. The cloud management platform of claim 5, wherein the virtual machine migration module comprises an alternative physical machine determination submodule and a virtual machine migration submodule, wherein:
the alternative physical machine determining submodule is used for selecting one of other virtualization hosts which support the HA function and have sufficient redundant resources as an alternative virtualization host;
and the virtual machine migration submodule is used for migrating the virtual machine to the alternative virtualization host.
7. The cloud management platform of claim 5 or 6,
the heartbeat monitoring module is used for informing the virtual machine agent device to report heartbeat information to the cloud management platform when informing the virtual machine agent device to report the heartbeat information; or, the virtual machine agent device is informed to report heartbeat information to the heartbeat monitoring host through the heartbeat network.
8. The virtual machine agent device is characterized in that the virtual machine agent device is positioned in a virtual machine;
the virtual machine agent device comprises an opening request receiving module, an opening application sending module and a heartbeat information reporting module, wherein:
the opening request receiving module is used for receiving a high-availability function opening request of a user;
a provisioning application sending module, configured to send a high-availability function provisioning application to a cloud management platform according to the high-availability function provisioning request, so that the cloud management platform detects whether a virtualization host where the virtual machine is located supports the high-availability function, and under the condition that the virtualization host where the virtual machine is located supports the high-availability function, list the virtual machine in a heartbeat monitoring list, and notify a virtual machine agent device to start to report heartbeat information; under the condition that a virtualization host where the virtual machine is located does not support a high-availability function, the cloud management platform migrates the virtual machine to other virtualization hosts which support HA functions and have sufficient redundant resources, then lists the virtual machine in a heartbeat monitoring list, and informs a virtual machine agent device of the virtual machine to start reporting heartbeat information;
and the heartbeat information reporting module is used for responding to a heartbeat information reporting instruction sent by the cloud management platform and starting to report heartbeat information.
9. An automatic opening system for high-availability functions of a virtual machine, which is characterized by comprising the cloud management platform according to any one of claims 5 to 7 and the virtual machine agent device according to claim 8.
CN201610850710.2A 2016-09-26 2016-09-26 Method, device and system for automatically opening high-availability function of virtual machine Active CN107870801B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610850710.2A CN107870801B (en) 2016-09-26 2016-09-26 Method, device and system for automatically opening high-availability function of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610850710.2A CN107870801B (en) 2016-09-26 2016-09-26 Method, device and system for automatically opening high-availability function of virtual machine

Publications (2)

Publication Number Publication Date
CN107870801A CN107870801A (en) 2018-04-03
CN107870801B true CN107870801B (en) 2020-05-26

Family

ID=61751299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610850710.2A Active CN107870801B (en) 2016-09-26 2016-09-26 Method, device and system for automatically opening high-availability function of virtual machine

Country Status (1)

Country Link
CN (1) CN107870801B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634627B (en) * 2019-01-23 2022-02-18 郑州云海信息技术有限公司 Method for managing FPGA (field programmable Gate array) equipment based on OpenStack platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8230256B1 (en) * 2008-06-06 2012-07-24 Symantec Corporation Method and apparatus for achieving high availability for an application in a computer cluster
CN103201724A (en) * 2010-07-30 2013-07-10 赛门铁克公司 Providing application high availability in highly-available virtual machine environments
CN103729280A (en) * 2013-12-23 2014-04-16 国云科技股份有限公司 High availability mechanism for virtual machine
CN105005509A (en) * 2015-07-07 2015-10-28 北京大学 Runtime model based configuration method for fault-tolerant mechanism of cloud computing
CN105095001A (en) * 2014-05-08 2015-11-25 中国银联股份有限公司 Virtual machine exception recovery method under distributed environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8230256B1 (en) * 2008-06-06 2012-07-24 Symantec Corporation Method and apparatus for achieving high availability for an application in a computer cluster
CN103201724A (en) * 2010-07-30 2013-07-10 赛门铁克公司 Providing application high availability in highly-available virtual machine environments
CN103729280A (en) * 2013-12-23 2014-04-16 国云科技股份有限公司 High availability mechanism for virtual machine
CN105095001A (en) * 2014-05-08 2015-11-25 中国银联股份有限公司 Virtual machine exception recovery method under distributed environment
CN105005509A (en) * 2015-07-07 2015-10-28 北京大学 Runtime model based configuration method for fault-tolerant mechanism of cloud computing

Also Published As

Publication number Publication date
CN107870801A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
US11003553B2 (en) Method and apparatus for failover processing
US9448899B2 (en) Method, apparatus and system for switching over virtual application two-node cluster in cloud environment
US9354917B2 (en) Method and system for network-less guest OS and software provisioning
US10037237B2 (en) Method and arrangement for fault management in infrastructure as a service clouds
US8984123B2 (en) Rejuvenation processing device, rejuvenation processing system, computer program, and data processing method
EP3472971B1 (en) Technique for resolving a link failure
JP5305040B2 (en) Server computer switching method, management computer and program
US10541862B2 (en) VNF processing policy determining method, apparatus, and system
WO2015169199A1 (en) Anomaly recovery method for virtual machine in distributed environment
US9558082B2 (en) VM availability during migration and VM network failures in host computing systems
EP3550436A1 (en) Method and apparatus for detecting and recovering fault of virtual machine
US12020011B2 (en) Managing an upgrade of a virtualization infrastructure component
WO2016045439A1 (en) Vnfm disaster-tolerant protection method and device, nfvo and storage medium
WO2017049997A1 (en) Virtual machine monitoring method, apparatus and system based on cloud computing service
US9043644B2 (en) Using separate processes to handle short-lived and long-lived jobs to reduce failure of processes
EP3522449A1 (en) Service state transition method and device
US9612935B2 (en) Enhanced resiliency testing by enabling state level control for request
CN105743696A (en) Cloud computing platform management method
CN107870801B (en) Method, device and system for automatically opening high-availability function of virtual machine
US10656959B2 (en) Shutting down of a virtual system
WO2020096845A1 (en) Performing actions opportunistically in connection with reboot events in a cloud computing system
CN105608034B (en) Method for automatic hot plug of column
US10678558B2 (en) Initializing a bare-metal host to an operational hypervisor
CN107783855B (en) Fault self-healing control device and method for virtual network element
CN109408123B (en) Method and device for reloading configuration file

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant