Version cutover method for agile VMware virtualization resource pool

By analyzing the service importance of the electric power marketing business system and distinguishing deployment forms, using uninterrupted and discontinuous migration strategies, combined with backup and planning algorithms, the problem of uninterrupted operation of the electric power marketing business system during version cutover was solved, and migration was improved. efficiency and system stability.

CN118473942BActive Publication Date: 2024-09-17INFORMATION & COMM CO OF STATE GRID SHAANXI ELECTRIC POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410904927.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-17
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Existing data migration technology cannot effectively guarantee the uninterrupted operation of the electric power marketing business system during the version cutover process, especially for business systems that cannot perform uninterrupted migration, resulting in low migration efficiency and long business interruption time.

Method used

By analyzing the service importance of the electric power marketing business system, we divide key services and non-critical services, and adopt different migration strategies according to their deployment forms (active/standby, dual-active, special shared storage), including non-stop migration and discontinuous migration. Combining snapshot backup, copy cloning and dynamic planning algorithms ensures the efficiency of the migration process and data security.

Benefits of technology

It realizes non-stop migration of most services, and a very small number of services undergo intermittent migration in the shortest time, which improves the efficiency of version cutover and ensures the normal operation of the power marketing business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118473942B
    Figure CN118473942B
Patent Text Reader

Abstract

The embodiments of the present application relate to the technical field of version cutover, and disclose a version cutover method for an agile VMware virtualization resource pool, the method comprising: dividing the services provided by the power marketing business system into key services and non-key services; directly shutting down and migrating the non-key services deployed on the old version resource pool to a preset new version resource pool; determining the deployment form of each key service on the old version resource pool; gradually migrating the key services deployed in the active-standby form and in the active-active form to the new version resource pool in accordance with the principle that the active-standby nodes do not move at all and the active-standby nodes are not on the same host machine after migration; shutting down the key services deployed in the special shared storage form, and changing their storage mapping to the new version resource pool, and after restarting, incorporating the key services deployed in the special shared storage form into the new version resource pool to ensure that the power marketing business system can operate normally after version cutover.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of version cutover, and in particular to a version cutover method for an agile VMware virtualization resource pool. Background Art

[0002] Currently, enterprises use two versions of virtualized resource pools: VMware 5.5 and VMware 7.0. VMware 5.5 is an old version with hidden dangers such as purple screen vulnerabilities and occasional restarts. In order to ensure that information and services are not affected, enterprises have gradually started to migrate services deployed on VMware 5.5 virtualized resource pools to VMware 7.0 virtualized resource pools. Services originally deployed on VMware 5.5 virtualized resource pools need to be migrated in categories due to their architecture problems, such as Oracle clusters and single-machine multi-network card problems. In addition, in order to ensure that the time of business impact is as short as possible, agile cutover technology needs to be designed.

[0003] The patent with publication number CN106657173A discloses a service migration method, device and server in software upgrade under NFV (Network Functions Virtualization) architecture. When performing migration, the VNFM module sends a virtual machine VM (Virtual Manufacturing) application command to the first VIM (Virtualized Infrastructure Manager) module. The first VIM module manages the first host Host configured with the upgraded new version of software. The VNFM module receives the VM application response from the first VIM module. The VM application response includes information of the first VM applied by the first VIM module on the first host Host. The first VM is configured with the virtual machine data configured by the first VIM module and can run on the first Host. The VNFM module sends a service migration command to the virtual network function VNF module. The service migration command is used to instruct the VNF (Virtual Network Function) module to migrate the service running on the second VM to the first VM. The second VM is deployed on the second Host configured with the old version of software before the upgrade. The method is conducive to the normal and continuous operation of the migrated service in the software upgrade, and even to achieve uninterrupted service.

[0004] However, most of the data migration technologies currently proposed directly migrate the business from the original equipment to the new equipment without considering the criticality of the business, let alone the fact that some businesses cannot be migrated uninterruptedly. It can be seen that the data migration technologies currently proposed are not well suited for the power marketing business system. Summary of the invention

[0005] In view of this, an embodiment of the present application provides a version cutover method for an agile VMware virtualization resource pool, which can ensure that most businesses are migrated uninterruptedly without being affected, and a very small number of businesses are migrated intermittently but with the shortest interruption time. This improves the efficiency of version cutover and effectively ensures that the power marketing business system can operate normally after version cutover.

[0006] In order to solve the above technical problems, an embodiment of the present application provides a version cutover method for an agile VMware virtualization resource pool, comprising the following steps: performing a service importance analysis on a power marketing business system, and dividing the services provided by the power marketing business system into key services and non-key services; directly shutting down and migrating the non-key services deployed on the old version resource pool to a preset new version resource pool; determining the deployment form of each key service on the old version resource pool; wherein the deployment form is an active-standby form, an active-active form, or a special shared storage form; gradually migrating the key services deployed in the active-standby form and the key services deployed in the active-active form to the new version resource pool in accordance with the principle that the active-standby nodes do not move at all and that the active-standby nodes are not on the same host machine after migration; after the non-key services, the key services deployed in the active-standby form, and the key services deployed in the active-active form complete the migration, shutting down the key services deployed in the special shared storage form, and changing the storage mapping of the key services deployed in the special shared storage form to the new version resource pool, and after restarting, incorporating the key services deployed in the special shared storage form into the new version resource pool.

[0007] The embodiment of the present application also provides a version cutover system for an agile VMware virtualization resource pool, the system comprising: a service division module, a non-critical service migration module and a critical service migration module, the critical service migration module comprising a deployment form determination unit, an uninterrupted migration unit and an intermittent migration unit; the service division module is used to perform a service importance analysis on the power marketing business system, and divide the services provided by the power marketing business system into critical services and non-critical services; the non-critical service migration module is used to directly shut down and migrate the non-critical services deployed on the old version resource pool to the preset new version resource pool; the deployment form determination unit is used to determine the deployment form of each critical service on the old version resource pool, the deployment form The form is active-standby form, active-active form or special shared storage form; the non-stop migration unit is used to gradually migrate the key services deployed in the active-standby form and the key services deployed in the active-active form to the new version resource pool in accordance with the principle that the active-standby nodes do not move at all and the principle that the active-standby nodes are not on the same host machine after the migration; the intermittent migration unit is used to shut down the key services deployed based on the special shared storage form after the non-critical services, the key services deployed in the active-standby form and the key services deployed in the active-active form are migrated, and change the storage mapping of the key services deployed based on the special shared storage form to the new version resource pool, and after restarting, include the key services deployed based on the special shared storage form into the new version resource pool.

[0008] An embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned version cutover method for agile VMware virtualization resource pools.

[0009] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the version cutover method for an agile VMware virtualization resource pool described above is implemented.

[0010] The version cutover method for the agile VMware virtualization resource pool provided by the embodiment of the present application, when version cutover is required, first analyzes the importance of services for the power marketing business system, and divides the services provided by the power marketing business system into key services and non-key services. For non-key services deployed on the old version resource pool, directly shut down and migrate to the new version resource pool. For key services, it is necessary to determine their deployment form on the old version resource pool. The deployment forms of key services on the old version resource pool include three forms: active-standby form, active-active form, and special shared storage form. For key services deployed in the active-standby form and key services deployed in the active-active form, uninterrupted migration can be performed, and they are gradually migrated to the new version resource pool according to the principle that the active-standby nodes do not move at all and the principle that the active-standby nodes are not on the same host machine after migration. For key services deployed in the special shared storage form, intermittent migration is required. After shutdown, their storage mapping is changed to the new version resource pool. After restarting, they are included in the new version resource pool. The entire migration (cutover) process fully considers the business characteristics of the power marketing business system, which can ensure that most services are migrated uninterruptedly without being affected, and a very small number of services are migrated intermittently but only require the shortest possible terminal time, which effectively improves the efficiency of version cutover and ensures that the power marketing business system can operate normally after version cutover.

[0011] In some optional embodiments, before directly shutting down and migrating non-critical services deployed on the old version resource pool to the preset new version resource pool, the method also includes: conducting migration negotiations with the management parties corresponding to the services provided by the power marketing business system, and after confirming that the migration is allowed, determining the migration time, and sending the determined migration time to the management parties corresponding to the services provided by the power marketing business system; after reaching the determined migration time, checking the health status of the virtual machines corresponding to the services provided by the power marketing business system in turn to determine whether the services provided by the power marketing business system meet the migration conditions; establishing migration guarantees for the virtual machines corresponding to the services that meet the migration conditions by means of snapshot backup or copy cloning; wherein, if the migration source and migration destination of the virtual machines corresponding to the services that meet the migration conditions belong to the same storage, then establishing migration guarantees by means of snapshot backup, and if the migration source and migration destination of the virtual machines corresponding to the services that meet the migration conditions do not belong to the same storage, then establishing migration guarantees by means of copy cloning. Whether it is a critical service or a non-critical service, this application must determine whether the migration conditions are met before migration, and establish migration guarantees for the virtual machines corresponding to the services that need to be migrated to prevent errors during the migration process that may cause data loss, further ensuring the data integrity and data security of the power marketing business system.

