Data processing method and device, electronic equipment and computer program product

By storing memory data and deleting the virtual machine when the cloud computer detects a hibernation request, and restoring the virtual machine state upon waking, the problem of data loss after the cloud computer is shut down is solved, achieving resource savings and improved user experience.

CN121579140APending Publication Date: 2026-02-27CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511789598.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-01
Publication Date
2026-02-27

AI Technical Summary

Technical Problem

The cloud PC shuts down the virtual machine directly after the user logs out for a period of time, causing the memory data to be lost when the user logs back in and restarts, which affects the user experience.

Method used

When a hibernation request is detected, a hibernation volume is created and the virtual machine memory data is stored, and the virtual machine is deleted; when a wake-up request is received, the virtual machine is recreated and the hibernation volume memory data is imported, so that the virtual machine is restored to the state before hibernation.

Benefits of technology

Save resources when the cloud computer is in hibernation, avoid the user noticing the shutdown, and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121579140A_ABST
    Figure CN121579140A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and device, electronic equipment and a computer program product. The method comprises the steps that under the condition that a first dormancy request of the cloud computer is detected, a first dormancy volume is created, memory data of a first virtual machine is stored in the first dormancy volume, and a second dormancy volume is obtained; deleting the first virtual machine; and under the condition that a first wake-up request of the cloud computer is detected, obtaining a second dormant volume, re-creating a second virtual machine, and importing the memory data in the second dormant volume into the second virtual machine, so that the state of the second virtual machine is the same as the state before the first virtual machine is deleted.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and in particular to a data processing method and device, electronic equipment and computer program product. BACKGROUND

[0002] A cloud computer is a special cloud host that presents computing, storage and network capabilities in the cloud to a terminal in the form of a computer desktop by means of network transmission and virtualization technology. For an idle scenario of the cloud computer, the cloud computer virtual machine is usually directly closed after a user logs out and accesses for a period of time, and the cloud computer virtual machine is re-created when the user accesses again. Memory data is easily lost after the cloud computer virtual machine is started, which affects user experience. SUMMARY

[0003] The embodiments of the present application provide a data processing method, device, electronic equipment and computer program product, which can improve user experience.

[0004] The technical solution of the embodiments of the present application is implemented as follows: The embodiments of the present application provide a data processing method, which comprises the following steps: In the case where a first hibernation request of a cloud computer is detected, a first hibernation volume is created, and memory data of a first virtual machine is stored to the first hibernation volume to obtain a second hibernation volume; and the first virtual machine is deleted. In the case where a first wake-up request of the cloud computer is detected, the second hibernation volume is obtained, a second virtual machine is re-created, and the memory data in the second hibernation volume is imported into the second virtual machine, so that the state of the second virtual machine is the same as that of the first virtual machine before the first virtual machine is deleted.

[0005] The embodiments of the present application provide a data processing device, which comprises: A first detection unit is configured to, in the case where a first hibernation request of a cloud computer is detected, create a first hibernation volume, store memory data of a first virtual machine to the first hibernation volume to obtain a second hibernation volume, and delete the first virtual machine. A second detection unit is configured to, in the case where a first wake-up request of the cloud computer is detected, obtain the second hibernation volume, re-create a second virtual machine, and import the memory data in the second hibernation volume into the second virtual machine, so that the state of the second virtual machine is the same as that of the first virtual machine before the first virtual machine is deleted.

[0006] The embodiments of the present application provide electronic equipment, which comprises: A memory is configured to store computer executable instructions or computer programs. The processor is configured to execute the computer executable instructions or the computer program stored in the memory to implement the method provided by the embodiments of the present application.

[0007] The embodiments of the present application provide a computer program product, comprising a computer program or computer executable instructions, which, when executed by a processor, implement the data processing method provided by the embodiments of the present application.

[0008] The embodiments of the present application have the following beneficial effects: In the case that the first hibernation request of the cloud computer is detected, the memory data of the first virtual machine is stored into the created first hibernation volume to obtain a second hibernation volume, and the first virtual machine is deleted, so that the resources during hibernation of the cloud computer can be saved; and in the case that the first wake-up request of the cloud computer is detected, the second virtual machine is re-created, and the memory data in the second hibernation volume is imported into the second virtual machine, so that the state of the second virtual machine is the same as the state before the first virtual machine is deleted, that is, the cloud computer can be restored to the working state before hibernation, the user can avoid perceiving the shutdown, and thus the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0009] Figure 1 A flowchart of a data processing method provided by the embodiments of the present application is shown; Figure 2 A flowchart of an exemplary cloud computer hibernation provided by the embodiments of the present application is shown; Figure 3 A flowchart of an exemplary cloud computer wake-up provided by the embodiments of the present application is shown; Figure 4 A structure diagram of a data processing apparatus provided by the embodiments of the present application is shown; Figure 5 A structure diagram of an electronic device provided by the embodiments of the present application is shown. DETAILED DESCRIPTION

