Method for receiving and managing VM (virtual machine) host based on open source cloud platform multi-area service
By configuring high availability and fault tolerance mechanisms in OpenStack multi-region environments, independently managing VMware resources, solving the complexity and scalability of resource management between OpenStack and VMware hosts, realizing resource isolation and unified management, and improving business continuity and reliability .
Patent Information
- Application Number
- CN202411135381.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-15
AI Technical Summary
The existing OpenStack and VMware host resource management have complexity, performance bottlenecks, deployment complexity, availability and scalability problems in the multi-region architecture, and lack effective resource isolation and fault tolerance mechanisms, which affect business continuity and reliability.
Design a multi-region architecture, obtain detailed information of VMware hosts through agent service agents, configure high availability and fault tolerance mechanisms, such as virtual machine hot migration, host evacuation, data redundancy and backup, independently manage VMware resources, and realize resource isolation and unified management.
It improves resource deployment and maintenance efficiency, ensures business continuity and reliability, realizes unified management of cross-cloud resources, and improves system scalability.
Smart Images

Figure CN118972237A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of cloud resource management; in particular, to a method for managing VM hosts based on multi-region services of an open source cloud platform. Background Art
[0002] With the rapid development of cloud computing technology, enterprises have adopted hybrid cloud strategies to achieve flexible deployment and efficient use of IT resources.
[0003] OpenStack (Open Source Cloud Platform) is an open source cloud infrastructure management platform. Due to its strong scalability and flexibility, it is widely used in the construction of private and public clouds.
[0004] At the same time, as a leader in the traditional virtualization field, VMware (abbreviated as "VM"), the VMware virtualization platform still occupies an important position in the construction of enterprise data centers.
[0005] However, the existing OpenStack-to-VMware technology focuses on the integration in a single-region OpenStack environment and lacks deep adaptation and optimization for multi-region architecture. It currently faces the following challenges: First, the resources of OpenStack and VMware hosts are mixed together. This resource mixing will increase the complexity of resource management, especially when dealing with different types of virtualization technologies and resources.
[0006] Second, all resources share the same control panel and API endpoint. Because a large number of requests and operations will be concentrated in the same area, the response speed of the overall system will be affected, which will lead to system performance bottlenecks.
[0007] 3. In a single-region environment, because all resources are in one region, the workflow for deploying OpenStack and VMware hosts becomes complicated, requiring unified management and deployment of different types of resources, which increases deployment complexity.
[0008] 4. Because there is no resource isolation guarantee within the Region, if a failure occurs, the resources of the entire Region will be affected, which will reduce the availability and fault tolerance of the system and make it impossible to guarantee business continuity and reliability.
[0009] 5. Because all resources are concentrated in one region, as business needs increase, the system is difficult to expand effectively and the system scalability is greatly limited.
[0010] Therefore, there is an urgent need to develop a more efficient method that can seamlessly integrate the OpenStack multi-Region environment with the VMware host, make full use of existing resources and achieve unified management of cross-cloud resources to solve the above-mentioned difficulties and shortcomings of the existing technology. Summary of the invention
[0011] In view of this, the purpose of the present invention is to propose a method for managing VM hosts based on multi-region services of an open source cloud platform, explore new technical paths for VMware host management in a cloud computing environment, deploy multiple Regions in OpenStack, obtain detailed information of VMware hosts through an agent service agent, and implement management services for VMware hosts. By configuring high availability and fault tolerance mechanisms (such as hot migration of virtual machines, host fault tolerance, etc.) in VMware Region, business continuity and reliability are guaranteed; VMware host requirements are managed more efficiently and conveniently, and VMware hosts are managed as an independent Region in an OpenStack multi-Region environment, thereby achieving resource isolation and improving the efficiency of resource deployment and maintenance.
[0012] The present invention provides a method for managing VM hosts based on multi-region services of an open source cloud platform, comprising: designing a multi-region architecture; independently managing VMware resources; configuring high availability and fault tolerance mechanisms in VMware Regions; managing VMware hosts in an OpenStack multi-region environment; The design of the multi-Region architecture includes: configuring an OpenStack multi-Region environment including two regions: RegionOne and RegionTwo, each of which has independent resources and services, and RegionOne and RegionTwo are centrally managed through an OpenStack control panel; in RegionOne, KVM is used as a virtualization technology to run virtual machine instances, and control nodes and computing nodes are deployed; in RegionTwo, VMware ESXi hosts are used as virtualization technology, and are centrally managed through Vcenter; Managing VMware hosts in an OpenStack multi-region environment includes: S01. Log in to the OpenStack panel and manage and control the integration of OpenStack and VMware. This is the starting point of the entire process. S02. After successful login, select the operation of managing VMware hosts or virtual machines on the OpenStack panel. The panel sends this request to the proxy service agent. The proxy service agent encapsulates the standardized VMware request API and is compatible with multiple VMware products. The proxy service agent communicates with the VMware infrastructure in the RegionTwo environment. After receiving the management request, the proxy service agent queries the detailed information of the VMware host in the RegionTwo environment through HTTP requests. The RegionTwo environment refers to a specific Region in the OpenStack multi-Region architecture for managing VMware resources. After receiving the query request of the proxy service, a VIM request is sent to the VMware vCenter server. VIM (Virtualization Management Interface) is a protocol for communicating with VMware and is used to obtain information about VMware hosts and virtual machines. S03, the VMware vCenter server forwards the query request to the VMware host, and the ESXi host returns detailed host information, such as host configuration, running status, and virtual machine list, etc., and collects the detailed host information so that subsequent management can proceed normally; S04. The OpenStack panel displays detailed information obtained from the VMware host to the user. The user selects the resources to be managed based on the displayed information of the VMware host and virtual machine. The user selects the virtual machine or other resources to be managed on the panel. These user selections are submitted to the proxy service as part of the management request. S05. Send the management request selected by the user to the agent service through the panel. The management request specifies the cluster name to which the virtual machine or resource to be managed belongs to ensure the correct management and organization of VMware resources. After receiving the management request, the agent service agent writes the relevant management data and virtual machine information into the database, and performs persistent storage management operations on the detailed information for subsequent management and maintenance.
[0013] Furthermore, the configuration of high availability and fault tolerance mechanism in VMware Region includes: virtual machine hot migration, host evacuation, data redundancy and backup; wherein, the virtual machine hot migration means allowing the virtual machine to be migrated from one host to another during the operation of the virtual machine in RegionTwo, so as to ensure the availability of the virtual machine without affecting the business operation; The host evacuation means that when a host in RegionTwo fails, the virtual machines are automatically evacuated to other hosts that are operating normally. The host evacuation mechanism provides host-level fault tolerance and avoids business interruption. The data redundancy and backup mentioned above refers to configuring data redundancy and backup mechanisms in RegionTwo to ensure the security and recovery capabilities of important data. The data redundancy and backup mechanisms can protect data from hardware failures or accidents.
[0014] Furthermore, the virtual machine hot migration includes the following steps: S11. Query the resource usage of the Region through the proxy service agent to ensure that the hosts in RegionOne and RegionTwo have sufficient resources (CPU, memory, storage, network bandwidth, etc.) to host the migrated virtual machines; configure a dedicated network channel or VPN connection in the proxy service agent to achieve network connectivity between RegionOne and RegionTwo and allow the transmission of migrated data; check the status of the migrated virtual machines in RegionTwo through the API to ensure that the virtual machines are not in the process of snapshot or backup and to ensure the integrity of the virtual machine data; S12, the user initiates a virtual machine hot migration request through the panel interface, and specifies the virtual machine to be migrated and the target region; S13, the proxy service agent verifies the legitimacy of the migration request, including verifying the availability of the target region and whether the migrated virtual machine meets the migration conditions; S14. Establish a network connection between RegionOne and RegionTwo for transmitting migration data. The agent service ensures network bandwidth and stability to avoid interruption during the migration process. S15. During the migration process, the virtual machine data (including disk data and memory status) in RegionTwo (source Region) is copied and synchronized to RegionOne (target Region); the speed and integrity of data transmission are key.
[0015] S16. After data replication and synchronization are completed, the virtual machine instance in RegionOne (target Region) is started, the virtual machine in RegionTwo (source Region) is stopped, and the virtual machine in the target Region takes over the business traffic; S17. After the migration is completed, the agent service confirms the success of the migration, including checking the running status and data integrity of the virtual machine in RegionOne (the target Region).
[0016] Furthermore, configuring the data redundancy and backup mechanism in RegionTwo includes: S21. Determine data redundancy and isolate the data of the target Region (RegionOne) for backup from the source Region (RegionTwo) to avoid single point failure. The proxy service agent enables network connectivity between the source Region (RegionTwo) and the target Region (RegionOne) to facilitate data transmission during backup and recovery. S22. Develop a detailed backup plan based on data classification and backup strategy, where the backup plan includes backup frequency, time window, and target region. S23. Configure a data redundancy mechanism in the source Region (RegionTwo), wherein the data redundancy mechanism includes: a RAID array or a distributed storage system; the data redundancy mechanism can improve data reliability and availability and prevent data loss caused by hardware failure; S24, the proxy service agent regularly backs up important data in the source Region (RegionTwo); S25, the proxy service agent transfers the backup data from the source Region (RegionTwo) to the storage medium of the target Region; the transmission of the backup data involves network transmission or physical medium transmission, and the proxy service agent ensures the security and integrity of the data transmission; S26. After the backup is completed, the proxy service agent verifies the backup data through a hash algorithm to ensure the integrity and recoverability of the backup data.
[0017] Furthermore, configuring the data redundancy and backup mechanism in RegionTwo also includes data recovery, and the data recovery includes: S31. In case of data loss or damage, the user initiates a data recovery request through the API interface of the OpenStack panel; S32. According to the user's request and data recovery plan, the proxy service agent locates the backup data in the target Region (RegionOne); S33, the proxy service agent transfers the backup data from the target Region (RegionOne) to a specified location in the source data (RegionTwo), and restores the data to the state of the original data; S34. After the data is restored, the agent service verifies the restored data to ensure the consistency and integrity of the data.
[0018] Furthermore, the independent management of VMware resources includes: managing VMware-related resources in RegionTwo; RegionTwo is specifically used to manage VMware hosts, virtual machines, storage and network resources; RegionTwo data is isolated from RegionOne data, and this data isolation helps to improve data security and integrity and avoid resource management complexity caused by mixing different resources. By independently managing VMware resources and an independent API terminal, the communication between RegionTwo and RegionOne is guaranteed to be secure and reliable, and compatible with multiple VMware products.
[0019] Furthermore, the method for being compatible with multiple VMware products includes: performing customized configuration according to the characteristics of the VMware environment, including: configuring specific network settings, authentication methods, and storage backends to better adapt to the needs of the VMware environment. Administrators can centrally handle the deployment, monitoring, and maintenance of VMware resources without having to handle other types of resources at the same time.
[0020] Furthermore, the types of backing up the important data in the source Region (RegionTwo) in step S24 include: full backup and / or incremental backup; The full backup is to copy the complete data of the source region to the storage medium of the target region; The incremental backup only backs up the changes that occurred since the last backup.
[0021] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for managing VM hosts based on multi-region services of an open source cloud platform as described above.
[0022] The present invention also provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the method for managing VM hosts based on multi-region services of an open source cloud platform as described above are implemented.
[0023] Compared with the prior art, the present invention has the following beneficial effects: The method for managing VM hosts based on multi-region services of an open source cloud platform provided by the present invention seamlessly integrates the OpenStack multi-region environment and VMware hosts, deploys multiple regions in OpenStack, obtains detailed information of VMware hosts through an agent service agent, and implements management services for VMware hosts, which can more efficiently and conveniently manage VMware host requirements; in an OpenStack multi-region environment, VMware hosts are managed as an independent Region to achieve resource isolation and separate deployment, thereby improving the efficiency of resource deployment and maintenance; by configuring high availability and fault-tolerant mechanisms in VMware Regions, business continuity and reliability are guaranteed; full use of existing resources and unified management of cross-cloud resources are achieved, thereby improving system scalability and bringing a new technical path for VMware host management in a cloud computing environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the following detailed description of the preferred embodiment.The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting the invention.
[0025] In the attached picture: Figure 1 This is an overall architecture diagram of a multi-region service managed VM host based on an open source cloud platform according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the management process of an embodiment of the present invention; Figure 3 A flowchart of the process of managing VMware hosts in an OpenStack multi-Region environment according to the present invention; Figure 4 A flowchart of the hot migration of a virtual machine according to the present invention; Figure 5 A flowchart of configuring data redundancy and backup mechanism in RegionTwo according to the present invention; Figure 6 A flowchart of data recovery process of the data redundancy and backup mechanism of the present invention; Figure 7 The figure is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and products consistent with some aspects of the present disclosure as detailed in the appended claims.
[0027] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0028] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0029] The embodiments of the present invention are described in further detail below.
[0030] The embodiment of the present invention provides a method for managing VM hosts based on multi-region services of an open source cloud platform, including: designing a multi-region architecture; independently managing VMware resources; configuring high availability and fault tolerance mechanisms in VMware Regions; managing VMware hosts in an OpenStack multi-region environment; Figure 1 The overall architecture of the embodiment based on the multi-region service management VM host of the open source cloud platform is shown; The design of the multi-Region architecture includes: configuring an OpenStack multi-Region environment including two regions: RegionOne and RegionTwo, each of which has independent resources and services, and RegionOne and RegionTwo are centrally managed through an OpenStack control panel; in RegionOne, KVM is used as a virtualization technology to run virtual machine instances, and control nodes and computing nodes are deployed; in RegionTwo, VMware ESXi hosts are used as virtualization technology, and are centrally managed through Vcenter; The configuration of high availability and fault tolerance mechanism in VMware Region includes: virtual machine hot migration, host evacuation, data redundancy and backup; wherein, the virtual machine hot migration means allowing the virtual machine to be migrated from one host to another during the operation of the virtual machine in RegionTwo, so as to ensure the availability of the virtual machine without affecting the business operation; The host evacuation means that when a host in RegionTwo fails, the virtual machines are automatically evacuated to other hosts that are operating normally. The host evacuation mechanism provides host-level fault tolerance and avoids business interruption. The data redundancy and backup mentioned above refers to configuring data redundancy and backup mechanisms in RegionTwo to ensure the security and recovery capabilities of important data. The data redundancy and backup mechanisms can protect data from hardware failures or accidents.
[0031] The virtual machine hot migration includes the following steps (see Figure 4 shown): S11. Query the resource usage of the Region through the proxy service agent to ensure that the hosts in RegionOne and RegionTwo have sufficient resources (CPU, memory, storage, network bandwidth, etc.) to host the migrated virtual machines; configure a dedicated network channel or VPN connection in the proxy service agent to achieve network connectivity between RegionOne and RegionTwo and allow the transmission of migrated data; check the status of the migrated virtual machines in RegionTwo through the API to ensure that the virtual machines are not in the process of snapshot or backup and to ensure the integrity of the virtual machine data; S12, the user initiates a virtual machine hot migration request through the panel interface, and specifies the virtual machine to be migrated and the target region; S13, the proxy service agent verifies the legitimacy of the migration request, including verifying the availability of the target region and whether the migrated virtual machine meets the migration conditions; S14. Establish a network connection between RegionOne and RegionTwo for transmitting migration data. The agent service ensures network bandwidth and stability to avoid interruption during the migration process. S15. During the migration process, the virtual machine data (including disk data and memory status) in RegionTwo (source Region) is copied and synchronized to RegionOne (target Region); the speed and integrity of data transmission are key.
[0032] S16. After data replication and synchronization are completed, the virtual machine instance in RegionOne (target Region) is started, the virtual machine in RegionTwo (source Region) is stopped, and the virtual machine in the target Region takes over the business traffic; S17. After the migration is completed, the agent service confirms the success of the migration, including checking the running status and data integrity of the virtual machine in RegionOne (the target Region).
[0033] The configuration of data redundancy and backup mechanism in RegionTwo includes the following steps (see Figure 5 shown): S21. Determine data redundancy and isolate the data of the target Region (RegionOne) for backup from the source Region (RegionTwo) to avoid single point failure. The proxy service agent enables network connectivity between the source Region (RegionTwo) and the target Region (RegionOne) to facilitate data transmission during backup and recovery. S22. Develop a detailed backup plan based on data classification and backup strategy, where the backup plan includes backup frequency, time window, and target region. S23. Configure a data redundancy mechanism in the source Region (RegionTwo), wherein the data redundancy mechanism includes: a RAID array or a distributed storage system; the data redundancy mechanism can improve data reliability and availability and prevent data loss caused by hardware failure; S24, the proxy service agent regularly backs up important data in the source Region (RegionTwo); the backup types include: full backup and / or incremental backup; Full backup is to copy the complete data of the source region to the storage medium of the target region; An incremental backup backs up only the changes that occurred since the last backup.
[0034] S25, the proxy service agent transfers the backup data from the source Region (RegionTwo) to the storage medium of the target Region; the transmission of the backup data involves network transmission or physical medium transmission, and the proxy service agent ensures the security and integrity of the data transmission; S26. After the backup is completed, the proxy service agent verifies the backup data through a hash algorithm to ensure the integrity and recoverability of the backup data.
[0035] The configuration of data redundancy and backup mechanism in RegionTwo also includes data recovery, which includes the following steps (see Figure 6 shown): S31. In case of data loss or damage, the user initiates a data recovery request through the API interface of the OpenStack panel; S32. According to the user's request and data recovery plan, the proxy service agent locates the backup data in the target Region (RegionOne); S33, the proxy service agent transfers the backup data from the target Region (RegionOne) to a specified location in the source data (RegionTwo), and restores the data to the state of the original data; S34. After the data is restored, the agent service verifies the restored data to ensure the consistency and integrity of the data.
[0036] The independent management of VMware resources includes: managing VMware-related resources in RegionTwo; RegionTwo is specifically used to manage VMware hosts, virtual machines, storage and network resources; RegionTwo data is isolated from RegionOne data, and this data isolation helps to improve data security and integrity and avoid resource management complexity caused by mixing different resources. By independently managing VMware resources and an independent API terminal, the communication between RegionTwo and RegionOne is guaranteed to be secure and reliable, and compatible with multiple VMware products.
[0037] The method for being compatible with multiple VMware products includes: performing customized configuration according to the characteristics of the VMware environment, including: configuring specific network settings, authentication methods, and storage backends to better adapt to the needs of the VMware environment. Administrators can centrally handle the deployment, monitoring, and maintenance of VMware resources without having to handle other types of resources at the same time.
[0038] The following steps are included in managing VMware hosts in an OpenStack multi-region environment (see Figure 3 shown): S01. Log in as a user through the OpenStack panel, and manage and control the integration of OpenStack and VMware by logging in to the OpenStack panel. S02. After logging in successfully, select the operation of managing VMware hosts or virtual machines on the OpenStack panel. The panel sends this request to the proxy service agent (the proxy service agent encapsulates the standardized VMware request API and is compatible with multiple VMware products. The proxy service agent communicates with the VMware infrastructure in the RegionTwo environment). After receiving the management request, the proxy service agent queries the detailed information of the VMware hosts in the RegionTwo environment through HTTP requests. The RegionTwo environment refers to a specific Region in the OpenStack multi-Region architecture for managing VMware resources. After receiving the query request of the proxy service, a VIM request is sent to the VMware vCenter server. VIM (Virtualization Management Interface) is a protocol for communicating with VMware and is used to obtain information about VMware hosts and virtual machines. S03, the VMware vCenter server forwards the query request to the VMware host, and the ESXi host returns detailed host information (such as host configuration, running status and virtual machine list, etc.), and collects the detailed host information so that subsequent management can proceed normally; S04. The OpenStack panel displays detailed information obtained from the VMware host to the user. The user selects the resources to be managed based on the displayed information of the VMware host and virtual machine. The user selects the virtual machine or other resources to be managed on the panel. S05. Send the management request selected by the user to the agent service through the panel. The management request specifies the cluster name to which the virtual machine or resource to be managed belongs to ensure the correct management and organization of VMware resources. After receiving the management request, the agent service agent writes the relevant management data and virtual machine information into the database, and performs persistent storage management operations on the detailed information for subsequent management and maintenance.
[0039] Figure 2 The management process of this embodiment is shown.
[0040] An embodiment of the present invention further provides a computer device, Figure 7 is a schematic diagram of the structure of a computer device provided by an embodiment of the present invention; see the accompanying drawings Figure 7As shown, the computer device includes: an input device 23, an output device 24, a memory 22 and a processor 21; the memory 22 is used to store one or more programs; when the one or more programs are executed by the one or more processors 21, the one or more processors 21 implement the method for managing VM hosts based on multi-region services of an open source cloud platform as provided in the above embodiment; wherein the input device 23, the output device 24, the memory 22 and the processor 21 can be connected by a bus or other means, Figure 7 The example of connecting through bus is taken in the following.
[0041] The memory 22 is a readable and writable storage medium of a computing device, which can be used to store software programs and computer executable programs, such as program instructions corresponding to the method for managing VM hosts based on multi-region services of an open source cloud platform as described in an embodiment of the present invention; the memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function; the data storage area can store data created according to the use of the device, etc.; in addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device; in some instances, the memory 22 can further include a memory remotely arranged relative to the processor 21, and these remote memories can be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0042] The input device 23 may be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the device; the output device 24 may include a display device such as a display screen.
[0043] The processor 21 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 22, that is, realizes the above-mentioned method of managing VM hosts based on multi-region services of the open source cloud platform.
[0044] The computer device provided above can be used to execute the method for managing VM hosts based on multi-region services of an open source cloud platform provided in the above embodiment, and has corresponding functions and beneficial effects.
[0045] The embodiment of the present invention also provides a storage medium containing computer executable instructions, which are used to execute the method of managing VM hosts based on multi-region services of open source cloud platforms as provided in the above embodiments when executed by a computer processor. The storage medium is any of various types of memory devices or storage devices, and the storage medium includes: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc.; the storage medium may also include other types of memory or combinations thereof; in addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet); the second computer system may provide program instructions to the first computer for execution. The storage medium includes two or more storage media that can reside in different locations (for example, in different computer systems connected via a network). The storage medium can store program instructions (for example, specifically implemented as a computer program) that can be executed by one or more processors.
[0046] Of course, the computer executable instructions of a storage medium containing computer executable instructions provided in an embodiment of the present invention are not limited to the method for managing VM hosts based on multi-region services of an open source cloud platform as described in the above embodiment, and can also execute related operations in the method for managing VM hosts based on multi-region services of an open source cloud platform provided in any embodiment of the present invention. So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
[0047] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for managing VM hosts based on multi-region services on an open source cloud platform, characterized in that: include: Design multi-Region architecture; VMware resources are managed independently; Configure high availability and fault tolerance in VMware Region; Manage VMware hosts in an OpenStack multi-region environment; The design of the multi-Region architecture includes: configuring an OpenStack multi-Region environment including two regions: RegionOne and RegionTwo, each of which has independent resources and services, and RegionOne and RegionTwo are centrally managed through an OpenStack control panel; in RegionOne, KVM is used as a virtualization technology to run virtual machine instances, and control nodes and computing nodes are deployed; in RegionTwo, VMware ESXi hosts are used as virtualization technology, and are centrally managed through Vcenter; Managing VMware hosts in an OpenStack multi-region environment includes: S01. Log in as a user through the OpenStack panel, and manage and control the integration of OpenStack and VMware by logging in to the OpenStack panel. S02. After logging in successfully, select the operation of managing VMware hosts or virtual machines on the OpenStack panel. The panel sends this request to the proxy service agent. After receiving the management request, the proxy service agent queries the detailed information of the VMware hosts in the RegionTwo environment through HTTP requests. The RegionTwo environment refers to a specific Region in the OpenStack multi-Region architecture for managing VMware resources. After receiving a query request from the proxy service, a VIM request is sent to the VMware vCenter server. VIM is a protocol for communicating with VMware and is used to obtain information about VMware hosts and virtual machines. S03, the VMware vCenter server forwards the query request to the VMware host, and the ESXi host returns detailed host information, which is collected so that subsequent management can proceed normally; S04. The OpenStack panel displays detailed information obtained from the VMware host to the user. The user selects the resources to be managed based on the displayed information of the VMware host and virtual machine. The user selects the virtual machine or other resources to be managed on the panel. S05. Send the management request selected by the user to the agent service through the panel. The management request specifies the cluster name to which the virtual machine or resource to be managed belongs to ensure the correct management and organization of VMware resources. After receiving the management request, the agent service agent writes the relevant management data and virtual machine information into the database, and performs persistent storage management operations on the detailed information for subsequent management and maintenance.
2. The method for managing VM hosts based on multi-region services of an open source cloud platform according to claim 1, characterized in that: The configuration of high availability and fault tolerance mechanism in VMware Region includes: virtual machine hot migration, host evacuation, data redundancy and backup; wherein, the virtual machine hot migration means allowing the virtual machine to be migrated from one host to another during the operation of the virtual machine in RegionTwo, so as to ensure the availability of the virtual machine without affecting the business operation; The host evacuation means that when a host in RegionTwo fails, the virtual machines are automatically evacuated to other hosts that are operating normally; The data redundancy and backup refer to configuring data redundancy and backup mechanisms in RegionTwo to ensure the security and recovery capabilities of important data.
3. The method for managing VM hosts based on multi-region services of an open source cloud platform according to claim 2, characterized in that: The virtual machine hot migration comprises the following steps: S11. Query the resource usage of the Region through the proxy service agent to ensure that the hosts in RegionOne and RegionTwo have sufficient resources to host the migrated virtual machines; configure a dedicated network channel or VPN connection in the proxy service agent to achieve network connectivity between RegionOne and RegionTwo and allow the transmission of migrated data; check the status of the migrated virtual machine in RegionTwo through the API to ensure that the virtual machine is not in the snapshot or backup process and ensure the integrity of the virtual machine data; S12, the user initiates a virtual machine hot migration request through the panel interface, and specifies the virtual machine to be migrated and the target region; S13, the proxy service agent verifies the legitimacy of the migration request, including verifying the availability of the target region and whether the migrated virtual machine meets the migration conditions; S14. Establish a network connection between RegionOne and RegionTwo for transmitting migration data. The agent service ensures network bandwidth and stability to avoid interruption during the migration process. S15. During the migration process, the virtual machine data in RegionTwo: the source Region is copied and synchronized to RegionOne: the target Region; S16. After data replication and synchronization are completed, RegionOne: the virtual machine instance in the target Region is started, RegionTwo: the virtual machine in the source Region is stopped, and the virtual machine in the target Region takes over the business traffic; S17. After the migration is completed, the agent service confirms the success of the migration, including checking the running status and data integrity of the virtual machine in RegionOne: the target Region.
4. The method for managing VM hosts based on multi-region services of an open source cloud platform according to claim 2, characterized in that: The configuration of data redundancy and backup mechanism in RegionTwo includes: S21. Determine that the data of the target Region: RegionOne for data redundancy and backup is isolated from the source Region: RegionTwo to avoid single point failure; the proxy service agent realizes the network connectivity between the source Region: RegionTwo and the target Region: RegionOne to transmit data during the backup and recovery process; S22. Develop a detailed backup plan based on data classification and backup strategy, where the backup plan includes backup frequency, time window, and target region. S23, configuring a data redundancy mechanism in the source Region: RegionTwo, wherein the data redundancy mechanism includes: a RAID array or a distributed storage system; S24, the proxy service agent regularly backs up important data in the source Region: RegionTwo; S25, the proxy service agent transfers the backup data from the source Region: RegionTwo to the storage medium of the target Region; S26. After the backup is completed, the proxy service agent verifies the backup data through a hash algorithm to ensure the integrity and recoverability of the backup data.
5. The method for managing VM hosts based on multi-region services of an open source cloud platform according to claim 4, characterized in that: The configuration of data redundancy and backup mechanism in RegionTwo also includes data recovery, and the data recovery includes: S31. In case of data loss or damage, the user initiates a data recovery request through the API interface of the OpenStack panel; S32. According to the user's request and data recovery plan, the proxy service agent locates the backup data in the target Region: RegionOne; S33, the proxy service agent transfers the backup data from the target Region: RegionOne to the specified location in the source data: RegionTwo, and restores the data to the state of the original data; S34. After the data is restored, the agent service verifies the restored data to ensure the consistency and integrity of the data.
6. The method for managing VM hosts based on multi-region services of an open source cloud platform according to claim 1, characterized in that: The independent management of VMware resources includes: managing VMware related resources within RegionTwo; RegionTwo is specifically used to manage VMware hosts, virtual machines, storage and network resources; RegionTwo data is kept isolated from RegionOne data, and through independent management of VMware resources and an independent API terminal, the communication between RegionTwo and RegionOne is guaranteed to be secure and reliable, and compatible with multiple VMware products.
7. The method for managing VM hosts based on multi-region services of an open source cloud platform according to claim 6, characterized in that: The method for being compatible with multiple VMware products includes: performing customized configuration according to the characteristics of the VMware environment, including: configuring specific network settings, authentication methods, and storage backends to better adapt to the needs of the VMware environment.
8. The method for managing VM hosts based on multi-region services of an open source cloud platform according to claim 4, characterized in that: The types of backing up the important data in the source Region: RegionTwo in step S24 include: full backup and / or incremental backup; The full backup is to copy the complete data of the source region to the storage medium of the target region; The incremental backup only backs up the changes that occurred since the last backup.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for managing VM hosts based on multi-region services of an open source cloud platform are implemented as described in any one of claims 1 to 8.
10. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for managing VM hosts based on multi-region services of an open source cloud platform are implemented as described in any one of claims 1-8.
