CN113467791B - Deployment adjustment method, system, equipment and storage medium for application in cloud platform - Google Patents
Deployment adjustment method, system, equipment and storage medium for application in cloud platform Download PDFInfo
- Publication number
- CN113467791B CN113467791B CN202110714295.9A CN202110714295A CN113467791B CN 113467791 B CN113467791 B CN 113467791B CN 202110714295 A CN202110714295 A CN 202110714295A CN 113467791 B CN113467791 B CN 113467791B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- application
- deployment
- operating system
- deployment request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000004519 manufacturing process Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 10
- 230000000694 effects Effects 0.000 abstract 1
- 230000009286 beneficial effect Effects 0.000 description 6
- 238000009434 installation Methods 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a deployment adjustment method of an application in a cloud platform, which comprises the following steps: when a first deployment request of an application is received, the application is adapted to an adapter for providing a preset running environment; the adapter is adapted to the operating system meeting the first deployment request, a virtual machine mirror image of the operating system meeting the first deployment request is manufactured, a first virtual machine is created, and deployment of the application is conducted through the first virtual machine; when a second deployment request of the application is received, the adapter is adapted to the operating system meeting the second deployment request, a virtual machine image of the operating system meeting the second deployment request is manufactured, a second virtual machine is created, and the application is deployed through the second virtual machine. By applying the scheme of the application, the workload is reduced and the efficiency is improved when the deployment is adjusted. The application also provides a deployment adjustment system, equipment and storage medium for the application in the cloud platform, which have corresponding technical effects.
Description
Technical Field
The present invention relates to the field of server technologies, and in particular, to a deployment adjustment method, system, device, and storage medium for an application in a cloud platform.
Background
With the continuous development of cloud computing, more and more enterprises adopt cloud platforms to deploy services. The infrastructure of enterprises is not a simple physical machine and a virtualization platform, the public cloud and the private cloud are more and more important, and most enterprises start to provide services by using the cloud platform, so that the deployment of the services and the unified management and use of the services are simplified.
Application provisioning in cloud platforms is currently achieved primarily by installing software on a specific operating system. For example, when a user wants to obtain a 3-node database cluster application, after the cloud platform receives the request for creating the database application, the cloud platform first creates a virtual machine using a virtual machine template, and after the creation of the virtual machine is completed, the cloud platform downloads a required installation package from a software warehouse. After the installation package is downloaded, the cloud platform sends an instruction to the virtual machine to complete application installation and cluster configuration. In the above step of creating a virtual machine using a virtual machine template, a specific virtual machine image is used so that the application installation package is compatible therewith.
When the user needs to adjust the application deployment, or other reasons cause the application deployment to be adjusted, if the operating system of the application deployment changes, or the chip architecture of the physical server of the application deployment changes, the created image also changes, which also causes the provided software installation package to need to re-adapt to the operating system. In the case of relatively large traffic, the task of re-adapting the operating system can be very burdensome, and some software installation packages of the native operating system may need to be re-adapted from the source code, which is very labor intensive.
In summary, how to reduce the workload and improve the efficiency when adjusting the application deployment is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The invention aims to provide a deployment adjustment method, a deployment adjustment system, deployment adjustment equipment and a storage medium for an application in a cloud platform, so that workload is reduced and efficiency is improved when application deployment adjustment is performed.
In order to solve the technical problems, the invention provides the following technical scheme:
A deployment adjustment method of an application in a cloud platform, comprising:
when a first deployment request of an application is received, the application is adapted to an adapter for providing a preset running environment;
The adapter is adapted to an operating system meeting the first deployment request, so that a virtual machine image of the operating system meeting the first deployment request is manufactured;
creating a first virtual machine through the manufactured virtual machine image of the operating system meeting the first deployment request, and deploying the application through the first virtual machine;
When a second deployment request of an application is received, the adapter is adapted to an operating system meeting the second deployment request, and a virtual machine image of the operating system meeting the second deployment request is manufactured;
Creating a second virtual machine through the manufactured virtual machine image of the operating system meeting the second deployment request, and deploying the application through the second virtual machine.
Preferably, a first chip architecture for deploying an application and a first operating system based on the first chip architecture are specified in the first deployment request; a second chip architecture for deploying the application and a second operating system based on the second chip architecture are specified in the second deployment request; and, at least one item of content specified by the second deployment request is different from the content specified by the first deployment request.
Preferably, after the virtual machine image of the operating system that meets the first deployment request is manufactured, the method further includes:
The adapter is adapted to each preset operating system, virtual machine images of each preset operating system are manufactured, and all virtual machine images are uploaded to a cloud platform for storage;
correspondingly, the adapter is adapted to the operating system meeting the second deployment request, so that a virtual machine image of the operating system meeting the second deployment request is manufactured; creating a second virtual machine through the manufactured virtual machine image of the operating system meeting the second deployment request, and deploying the application through the second virtual machine, wherein the method comprises the following steps:
selecting 1 virtual machine image meeting the second deployment request from the stored virtual machine images of all operating systems;
And creating a second virtual machine through the selected 1 virtual machine images meeting the second deployment request, and deploying the application through the second virtual machine.
Preferably, the preset running environment provided by the adapter is centos-64 running environments.
Preferably, after the deployment of the application by the second virtual machine, the method further includes:
And outputting prompt information representing the application deployment adjustment.
A deployment adjustment system for an application in a cloud platform, comprising:
The application adapter module is used for adapting the application to an adapter for providing a preset running environment when a first deployment request of the application is received;
the virtual machine mirror image first generation module is used for preparing a virtual machine mirror image of an operating system meeting the first deployment request by adapting the adapter to the operating system meeting the first deployment request;
the first deployment module is used for creating a first virtual machine through the manufactured virtual machine image of the operating system meeting the first deployment request and deploying the application through the first virtual machine;
The virtual machine mirror image second generation module is used for preparing a virtual machine mirror image of an operating system meeting the second deployment request by adapting the adapter with the operating system meeting the second deployment request when receiving the second deployment request of the application;
the second deployment module is used for creating a second virtual machine through the manufactured virtual machine image of the operating system meeting the second deployment request, and deploying the application through the second virtual machine.
Preferably, a first chip architecture for deploying an application and a first operating system based on the first chip architecture are specified in the first deployment request; a second chip architecture for deploying the application and a second operating system based on the second chip architecture are specified in the second deployment request; and, at least one item of content specified by the second deployment request is different from the content specified by the first deployment request.
Preferably, after the virtual machine image of the operating system that meets the first deployment request is manufactured, the method further includes:
the virtual machine image pre-manufacturing module is used for manufacturing virtual machine images of all preset operating systems by adapting the adapter to the preset operating systems, and uploading the virtual machine images to the cloud platform for storage;
correspondingly, the second generation module of the virtual machine mirror image is specifically configured to:
selecting 1 virtual machine image meeting the second deployment request from the stored virtual machine images of all operating systems;
The second deployment module is specifically configured to:
And creating a second virtual machine through the selected 1 virtual machine images meeting the second deployment request, and deploying the application through the second virtual machine.
A deployment adjustment device of an application in a cloud platform, comprising:
A memory for storing a computer program;
A processor for executing the computer program to implement the steps of the deployment adjustment method of an application in a cloud platform as described in any one of the above.
A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and the computer program when executed by a processor implements the steps of the deployment adjustment method of an application in a cloud platform according to any one of the above.
By applying the technical scheme provided by the embodiment of the application, the application and the operating system are decoupled through the set adapter, so that re-adaptation between the application and the operating system is not needed when the application deployment is adjusted. Specifically, when the first deployment request of the application is received, the application is not directly adapted to the operating system, but is adapted to an adapter for providing a preset running environment. Because the adapter provides the preset running environment, the running environment is determined for the application, the running environment cannot be changed due to the change of an operating system, and the application and the adapter do not need to be adapted again after receiving a second deployment request of the application. After the application is adapted to the adapter, the adapter is required to be adapted to the operating system meeting the first deployment request to manufacture a virtual machine image of the operating system meeting the first deployment request, then the first virtual machine is created through the manufactured virtual machine image of the operating system meeting the first deployment request, and deployment of the application can be completed through the first virtual machine. When application deployment needs to be adjusted, namely, when a second deployment request of the application is received, the adapter is only required to be adapted to the operating system meeting the second deployment request, the virtual machine image of the operating system meeting the second deployment request is manufactured, and then the second virtual machine is created through the manufactured virtual machine image of the operating system meeting the second deployment request, so that the process is very simple and convenient. After the second virtual machine is obtained, deployment of the application can be performed through the second virtual machine, and the operation of re-adapting the application and the operating system is not involved. It can be seen that, because the adapter is arranged between the application and the operating system, decoupling of the application and the operating system is realized, the application is beneficial to reducing the workload and improving the efficiency when the application deployment is adjusted.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of an implementation of a deployment adjustment method for an application in a cloud platform according to the present invention;
FIG. 2 is a schematic diagram of a deployment adjustment system for an application in a cloud platform according to the present invention;
fig. 3 is a schematic structural diagram of a deployment adjustment device for an application in a cloud platform in the present invention.
Detailed Description
The core of the invention is to provide a deployment adjustment method of the application in the cloud platform, which is beneficial to reducing the workload and improving the efficiency when the deployment of the application is adjusted.
In order to better understand the aspects of the present invention, the present invention will be described in further detail with reference to the accompanying drawings and detailed description. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a deployment adjustment method of an application in a cloud platform according to the present invention, where the deployment adjustment method of the application in the cloud platform may include the following steps:
Step S101: and when a first deployment request of the application is received, the application is adapted to an adapter for providing a preset running environment.
The application described by the application can be any type of application in a cloud platform, for example, a database cluster application in the cloud platform.
When a first deployment of an application is made, an adapter needs to be provided for the application. The adapter described in the present application is used for providing a preset operating environment, i.e. the operating environment provided by the adapter can be fixed in advance and cannot be changed due to the change of an operating system, so that the application does not need to be re-adapted to the adapter when the application deployment is adjusted later, because the operating environment of the adapter is unchanged for the application.
The running environment provided by the adapter can be preset, for example, in a specific embodiment of the invention, the preset running environment provided by the adapter can be particularly centos-64 running environments, so that the reliability is higher, and the setting is simpler and more convenient. Of course, in other specific situations, other operating environments may be set for the adapter.
After the adapter is provided for the application, the application needs to be adapted to the adapter, and in practical application, the workload of this adapting operation is generally about the same as the workload of conventional adapting the application to the operating system.
Step S102: and the adapter is adapted to the operating system meeting the first deployment request, so that a virtual machine image of the operating system meeting the first deployment request is manufactured.
After the application is adapted to the adapter, the adapter needs to be adapted to the operating system that satisfies the first deployment request.
For example, the first deployment request is required to be an X86CPU chip architecture, and any operating system based on the X86CPU chip architecture can meet the requirement of the first deployment request, and one of the operating systems is selected randomly, or the operating system is selected according to the corresponding rule according to factors such as the actual situation of the cloud platform. In a specific case, for example, the first deployment request requires an X86CPU chip architecture, then the adapter may be selectively adapted to a windows operating system based on the X86CPU chip architecture, and for example, the adapter may be selectively adapted to a Linux operating system based on the X86CPU chip architecture.
For another example, in one scenario, the first deployment request not only requires the X86CPU chip architecture, but also specifically requires the windows operating system based on the X86CPU chip architecture, and then the adapter can only be adapted to the windows operating system based on the X86CPU chip architecture that satisfies the first deployment request.
After the adapter is adapted to the operating system satisfying the first deployment request, a virtual machine image of the operating system satisfying the first deployment request may be manufactured, for example, in the foregoing example, by adapting the adapter to the windows operating system based on the X86CPU chip architecture, a virtual machine image of the windows operating system may be manufactured.
Step S103: creating a first virtual machine through the manufactured virtual machine image of the operating system meeting the first deployment request, and deploying the application through the first virtual machine.
Since the virtual machine image of the operating system satisfying the first deployment request is generated, the first virtual machine may be created using the virtual machine image, for example, in the foregoing example, the virtual machine image of the windows operating system is generated, and the first virtual machine may be created using the virtual machine image.
After the first virtual machine is created, deployment of the application may be through the first virtual machine.
Step S104: when a second deployment request of the application is received, the adapter is adapted to the operating system meeting the second deployment request, and a virtual machine image of the operating system meeting the second deployment request is manufactured.
When a second deployment request of the application is received, the deployment of the application needs to be adjusted, that is, the deployment requirements of the second deployment request and the first deployment request on the application should be different, the deployment requirements on the application described herein are different, the chip architectures specified by the second deployment request and the first deployment request may be different, the specified chip architectures may be the same, but the operating systems based on the chip architectures are different, and of course, the specified chip architectures and the operating systems may be different.
In practical applications, the first deployment request may only specify the chip architecture or only the operating system, and the second deployment request may also only specify the chip architecture or only the operating system, which does not affect the implementation of the present invention, but in general, both the first deployment request and the second deployment request specify the chip architecture and the operating system. That is, in one embodiment of the present invention, a first chip architecture for deploying an application and a first operating system based on the first chip architecture are specified in a first deployment request; a second chip architecture for deploying the application and a second operating system based on the second chip architecture are specified in the second deployment request; and at least one item of content designated by the second deployment request is different from the content designated by the first deployment request, namely the first chip architecture is different from the second chip architecture, and the first operating system is different from the second operating system, and at least 1 item is established.
Upon receiving a second deployment request for the application, the adapter needs to be adapted to the operating system that satisfies the second deployment request.
For example, in one scenario, a first deployment request specifies that an application deployment is required with a Linux operating system based on the X86CPU chip architecture, while a second deployment request specifies that a second chip architecture for deploying an application is required to be a loongson MIPS architecture, and the operating system is not specified. In this embodiment, an operating system based on the loongson MIPS architecture needs to be selected, for example, a UOS operating system based on the loongson MIPS architecture is specifically selected, and then the adapter and the UOS operating system based on the loongson MIPS architecture may be adapted, so that a virtual machine image of the UOS operating system is manufactured.
Step S105: creating a second virtual machine through the manufactured virtual machine image of the operating system meeting the second deployment request, and deploying the application through the second virtual machine.
According to the application, the adapter is adapted to the operating system meeting the second deployment request, so that the virtual machine image of the operating system meeting the second deployment request is manufactured, but the application and the adapter do not need to be re-adapted.
After the virtual machine image of the operating system meeting the second deployment request is manufactured, the second virtual machine can be created based on the virtual machine image, so that the deployment of the application is performed through the second virtual machine, and the operation is simple and convenient. For example, in the foregoing example, the virtual machine image of the UOS operating system is produced, and then the second virtual machine is created by using the virtual machine image of the UOS operating system, so that the application is deployed through the second virtual machine.
In a specific embodiment of the present invention, after the virtual machine image of the operating system that satisfies the first deployment request is produced in step S102, the method may further include:
The method comprises the steps that through the adaptation of an adapter and each preset operating system, virtual machine images of each preset operating system are manufactured and uploaded to a cloud platform for storage;
Correspondingly, the step S104 is characterized in that the adapter is adapted to the operating system meeting the second deployment request, so that a virtual machine image of the operating system meeting the second deployment request is manufactured; and creating a second virtual machine through the manufactured virtual machine image of the operating system meeting the second deployment request and deploying an application through the second virtual machine, which may be specifically:
The first step: selecting 1 virtual machine image meeting the second deployment request from the stored virtual machine images of all operating systems;
and a second step of: and creating a second virtual machine through the selected 1 virtual machine images meeting the second deployment request, and deploying the application through the second virtual machine.
In the embodiment, after the virtual machine images of the operating systems meeting the first deployment request are manufactured, the adapter and each preset operating system are adapted to manufacture the virtual machine images of each preset operating system, and the virtual machine images are all uploaded to the cloud platform for storage, so that the advanced manufacture of the virtual machine images of each operating system can be realized, and 1 virtual machine image meeting the second deployment request can be directly selected from the stored virtual machine images of each operating system when the application is redeployed, instead of waiting until the second deployment request is received and then manufacturing the corresponding virtual machine image, thereby being beneficial to reducing the execution time consumption of the scheme of the application, namely being beneficial to completing the redeployment of the application more quickly and being beneficial to realizing uninterrupted operation of user services.
For example, in one scenario, a virtual machine image of a windows operating system of an X86CPU chip architecture is fabricated by adapting an adapter to the windows operating system based on the X86CPU chip architecture to create a first virtual machine using the virtual machine image. Meanwhile, the adapter is also adapted to each preset operating system, for example, the adapter is adapted to a Linux operating system based on an X86CPU chip architecture, a UOS operating system based on a Loongson MIPS architecture and the like, so that virtual machine images of each preset operating system are manufactured, and all virtual machine images are uploaded to a cloud platform for storage. When the application needs to be redeployed later, for example, the second deployment request designates a Linux operating system based on the X86CPU chip architecture, then a virtual machine image of the Linux operating system of the X86CPU chip architecture is directly selected from the storage library to create a second virtual machine, and application deployment can be performed through the second virtual machine.
In a specific embodiment of the present invention, after step S105, it may further include: and outputting prompt information representing application deployment adjustment to prompt related staff, wherein the application is redeployed after execution, so that the related staff can be assisted.
By applying the technical scheme provided by the embodiment of the application, the application and the operating system are decoupled through the set adapter, so that re-adaptation between the application and the operating system is not needed when the application deployment is adjusted. Specifically, when the first deployment request of the application is received, the application is not directly adapted to the operating system, but is adapted to an adapter for providing a preset running environment. Because the adapter provides the preset running environment, the running environment is determined for the application, the running environment cannot be changed due to the change of an operating system, and the application and the adapter do not need to be adapted again after receiving a second deployment request of the application. After the application is adapted to the adapter, the adapter is required to be adapted to the operating system meeting the first deployment request to manufacture a virtual machine image of the operating system meeting the first deployment request, then the first virtual machine is created through the manufactured virtual machine image of the operating system meeting the first deployment request, and deployment of the application can be completed through the first virtual machine. When application deployment needs to be adjusted, namely, when a second deployment request of the application is received, the adapter is only required to be adapted to the operating system meeting the second deployment request, the virtual machine image of the operating system meeting the second deployment request is manufactured, and then the second virtual machine is created through the manufactured virtual machine image of the operating system meeting the second deployment request, so that the process is very simple and convenient. After the second virtual machine is obtained, deployment of the application can be performed through the second virtual machine, and the operation of re-adapting the application and the operating system is not involved. It can be seen that, because the adapter is arranged between the application and the operating system, decoupling of the application and the operating system is realized, the application is beneficial to reducing the workload and improving the efficiency when the application deployment is adjusted.
Corresponding to the method embodiment, the embodiment of the invention also provides a deployment adjustment system of the application in the cloud platform, which can be mutually and correspondingly referred to above.
Referring to fig. 2, a schematic structural diagram of a deployment adjustment system for an application in a cloud platform according to the present invention includes:
An application adapter adapting module 201, configured to adapt, when receiving a first deployment request of an application, the application to an adapter for providing a preset running environment;
A virtual machine image first generation module 202, configured to make a virtual machine image of an operating system that satisfies a first deployment request by adapting an adapter to the operating system that satisfies the first deployment request;
The first deployment module 203 is configured to create a first virtual machine through the manufactured virtual machine image of the operating system that satisfies the first deployment request, and deploy an application through the first virtual machine;
The virtual machine image second generating module 204 is configured to, when receiving a second deployment request of the application, make a virtual machine image of an operating system that meets the second deployment request by adapting the adapter to the operating system that meets the second deployment request;
The second deployment module 205 is configured to create a second virtual machine through the manufactured virtual machine image of the operating system that satisfies the second deployment request, and deploy an application through the second virtual machine.
In one embodiment of the present invention, a first chip architecture for deploying an application and a first operating system based on the first chip architecture are specified in a first deployment request; a second chip architecture for deploying the application and a second operating system based on the second chip architecture are specified in the second deployment request; and, at least one item of content specified by the second deployment request is different from the content specified by the first deployment request.
In one embodiment of the present invention, the method further comprises:
The virtual machine image pre-manufacturing module is used for manufacturing virtual machine images of all preset operating systems by adapting the adapter to the preset operating systems, and uploading the virtual machine images to the cloud platform for storage;
Correspondingly, the virtual machine mirror image second generating module 204 is specifically configured to:
selecting 1 virtual machine image meeting the second deployment request from the stored virtual machine images of all operating systems;
The second deployment module 205 is specifically configured to:
and creating a second virtual machine through the selected 1 virtual machine images meeting the second deployment request, and deploying the application through the second virtual machine.
In one embodiment of the invention, the adapter provides a preset operating environment of centos to 64 operating environments.
In one embodiment of the present invention, the method further comprises:
and the prompt information output module is used for outputting prompt information representing application deployment adjustment.
Corresponding to the above method and system embodiments, the embodiments of the present invention further provide a deployment adjustment device for an application in a cloud platform and a computer readable storage medium, which can be referred to above in a mutually corresponding manner. The computer-readable storage medium stores a computer program which, when executed by a processor, implements the steps of the deployment adjustment method of the application in the cloud platform in any of the embodiments described above. The computer readable storage medium as described herein includes Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Referring to fig. 3, the deployment adjustment device of the application in the cloud platform may include:
a memory 301 for storing a computer program;
A processor 302 for executing a computer program to implement the steps of the deployment adjustment method of the application in the cloud platform in any of the embodiments described above.
It should also be noted that in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The principles and embodiments of the present invention have been described herein with reference to specific examples, but the description of the examples above is only for aiding in understanding the technical solution of the present invention and its core ideas. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the invention can be made without departing from the principles of the invention and these modifications and adaptations are intended to be within the scope of the invention as defined in the following claims.
Claims (8)
1. A deployment adjustment method for an application in a cloud platform, comprising:
when a first deployment request of an application is received, the application is adapted to an adapter for providing a preset running environment;
The adapter is adapted to an operating system meeting the first deployment request, so that a virtual machine image of the operating system meeting the first deployment request is manufactured;
creating a first virtual machine through the manufactured virtual machine image of the operating system meeting the first deployment request, and deploying the application through the first virtual machine;
When a second deployment request of an application is received, the adapter is adapted to an operating system meeting the second deployment request, and a virtual machine image of the operating system meeting the second deployment request is manufactured;
creating a second virtual machine through the manufactured virtual machine image of the operating system meeting the second deployment request, and deploying the application through the second virtual machine;
The first deployment request specifies a first chip architecture for deploying an application and a first operating system based on the first chip architecture; a second chip architecture for deploying the application and a second operating system based on the second chip architecture are specified in the second deployment request; and, at least one item of content specified by the second deployment request is different from the content specified by the first deployment request.
2. The deployment adjustment method of an application in a cloud platform of claim 1, further comprising, after the virtual machine image of the operating system satisfying the first deployment request is produced:
The adapter is adapted to each preset operating system, virtual machine images of each preset operating system are manufactured, and all virtual machine images are uploaded to a cloud platform for storage;
correspondingly, the adapter is adapted to the operating system meeting the second deployment request, so that a virtual machine image of the operating system meeting the second deployment request is manufactured; creating a second virtual machine through the manufactured virtual machine image of the operating system meeting the second deployment request, and deploying the application through the second virtual machine, wherein the method comprises the following steps:
selecting 1 virtual machine image meeting the second deployment request from the stored virtual machine images of all operating systems;
And creating a second virtual machine through the selected 1 virtual machine images meeting the second deployment request, and deploying the application through the second virtual machine.
3. The deployment adjustment method of an application in a cloud platform according to claim 1, wherein the preset running environment provided by the adapter is centos-64 running environments.
4. A deployment adjustment method of an application in a cloud platform according to any one of claims 1 to 3, further comprising, after deployment of the application by the second virtual machine:
And outputting prompt information representing the application deployment adjustment.
5. A deployment adjustment system for an application in a cloud platform, comprising:
The application adapter module is used for adapting the application to an adapter for providing a preset running environment when a first deployment request of the application is received;
the virtual machine mirror image first generation module is used for preparing a virtual machine mirror image of an operating system meeting the first deployment request by adapting the adapter to the operating system meeting the first deployment request;
the first deployment module is used for creating a first virtual machine through the manufactured virtual machine image of the operating system meeting the first deployment request and deploying the application through the first virtual machine;
The virtual machine mirror image second generation module is used for preparing a virtual machine mirror image of an operating system meeting the second deployment request by adapting the adapter with the operating system meeting the second deployment request when receiving the second deployment request of the application;
the second deployment module is used for creating a second virtual machine through the manufactured virtual machine image of the operating system meeting the second deployment request and deploying the application through the second virtual machine;
The first deployment request specifies a first chip architecture for deploying an application and a first operating system based on the first chip architecture; a second chip architecture for deploying the application and a second operating system based on the second chip architecture are specified in the second deployment request; and, at least one item of content specified by the second deployment request is different from the content specified by the first deployment request.
6. The deployment adjustment system of an application in a cloud platform of claim 5, further comprising:
the virtual machine image pre-manufacturing module is used for manufacturing virtual machine images of all preset operating systems by adapting the adapter to the preset operating systems, and uploading the virtual machine images to the cloud platform for storage;
correspondingly, the second generation module of the virtual machine mirror image is specifically configured to:
selecting 1 virtual machine image meeting the second deployment request from the stored virtual machine images of all operating systems;
The second deployment module is specifically configured to:
And creating a second virtual machine through the selected 1 virtual machine images meeting the second deployment request, and deploying the application through the second virtual machine.
7. A deployment adjustment device for an application in a cloud platform, comprising:
A memory for storing a computer program;
a processor for executing the computer program to implement the steps of the deployment adjustment method of an application in a cloud platform as claimed in any of claims 1 to 4.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the deployment adjustment method of an application in a cloud platform according to any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110714295.9A CN113467791B (en) | 2021-06-25 | 2021-06-25 | Deployment adjustment method, system, equipment and storage medium for application in cloud platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110714295.9A CN113467791B (en) | 2021-06-25 | 2021-06-25 | Deployment adjustment method, system, equipment and storage medium for application in cloud platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113467791A CN113467791A (en) | 2021-10-01 |
CN113467791B true CN113467791B (en) | 2024-09-03 |
Family
ID=77873141
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110714295.9A Active CN113467791B (en) | 2021-06-25 | 2021-06-25 | Deployment adjustment method, system, equipment and storage medium for application in cloud platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113467791B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110009A (en) * | 2009-12-28 | 2011-06-29 | 中国移动通信集团公司 | Method for deploying application in virtual platform and virtual platform manager |
CN104199716A (en) * | 2014-07-31 | 2014-12-10 | 华为技术有限公司 | Virtual machine thermal migration method, physical host and system |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9501303B1 (en) * | 2013-09-04 | 2016-11-22 | Express Scripts, Inc. | Systems and methods for managing computing resources |
US9298486B2 (en) * | 2013-12-09 | 2016-03-29 | International Business Machines Corporation | Managing virtual machine images in a distributed computing environment |
EP3226135A3 (en) * | 2016-03-30 | 2018-01-31 | AppFormix, Inc. | Real-time cloud-infrastructure policy implementation and management |
CN110673924B (en) * | 2019-09-06 | 2023-07-14 | 北京浪潮数据技术有限公司 | Multi-architecture container cloud mirror image selection method, device, equipment and storage medium |
CN112306635A (en) * | 2020-10-27 | 2021-02-02 | 北京浪潮数据技术有限公司 | Cloud physical machine deployment method and device, electronic equipment and readable storage medium |
CN112527325B (en) * | 2020-11-23 | 2024-07-09 | 山东乾云启创信息科技股份有限公司 | Deployment method and system applied to super fusion architecture |
-
2021
- 2021-06-25 CN CN202110714295.9A patent/CN113467791B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102110009A (en) * | 2009-12-28 | 2011-06-29 | 中国移动通信集团公司 | Method for deploying application in virtual platform and virtual platform manager |
CN104199716A (en) * | 2014-07-31 | 2014-12-10 | 华为技术有限公司 | Virtual machine thermal migration method, physical host and system |
Also Published As
Publication number | Publication date |
---|---|
CN113467791A (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10931599B2 (en) | Automated failure recovery of subsystems in a management system | |
US8799319B2 (en) | System and method for meta-data driven, semi-automated generation of web services based on existing applications | |
US8418139B2 (en) | System and method for updating initialization parameters for application software from within a software development environment | |
WO2018161799A1 (en) | Cloud application deployment method and system | |
JP2013522769A (en) | Virtual machine image update service | |
US11816458B2 (en) | Method and system for packaging infrastructure as code | |
US10817284B2 (en) | Melding of mediation flow service component architecture (SCA) components | |
CN111984270A (en) | Application deployment method and system | |
CN111984269A (en) | Method for providing application construction service and application construction platform | |
CN112035217A (en) | Cluster processing method and device, electronic equipment and computer readable storage medium | |
CN113835693A (en) | Code generation method and device, electronic equipment and storage medium | |
CN112235132B (en) | Method, device, medium and server for dynamically configuring service | |
CN117112122A (en) | Cluster deployment method and device | |
CN116450353A (en) | Processor core matching method and device, electronic equipment and storage medium | |
CN113467791B (en) | Deployment adjustment method, system, equipment and storage medium for application in cloud platform | |
EP4315026A1 (en) | Method and system for a customized local build environment image | |
CN114296864A (en) | Method and equipment for converting iso mirror image into container mirror image | |
CN114006815B (en) | Automatic deployment method and device for cloud platform nodes, nodes and storage medium | |
CN112379934B (en) | Deployment method and device of cloud computing platform and storage medium | |
CN111124613B (en) | Method, device, equipment and storage medium for realizing service of virtualized resources | |
CN118276848A (en) | Function self-defining method, device, equipment and medium of low-code platform | |
CN111683005A (en) | Internet of things intelligent gateway equipment and construction method thereof | |
US20080320401A1 (en) | Template-based deployment of user interface objects | |
US20230266996A1 (en) | Distributed ai platform mesh for machine learning workflows | |
CN113628052A (en) | Block chain asset and contract processing method, system and device based on prediction machine |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |