Cloud application processing method and device, computer device, and storage medium

By verifying the installation information in the cloud application test virtual environment and synchronizing the installation in the target and slave virtual environments, the problem of cloud application installation failure is solved, and resource savings and information consistency are achieved.

CN115756521BActive Publication Date: 2025-10-10SHENZHEN CLOUDSKY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211499159.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-28
Publication Date
2025-10-10
Estimated Expiration
2042-11-28

AI Technical Summary

Technical Problem

During the installation or update process of cloud applications, failures are prone to occur, resulting in a waste of server resources.

Method used

By verifying the installation information in the cloud application test virtual environment, the installation information is synchronized in the target virtual environment and the slave virtual environment after a successful installation, ensuring the consistency and accuracy of the installation.

Benefits of technology

It avoids cloud application installation failures, saves server resources, and improves the accuracy and consistency of installation information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115756521B_ABST
    Figure CN115756521B_ABST
Patent Text Reader

Abstract

The application relates to a cloud application processing method and device and a computer device. The method comprises the following steps: obtaining cloud application test virtual environment and cloud application installation information, the cloud application test virtual environment is determined based on a cloud application running virtual environment, the cloud application running virtual environment comprises a target virtual environment and a subordinate virtual environment associated with the target virtual environment; installing and running the cloud application in the cloud application test virtual environment by using the cloud application installation information, to obtain an installed cloud application; obtaining test passed cloud application installation information when it is detected that the installed cloud application runs successfully; installing the cloud application in the target virtual environment by using the test passed cloud application installation information, to obtain an installed cloud application in the target virtual environment; synchronizing the test passed cloud application installation information in the subordinate virtual environment and installing the cloud application, to obtain an installed cloud application in the subordinate virtual environment. The method can save server resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a cloud application processing method, apparatus, computer equipment, storage medium, and computer program product. Background Art

[0002] With the development of internet technology, cloud applications have emerged. These applications interact with cloud servers, with cloud servers responding to terminal operations on cloud applications. Examples include cloud gaming, cloud music, and cloud maps. Cloud applications rely on servers to run, and for cloud applications with high user usage, multiple servers are required to support their operation, such as cloud applications with distributed storage.

[0003] However, when using cloud application information to install or update cloud applications running on multiple servers, cloud application installation failure or update failure is likely to occur. When a cloud application installation fails or update fails, the distributed servers need to be restored to the state before the update, and then the cloud application needs to be installed or updated again, resulting in a waste of server resources. Summary of the Invention

[0004] Based on this, it is necessary to provide a cloud application processing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can avoid cloud application installation failure and thus save server resources in response to the above technical problems.

[0005] In a first aspect, the present application provides a cloud application processing method. The method comprises:

[0006] Obtaining a cloud application test virtual environment and cloud application installation information, where the cloud application test virtual environment is determined based on a cloud application running virtual environment, where the cloud application running virtual environment includes a target virtual environment and subordinate virtual environments associated with the target virtual environment;

[0007] Sending the cloud application installation information to the cloud application test virtual environment, using the cloud application installation information to install the cloud application in the cloud application test virtual environment, obtaining the installed cloud application, and running the installed cloud application. When it is detected that the installed cloud application runs successfully, obtaining cloud application installation information that the test has passed;

[0008] Sending the cloud application installation information that has passed the test to the target virtual environment, installing the cloud application in the target virtual environment using the cloud application installation information that has passed the test, and obtaining the installed cloud application in the target virtual environment;

[0009] The cloud application installation information that has passed the test is synchronized in the subordinate virtual environment associated with the target virtual environment, and the cloud application is installed using the cloud application installation information that has passed the test to obtain the installed cloud application in the subordinate virtual environment.

[0010] In a second aspect, the present application provides a cloud application processing apparatus. The apparatus comprises:

[0011] an obtaining module, configured to obtain a cloud application test virtual environment and cloud application installation information, the cloud application test virtual environment being determined based on a cloud application running virtual environment, the cloud application running virtual environment comprising a target virtual environment and a slave virtual environment associated with the target virtual environment;

[0012] a testing module, configured to send the cloud application installation information to the cloud application test virtual environment, install the cloud application using the cloud application installation information in the cloud application test virtual environment, obtain an installed cloud application, and run the installed cloud application, and when it is detected that the installed cloud application runs successfully, obtain test-passed cloud application installation information;

[0013] a main environment module, configured to send the test-passed cloud application installation information to the target virtual environment, install the cloud application using the test-passed cloud application installation information in the target virtual environment, and obtain an installed cloud application in the target virtual environment;

[0014] a synchronizing module, configured to synchronize the test-passed cloud application installation information in the slave virtual environment associated with the target virtual environment, and install the cloud application using the test-passed cloud application installation information, and obtain an installed cloud application in the slave virtual environment.

[0015] In a third aspect, the present application provides a computer device. The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0016] obtain a cloud application test virtual environment and cloud application installation information, the cloud application test virtual environment being determined based on a cloud application running virtual environment, the cloud application running virtual environment comprising a target virtual environment and a slave virtual environment associated with the target virtual environment;

[0017] send the cloud application installation information to the cloud application test virtual environment, install the cloud application using the cloud application installation information in the cloud application test virtual environment, obtain an installed cloud application, and run the installed cloud application, and when it is detected that the installed cloud application runs successfully, obtain test-passed cloud application installation information;