[0010] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings, and the described embodiments should not be regarded as limiting the present application, and all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0011] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0012] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" can be the same subset or different subsets as each other and can be combined with each other as long as there is no conflict. It should also be noted that the terms "first", "second", etc. used in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific order of the objects. It can be understood that "first", "second", etc. can be interchanged in a specific order or sequence as long as it is allowed, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.

[0013] Cloud computer is a special cloud host that relies on network transmission and virtualization technology to present computing, storage and network capabilities in the cloud to the terminal in the form of a computer desktop. The main difference between it and cloud host is the use scenario. Cloud host is generally used for information technology (IT) production and continuous operation of business. Cloud computer is generally used for office, home, education and entertainment, and is accessed through a dedicated client, with obvious use / idle period.

[0014] Because cloud computer business has obvious idle scenarios, large cloud service providers can utilize the computing resources of idle cloud computers through reasonable scheduling. The current commonly used solution is to directly shut down the cloud computer virtual machine after the user exits the access for a certain time, and create a cloud computer virtual machine again when the user accesses again. This method is equivalent to shutting down and restarting the traditional computer, and the memory data is lost after starting up. The user can perceive the shutdown.

[0015] Based on this, the embodiments of the present application provide a data processing method, Figure 1 A flowchart of a data processing method provided by the embodiments of the present application is shown in FIG. Figure 1 As shown in the figure, the method comprises: S101, in the case of detecting a first hibernation request of a cloud computer, creating a first hibernation volume and storing the memory data of the first virtual machine to the first hibernation volume to obtain a second hibernation volume; deleting the first virtual machine.

[0016] It should be noted that the first hibernation request is initiated by the user. Detecting the first hibernation request of the cloud computer can be understood as that the cloud management platform receives the first hibernation request initiated by the user.

[0017] In the embodiments of the present application, the first hibernation volume can be understood as an empty volume used for storing the memory file of the cloud computer. The size information of the first hibernation volume is the same as the memory specification of the cloud computer, which can be understood as that the size of the first hibernation volume is consistent with the memory specification of the cloud computer. Creating the first hibernation volume can be understood as that the cloud management platform invokes a storage management service application programming interface (API) to create the first hibernation volume.

[0018] It should be noted that the first virtual machine can be understood as the virtual machine before the hibernation of the cloud computer, and the memory data of the first virtual machine can be understood as the memory data of the cloud computer. The memory data can also be understood as the memory file. Storing the memory data of the first virtual machine into the first hibernation volume to obtain the second hibernation volume can be understood as uploading the memory data into the first hibernation volume to generate the second hibernation volume.

[0019] In the embodiments of the present application, the process of deleting the first virtual machine specifically includes: invoking a virtual machine management program to delete the first virtual machine to release the central processing unit (CPU) and the memory occupied by the first virtual machine.

[0020] It should be noted that invoking the virtual machine management program to delete the first virtual machine to release the CPU and the memory occupied by the first virtual machine can be understood as that the computing management service invokes the virtual machine management program to initiate hibernation, and the virtual machine management program deletes the first virtual machine to release the CPU and the memory occupied by the first virtual machine. After the first virtual machine is deleted, the hibernation of the cloud computer is completed.

[0021] In the embodiments of the present application, the shared storage component can be understood as a block storage. Storing the second hibernation volume into the shared storage component can be understood as storing the second hibernation volume into the block storage.

[0022] S102, in the case that the first wake-up request of the cloud computer is detected, the second hibernation volume is obtained, the second virtual machine is re-created, and the memory data in the second hibernation volume is imported into the second virtual machine, so that the state of the second virtual machine is the same as the state before the first virtual machine is deleted.

[0023] It should be noted that the second wake-up request is initiated by the user. The first wake-up request of the cloud computer is detected, which can be understood as that the cloud management platform receives the first wake-up request of the cloud computer. The second hibernate volume is obtained, which can be understood as that the memory data is obtained from the shared storage component (downloaded from the second hibernate volume stored in the shared memory component). The second virtual machine can be understood as a virtual machine re-created after the first wake-up request of the cloud computer is detected. The memory data in the second hibernate volume is imported into the second virtual machine, which can be understood as that the memory data is obtained from the second hibernate volume and imported into the second virtual machine. The state of the second virtual machine is the same as the state before the first virtual machine is deleted, which can also be understood as that the cloud computer is restored to the state before hibernation.