[0012] In some optional embodiments, for each service provided by the power marketing business system, after completing the migration of the virtual machine corresponding to each service, the method further includes: taking the currently migrated service as the target service, and verifying the availability of the target service; if the target service is available, performing the migration of the virtual machine corresponding to the next service; if the target service is unavailable, performing the migration rollback of the target service in accordance with the migration guarantee corresponding to the target service, and re-migration of the virtual machine corresponding to the target service. When the virtual machine corresponding to a service completes the migration, only if the service is available, it means that the migration is successful. Therefore, after completing the migration of the virtual machine corresponding to each service in this application, service availability verification must be performed to ensure the quality of migration. If the service is unavailable after the migration, the migration rollback is performed so that the power marketing business system can operate normally and prepare for migration again.

[0013] In some optional embodiments, after completing the migration of the virtual machine corresponding to the target service again, the method further includes: verifying the availability of the target service again; if the target service is available, migrating the virtual machine corresponding to the next service; if the target service is still unavailable, temporarily abandoning the migration of the virtual machine corresponding to the target service, and issuing a fault notification for the target service, instructing the management party corresponding to the target service to troubleshoot. When a service fails to migrate twice in a row, it may indicate that the virtual machine corresponding to the service, the host machine carrying the virtual machine, the old version resource pool, or even the service itself has a fault. At this time, the migration of the service is temporarily abandoned, the management party is notified to troubleshoot, and the migration is performed after the fault is eliminated, or the management party manually migrates. Such a design greatly improves the efficiency of service migration and version cutover.

[0014] In some optional embodiments, for any loaded host machine, the operation of migrating the virtual machines on the host machine is called drainage, and when all the virtual machines on the host machine are migrated and no longer carry any virtual machines, the host machine is called an empty host machine; the key services deployed in the active-standby form and the key services deployed in the active-active form are gradually migrated to the new version resource pool according to the principle that the active-standby nodes are not moved at all and the principle that the active-standby nodes are not on the same host machine after migration, including: converting the internal resource adjustment problem of the old version resource pool into a knapsack problem, and using a dynamic programming algorithm to determine the migration layout based on the knapsack problem; wherein the determined migration layout can ensure that the number of empty hosts is the largest and the load of the loaded host machines is relatively saturated when the reserved resources are sufficient; the key services deployed in the active-standby form and the key services deployed in the active-active form are gradually migrated to the new version resource pool according to the principle that the active-standby nodes are not moved at all, the principle that the active-standby nodes are not on the same host machine after migration, and the migration layout. Pre-determining the migration layout using a dynamic programming algorithm can optimally utilize the resources in the new version resource pool and further improve the efficiency of version cutover.

[0015] In some optional embodiments, shutting down the critical services deployed based on the special shared storage form, and changing the storage mapping of the critical services deployed based on the special shared storage form to the new version resource pool, and after restarting, including the critical services deployed based on the special shared storage form in the new version resource pool, includes: shutting down each emptied host machine and the critical services deployed based on the special shared storage form together, and changing the storage mapping of each emptied host machine and the critical services deployed based on the special shared storage form to the new version resource pool, and after restarting, including the device resources of each emptied host machine and the critical services deployed based on the special shared storage form in the new version resource pool. The emptied host machine should also be shut down along with the critical services deployed based on the special shared storage form, and the storage mapping of each emptied host machine should also be changed to the new version resource pool, so as to ensure that the resources of the new version resource pool are sufficient.

[0016] In some optional embodiments, the key services include: marketing payment services, unified video services, unified authority services and infrastructure management services; the non-key services include: marketing log analysis services, intelligent document comparison services and online document editing services. Key services actually refer to services that affect employees' real-time work and users' normal operations. Such services need to be migrated uninterruptedly or with as little interruption time as possible to prevent adverse effects on the operation and reputation of the power marketing business system. Non-key services are actually services that can delay work and will not affect users' normal operations. Therefore, intermittent shutdown migration can be performed without adverse effects on the operation and reputation of the power marketing business system. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.

[0018] Figure 1 It is a flowchart of a version cutover method for an agile VMware virtualization resource pool provided in one embodiment of the present application;

[0019] Figure 2 is a schematic diagram of different migration modes of different services provided in an embodiment of the present application;

[0020] Figure 3 It is a structural diagram of a version cutover system for an agile VMware virtualization resource pool provided in another embodiment of the present application;

[0021] Figure 4 It is a structural schematic diagram of an electronic device provided by another embodiment of the present application. DETAILED DESCRIPTION

[0022] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not be construed as any limitation, and the various embodiments can be combined and referenced with each other under the premise of no contradiction.

[0023] An embodiment of the present application proposes a version cutover method for an agile VMware virtualization resource pool, which is applied to an electronic device, wherein the electronic device can be a terminal or a server. In this embodiment and the following embodiments, the electronic device is described by taking the server as an example. The implementation details of the version cutover method for an agile VMware virtualization resource pool proposed in this embodiment are described in detail below. The following content is only the implementation details provided for the convenience of understanding and is not necessary for the implementation of this solution.

[0024] The specific process of the version cutover method for the agile VMware virtualization resource pool proposed in this embodiment can be as follows: Figure 1 As shown, including:

[0025] Step 101 : performing a service importance analysis on the power marketing business system, and dividing the services provided by the power marketing business system into key services and non-key services.

[0026] In the specific implementation, when it is necessary to perform version cutover of the power marketing business system, the server first needs to perform a service importance analysis on the power marketing business system and divide the services provided by the power marketing business system into key services and non-key services. Key services actually refer to services that affect employees' real-time work and affect users' normal operations. Such services need to be migrated uninterruptedly or with as little interruption time as possible to prevent adverse effects on the operation and reputation of the power marketing business system. For the power marketing business system, key services include but are not limited to: marketing payment services, unified video services, unified authority services, and infrastructure management services. Non-key services actually refer to services that can delay work and do not affect users' normal operations. Therefore, intermittent shutdown migration can be performed without adverse effects on the operation and reputation of the power marketing business system. For the power marketing business system, non-key services include but are not limited to: marketing log analysis services, intelligent document comparison services, and online document editing services.

[0027] Step 102, directly shut down and migrate the non-critical services deployed on the old version resource pool to the preset new version resource pool.

[0028] In the specific implementation, non-critical services can be delayed and interrupted. Therefore, when migrating non-critical services, the non-critical services deployed on the old version resource pool can be directly shut down and migrated to the preset new version resource pool. It is worth noting that the migration of the services provided by the power marketing business system is actually the migration of the virtual machines corresponding to the services. The migration of services in this application means the migration of the virtual machines corresponding to the services, which will not be repeated hereafter.

[0029] It is understandable that non-critical services are small in size and low in complexity, so this application is set to migrate non-critical services first so that more attention can be paid to the migration of critical services.

[0030] In one example, after the server divides the services provided by the power marketing business system into key services and non-key services, before migrating the services provided by the power marketing business system, it is necessary to first negotiate the migration with the management party corresponding to each service provided by the power marketing business system, and after confirming that the migration is allowed, determine the migration time, and send the determined migration time to the management party corresponding to each service provided by the power marketing business system. Since migration involves interruptions, if the migration is suddenly carried out without negotiation with the management party corresponding to each service provided by the power marketing business system, it is likely to cause an impact on the power marketing business system itself and bring a bad user experience to users who are using the power marketing business system to handle business. Therefore, the server needs to negotiate the migration with the management party before migration. After the management party confirms that the migration is allowed, a migration time is agreed upon. The server will migrate after the migration time arrives, and the management party can issue an announcement based on the migration time to minimize the adverse effects of version cutover on the power marketing business system.

[0031] In one example, after the determined migration time is reached, the server can sequentially check the health status of the virtual machines corresponding to the services provided by the power marketing business system to determine whether the services provided by the power marketing business system meet the migration conditions. The health status checks required include checking whether the virtual machine is running, whether the root directory is overloaded, etc. When the health status check is completed, the server establishes migration guarantees for the virtual machines corresponding to the services that meet the migration conditions (i.e., the health status check passes) through snapshot backup or copy cloning. For each service, the server must determine whether it meets the migration conditions before migration, and establish migration guarantees for the virtual machines corresponding to the services that need to be migrated to prevent errors during the migration process that may cause data loss, further ensuring the data integrity and data security of the power marketing business system.

[0032] In one example, if the migration source and migration destination of the virtual machine corresponding to the service with migration conditions belong to the same storage, the server establishes migration guarantee by means of snapshot backup. If the migration source and migration destination of the virtual machine corresponding to the service with migration conditions do not belong to the same storage, the server establishes migration guarantee by means of replication and cloning.

[0033] Step 103, determining the deployment form of each key service on the old version resource pool, wherein the deployment form is an active-standby form, an active-active form, or a special shared storage form.

[0034] In the specific implementation, for key servers, the server needs to determine the deployment form of each key service on the old version resource pool, where the deployment form of key services on the old version resource pool is specifically active-standby, active-active, or special shared storage. Key services deployed in active-standby or active-active form can be migrated uninterruptedly, while key services deployed in special shared storage form must be migrated intermittently.

[0035] Step 104 , the key services deployed in the active-standby mode and the key services deployed in the active-active mode are gradually migrated to the new version resource pool according to the principle that the active-standby nodes remain unchanged and the active-standby nodes are not on the same host machine after migration.

[0036] In the specific implementation, after determining the deployment form of key services on the old version resource pool, the server can gradually migrate key services deployed in the active-standby form and key services deployed in the active-active form to the new version resource pool in accordance with the principle that the active-standby nodes are not moved at all and that the active-standby nodes are not on the same host machine after migration. This process is an uninterrupted migration, that is, key services deployed in the active-standby form and key services deployed in the active-active form can still operate normally during migration.

[0037] In one example, for any loaded host (the one carrying virtual machines is called loaded), the operation of migrating the virtual machines on the host is called draining. When all virtual machines on the host are migrated and no virtual machines are carried, the host can be called a drained host. When the server gradually migrates the key services deployed in the active-standby mode and the key services deployed in the active-active mode to the new version resource pool according to the principle that the active-standby nodes are not moved at all and the active-standby nodes are not on the same host after migration, the internal resource adjustment problem of the old version resource pool can be converted into a knapsack problem, and the migration layout can be determined based on the knapsack problem using a dynamic programming algorithm. Subsequently, the key services deployed in the active-standby mode and the key services deployed in the active-active mode are gradually migrated to the new version resource pool according to the principle that the active-standby nodes are not moved at all and the active-standby nodes are not on the same host after migration, as well as the migration layout. It is worth noting that the determined migration layout can ensure that the number of drained hosts is maximized, and that the load of the loaded hosts is relatively saturated when the reserved resources are sufficient. By using the dynamic programming algorithm to determine the migration layout in advance, you can optimally utilize the resources in the new version resource pool and further improve the efficiency of version cutover.

[0038] The dynamic programming algorithm involves the adjustment of the CPU reuse ratio. The number of allocated CPUs can exceed the actual number of CPUs because the CPUs of the actual virtual machines are not always in use. For example, if 4 cores are allocated, only 1 core may be used, and the remaining 3 cores can be used by other virtual machines, which results in reuse. The dynamic programming algorithm must ensure that the CPU reuse ratio is the highest under the condition of maximizing the use of the host machine's memory to save resources. The CPU reuse ratio must not exceed 4, which is within the safe range. When the CPU reuse ratio is adjusted to about 3, the performance is optimal.

[0039] Step 105, after the non-critical services, the critical services deployed in the active-standby form, and the critical services deployed in the active-active form are migrated, the critical services deployed in the special shared storage form will be shut down, and the storage mapping of the critical services deployed in the special shared storage form will be changed to the new version resource pool. After restarting, the critical services deployed in the special shared storage form will be included in the new version resource pool.

[0040] In the specific implementation, the key services deployed based on the special shared storage form are migrated last, that is, they need to wait for the non-critical services, the key services deployed based on the active-standby form, and the key services deployed based on the active-active form to complete the migration before they can be migrated. After the non-critical services, the key services deployed based on the active-standby form, and the key services deployed based on the active-active form have completed the migration, the server will shut down the key services deployed based on the special shared storage form, and change the storage mapping of the key services deployed based on the special shared storage form to the new version resource pool. After restarting, the key services deployed based on the special shared storage form are included in the new version resource pool. Under such a migration plan, the key services deployed based on the special shared storage form can be migrated within a very short interruption time, which will minimize the adverse effects of interruptions on the power marketing business system.

[0041] In an example, the migration process of non-critical services, critical services deployed in active-standby mode, critical services deployed in active-active mode, and critical services deployed in special shared storage mode can be as follows: Figure 2 As shown, their corresponding migration methods are different.