[0018] send the test-passed cloud application installation information to the target virtual environment, install the cloud application using the test-passed cloud application installation information in the target virtual environment, and obtain an installed cloud application in the target virtual environment;

[0019] Synchronize the test passed cloud application installation information in the slave virtual environment associated with the target virtual environment, and use the test passed cloud application installation information to perform cloud application installation, to obtain the installed cloud application in the slave virtual environment.

[0020] In a fourth aspect, the present application also provides a computer readable storage medium. The computer readable storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements the following steps:

[0021] Obtaining cloud application test virtual environment and cloud application installation information, the cloud application test virtual environment being determined based on a cloud application running virtual environment, the cloud application running virtual environment including a target virtual environment and a slave virtual environment associated with the target virtual environment;

[0022] Sending the cloud application installation information to the cloud application test virtual environment, using the cloud application installation information to perform cloud application installation in the cloud application test virtual environment, obtaining an installed cloud application, and running the installed cloud application, and when it is detected that the installed cloud application runs successfully, obtaining test passed cloud application installation information;

[0023] Sending the test passed cloud application installation information to the target virtual environment, and using the test passed cloud application installation information to perform cloud application installation in the target virtual environment, to obtain an installed cloud application in the target virtual environment;

[0024] Synchronizing the test passed cloud application installation information in the slave virtual environment associated with the target virtual environment, and using the test passed cloud application installation information to perform cloud application installation, to obtain the installed cloud application in the slave virtual environment.

[0025] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and the computer program, when executed by a processor, implements the following steps:

[0026] Obtaining cloud application test virtual environment and cloud application installation information, the cloud application test virtual environment being determined based on a cloud application running virtual environment, the cloud application running virtual environment including a target virtual environment and a slave virtual environment associated with the target virtual environment;

[0027] Sending the cloud application installation information to the cloud application test virtual environment, using the cloud application installation information to perform cloud application installation in the cloud application test virtual environment, obtaining an installed cloud application, and running the installed cloud application, and when it is detected that the installed cloud application runs successfully, obtaining test passed cloud application installation information;

[0028] sending the test-passed cloud application installation information to a target virtual environment, performing cloud application installation in the target virtual environment using the test-passed cloud application installation information, and obtaining an installed cloud application in the target virtual environment;

[0029] synchronizing the test-passed cloud application installation information in a slave virtual environment associated with the target virtual environment, performing cloud application installation using the test-passed cloud application installation information, and obtaining an installed cloud application in the slave virtual environment.

[0030] The cloud application processing method, device, computer device, storage medium, and computer program product described above obtain an installed cloud application in a cloud application test virtual environment by sending cloud application installation information to the cloud application test virtual environment for cloud application installation. Then, the installed cloud application is run in the application test virtual environment, and when it is detected that the installed cloud application runs successfully, test-passed cloud application installation information is obtained, indicating that there is no problem of cloud application installation abnormality and running abnormality when the cloud application is installed and run using the cloud application installation information, thereby ensuring the accuracy of the cloud application installation information. Then, the test-passed cloud application installation information is sent to a target virtual environment for cloud application installation, and an installed cloud application in the target virtual environment is obtained. Then, the test-passed cloud application installation information is synchronized in a slave virtual environment associated with the target virtual environment, and an installed cloud application in the slave virtual environment is obtained by performing cloud application installation using the test-passed cloud application installation information. This realizes the slave virtual environment to synchronously obtain the test-passed cloud application installation information, thereby ensuring the consistency of the cloud application installation information in the slave virtual environment, further improving the accuracy of the cloud application installation information in the slave virtual environment, and avoiding cloud application installation failure in the slave virtual environment, thereby saving server resources. BRIEF DESCRIPTION OF DRAWINGS

[0031] Figure 1 An application environment diagram of the cloud application processing method in one embodiment;

[0032] Figure 2 A flowchart of the cloud application processing method in one embodiment;

[0033] Figure 3 A flowchart of cloud application updating in one embodiment;

[0034] Figure 4 A structural block diagram of the cloud application processing device in one embodiment;

[0035] Figure 5 An internal structure diagram of the computer device in one embodiment. DETAILED DESCRIPTION

[0036] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not used to limit the present application.

[0037] The cloud application processing method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 . The terminal 102 communicates with the server 104 through a network. The data storage system can store data required to be processed by the server 104. The data storage system can be integrated on the server 104, or placed on a cloud or other network server. The server 104 acquires a cloud application test virtual environment. The server 104 can acquire cloud application installation information through the terminal 102. The cloud application test virtual environment is determined based on a cloud application running virtual environment. The cloud application running virtual environment includes a target virtual environment and a slave virtual environment associated with the target virtual environment. The server 104 sends the cloud application installation information to the cloud application test virtual environment. The cloud application installation information is used to install a cloud application in the cloud application test virtual environment, to obtain an installed cloud application, and to run the installed cloud application. When it is detected that the installed cloud application runs successfully, the cloud application installation information that passes the test is obtained. The server 104 sends the cloud application installation information that passes the test to the target virtual environment. The cloud application installation information that passes the test is used to install a cloud application in the target virtual environment, to obtain an installed cloud application in the target virtual environment. The server 104 synchronizes the cloud application installation information that passes the test in the slave virtual environment associated with the target virtual environment, and uses the cloud application installation information that passes the test to install a cloud application in the slave virtual environment, to obtain an installed cloud application in the slave virtual environment. The terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, etc. The server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0038] In one embodiment, as shown in Figure 2 , a cloud application processing method is provided. The method is described by taking a server in Figure 1 as an example, and includes the following steps:

