Cloud Platform-based Application Stack Automatic Deployment Method and Related Devices
By obtaining version upgrade information and mirroring in the cloud platform, batch production of application stores and deployment, the problem of low deployment efficiency of multi-application stacks in the cloud platform is solved, and automated batch upgrades and efficient deployment are achieved.
Patent Information
- Application Number
- CN202210291739.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-22
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-03-22
AI Technical Summary
In the cloud platform, the deployment scenarios of containerized services are complex, involving multiple applications, multiple stacks, multiple environments, and multiple modes. There is a lack of high concurrent operation methods, resulting in low deployment efficiency and large operational differences.
Provides an automated deployment method of application stack based on cloud platform, by obtaining version upgrade information and containerized images of the application stack, obtaining tokens, batch creating application stores, and using the application store to deploy version upgrade images and information to multiple application stacks in batches.
It realizes automated batch upgrade deployment of all application stacks in the cloud platform, reduces the complexity of deployment operations, improves the convenience and security of deployment, and makes the process more efficient.
Smart Images

Figure CN114924754B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cloud computing technology, and in particular, to an application stack automatic deployment method and related devices based on a cloud platform. Background Art
[0002] Today, with the booming development of microservices technology, containerization is the main technology chosen by many large and medium-sized systems. Containerization technology can deploy services faster and better, but the actual deployment scenarios are often very complex, involving multiple applications, multiple stacks, multiple environments, multiple modes, etc.
[0003] In a cloud platform that can deploy containerized services, various deployment methods can be provided for containerized services through single operations, but the operation differences of different deployment methods are large, and there is a lack of high-concurrency operation methods, which brings difficulties to the deployment work and the deployment efficiency is low. Summary of the Invention
[0004] In view of this, the purpose of this application is to propose an application stack automatic deployment method and related devices based on a cloud platform.
[0005] Based on the above purpose, this application provides an application stack automatic deployment method based on a cloud platform. The cloud platform includes multiple application stacks, and the method includes: obtaining version upgrade information of the multiple application stacks and containerized version upgrade images; obtaining a Token of the cloud platform to enable access rights to the cloud platform; batch-making multiple application stores in the cloud platform according to the version upgrade information; and using the application stores to batch-deploy the version upgrade images and the version upgrade information to the multiple application stacks.
[0006] Optionally, the obtaining the version upgrade information of the multiple application stacks and containerized version upgrade images includes: obtaining the version upgrade images from the Harbor server of the cloud platform; and obtaining the version upgrade information from an external performance platform using a Kafka server.
[0007] Optionally, the version upgrade information includes version upgrade application information, and the batch-making and generating multiple application stores in the cloud platform according to the version upgrade information includes: batch-making multiple application stores in the cloud platform according to the version upgrade application information.
[0008] Optionally, the batch-making multiple application stores in the cloud platform according to the version upgrade information further includes: setting the application stores to update mode.
[0009] Optionally, the version upgrade information further includes a version name, a list of developers, and version content. The step of using the application store to batch deploy the version upgrade image and the version upgrade information to the multiple application stacks includes: using the application store to batch deploy the version name, the list of developers, the version content, and the version upgrade image to the multiple application stacks.
[0010] Optionally, the step of using the application store to batch deploy the version upgrade image and the version upgrade information to the multiple application stacks further includes: using the application store to cyclically scan all the application stacks, and sequentially deploying the version upgrade image and the version upgrade information to each of the application stacks, and stopping the scanning in response to the completion of the deployment of all the application stacks.
[0011] Based on the same inventive concept, the present application further provides an automated deployment device for application stacks based on a cloud platform. The cloud platform includes multiple application stacks. The device includes: a first acquisition module configured to acquire the version upgrade information of the multiple application stacks and a containerized version upgrade image; a second acquisition module configured to acquire a Token of the cloud platform to enable access to the cloud platform; an application store production module configured to batch produce multiple application stores in the cloud platform according to the version upgrade information; and a deployment module configured to use the application store to batch deploy the version upgrade image and the version upgrade information to the multiple application stacks.
[0012] Optionally, the version upgrade information includes a version name, a list of developers, version content, and version upgrade application information. The application store production module is further configured to: batch produce multiple application stores in the cloud platform according to the version upgrade application information; and the deployment module is further configured to: use the application store to batch deploy the version name, the list of developers, the version content, and the version upgrade image to the multiple application stacks.
[0013] Based on the same inventive concept, the present application further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. The processor is characterized in that when the processor executes the program, it implements the automated deployment method for application stacks based on a cloud platform according to any one of the above.
[0014] Based on the same inventive concept, the present application further provides a non-transitory computer-readable storage medium storing computer instructions. The computer instructions are characterized in that the computer instructions are used to cause a computer to execute the automated deployment method for application stacks based on a cloud platform according to any one of the above.
[0015] As can be seen from the above, the application stack automatic deployment method and related devices based on the cloud platform provided by the present application, wherein the cloud platform includes multiple application stacks, and the method includes: obtaining version upgrade information of the multiple application stacks and containerized version upgrade images; obtaining a Token of the cloud platform to enable access rights to the cloud platform; batch creating multiple application stores in the cloud platform according to the version upgrade information; and using the application stores to batch deploy the version upgrade images and the version upgrade information to the multiple application stacks. The method provided by the present application can directly associate and unify all application stack deployment processes in the cloud platform, reduce the complexity of deployment operations, and solve the problem of large differences in operation of different deployment methods; the method provided by the present application can also achieve automatic batch upgrade deployment of all application stacks, making the deployment operation more convenient and the deployment process more secure and efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present application or related technologies, the following will briefly introduce the drawings required for use in the embodiments or related technology descriptions. Obviously, the drawings in the following description are only the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0017] Figure 1 It is a schematic block diagram for upgrading and deploying an application stack in a cloud platform in the prior art;
[0018] Figure 2 It is a schematic flowchart of the application stack automatic deployment method based on the cloud platform according to an embodiment of the present application;
[0019] Figure 3 It is a schematic block diagram for batch upgrading and deploying an application stack in a cloud platform according to an embodiment of the present application;
[0020] Figure 4 It is a schematic flowchart of the operation process for batch upgrading and deploying an application stack according to an embodiment of the present application;
[0021] Figure 5 It is a schematic structural diagram of the application stack automatic deployment device based on the cloud platform according to an embodiment of the present application;
[0022] Figure 6 It is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0023] In order to make the objectives, technical solutions, and advantages of the present application clearer, the following further describes the present application in detail with reference to specific embodiments and the accompanying drawings.
[0024] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of this application should have the ordinary meanings understood by those of ordinary skill in the art to which this application belongs. The "first", "second" and similar terms used in the embodiments of this application do not denote any order, quantity or importance, but are only used to distinguish different components. Words such as "including" or "comprising" mean that the elements or objects appearing before this word cover the elements or objects listed after this word and their equivalents, without excluding other elements or objects. Words such as "connected" or "linked" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Upper", "lower", "left", "right", etc. are only used to represent relative positional relationships, and when the absolute position of the object being described changes, the relative positional relationship may also change accordingly.
[0025] For ease of understanding, some of the nouns that appear in the embodiments of this application are explained below:
[0026] Application stack: An application stack is a running unit that packages application services. The application stack stores the running environment, configuration parameters, and application images of the application internally;
[0027] Application store: The application store contains some parameter configurations and definitions in the system running environment, and can implement version differentiation configuration management. It is a key element for the upgrade and deployment of the application stack.
[0028] Token: A token, an object representing the right to perform certain operations;
[0029] Harbor server: Harbor is an open-source enterprise-level private containerized image repository project of VMware. Its goal is to help users quickly build an enterprise-level private containerized image repository service;
[0030] Kafka server: Kafka is an open-source stream processing platform developed by the Apache Software Foundation. It is a high-throughput distributed publish-subscribe messaging system that can process all action stream data of consumers on websites; Kafka unifies online and offline message processing through the parallel loading mechanism of Hadoop and provides real-time messages through a cluster.
[0031] In the prior art, such as Figure 1As shown in the figure, the process of upgrading and deploying the application stack in the cloud platform is as follows: First, the deployment personnel need to understand the content of the version to be deployed outside the cloud platform and communicate offline to avoid differences in the deployment content. Then, enter the cloud platform, find the application store and application stack under the existing permissions. For different applications, different deployment methods may be selected. For example, for Application 1, first create the application store, then delete the original application stack, and then initiate the process of redeploying the application stack. For Applications 2 and 3, after creating the application store, directly perform the upgrade and deployment on the application stack. For Application 4, select the upgrade service within the application stack, then change the service configuration, and upgrade the application stack by modifying the image.
[0032] The above deployment process has a weak concept of the application system version. There is a lack of data connection between the existing system and before the version release, and the communication cost outside the platform is high. The deployment process method lacks automation capabilities, and the overall process is carried out step by step, with low efficiency. The deployment operation processes of different applications are inconsistent, which is not conducive to integrating operations and taking over deployment work.
[0033] In view of this, an embodiment of the present application provides an automated deployment method for an application stack based on a cloud platform. The cloud platform includes multiple application stacks, as Figure 2 shown, the method includes:
[0034] Step S101, obtain the version upgrade information of the multiple application stacks and the containerized version upgrade images. In a specific embodiment, Docker containers are used to containerize most of the version upgrade images. Containerization is to bundle the application code and the dependent packages of the application into a single virtual package. Containerized applications can be placed side by side with other applications and run through a shared operating system on a computer, server, or cloud. Docker containers achieve unified deployment of the application environment and project, facilitating migration and management.
[0035] Step S102, obtain the Token of the cloud platform and open the access permission to the cloud platform. This step can associate the user with the cloud platform and enable the user's operations to be associated with the initial version process of the cloud platform.
[0036] Step S103, batch create multiple application stores in the cloud platform according to the version upgrade information. In the prior art, it is necessary to create application stores for each application separately. The embodiment of the present application can automatically batch create multiple application stores, making the deployment operation more convenient and the deployment process more efficient.
[0037] Step S104: Use the application store to batch deploy the version upgrade image and the version upgrade information to the multiple application stacks. In the prior art, it is necessary to perform upgrade deployment for each application stack separately. In the embodiment of the present application, automated batch upgrade deployment is performed on multiple application stacks, making the deployment operation more convenient and the deployment process more efficient.
[0038] The method provided by the embodiment of the present application includes: obtaining the version upgrade information of the multiple application stacks and the containerized version upgrade image; obtaining the Token of the cloud platform to enable access to the cloud platform; batch creating multiple application stores in the cloud platform according to the version upgrade information; and using the application store to batch deploy the version upgrade image and the version upgrade information to the multiple application stacks. As Figure 3 shown, the method provided by the embodiment of the present application can realize the automated batch confirmation of the upgraded versions of the application stacks, the automated batch creation of the application stores, and the automated batch deployment of the application stacks, making the deployment operation more convenient and the deployment process safer and more efficient; the method provided by the present application can also directly associate and unify all application stack deployment processes in the cloud platform, reducing the complexity of the deployment operation and solving the problem of large differences in operation among different deployment methods.
[0039] In some embodiments, step S101 includes: obtaining the version upgrade image from the Harbor server of the cloud platform; and obtaining the version upgrade information from an external efficiency platform using a Kafka server.
[0040] In a specific embodiment, before batch upgrade deployment of the application stack, developers send the version upgrade information to an external efficiency platform. The external efficiency platform sends the version upgrade information to the Kafka server and places the made version upgrade image in the Harbor server of the cloud platform; when batch upgrade deployment is required, the version upgrade information and image required for upgrade deployment are obtained from the two servers.
[0041] In some embodiments, the version upgrade information includes version upgrade application information, and step S103 includes: batch creating multiple application stores in the cloud platform according to the version upgrade application information. In a specific embodiment, the version upgrade application information is multiple micro-applications, and the process of creating the application store is the process of establishing the corresponding relationship between the micro-applications and the application stack. This process makes the version upgrade information and version upgrade image to be deployed correspond one by one with the application stacks in the cloud platform, facilitating subsequent batch upgrade deployment of the application stacks.
[0042] During specific implementation, the process of creating the application store is carried out in a visual manner to ensure that the created application store is the correct version required. If it is found that the version of the created application store is incorrect, one can choose to go back to the previous step and contact the developer to change the version upgrade information.
[0043] In some embodiments, step S103 further includes: setting the application store to the update mode. The modes of the application store include the deletion stack mode and the update mode. During the process of batch upgrade and deployment, the application store in the update mode can further improve the deployment efficiency.
[0044] In some embodiments, the version upgrade information further includes the version name, the list of developers, and the version content. Step S104 includes: using the application store to batch deploy the version name, the list of developers, the version content, and the version upgrade image to the multiple application stacks, so that the upgraded applications include all the content of the version upgrade. During specific implementation, the process of upgrade and deployment is carried out in a visual manner, and all the information required for upgrade and deployment is automatically filled in the view, reducing the workload of technicians and improving the deployment efficiency; if it is found that the upgrade and deployment information is incorrect, one can choose to go back to the previous step and contact the developer to change the version upgrade information and the version upgrade image.
[0045] In some embodiments, step S104 further includes: using the application store to cyclically scan all the application stacks, and sequentially deploying the version upgrade image and the version upgrade information to each application stack. In response to the completion of the deployment of all the application stacks, stop scanning. In a specific embodiment, both batch deployment and batch rollback are implemented in an asynchronous drive manner, and each application stack is continuously triggered to perform upgrade and deployment by cyclically scanning the deployment tasks, so as to achieve the purpose of one-key batch deployment.
[0046] It should be noted that the embodiments of the present application can also be further described in the following manner, such as Figure 4As shown in the figure, in specific implementation, the operation process for technicians to perform batch upgrade and deployment of the application stack is as follows: 1) Obtain the upgrade version information and log in to the system; 2) Determine whether configuration is required; 3) If configuration is required, enter the configuration page for processing; 4) Configure the secret key; 5) Configure the correspondence between personnel and the system; 6) Configure the correspondence between applications and the store; 7) Configure the update mode; 8) If no configuration is required, directly enter the to-do list page; 9) View the to-do version, person in charge, and other version details; 10) Confirm whether the version content is correct; 11) If incorrect, communicate with the development team about the details and make revisions; 12) After the revision is completed, jump to the application store production interface through the link in the to-do list; 13) If confirmed to be correct, directly jump to the application store production interface through the link in the to-do list; 14) Enter the application store production interface and display all the application stores involved in this version upgrade; 15) The store can choose individual production and batch production; 16) If individual production is not required, all can be selected; 17) For individual production, a corresponding application store needs to be selected for production; 18) Whether individual production is performed or not, the store production process will be carried out; 19) Carry out the store production process; 20) If there is personalized allocation content in the version, manual allocation is required; 21) After production is completed, click the jump deployment function on the to-do interface, jump to the deployment interface through the link in the to-do list, and locate the application stack related to the version based on information such as the application name in the version, and directly perform screening; 22) Enter the deployment interface, and automatically display all the application stacks that need to be upgraded and deployed this time; 23) The operator can choose to deploy a single application stack or choose to perform batch deployment; 24) After deployment is completed, the status of the application stack needs to be confirmed; 25) Conduct verification and judge whether there are problems with the upgrade and deployment according to the verification situation; 26) If there are problems with the deployment, choose to roll back; 27) After the deployment rollback is completed, this deployment task ends, and the investigation work on the failure reason is processed using other professional tools; 28) If there are no problems, the entire upgrade and deployment process ends. In the above process, technicians only need to select and confirm the upgrade and deployment work, and the platform realizes automatic acquisition of upgrade and deployment information, automatic batch production of application stores, and automatic batch deployment of application stacks, making the deployment operation more convenient and the deployment process safer and more efficient.
[0047] It should be noted that the method of this embodiment of the present application can be executed by a single device, such as a computer or a server, etc. The method of this embodiment can also be applied to a distributed scenario, and multiple devices cooperate with each other to complete it. In this case of a distributed scenario, one of these multiple devices can only execute one or more steps of the method of this embodiment of the present application, and these multiple devices will interact with each other to complete the described method.
[0048] It should be noted that some embodiments of the present application have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the above embodiments and still achieve the desired results. Additionally, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0049] Based on the same inventive concept, corresponding to any of the above method embodiments, the present application further provides an automated deployment device for an application stack based on a cloud platform. The cloud platform includes multiple application stacks, as Figure 5 shown, the device includes:
[0050] A first acquisition module 10, configured to acquire the version upgrade information of the multiple application stacks and the containerized version upgrade images;
[0051] A second acquisition module 20, configured to acquire the Token of the cloud platform and open the access permission to the cloud platform;
[0052] An application store production module 30, configured to batch produce multiple application stores in the cloud platform according to the version upgrade information;
[0053] A deployment module 40, configured to use the application store to batch deploy the version upgrade images and the version upgrade information to the multiple application stacks.
[0054] The device provided by the embodiments of the present application includes: a first acquisition module, configured to acquire the version upgrade information of the multiple application stacks and the containerized version upgrade images; a second acquisition module, configured to acquire the Token of the cloud platform and open the access permission to the cloud platform; an application store production module, configured to batch produce multiple application stores in the cloud platform according to the version upgrade information; a deployment module, configured to use the application store to batch deploy the version upgrade images and the version upgrade information to the multiple application stacks. The device provided by the present application can directly associate and unify all the application stack deployment processes in the cloud platform, reduce the complexity of the deployment operation, and solve the problem of large differences in operation among different deployment methods; the device provided by the present application can also achieve automated batch upgrade deployment of all application stacks, making the deployment operation more convenient and the deployment process safer and more efficient.
[0055] In some embodiments, the version upgrade information includes a version name, a list of developers, version content, and version upgrade application information. The application store production module is further configured to: batch produce a plurality of the application stores in the cloud platform according to the version upgrade application information; The deployment module is further configured to: use the application store to batch deploy the version name, the list of developers, the version content, and the version upgrade image to the plurality of application stacks.
[0056] In some embodiments, the first acquisition module is further configured to: acquire the version upgrade image from the Harbor server of the cloud platform; acquire the version upgrade information from an external efficiency platform using a Kafka server.
[0057] In some embodiments, the application store production module is further configured to: set the application store to an update mode.
[0058] In some embodiments, the deployment module is further configured to: use the application store to circularly scan all the application stacks, and sequentially deploy the version upgrade image and the version upgrade information to each of the application stacks, and stop scanning in response to all the application stacks being deployed.
[0059] For the convenience of description, when describing the above device, various modules are described separately according to their functions. Of course, when implementing the present application, the functions of each module can be implemented in one or more software and / or hardware.
[0060] The device in the above embodiments is used to implement the corresponding application stack automated deployment method based on the cloud platform in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0061] Based on the same inventive concept, corresponding to the method in any of the above embodiments, the present application further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the application stack automated deployment method based on the cloud platform in any of the above embodiments.
[0062] Figure 6 FIG. shows a more specific schematic diagram of the hardware structure of the electronic device provided in this embodiment. The device may include: a processor 610, a memory 620, an input / output interface 630, a communication interface 640, and a bus 650. Among them, the processor 610, the memory 620, the input / output interface 630, and the communication interface 640 are communicatively connected to each other inside the device through the bus 650.
[0063] The processor 610 can be implemented in the form of a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0064] The memory 620 can be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, etc. The memory 620 can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 620 and are called and executed by the processor 610.
[0065] The input / output interface 630 is used to connect to the input / output module to achieve information input and output. The input / output module can be configured as a component in the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Among them, the input device can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device can include a display, a speaker, a vibrator, an indicator light, etc.
[0066] The communication interface 640 is used to connect to a communication module (not shown in the figure) to achieve communication interaction between this device and other devices. Among them, the communication module can achieve communication through a wired method (such as USB, network cable, etc.) or can also achieve communication through a wireless method (such as a mobile network, WIFI, Bluetooth, etc.).
[0067] The bus 650 includes a path for transmitting information between various components of the device (such as the processor 610, the memory 620, the input / output interface 630, and the communication interface 640).
[0068] It should be noted that although the above device only shows the processor 610, the memory 620, the input / output interface 630, the communication interface 640, and the bus 650, in the specific implementation process, this device may also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device may also only include the components necessary to implement the solution of the embodiments of this specification and does not necessarily include all the components shown in the figure.
[0069] The electronic device in the above embodiment is used to implement the corresponding application stack automated deployment method based on the cloud platform in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0070] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present application further provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method for automatically deploying an application stack based on a cloud platform as described in any one of the above embodiments.
[0071] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device.
[0072] The computer instructions stored in the storage medium of the above embodiment are used to cause the computer to execute the method for automatically deploying an application stack based on a cloud platform as described in any one of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be elaborated here.
[0073] Those of ordinary skill in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the present application (including the claims) is limited to these examples; under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations in different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of brevity.
[0074] In addition, for simplicity of explanation and discussion, and so as not to make the embodiments of the present application difficult to understand, well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Further, the devices may be shown in block diagram form in order to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that details regarding the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application are to be implemented (i.e., these details should be fully within the understanding of those skilled in the art). In cases where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it will be apparent to those skilled in the art that the embodiments of the present application may be practiced without these specific details or with variations of these specific details. Accordingly, these descriptions should be regarded as illustrative rather than restrictive.
[0075] Although the present application has been described in connection with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0076] Embodiments of the present application are intended to cover all such alternatives, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the embodiments of the present application shall be included within the protection scope of the present application.
Claims
1. An automated deployment method for an application stack based on a cloud platform, characterized in that, The cloud platform includes multiple application stacks, and the method includes: Sending version upgrade information to an external performance platform, where the external performance platform sends the version upgrade information to a Kafka server and places the prepared version upgrade image in the Harbor server of the cloud platform; when batch upgrade and deployment are required, obtaining the version upgrade information and image required for upgrade and deployment from the Kafka server and the Harbor server, where the version upgrade information includes version upgrade application information, version name, list of developers, and version content; Obtaining the Token of the cloud platform to enable access to the cloud platform; Batch creating multiple application stores in the cloud platform according to the version upgrade application information. The process of creating the application stores is the process of establishing the correspondence between the micro-applications and the application stacks. This process makes the version upgrade information and the version upgrade image to be deployed correspond one by one with the application stacks in the cloud platform, and the application stores are set to the update mode; Using the application stores to batch deploy the version name, the list of developers, the version content, and the version upgrade image to the multiple application stacks; Using the application stores to cyclically scan all the application stacks and sequentially deploy the version upgrade image and the version upgrade information to each of the application stacks. In response to all the application stacks completing the deployment, stop scanning.
2. The method for automatically deploying an application stack based on a cloud platform according to claim 1, characterized in that, The obtaining the version upgrade information of the multiple application stacks and the containerized version upgrade image includes: Obtaining the version upgrade image from the Harbor server of the cloud platform; Using the Kafka server to obtain the version upgrade information from the external performance platform.
3. An application stack automatic deployment device based on a cloud platform, characterized in that, The cloud platform includes multiple application stacks, and the device includes: A first obtaining module configured to send version upgrade information to an external performance platform, where the external performance platform sends the version upgrade information to a Kafka server and places the prepared version upgrade image in the Harbor server of the cloud platform; when batch upgrade and deployment are required, obtaining the version upgrade information and image required for upgrade and deployment from the Kafka server and the Harbor server, where the version upgrade information includes version upgrade application information, version name, list of developers, and version content; A second obtaining module configured to obtain the Token of the cloud platform to enable access to the cloud platform; An application store creation module configured to batch create multiple application stores in the cloud platform according to the version upgrade application information. The process of creating the application stores is the process of establishing the correspondence between the micro-applications and the application stacks. This process makes the version upgrade information and the version upgrade image to be deployed correspond one by one with the application stacks in the cloud platform, and the application stores are set to the update mode; A deployment module configured to use the application stores to batch deploy the version name, the list of developers, the version content, and the version upgrade image to the multiple application stacks; The deployment module is further configured to cyclically scan all the application stacks by using the application store, and sequentially deploy the version upgrade image and the version upgrade information into each of the application stacks, and stop scanning in response to the completion of the deployment of all the application stacks.
4. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, the method described in any one of claims 1 to 2 is implemented.
5. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause a computer to execute the method described in any one of claims 1 to 2.