[0042] In one example, after non-critical services, critical services deployed in active-standby mode, and critical services deployed in active-active mode are migrated, the server also needs to shut down all empty hosts and critical services deployed in special shared storage mode, and change the storage mapping of all empty hosts and critical services deployed in special shared storage mode to the new version resource pool. After restarting, the device resources of all empty hosts and critical services deployed in special shared storage mode are included in the new version resource pool. The change of storage mapping of all empty hosts effectively ensures that the new version resource pool has sufficient resources.

[0043] In one example, for each service provided by the power marketing business system, after the server completes the migration of the virtual machine corresponding to each service, it can use the currently migrated service as the target service and perform availability verification on the target service. If the target service is available (passes the availability verification, that is, it can run normally), the virtual machine corresponding to the next service is migrated. If the target service is unavailable (fails to pass the availability verification, that is, it cannot run normally), the target service is migrated back according to the migration guarantee corresponding to the target service, and the virtual machine corresponding to the target service is migrated again.

[0044] It is understandable that when the virtual machine corresponding to a service completes the migration, only when the service is available can it be said that the migration of the service is successful. Therefore, after the server completes the migration of the virtual machine corresponding to a service, the service availability verification must be performed to ensure the quality of migration. If the service is unavailable after migration, the migration is rolled back so that the power marketing business system can operate normally and prepare for another migration.

[0045] In one example, after the server completes the migration of the virtual machine corresponding to the target service again, the availability verification of the target service can be performed again. If the target service is available, the migration of the virtual machine corresponding to the next service is performed. If the target service is still unavailable, the migration of the virtual machine corresponding to the target service is temporarily abandoned, and a fault notification for the target service is issued, instructing the management party corresponding to the target service to perform fault troubleshooting.

[0046] It is understandable that when a service fails to migrate twice in a row, it may indicate that the virtual machine corresponding to the service, the host machine that carries the virtual machine, the old version of the resource pool, or even the service itself has a fault. At this time, the server temporarily abandons the migration of the service and notifies the management party to troubleshoot the problem. The service will be migrated again after the problem is eliminated, or the management party will migrate manually in the end. This design greatly improves the efficiency and power of service migration and version cutover.

[0047] In this embodiment, when version cutover is required, the importance of services of the power marketing business system is first analyzed, and the services provided by the power marketing business system are divided into key services and non-key services. For non-key services deployed on the old version resource pool, they are directly shut down and migrated to the new version resource pool. For key services, their deployment form on the old version resource pool must be determined. There are three deployment forms of key services on the old version resource pool: active-standby, active-active, and special shared storage. For key services deployed in the active-standby form and key services deployed in the active-active form, uninterrupted migration can be performed. According to the principle that the active-standby nodes do not move at all and that the active-standby nodes are not on the same host machine after migration, they are gradually migrated to the new version resource pool. For key services deployed in the special shared storage form, intermittent migration is required. After shutdown, their storage mapping is changed to the new version resource pool. After restarting, they are included in the new version resource pool. The entire migration (cutover) process fully considers the business characteristics of the power marketing business system, which can ensure that most services are migrated uninterruptedly without being affected, and a very small number of services are migrated intermittently but only require the shortest possible terminal time, which effectively improves the efficiency of version cutover and ensures that the power marketing business system can operate normally after version cutover.

[0048] The step division of the above methods is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this application; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this application.

[0049] Based on the above method embodiment, another embodiment of the present application proposes a version cutover system for an agile VMware virtualization resource pool. The implementation details of the version cutover system for an agile VMware virtualization resource pool proposed in this embodiment are specifically described below. The following content is only for the convenience of understanding the implementation details provided, and is not necessary for the implementation of this solution. The structural diagram of the version cutover system for an agile VMware virtualization resource pool proposed in this embodiment can be as follows: Figure 3 As shown, the system includes: a service division module 21, a non-critical service migration module 22 and a critical service migration module 23, and the critical service migration module 23 includes a deployment form determination unit 231, an uninterrupted migration unit 232 and an intermittent migration unit 233.

[0050] The service classification module 21 is used to perform service importance analysis on the power marketing business system and classify the services provided by the power marketing business system into key services and non-key services.

[0051] The non-critical service migration module 22 is used to directly migrate the non-critical services deployed on the old version resource pool to the preset new version resource pool after shutdown.