[0039] Step 202, acquiring a cloud application test virtual environment and cloud application installation information. The cloud application test virtual environment is determined based on a cloud application running virtual environment. The cloud application running virtual environment includes a target virtual environment and a slave virtual environment associated with the target virtual environment.

[0040] Among them, the cloud application test virtual environment refers to a virtual environment used to test whether the cloud application installation information can be installed and run normally. The virtual environment refers to the virtual application running environment provided by the virtual device. Cloud application refers to the application that the terminal interacts with the cloud server, and the cloud server responds to the terminal's operations on the cloud application. Virtual device refers to a computer system with complete hardware system functions simulated by software. Cloud application installation information refers to the installation information required when installing the cloud application. The target virtual environment refers to a pre-set cloud application running virtual environment, which is used to associate with the subordinate virtual environment and synchronize information with the associated subordinate virtual environment. The subordinate virtual environment refers to the cloud application running virtual environment associated with the target virtual environment.

[0041] Specifically, the server pre-deploys multiple cloud application virtual environments. A target virtual environment is randomly determined within each cloud application virtual environment, and the other cloud application virtual environments are designated as slave virtual environments. The server obtains the storage addresses corresponding to the target virtual environment and the slave virtual environments and establishes a storage association based on the storage addresses of the target and slave virtual environments. This storage association can involve either shared or distributed storage of storage information.

[0042] The server randomly determines a cloud application test virtual environment from each cloud application cloud virtual environment. The cloud application test virtual environment can be a subordinate virtual environment. The server then obtains cloud application installation information from a management terminal. The cloud application installation information can be the cloud application installation information to be verified. Information verification is the process of verifying whether the cloud application installation information is sufficient to properly install and run the cloud application.

[0043] In step 204, the cloud application installation information is sent to the cloud application test virtual environment, and the cloud application installation information is used to install the cloud application in the cloud application test virtual environment to obtain the installed cloud application, and the installed cloud application is run. When it is detected that the installed cloud application runs successfully, the cloud application installation information that has passed the test is obtained.

[0044] The installed cloud application refers to the cloud application that has been installed and is ready to be run in the virtual environment. The cloud application installation information that has passed the test refers to the cloud application installation information that has successfully been verified.

[0045] Specifically, the server sends the cloud application installation information to the cloud application test virtual environment, installs the cloud application using the cloud application installation information in the cloud application test virtual environment, and obtains an installed cloud application in the cloud application test virtual environment. The server can then return cloud application installation success information to the management terminal, receive an installation information verification instruction sent by the management terminal, and indicate whether the installed cloud application installed using the cloud application installation information is running normally. The server runs the installed cloud application in the cloud application test virtual environment according to the installation information verification instruction, and determines that the cloud application installation information verification is successful when it is detected that the installed cloud application runs successfully, obtaining the test passed cloud application installation information. The server can initialize the cloud application test virtual environment after detecting that the cloud application installation information verification is successful, obtaining the slave virtual environment to be synchronized associated with the target virtual environment.

[0046] Step 206: The test passed cloud application installation information is sent to the target virtual environment, the cloud application is installed in the target virtual environment using the test passed cloud application installation information, and an installed cloud application in the target virtual environment is obtained.

[0047] Step 208: The test passed cloud application installation information is synchronized in the slave virtual environment associated with the target virtual environment, and the cloud application is installed using the test passed cloud application installation information, and an installed cloud application in the slave virtual environment is obtained.

[0048] Wherein, synchronization refers to a process of maintaining consistent storage information between the slave virtual environment and the target virtual environment.

[0049] Specifically, the server sends the test passed cloud application installation information to the target virtual environment, installs the cloud application in the target virtual environment using the test passed cloud application installation information, and obtains an installed cloud application in the target virtual environment. Then, the target virtual environment detects that the cloud application installation is complete, sends the test passed cloud application installation information to the slave virtual environment, installs the cloud application in the slave virtual environment using the test passed cloud application installation information, and obtains an installed cloud application in the slave virtual environment.

[0050] The server can also send the cloud application installation information to the target virtual information for storage, and the target virtual environment detects that the cloud application installation is complete, sends an information synchronization instruction to the slave virtual environment. The slave virtual environment acquires the cloud application installation information corresponding to the information synchronization instruction through a relationship associated with the storage of the target virtual environment in response to the information synchronization instruction. The cloud application is installed in the slave virtual environment using the test passed cloud application installation information, and an installed cloud application in the slave virtual environment is obtained.

[0051] In the cloud application processing method, the cloud application installation information is sent to the cloud application test virtual environment to install the cloud application, and the installed cloud application in the cloud application test virtual environment is obtained. Then, the installed cloud application is run in the application test virtual environment, and when it is detected that the installed cloud application is successfully run, the test passed cloud application installation information is obtained, indicating that there is no problem of cloud application installation abnormality and running abnormality when the cloud application is installed and run using the cloud application installation information, and the accuracy of the cloud application installation information is ensured. Then, the test passed cloud application installation information is sent to the target virtual environment to install the cloud application, and the installed cloud application in the target virtual environment is obtained. Then, the test passed cloud application installation information is synchronized in the subordinate virtual environment associated with the target virtual environment, and the cloud application is installed using the test passed cloud application installation information, and the installed cloud application in the subordinate virtual environment is obtained. The subordinate virtual environment synchronously obtains the test passed cloud application installation information, thereby ensuring the consistency of the cloud application installation information in the subordinate virtual environment, and further improving the accuracy of the cloud application installation information in the subordinate virtual environment, avoiding the failure of the cloud application installation in the subordinate virtual environment, and saving the server resources.