[0024] The scheme of the embodiment of the application can store the memory data of the first virtual machine into the created first hibernate volume to obtain the second hibernate volume and delete the first virtual machine in the case that the first hibernate request of the cloud computer is detected, which can save resources when the cloud computer hibernates. The second virtual machine is re-created, and the memory data in the second hibernate volume is imported into the second virtual machine in the case that the first wake-up request of the cloud computer is detected, so that the state of the second virtual machine is the same as the state before the first virtual machine is deleted, that is, the cloud computer can be restored to the working state before hibernation, which avoids the user from perceiving shutdown and thus improves user experience.

[0025] In the embodiment of the application, the process of storing the memory data of the first virtual machine into the first hibernate volume to obtain the second hibernate volume specifically includes: sending a second hibernate request to the virtual machine management program; so that the virtual machine management program exports the memory data of the first virtual machine and stores the memory data of the first virtual machine into the first hibernate volume to obtain the second hibernate volume; the second hibernate request carries at least the first hibernate volume.

[0026] It should be noted that the second hibernate request can be understood as a hibernate request initiated by the computing management service to the virtual machine management program. The second hibernate request carries at least the related information of the first hibernate volume, which can be understood as that the second hibernate request carries at least the related information of the first hibernate volume; the related information at least includes an identity (ID) of the first hibernate volume. The second hibernate request is sent to the virtual machine management program, which can be understood as that the computing management service calls the virtual machine management program to initiate hibernation and carries the related information of the first hibernate volume.

[0027] It should be noted that the virtual machine management program exports the memory data of the first virtual machine, and stores the memory data of the first virtual machine to the first hibernation volume to obtain the second hibernation volume, which can be understood as that the virtual machine management program exports the memory data of the first virtual machine, and stores the memory data to the first hibernation volume to obtain the second hibernation volume. The memory data is stored in the first hibernation volume, which can be understood as that the virtual machine program uploads the exported memory data to the block storage to store the memory data in the first hibernation volume in the block storage to obtain the second hibernation volume.

[0028] In the embodiment of the present application, the process of importing the memory data in the second hibernation volume into the second virtual machine includes: sending a second wake-up request to the virtual machine management program; the second wake-up request at least includes the hibernation volume in which the memory data is stored; so that the virtual machine management program obtains the memory data from the second hibernation volume in which the memory data is stored, and imports the memory data into the second virtual machine.

[0029] It should be noted that the second wake-up request can be understood as a wake-up request initiated by the computing management service to the virtual machine management program. The second wake-up request at least carries the second hibernation volume; it can be understood that the second wake-up request at least carries the information of the second hibernation volume. Sending the second wake-up request to the virtual machine management program can be understood as that the computing management service calls the virtual machine management program to initiate a wake-up with the information of the second hibernation volume.

[0030] It should be noted that the virtual machine management program obtains the memory data from the second hibernation volume in which the memory data is stored, and imports the memory data into the second virtual machine, which can be understood as that the virtual machine management program obtains the memory data from the second hibernation volume, and imports the obtained memory data into the second virtual machine. The memory data is obtained from the second hibernation volume, which can be understood as that the virtual machine program downloads the memory data from the block storage, specifically from the second hibernation volume in the block storage.

[0031] In the embodiment of the present application, the process of re-creating the second virtual machine and importing the memory data in the second hibernation volume into the second virtual machine includes: calling the virtual machine management program to re-create the second virtual machine, and pausing the second virtual machine; importing the memory data in the second hibernation volume into the second virtual machine; and starting the second virtual machine, so that the state of the second virtual machine is the same as the state before the first virtual machine is deleted.

[0032] It should be noted that the calling of the virtual machine management program to recreate the second virtual machine and suspend the second virtual machine can be understood as that the computing management service calls the virtual machine management program to recreate the second virtual machine and suspend the second virtual machine. The memory data in the second hibernation volume is imported into the second virtual machine; and the second virtual machine is started, so that the state of the second virtual machine is the same as the state before the first virtual machine is deleted. It can be understood that the virtual machine program downloads the memory data from the block storage, specifically downloads the memory data from the second hibernation volume in the block storage, and imports the obtained memory data into the second virtual machine, so that the state of the second virtual machine is the same as the state before the first virtual machine is deleted; that is, the cloud computer is restored to the state before hibernation.

[0033] For the convenience of understanding, the above scheme is described in detail. The above data processing method can be exemplarily illustrated as a cloud computer hibernation and wake-up method. When the cloud computer is idle, the memory file of the cloud computer is exported through virtualization technology, uploaded to shared storage, and then the cloud computer is closed and deleted, releasing CPU, memory and other computing resources, and retaining cloud hard disk and cloud network. When the user accesses again, the cloud computer virtual machine is recreated, and the saved memory file is imported from the shared storage to restore the cloud computer to the state before shutdown.

[0034] Figure 2 An exemplary flowchart of cloud computer hibernation provided by the embodiment of the application is shown in the figure. Figure 2 As shown in the figure, it includes a cloud management platform, a storage management service, a block storage, a computing management service and a virtual machine management program. The specific steps are as follows: 1. Create a hibernation volume.

[0035] It should be noted that the cloud management platform calls the storage management service to create a hibernation volume.

[0036] 2. Create a volume.

[0037] It should be noted that the storage management service calls the storage cluster in the block storage to create a volume.

[0038] 3. Hibernation interface call passes volume id.

[0039] It should be noted that the cloud management platform initiates a hibernation interface call to the computing management service, passing the volume id.

[0040] 4. Query volume information.

[0041] It should be noted that the computing management service queries the volume information from the storage management service.

[0042] 5. Interface call passes volume information.

[0043] It should be noted that the computing management service initiates an interface call to the virtual machine management program, passing the volume information.

[0044] 6. Exporting the virtual machine memory file.

[0045] It should be noted that the virtual machine manager exports the virtual machine memory file.

[0046] 7. Uploading the memory file to the block storage.

[0047] It should be noted that the virtual machine manager uploads the memory file to the block storage.

[0048] 8. Deleting the virtual machine.

[0049] It should be noted that the virtual machine manager deletes the virtual machine.

[0050] The above method is described in detail. The cloud management platform receives a hibernation request initiated by a user, calls a storage management service API to create an empty volume for storing the memory file of the cloud computer, and the volume size is consistent with the memory specification of the cloud computer; the storage management service calls the storage cluster to create the volume; after the volume is created successfully, the cloud management platform calls the computing management service to initiate hibernation, carrying the ID of the hibernation volume; the computing management service queries the detailed information of the volume from the storage management service using the volume ID; the computing management service calls the virtual machine manager to initiate hibernation, carrying the detailed information of the hibernation volume; the virtual machine manager suspends the virtual machine and exports the memory file; the virtual machine manager uploads the virtual machine memory file to the hibernation volume; the virtual machine manager deletes the virtual machine and releases the occupied CPU, memory, etc., and the hibernation is completed.

[0051] For a cloud computer in hibernation, when a user requests to wake up, since the virtual machine has actually been deleted, it is necessary to create a virtual machine again, import the memory file saved in the shared storage after the creation is successful, and after the import is completed, the virtual machine can be restored to the state before hibernation. Figure 3 An exemplary cloud computer wake-up flowchart is provided for the embodiments of the present application; as shown in Figure 3 The cloud management platform, storage management service, block storage, computing management service, and virtual machine manager are included; the specific steps are as follows: 1. Recovery interface call.

[0052] It should be noted that the cloud management platform initiates a recovery interface call to the computing management service.

[0053] 2. Rescheduling the virtual machine.

[0054] It should be noted that the computing management service reschedules the virtual machine.

[0055] 3. Querying volume information.

[0056] It should be noted that the computing management service queries the volume information from the storage management service.

[0057] 4. The interface call passes the volume information.

[0058] Note that the compute management service initiates an interface call to the virtual machine hypervisor, passing the volume information.

[0059] 5. The virtual machine is recreated.

[0060] Note that the virtual machine hypervisor recreates the virtual machine.

[0061] 6. The saved memory file is restored.

[0062] Note that the virtual machine hypervisor restores the saved memory file from the block storage.

[0063] For ease of understanding, the above steps are described in detail. The cloud management platform receives a user-initiated wake-up request and calls the compute management service to initiate recovery; since the CPU, memory, etc. of the virtual machine have been released during hibernation, the original physical machine where the virtual machine is located may no longer be able to meet the resource requirements, so the compute management service reschedules the virtual machine to a physical node that meets the resource requirements; the compute management service queries the storage management service for detailed information of the hibernation volume; the compute management service calls the virtual machine hypervisor to recreate the virtual machine, carrying the information of the hibernation volume; the virtual machine hypervisor creates the virtual machine and pauses it; the virtual machine hypervisor downloads the saved memory file before shutdown from the shared storage and imports it into the virtual machine, and after successful import, starts the virtual machine, completes the wake-up, and the virtual machine returns to the state before hibernation.