[0052] The deployment form determination unit 231 is used to determine the deployment form of each key service on the old version resource pool, and the deployment form is one of the active-standby form, the active-active form or the special shared storage form.

[0053] The non-stop migration unit 232 is used to gradually migrate key services deployed in the active-standby mode and key services deployed in the active-active mode to the new version resource pool in accordance with the principle that the active-standby nodes remain unchanged and the active-standby nodes are not on the same host machine after migration.

[0054] The intermittent migration unit 233 is used to shut down the critical services deployed based on the special shared storage form after the non-critical services, the critical services deployed based on the active-standby form and the critical services deployed based on the active-active form are migrated, and change the storage mapping of the critical services deployed based on the special shared storage form to the new version resource pool. After restarting, the critical services deployed based on the special shared storage form will be included in the new version resource pool.

[0055] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.

[0056] Another embodiment of the present application provides an electronic device, the structure of which is as follows: Figure 4 As shown, it includes: at least one processor 301; and a memory 302 that is communicatively connected to the at least one processor 301; wherein the memory 302 stores instructions that can be executed by the at least one processor 301, and the instructions are executed by the at least one processor 301 so that the at least one processor 301 can execute the version cutover method for the agile VMware virtualization resource pool described in the above-mentioned method embodiments.

[0057] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits in the memory together. The bus can also connect other circuits such as peripherals, voltage regulators, and power management circuits together, which are all well known in the art, so this article will not describe them further. The bus interface is used to provide an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium through an antenna, and further, the antenna also receives data and transmits the data to the processor.

[0058] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.

[0059] Another embodiment of the present application relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the version cutover method for the agile VMware virtualization resource pool described in the above method embodiments is implemented.

[0060] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as: ROM), random access memory (Random Access Memory, referred to as: RAM), disk or optical disk and other media that can store program codes.

[0061] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.

Claims

1. A version cutover method for an agile VMware virtualization resource pool, characterized in that: include: Performing a service importance analysis on the power marketing business system, and classifying the services provided by the power marketing business system into key services and non-key services; Directly shut down and migrate non-critical services deployed on the old version resource pool to the preset new version resource pool; Determine the deployment form of each key service on the old version resource pool; wherein the deployment form is an active-standby form, an active-active form, or a special shared storage form; Gradually migrate key services deployed in active-standby mode and active-active mode to the new version resource pool, following the principle that the active and standby nodes should not be moved and that the active and standby nodes should not be on the same host machine after migration. After the non-critical services, the critical services deployed in the active-standby form, and the critical services deployed in the active-active form are migrated, the critical services deployed in the special shared storage form are shut down, and the storage mapping of the critical services deployed in the special shared storage form is changed to the new version resource pool. After restarting, the critical services deployed in the special shared storage form are included in the new version resource pool; For any loaded host machine, the operation of migrating the virtual machines on the host machine is called draining. When all the virtual machines on the host machine have been migrated and no virtual machines are loaded, the host machine is called a drained host machine. The key services deployed in active-standby mode and active-active mode are gradually migrated to the new version resource pool according to the principle that the active-standby nodes are not moved and the active-standby nodes are not on the same host machine after migration, including: The internal resource adjustment problem of the old version resource pool is converted into a knapsack problem, and a migration layout is determined based on the knapsack problem using a dynamic programming algorithm; wherein the determined migration layout can ensure that the number of emptied hosts is the largest and the loads of loaded hosts are relatively saturated when the reserved resources are sufficient; The key services deployed in the active-standby mode and the key services deployed in the active-active mode are gradually migrated to the new version resource pool according to the principle that the active and standby nodes do not remain unchanged, the principle that the active and standby nodes are not on the same host machine after migration, and the migration layout.

2. The version cutover method for an agile VMware virtualization resource pool according to claim 1, characterized in that: Before directly shutting down and migrating the non-critical services deployed on the old version resource pool to the preset new version resource pool, the method further includes: Conducting migration negotiation with the management parties corresponding to the services provided by the power marketing business system, and after confirming that the migration is allowed, determining the migration time, and sending the determined migration time to the management parties corresponding to the services provided by the power marketing business system; After the determined migration time is reached, the health status of the virtual machines corresponding to the services provided by the power marketing business system is checked in turn to determine whether the services provided by the power marketing business system meet the migration conditions; Migration guarantee is established for the virtual machines corresponding to the services that meet the migration conditions through snapshot backup or copy cloning. If the migration source and migration destination of the virtual machines corresponding to the services that meet the migration conditions belong to the same storage, migration guarantee is established through snapshot backup; if the migration source and migration destination of the virtual machines corresponding to the services that meet the migration conditions do not belong to the same storage, migration guarantee is established through copy cloning.