[0052] In one embodiment, as shown in Figure 3 Fig. 8 is a flowchart of a cloud application updating process; after step 208, the test passed cloud application installation information is synchronized in the subordinate virtual environment associated with the target virtual environment, and the cloud application is installed using the test passed cloud application installation information, and the installed cloud application in the subordinate virtual environment is obtained, and the process further includes:

[0053] Step 302, obtaining cloud application updating information corresponding to the installed cloud application;

[0054] Step 304, sending the cloud application updating information to the cloud application test virtual environment, and updating the cloud application using the cloud application updating information in the cloud application test virtual environment, obtaining the updated cloud application, and running the updated cloud application, and when it is detected that the updated cloud application is successfully run, the test passed cloud application updating information is obtained;

[0055] Step 306, sending the test passed cloud application updating information to the target virtual environment, and updating the cloud application using the cloud application updating information in the target virtual environment, obtaining the updated cloud application in the target virtual environment;

[0056] Step 308, synchronizing the test passed cloud application updating information in the subordinate virtual environment associated with the target virtual environment, and updating the cloud application using the test passed cloud application updating information, obtaining the updated cloud application in the subordinate virtual environment.

[0057] The cloud application update information refers to the update information required when the cloud application is updated. The updated cloud application refers to the cloud application that has been updated and is ready to be run.

[0058] Specifically, the server may obtain cloud application update information from the management terminal, and then randomly select a cloud application test virtual environment from each slave virtual environment. The server may also select an idle slave virtual environment from each slave virtual environment as the cloud application test virtual environment.

[0059] The server then sends the cloud application update information to the cloud application test virtual environment for cloud application update. The server can update the application parameter information in the cloud application test virtual environment based on the cloud application update information, and generate an application parameter change record corresponding to the application parameter information, and obtain the application parameter information corresponding to the updated cloud application. Based on the application parameter information corresponding to the updated cloud application, the updated cloud application in the cloud application test virtual environment is obtained.

[0060] The server then sends an application update completion message to the management terminal and receives an update information verification instruction from the management terminal, indicating that the updated cloud application, updated using the cloud application update information, is operating normally. The server runs the updated cloud application in the cloud application test virtual environment according to the update information verification instruction. When the updated cloud application is detected to have successfully run, the server determines that the cloud application update information verification has succeeded and obtains the cloud application update information indicating that the test has passed. After the server detects that the cloud application update information verification has succeeded, it restores the application parameter information corresponding to the updated cloud application based on the application parameter change record, obtaining the slave virtual environment to be synchronized with the target virtual environment.

[0061] The server then sends the cloud application update information to the target virtual environment. The target virtual environment uses the cloud application update information to update the cloud application, resulting in the updated cloud application in the target virtual environment. After the target virtual environment detects that the application update is complete, it sends the update information to the slave virtual environment. The slave virtual environment uses the cloud application update information to update the cloud application, resulting in the updated cloud application in the slave virtual environment.

[0062] In this embodiment, cloud application update information is verified in a cloud application test virtual environment. Upon successful verification, the cloud application update information is deemed to have passed the test, thereby ensuring the accuracy of the cloud application update information. The passed cloud application update information is then sent to the target virtual environment for cloud application update. Synchronizing the cloud application update information with the slave virtual environment ensures consistency between the slave and target virtual environments, thereby improving the accuracy of cloud application updates in the slave virtual environment. This further prevents cloud application update failures and conserves server resources.

[0063] In one embodiment, before obtaining cloud application update information corresponding to the installed cloud application in step 302, the following steps are further included:

[0064] Backing up application information of the installed cloud application corresponding to the cloud application test virtual environment to obtain backup information of the installed cloud application;

[0065] In step 304, after sending the cloud application update information to the cloud application test virtual environment, using the cloud application update information to update the cloud application in the cloud application test virtual environment to obtain an updated cloud application, and running the updated cloud application, when detecting that the updated cloud application has run successfully, and obtaining the cloud application update information indicating that the test has passed, the following further comprises:

[0066] The updated cloud application is stopped in the cloud application test virtual environment, and the application information corresponding to the updated cloud application is replaced with the backup information of the installed cloud application to obtain the installed cloud application.

[0067] Installed cloud application backup information refers to information obtained by backing up the parameter information of cloud applications before they are updated in the cloud application test virtual environment. Installed cloud applications refer to cloud applications in the cloud application test virtual environment before they are updated. Application information refers to application parameter information used to install or run cloud applications.

[0068] Specifically, the server can obtain the cloud application update instruction sent by the management terminal. The cloud application update instruction includes the virtual environment identifier corresponding to the cloud application test virtual environment. The server determines the cloud application test virtual environment in each subordinate virtual environment based on the virtual environment identifier, and then obtains the application information corresponding to the installed cloud application currently running in the cloud application test virtual environment and backs it up, and obtains the installed cloud application backup information corresponding to the cloud application test virtual environment. The server stores the installed cloud application backup information.

[0069] The server then sends the cloud application update information to the cloud application test virtual environment. Within the cloud application test virtual environment, the server uses the cloud application update information to update the application information corresponding to the installed cloud application, obtaining the updated cloud application and running the updated cloud application. Upon detecting that the updated cloud application has successfully run, the server obtains the cloud application update information indicating that the test has passed.

[0070] The server then stops running the updated cloud application in the cloud application test virtual environment, obtains the pre-stored installed cloud application backup information, and uses the installed cloud application backup information to replace the application information corresponding to the updated cloud application in the cloud application test virtual environment to obtain the installed cloud application in the cloud application test virtual environment.

[0071] The server can also stop the updated cloud application in the cloud application test virtual environment, obtain application information corresponding to the installed cloud application from the subordinate virtual environment of the non-cloud application test virtual environment, use the obtained application information as the installed cloud application backup information corresponding to the cloud application test virtual environment, and send the installed cloud application backup information to the cloud application test virtual environment.

[0072] In one specific embodiment, the cloud application may be a cloud game. Each user terminal can connect to each slave virtual environment via a network to obtain the installed cloud game and play the game on the user terminal. After receiving the cloud game update instruction sent by the management terminal, the server selects a currently idle slave virtual environment from each slave virtual environment as the cloud application test virtual environment and locks the user connection permission of the cloud application test virtual environment. This shields the user communication connection of the user terminal from the cloud application test virtual environment and is only used to verify the update information of the cloud game.

[0073] The cloud application test virtual environment stores a cloud game directory, which represents the parent directory of all files generated after the cloud game is installed. A cloud game directory represents a complete cloud game. The server backs up the cloud game directory corresponding to the installed cloud game in the cloud application test virtual environment to obtain the cloud game backup information corresponding to the installed cloud game.

[0074] The server sends the cloud game update information to the cloud application test virtual environment for update verification. If the cloud game update information verification is successful, the game directory corresponding to the updated cloud game is replaced with the game directory of the installed cloud game before the update. If the cloud game update information verification fails, the cloud application update information is determined to be abnormal, and an update information abnormality alert is generated and sent to the management terminal. The game directory corresponding to the updated cloud game is then restored.

[0075] Then the server restores the user connection permission of the cloud application test virtual environment, so that the user terminal can obtain the cloud game in each slave virtual environment through network connection.

[0076] In this embodiment, by backing up the application information of the cloud application test virtual environment before the cloud application update, and restoring the installed cloud application backup information after the cloud application test virtual environment completes the cloud application update, the consistency of the installed cloud application in each slave virtual environment is ensured, the failure of synchronizing the cloud application installation information in each slave virtual environment and the failure of installing the cloud application are avoided, and the server resources are saved. Moreover, after detecting the cloud application update information verification failure in the subsequent detection, the application information in the cloud application test virtual environment can be restored in time, so that the user terminal can use the cloud application in the cloud application test virtual environment, thereby improving the use rate of the cloud application test virtual environment.

[0077] In one embodiment, in step 206, the cloud application installation information passed the test is sent to the target virtual environment, and the cloud application installation is performed in the target virtual environment using the cloud application installation information passed the test, and after obtaining the installed cloud application in the target virtual environment, the method further includes:

[0078] After detecting that the installed cloud application in the target virtual environment is installed, an application information identifier corresponding to the cloud application installation information is generated;

[0079] The cloud application installation information passed the test and the application information identifier are stored in a preset information sharing storage pool, so that the preset information sharing storage pool performs mirror processing on the cloud application installation information passed the test to obtain cloud application installation mirror information corresponding to the application information identifier.

[0080] The application information identifier refers to the identifier information corresponding to the cloud application installation information. The preset information sharing storage pool refers to a storage space that can be stored and read by each cloud application running virtual environment. The cloud application installation mirror information represents the information obtained after copying the cloud application installation information.

[0081] Specifically, the server can obtain the storage addresses corresponding to the target virtual environment and the slave virtual environment in advance, create a preset information storage sharing pool according to the storage addresses corresponding to the target virtual environment and the slave virtual environment, and represent the collection of storage spaces corresponding to the target virtual environment and the slave virtual environment. Then the server can pre-set that the target virtual environment can read and write information to the preset information sharing storage pool, and the slave virtual environment can read information from the preset information sharing storage pool.

[0082] After the server detects that the cloud application installation in the target virtual environment is completed, the server generates an application information identifier corresponding to the cloud application installation information, and then stores the cloud application installation information and the application information identifier that pass the test in a preset information sharing storage pool. The server mirrors the cloud application installation information that passes the test in the preset information sharing storage pool to obtain each cloud application installation mirror information corresponding to the cloud application installation information, and then associates the application information identifier corresponding to the cloud application installation information with each cloud application installation mirror information.

[0083] In the embodiment, the information sharing storage pool is preset, and the cloud application installation information and the application information identifier are stored in the information sharing storage pool by the target virtual environment. The cloud application installation information is mirrored to enable each subordinate virtual environment to obtain the cloud application installation mirror information from the information sharing storage pool, thereby ensuring consistency of the cloud application installation information and the cloud application installation mirror information. The unified information acquisition in the information sharing storage pool by the subordinate virtual environment improves the synchronization efficiency of the cloud application installation information of each subordinate virtual environment. Further, the read-write function of the information sharing storage pool is set by the target virtual environment, which can avoid information pollution in the information sharing storage pool by the subordinate virtual environment, thereby improving the accuracy of the cloud application installation information and further saving server resources.

[0084] In one embodiment, the cloud application installation information that passes the test is synchronized in the subordinate virtual environment associated with the target virtual environment, and the cloud application installation is performed using the cloud application installation information that passes the test to obtain the installed cloud application in the subordinate virtual environment, including:

[0085] The application information identifier is sent to the subordinate virtual environment by the target virtual environment, and when the subordinate virtual environment receives the application information identifier, the subordinate virtual environment is restarted to obtain the restarted subordinate virtual environment.

[0086] The cloud application installation mirror information corresponding to the application information identifier is obtained from the preset information sharing storage pool by the restarted subordinate virtual environment.

[0087] The cloud application installation is performed using the cloud application installation mirror information in the subordinate virtual environment to obtain the installed cloud application in the subordinate virtual environment.

[0088] Specifically, the server randomly generates the encryption information in the target virtual environment, takes the encryption information as the subordinate verification information, and indicates the identity verification information required when the subordinate virtual ring acquires information in the preset information sharing storage pool. Then the server generates the information synchronization instruction according to the application information identifier and the subordinate verification information, sends the information synchronization instruction to the subordinate virtual environment, which can be writing the application information identifier and the subordinate verification information into the configuration file corresponding to the subordinate virtual environment. The configuration file corresponding to the subordinate virtual environment includes the access path corresponding to the preset information sharing storage pool. The application information identifier can be the version information of the cloud application, such as the game version number of the cloud game.

[0089] The server restarts the subordinate virtual environment after detecting that the subordinate virtual environment acquires the information synchronization instruction, initializes the application information corresponding to the subordinate virtual environment during the restart process, and obtains the restarted subordinate virtual environment. The subordinate virtual environment obtains the application information identifier and the subordinate verification information in the configuration file after the restart, and sends the application information identifier and the subordinate verification information to the preset information sharing storage pool for identity verification of the virtual environment according to the access path. When the preset information sharing storage pool detects that the identity verification of the subordinate virtual environment is passed, the cloud application installation image information corresponding to the application information identifier is sent to the subordinate virtual environment.

[0090] The server installs the cloud application in the subordinate virtual environment using the cloud application installation image information, and obtains the installed cloud application in the subordinate virtual environment.

[0091] In this embodiment, the application information identifier and the subordinate verification information are generated by the target virtual environment, and the identity verification and information acquisition are performed in the preset information sharing storage pool according to the application information identifier and the subordinate verification information, thereby improving the security of the cloud application installation information. And by acquiring the cloud application installation image information, the information consistency of the target virtual environment and the subordinate virtual environment is ensured, and the accuracy of the cloud application installation information in the subordinate virtual environment is improved, thereby saving the server resources.

[0092] In one embodiment, after step 208, the target virtual environment synchronizes the cloud application installation information that passes the test in the subordinate virtual environment associated with the target virtual environment, and installs the cloud application using the cloud application installation information that passes the test, to obtain the installed cloud application in the subordinate virtual environment, and further includes:

[0093] Obtaining a target application startup request, starting the installed cloud application in the subordinate virtual environment based on the target application startup request, and obtaining the started cloud application in the subordinate virtual environment;

[0094] Returning the started cloud application to the user terminal corresponding to the target application startup request and displaying.

[0095] The target application startup request refers to a request sent by a user terminal to obtain a cloud application.

[0096] Specifically, the server receives a target application launch request sent by a user terminal, which includes application configuration parameters corresponding to the user terminal. Based on the target application launch request, the server determines the cloud application execution virtual environment corresponding to the user terminal from among various idle slave virtual environments. The server then configures the application information corresponding to the cloud application in the cloud application execution virtual environment based on the application configuration parameters, launches the cloud application, and obtains a launched cloud application. The server returns the launched cloud application to the user terminal corresponding to the target application launch request and displays it.

[0097] In this embodiment, by synchronizing the cloud application installation information of the target virtual environment and the slave virtual environment, the installation efficiency of the cloud application of the slave virtual environment is improved, so that the subsequent slave virtual environment can respond to the target application startup request sent by the user terminal in a timely manner, thereby improving the utilization rate of the slave virtual environment.

[0098] In one specific embodiment, a distributed file system can be used to distribute and store cloud application installation information or cloud application update information. The distributed file system manages the storage space corresponding to each cloud application execution virtual environment, such as a virtual disk in a virtual device, and uses each storage space as a distributed file system storage space. Each cloud application execution virtual environment, acting as a node in the distributed file system, mounts the distributed file system storage space, indicating that the cloud application execution virtual environment can access the distributed file system storage space.

[0099] The server determines the primary storage space of the distributed file system from among the various storage spaces, represents operations on any file in the primary storage space of the distributed file system, and synchronizes the files in the entire distributed file system storage space. The server uses the cloud application running virtual environment that mounts the primary storage space of the distributed file system as the target virtual environment.

[0100] For example, the target virtual environment is used as the master disk of the distributed file system, and the cloud game information that needs to be verified (cloud game installation information or cloud game update information) is installed or verified in the slave virtual environment that has the distributed file system storage space mounted. The cloud game information that has been successfully verified is then sent to the master disk of the distributed file system for cloud game installation or cloud game update. After the server detects that the cloud game has been successfully installed or updated in the master disk of the distributed file system, it synchronizes the cloud game information with each slave virtual environment through the master disk of the distributed file system and installs or updates the cloud game based on the cloud game information.

[0101] It should be understood that although the steps in the flowcharts involved in the embodiments described above are shown in sequence according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, the execution of the steps is not strictly limited in sequence, and the steps can be executed in other sequences. Moreover, at least some of the steps in the flowcharts involved in the embodiments described above can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of the steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.

[0102] Based on the same inventive concept, the embodiments of the present application also provide a cloud application processing device for implementing the cloud application processing method described above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more cloud application processing device embodiments provided below can refer to the limitations of the cloud application processing method described above, which will not be repeated here.

[0103] In one embodiment, as shown in Figure 4 A cloud application processing device 400 is provided, comprising: an acquisition module 402, a test module 404, a main environment module 406, and a synchronization module 408, wherein:

[0104] The acquisition module 402 is configured to acquire cloud application test virtual environment and cloud application installation information, the cloud application test virtual environment being determined based on a cloud application running virtual environment, the cloud application running virtual environment including a target virtual environment and a slave virtual environment associated with the target virtual environment;

[0105] The test module 404 is configured to send the cloud application installation information to the cloud application test virtual environment, use the cloud application installation information to install the cloud application in the cloud application test virtual environment, obtain an installed cloud application, and run the installed cloud application, and when it is detected that the installed cloud application runs successfully, obtain test passed cloud application installation information;

[0106] The main environment module 406 is configured to send the test passed cloud application installation information to the target virtual environment, use the test passed cloud application installation information to install the cloud application in the target virtual environment, and obtain an installed cloud application in the target virtual environment;

[0107] The synchronization module 408 is configured to synchronize the test passed cloud application installation information in the slave virtual environment associated with the target virtual environment, and use the test passed cloud application installation information to install the cloud application, and obtain an installed cloud application in the slave virtual environment.

[0108] In one embodiment, the cloud application processing device 400 further includes:

[0109] An update unit is used to obtain cloud application update information corresponding to an installed cloud application; send the cloud application update information to a cloud application test virtual environment, use the cloud application update information in the cloud application test virtual environment to update the cloud application to obtain an updated cloud application, and run the updated cloud application. When it is detected that the updated cloud application runs successfully, cloud application update information that has passed the test is obtained; send the cloud application update information that has passed the test to a target virtual environment, use the cloud application update information in the target virtual environment to update the cloud application to obtain an updated cloud application in the target virtual environment; synchronize the cloud application update information that has passed the test in a subordinate virtual environment associated with the target virtual environment, and use the cloud application update information that has passed the test to update the cloud application to obtain an updated cloud application in the subordinate virtual environment.

[0110] In one embodiment, the cloud application processing device 400 further includes:

[0111] The backup unit is used to back up application information based on the installed cloud application corresponding to the cloud application test virtual environment to obtain the backup information of the installed cloud application; stop running the updated cloud application in the cloud application test virtual environment, and use the installed cloud application backup information to replace the application information corresponding to the updated cloud application to obtain the installed cloud application.

[0112] In one embodiment, the cloud application processing device 400 further includes:

[0113] The mirror unit is used to detect that the cloud application installed in the target virtual environment has been installed and completed, and generate an application information identifier corresponding to the cloud application installation information; store the cloud application installation information and application information identifier that have passed the test in a preset information shared storage pool, so that the preset information shared storage pool can mirror the cloud application installation information that has passed the test to obtain the cloud application installation mirror information corresponding to the application information identifier.

[0114] In one embodiment, the synchronization module 408 includes:

[0115] The information acquisition unit is used to send the application information identifier to the slave virtual environment through the target virtual environment. When the slave virtual environment receives the application information identifier, it restarts the slave virtual environment to obtain the restarted slave virtual environment; obtains the cloud application installation image information corresponding to the application information identifier from the preset information shared storage pool through the restarted slave virtual environment; uses the cloud application installation image information to install the cloud application in the slave virtual environment to obtain the installed cloud application in the slave virtual environment.

[0116] In one embodiment, the cloud application processing device 400 further includes:

[0117] The request processing unit is used to obtain a target application startup request, and based on the target application startup request, start the installed cloud application in the slave virtual environment to obtain the started cloud application in the slave virtual environment; return the started cloud application to the user terminal corresponding to the target application startup request and display it.

[0118] Each module in the aforementioned cloud application processing device may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.

[0119] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store data such as cloud application installation information and cloud application update information. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a cloud application processing method is implemented.

[0120] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0121] In one embodiment, a computer device is further provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above method embodiments when executing the computer program.

[0122] In an embodiment, a computer readable storage medium is provided, and the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of any of the above method embodiments.

[0123] In an embodiment, a computer program product is provided, and the computer program product comprises a computer program which, when executed by a processor, implements the steps of any of the above method embodiments.

[0124] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0125] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0126] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.

[0127] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A cloud application processing method, characterized in that: The method comprises: Acquire a cloud application test virtual environment and cloud application installation information, wherein the cloud application test virtual environment is determined based on a cloud application running virtual environment, wherein the cloud application running virtual environment includes a target virtual environment and a subordinate virtual environment associated with the target virtual environment; Sending the cloud application installation information to the cloud application test virtual environment, using the cloud application installation information to install the cloud application in the cloud application test virtual environment to obtain an installed cloud application, and running the installed cloud application. When it is detected that the installed cloud application runs successfully, obtaining cloud application installation information that the test has passed; Sending the cloud application installation information that has passed the test to the target virtual environment, and installing the cloud application in the target virtual environment using the cloud application installation information that has passed the test, to obtain the installed cloud application in the target virtual environment; The cloud application installation information that has passed the test is synchronized in a subordinate virtual environment associated with the target virtual environment, and the cloud application is installed using the cloud application installation information that has passed the test to obtain the installed cloud application in the subordinate virtual environment.

2. The method according to claim 1, characterized in that After synchronizing the cloud application installation information that has passed the test in the slave virtual environment associated with the target virtual environment, and installing the cloud application using the cloud application installation information that has passed the test, and obtaining the installed cloud application in the slave virtual environment, the method further includes: Obtaining cloud application update information corresponding to the installed cloud application; Sending the cloud application update information to the cloud application test virtual environment, using the cloud application update information to update the cloud application in the cloud application test virtual environment to obtain an updated cloud application, and running the updated cloud application. When it is detected that the updated cloud application runs successfully, obtaining cloud application update information that the test has passed; Sending the cloud application update information that passes the test to the target virtual environment, and using the cloud application update information in the target virtual environment to update the cloud application to obtain the updated cloud application in the target virtual environment; The cloud application update information that has passed the test is synchronized in a slave virtual environment associated with the target virtual environment, and the cloud application update information that has passed the test is used to update the cloud application to obtain the updated cloud application in the slave virtual environment.

3. The method according to claim 2, characterized in that Before obtaining the cloud application update information corresponding to the installed cloud application, the method further includes: Backing up application information based on the installed cloud application corresponding to the cloud application test virtual environment to obtain backup information of the installed cloud application; After sending the cloud application update information to the cloud application test virtual environment, using the cloud application update information in the cloud application test virtual environment to update the cloud application to obtain an updated cloud application, and running the updated cloud application, and upon detecting that the updated cloud application runs successfully and obtaining the cloud application update information indicating that the test has passed, the method further includes: The updated cloud application is stopped in the cloud application test virtual environment, and the application information corresponding to the updated cloud application is replaced with the installed cloud application backup information to obtain the installed cloud application.

4. The method according to claim 1, wherein After sending the cloud application installation information that has passed the test to the target virtual environment, installing the cloud application in the target virtual environment using the cloud application installation information that has passed the test, and obtaining the installed cloud application in the target virtual environment, the method further includes: After detecting that the installed cloud application in the target virtual environment is installed, generating an application information identifier corresponding to the cloud application installation information; The cloud application installation information that passes the test and the application information identifier are stored in a preset information sharing storage pool, so that the preset information sharing storage pool performs mirroring on the cloud application installation information that passes the test to obtain cloud application installation mirror information corresponding to the application information identifier.

5. The method according to claim 4, characterized in that The step of synchronizing the cloud application installation information that has passed the test in the subordinate virtual environment associated with the target virtual environment, and installing the cloud application using the cloud application installation information that has passed the test to obtain the installed cloud application in the subordinate virtual environment includes: sending the application information identifier to the slave virtual environment through the target virtual environment, and restarting the slave virtual environment when the slave virtual environment receives the application information identifier to obtain a restarted slave virtual environment; Obtaining the cloud application installation image information corresponding to the application information identifier from the preset information shared storage pool through the restarted slave virtual environment; The cloud application installation image information is used in the slave virtual environment to install the cloud application, thereby obtaining the installed cloud application in the slave virtual environment.

6. The method according to claim 1, characterized in that After synchronizing the cloud application installation information that has passed the test in the slave virtual environment associated with the target virtual environment, and installing the cloud application using the cloud application installation information that has passed the test, and obtaining the installed cloud application in the slave virtual environment, the method further includes: Obtaining a target application startup request, and starting an installed cloud application in the slave virtual environment based on the target application startup request to obtain a started cloud application in the slave virtual environment; The started cloud application is returned to the user terminal corresponding to the target application start request and displayed.

7. A cloud application processing device, characterized in that: The device comprises: an acquisition module, configured to acquire a cloud application test virtual environment and cloud application installation information, wherein the cloud application test virtual environment is determined based on a cloud application running virtual environment, wherein the cloud application running virtual environment includes a target virtual environment and subordinate virtual environments associated with the target virtual environment; a testing module configured to send the cloud application installation information to the cloud application test virtual environment, install the cloud application using the cloud application installation information in the cloud application test virtual environment, obtain an installed cloud application, run the installed cloud application, and obtain cloud application installation information indicating that the test has passed when it is detected that the installed cloud application has run successfully; A main environment module is used to send the cloud application installation information that has passed the test to the target virtual environment, and install the cloud application in the target virtual environment using the cloud application installation information that has passed the test to obtain the installed cloud application in the target virtual environment; The synchronization module is used to synchronize the cloud application installation information that has passed the test in the slave virtual environment associated with the target virtual environment, and use the cloud application installation information that has passed the test to install the cloud application to obtain the installed cloud application in the slave virtual environment.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Cloud physical machine deployment method and device, electronic equipment and readable storage medium

    CN112306635A

  • Software installation method and system and storage medium

    CN113377388A