[0064] The scheme of the embodiment of the application actively releases resources and saves the memory file of the cloud computer to the shared storage when the cloud computer is idle, recreates the cloud computer instance when the cloud computer is used again, restores the saved memory file from the shared storage, and utilizes idle computing power without user awareness.

[0065] The embodiment of the application provides a data processing device, Figure 4 A structural schematic diagram of a data processing device provided by the embodiment of the application is shown in the figure. Figure 4 As shown in the figure, the data processing device 400 comprises: A first detection unit 401 is configured to, in the case where a first hibernation request of a cloud computer is detected, create a first hibernation volume, store memory data of a first virtual machine into the first hibernation volume to obtain a second hibernation volume, and delete the first virtual machine. A second detection unit 402 is configured to, in the case where a first wake-up request of the cloud computer is detected, obtain the second hibernation volume, recreate a second virtual machine, and import the memory data in the second hibernation volume into the second virtual machine, so that the state of the second virtual machine is the same as that of the first virtual machine before deletion.

[0066] In some embodiments, the first detection unit 401 is further configured to send a second hibernation request to a virtual machine manager, so that the virtual machine manager exports memory data of the first virtual machine and stores the memory data of the first virtual machine to the first hibernation volume to obtain a second hibernation volume, and the second hibernation request carries at least the first hibernation volume.

[0067] In some embodiments, the second detection unit 402 is further configured to send a second wake-up request to a virtual machine manager, and the second wake-up request includes at least a hibernation volume storing memory data, so that the virtual machine manager obtains memory data from the second hibernation volume storing the memory data and imports the memory data into the second virtual machine.

[0068] In some embodiments, the size information of the first hibernation volume is the same as the memory specification of the cloud computer.

[0069] In some embodiments, the second detection unit 402 is further configured to call the virtual machine manager to recreate the second virtual machine and pause the second virtual machine, import the memory data in the second hibernation volume into the second virtual machine, and start the second virtual machine, so that the state of the second virtual machine is the same as the state before the first virtual machine is deleted.

[0070] In some embodiments, the first detection unit 401 is further configured to call the virtual machine manager to delete the first virtual machine to release the CPU and memory occupied by the first virtual machine.

[0071] In some embodiments, after obtaining the second hibernation volume, the data processing apparatus 400 further includes a storage unit configured to store the second hibernation volume to a shared storage component.

[0072] Embodiments of the present application also provide an electronic device, Figure 5 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 5. Figure 5 As shown in FIG. 5, the electronic device 500 includes a processor 501 and a memory 503, and optionally, the electronic device 500 can further include a communication bus 502.

[0073] In the process of the specific embodiment, the processor 501 can be at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing image processing device (DSPD), a programmable logic image processing device (PLD), a field programmable gate array (FPGA), a CPU, a controller, a microcontroller, or a microprocessor. It can be understood that, for different devices, the electronic device for implementing the function of the processor can also be other devices, and the embodiment is not limited in this regard.

[0074] In the embodiment of the present application, the communication bus 502 is used to realize the connection and communication between the processor 501 and the memory 503; and the processor 501 realizes the following data processing method when executing the running program stored in the memory 503. In the case of detecting the first hibernation request of the cloud computer, a first hibernation volume is created, and the memory data of the first virtual machine is stored in the first hibernation volume to obtain a second hibernation volume; the first virtual machine is deleted; in the case of detecting the first wake-up request of the cloud computer, the second hibernation volume is obtained, a second virtual machine is re-created, and the memory data in the second hibernation volume is imported into the second virtual machine, so that the state of the second virtual machine is the same as that of the first virtual machine before the deletion.

[0075] Further, the processor 501 is further configured to send a second hibernation request to a virtual machine management program; the virtual machine management program exports the memory data of the first virtual machine and stores the memory data of the first virtual machine in the first hibernation volume to obtain the second hibernation volume; and the second hibernation request carries at least the first hibernation volume.

[0076] Further, the processor 501 is further configured to send a second wake-up request to a virtual machine management program; the second wake-up request includes at least a hibernation volume storing memory data; the virtual machine management program obtains the memory data from the second hibernation volume storing the memory data and imports the memory data into the second virtual machine.