3. The version cutover method for an agile VMware virtualization resource pool according to claim 2, characterized in that: For each service provided by the power marketing business system, after completing the migration of a virtual machine corresponding to each service, the method further includes: Taking the currently migrated service as the target service, and performing availability verification on the target service; If the target service is available, then migrate the virtual machine corresponding to the next service; If the target service is unavailable, the target service is migrated back according to the migration guarantee corresponding to the target service, and the migration of the virtual machine corresponding to the target service is performed again.

4. The version cutover method for an agile VMware virtualization resource pool according to claim 3, characterized in that: After the migration of the virtual machine corresponding to the target service is completed again, the method further includes: Verifying the availability of the target service again; If the target service is available, then migrate the virtual machine corresponding to the next service; If the target service is still unavailable, the migration of the virtual machine corresponding to the target service is temporarily abandoned, and a fault notification for the target service is issued to instruct the management party corresponding to the target service to perform fault troubleshooting.

5. The version cutover method for an agile VMware virtualization resource pool according to claim 1, characterized in that: The key service deployed based on the special shared storage form is shut down, and the storage mapping of the key service deployed based on the special shared storage form is changed to the new version resource pool, and after restarting, the key service deployed based on the special shared storage form is included in the new version resource pool, including: Shut down all the drained host machines and the key services deployed based on the special shared storage form, and change the storage mapping of all the drained host machines and the key services deployed based on the special shared storage form to the new version resource pool. After restarting, the device resources of all the drained host machines and the key services deployed based on the special shared storage form will be included in the new version resource pool.

6. The version cutover method for an agile VMware virtualization resource pool according to any one of claims 1 to 5, characterized in that: The key services include: marketing payment services, unified video services, unified authority services and infrastructure management and control services; The non-critical services include: marketing log analysis service, intelligent document comparison service and online document editing service.

7. A version cutover system for an agile VMware virtualization resource pool, characterized in that: Including: a service division module, a non-critical service migration module and a critical service migration module, wherein the critical service migration module includes a deployment form determination unit, an uninterrupted migration unit and an intermittent migration unit; The service classification module is used to perform service importance analysis on the power marketing business system and classify the services provided by the power marketing business system into key services and non-key services; The non-critical service migration module is used to directly migrate the non-critical services deployed on the old version resource pool to the preset new version resource pool after shutdown; The deployment form determination unit is used to determine the deployment form of each key service on the old version resource pool, and the deployment form is an active-standby form, an active-active form, or a special shared storage form; The non-stop migration unit is used to gradually migrate key services deployed in active-standby mode and key services deployed in active-active mode to the new version resource pool in accordance with the principle that the active-standby nodes are not moved at all and that the active-standby nodes are not on the same host machine after migration. The intermittent migration unit is used to shut down the critical service deployed based on the special shared storage form after the non-critical service, the critical service deployed based on the active-standby form and the critical service deployed based on the active-active form have completed migration, and change the storage mapping of the critical service deployed based on the special shared storage form to the new version resource pool, and after restarting, include the critical service deployed based on the special shared storage form into the new version resource pool; For any loaded host machine, the operation of migrating the virtual machines on the host machine is called draining. When all the virtual machines on the host machine have been migrated and no virtual machines are loaded, the host machine is called a drained host machine. The key services deployed in active-standby mode and active-active mode are gradually migrated to the new version resource pool according to the principle that the active-standby nodes are not moved and the active-standby nodes are not on the same host machine after migration, including: The internal resource adjustment problem of the old version resource pool is converted into a knapsack problem, and a migration layout is determined based on the knapsack problem using a dynamic programming algorithm; wherein the determined migration layout can ensure that the number of emptied hosts is the largest and the loads of loaded hosts are relatively saturated when the reserved resources are sufficient; The key services deployed in the active-standby mode and the key services deployed in the active-active mode are gradually migrated to the new version resource pool according to the principle that the active and standby nodes do not remain unchanged, the principle that the active and standby nodes are not on the same host machine after migration, and the migration layout.

8. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the version cutover method for an agile VMware virtualization resource pool according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the version cutover method for an agile VMware virtualization resource pool according to any one of claims 1 to 6 is implemented.