[0077] Further, the size information of the first hibernation volume is the same as the memory specification of the cloud computer.

[0078] Further, the processor 501 is further configured to call a virtual machine manager to re-create the second virtual machine and suspend the second virtual machine, import the memory data in the second hibernation volume into the second virtual machine, and start the second virtual machine, so that the state of the second virtual machine is the same as the state before the first virtual machine is deleted.

[0079] Further, the processor 501 is further configured to call a virtual machine manager to delete the first virtual machine, so as to release the CPU and the memory occupied by the first virtual machine.

[0080] Further, after obtaining the second hibernation volume, the processor 501 is further configured to store the second hibernation volume to a shared storage component.

[0081] The embodiment of the present application provides a storage medium, which stores a computer program, the computer readable storage medium stores one or more programs, the one or more programs can be executed by one or more processors, and the computer program implements the data processing method.

[0082] Based on the above embodiment, the embodiment of the present application provides a computer program product, which includes a computer program, the computer program can be executed by one or more processors, and the computer program implements the data processing method.

[0083] It should be noted that, in the present document, the term "comprising" or "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of another identical element in the process, method, article or device including the element.

[0084] From the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, it can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a plurality of instructions for making an image display device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) execute the methods described in various embodiments of the present disclosure.

[0085] The above merely provides an example of the present application, but is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, and improvement made within the spirit and scope of the present application shall be included in the protection scope of the present application.

Claims

1. A data processing method, characterized in that, The method includes: Upon detecting a first hibernation request from the cloud computer, a first hibernation volume is created, and the memory data of the first virtual machine is stored in the first hibernation volume to obtain a second hibernation volume; then the first virtual machine is deleted. Upon detecting the first wake-up request of the cloud computer, the second hibernation volume is acquired, the second virtual machine is recreated, and the memory data in the second hibernation volume is imported into the second virtual machine so that the state of the second virtual machine is the same as the state of the first virtual machine before it was deleted.

2. The method according to claim 1, characterized in that, The step of storing the memory data of the first virtual machine into the first hibernation volume to obtain the second hibernation volume includes: A second hibernation request is sent to the hypervisor to cause the hypervisor to export the memory data of the first virtual machine and store the memory data of the first virtual machine in the first hibernation volume, thereby obtaining the second hibernation volume; the second hibernation request carries at least the first hibernation volume.

3. The method according to claim 1, characterized in that, Importing the memory data from the second hibernation volume into the second virtual machine includes: A second wake-up request is sent to the hypervisor; the second wake-up request includes at least a hibernation volume storing memory data; so that the hypervisor retrieves the memory data from the second hibernation volume storing memory data and imports the memory data into the second virtual machine.

4. The method according to claim 1, characterized in that, The size information of the first hibernation volume is the same as the memory specifications of the cloud computer.

5. The method according to claim 1, characterized in that, The step of recreating the second virtual machine and importing the memory data from the second hibernation volume into the second virtual machine includes: Invoke the hypervisor to recreate the second virtual machine and then pause the second virtual machine; Import the memory data in the second hibernation volume into the second virtual machine; and start the second virtual machine so that the state of the second virtual machine is the same as the state of the first virtual machine before it was deleted.

6. The method according to claim 1, characterized in that, Deleting the first virtual machine includes: The hypervisor is invoked to delete the first virtual machine, thereby releasing the CPU and memory occupied by the first virtual machine.

7. The method according to claim 1, characterized in that, After obtaining the second hibernation volume, the process also includes: Store the second hibernation volume to the shared storage component.

8. A data processing apparatus, characterized in that, The device includes: The first detection unit is configured to, upon detecting a first hibernation request from the cloud computer, create a first hibernation volume, store the memory data of the first virtual machine in the first hibernation volume to obtain a second hibernation volume, and delete the first virtual machine; The second detection unit is used to obtain the second hibernation volume, recreate the second virtual machine, and import the memory data in the second hibernation volume into the second virtual machine when the first virtual machine is detected to make the state of the second virtual machine the same as the state of the first virtual machine before it was deleted.

9. An electronic device, characterized in that, The electronic device includes: Memory is used to store executable instructions or computer programs. A processor, when executing computer-executable instructions or computer programs stored in the memory, implements the method according to any one of claims 1 to 7.

10. A computer program product comprising a computer program or computer-executable instructions, characterized in that, When the computer program or computer-executable instructions are executed by a processor, they implement the method described in any one of claims 1 to 7.