A copy deployment method, device, system, electronic equipment and storage medium

By automating the deployment of OpenStack on Kubernetes, the problem of manually setting the number of replicas for module components is solved, which is time-consuming and error-prone, and efficient and accurate replica deployment is achieved.

CN114564210BActive Publication Date: 2026-06-23INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2022-02-25
Publication Date
2026-06-23

AI Technical Summary

Technical Problem

When deploying OpenStack on Kubernetes, manually setting the number of replicas for module components is time-consuming, error-prone, and inefficient.

Method used

An automated method is provided that receives a replica deployment request, obtains a planning document, extracts requirement information, determines the actual number of replicas, and performs deployment operations in the target cluster, reducing manual intervention.

Benefits of technology

It improves the efficiency of replica deployment, reduces the probability of human error, and simplifies the process of setting the number of component replicas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564210B_ABST
    Figure CN114564210B_ABST
Patent Text Reader

Abstract

The application discloses a copy deployment method, device, system, electronic equipment and storage medium. The method comprises the following steps: receiving a copy deployment request; in response to the application copy deployment request, obtaining a planning file corresponding to each application component in a cloud computing platform; extracting demand information from the copy deployment request, and extracting an actual copy quantity meeting the demand information from the planning file; and sending the actual copy quantity to a target cluster, so that the target cluster performs a deployment operation on a container deployed in the target cluster according to the actual copy quantity, to meet the demand of the cloud computing platform. The method provided by the application embodiment can automatically extract the actual copy quantity meeting the demand information from the planning file according to the demand information in the copy deployment request, and create the number of component copies in the target cluster, so that manual setting is no longer needed, the human participation degree is reduced, and the probability of errors caused by human operation is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, system, electronic device, and storage medium for copy deployment. Background Technology

[0002] OpenStack is an open-source cloud computing management platform. Its main purpose is to hide the details of the underlying physical hardware through virtualization technology, providing users with resource isolation and usage restrictions at the computing, storage, and network levels, making it appear to users as if they have a dedicated machine. Currently, a large number of developers worldwide are involved, providing strong support for OpenStack's rapid development. After years of development, OpenStack's technology has become increasingly mature and stable, providing high availability while also offering flexible scalability. Therefore, OpenStack has been widely adopted across various industries.

[0003] Kubernetes is a brand-new container cluster management system based on container technology. Building on Docker technology, it provides containerized applications with functions such as deployment and operation, resource scheduling, service discovery, and dynamic scaling, and offers convenience for managing large-scale container clusters.

[0004] Currently, the method for setting the number of replicas for each module component when deploying OpenStack on Kubernetes is to manually modify the replica count of each relevant application component defined in the values.yaml file of each OpenStack module chart based on the current deployment architecture. This method is purely manual, and whenever the default replica count of the application component defined in the values.yaml file of each OpenStack module chart cannot meet the deployment architecture of the OpenStack cloud computing platform, it is necessary to manually modify the default replica count definition of the corresponding component in each module chart of the OpenStack cloud computing platform. Therefore, in the process of implementing this application, the inventors found that the OpenStack cloud computing platform contains dozens of modules, each containing several application components, making this manual operation extremely time-consuming, inefficient, and exceptionally tedious. Furthermore, due to the large amount of purely manual operation, errors are also prone to occur. Summary of the Invention

[0005] In order to solve the above-mentioned technical problems, or at least partially solve the above-mentioned technical problems, this application provides a copy deployment method, apparatus, system, electronic device and storage medium.

[0006] According to one aspect of the embodiments of this application, a method for deploying replicas is provided, including:

[0007] Receive a replica deployment request, wherein the replica deployment request is used to request the deployment of a component replica of the target application component in the cloud computing platform to the target cluster;

[0008] In response to the application replica deployment request, obtain the planning files corresponding to each application component in the cloud computing platform;

[0009] Extract the requirement information from the replica deployment request, and extract the actual number of replicas that meet the requirement information from the planning document;

[0010] The actual number of replicas is sent to the target cluster, so that the target cluster can perform deployment operations on the containers deployed in the target cluster according to the actual number of replicas, so as to meet the needs of the cloud computing platform.

[0011] Furthermore, the method also includes:

[0012] Obtain the attribute file corresponding to the target functional module in the cloud computing platform, wherein the target module is any functional module in the cloud computing platform;

[0013] Extract the definition information corresponding to the application components associated with the target functional module from the attribute file, and extract the definition information into the template file of the deployment tool corresponding to the target functional module.

[0014] Furthermore, before receiving the application component processing request, the method further includes:

[0015] The template engine is invoked to query the planning file of the application component in the cloud computing platform to obtain the initial configuration information corresponding to the application component.

[0016] The number of copies corresponding to the application component is determined using the definition information in the template file;

[0017] The initial configuration information is updated based on the number of replicas to obtain the target configuration information.

[0018] Furthermore, the step of extracting the actual number of copies of the information satisfying the requirements from the planning document includes:

[0019] The template engine is invoked to extract the number of replicas corresponding to each application component from the target configuration information in the planning file;

[0020] The actual number of replicas is obtained from the number of replicas corresponding to each application component that matches the requirement information.

[0021] Furthermore, after obtaining the number of replicas matching the demand information from the number of replicas corresponding to each application component as the actual number of replicas, the method further includes:

[0022] The template engine is invoked to render the target component copies corresponding to the actual number of copies.

[0023] Furthermore, sending the actual number of replicas to the target cluster, so that the target cluster performs deployment operations on the containers deployed in the target cluster according to the actual number of replicas, to meet the needs of the cloud computing platform, includes:

[0024] When the actual number of replicas matches the defined information in the template file, the deployment tool is invoked to send the actual number of replicas to the target cluster, so that the target cluster obtains the same number of container replicas as the actual number of replicas, and instantiates the container replicas to meet the needs of the cloud computing platform, wherein the container replicas are deployed on the target cluster.

[0025] According to another aspect of the embodiments of this application, a replica deployment apparatus is also provided, comprising:

[0026] A receiving module is used to receive a replica deployment request, wherein the replica deployment request is used to request the deployment of a component replica of a target application component in the cloud computing platform to a target set;

[0027] The acquisition module is used to acquire the planning files corresponding to each application component in the cloud computing platform in response to the application replica deployment request;

[0028] The extraction module is used to extract requirement information from the replica deployment request and extract the actual number of replicas that meet the requirement information from the planning document;

[0029] The processing module is used to send the actual number of replicas to the target cluster, so that the target cluster can perform deployment operations on the containers deployed in the target cluster according to the actual number of replicas, so as to meet the needs of the cloud computing platform.

[0030] According to another aspect of the embodiments of this application, a replica deployment system is also provided, including: a processor and a target cluster;

[0031] The processor is configured to receive a replica deployment request, wherein the replica deployment request is used to request the deployment of component replicas of a target application component in the cloud computing platform to a target cluster; in response to the application replica deployment request, obtain a planning file corresponding to each application component in the cloud computing platform; extract requirement information from the replica deployment request, extract the actual number of replicas that meet the requirement information from the planning file; and send the actual number of replicas to the target cluster.

[0032] The target cluster is used to obtain the same number of container replicas as the actual number of replicas, and to instantiate the container replicas to meet the needs of the cloud computing platform, wherein the container replicas are deployed in the target cluster.

[0033] According to another aspect of the embodiments of this application, a storage medium is also provided, the storage medium including a stored program that executes the above steps when the program is run.

[0034] According to another aspect of the embodiments of this application, an electronic device is also provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the programs stored in the memory.

[0035] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the steps in the above-described method.

[0036] Compared with the prior art, the above-mentioned technical solution provided in this application embodiment has the following advantages: The method provided in this application embodiment can automatically extract the actual number of replicas that meet the requirement information from the planning document based on the requirement information in the replica deployment request, and create the number of component replicas in the target cluster. It no longer requires manual setting, reduces the degree of human involvement, and reduces the probability of errors caused by human operation. Attached Figure Description

[0037] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0038] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1A flowchart illustrating a copy deployment method provided in this application embodiment;

[0040] Figure 2 A flowchart illustrating a copy deployment method provided in another embodiment of this application;

[0041] Figure 3 A block diagram of a copy deployment apparatus provided in an embodiment of this application;

[0042] Figure 4 A block diagram of a copy deployment apparatus provided in an embodiment of this application;

[0043] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0044] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0045] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another similar entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0046] This application provides a method, apparatus, system, electronic device, and storage medium for replica deployment. The method provided by this invention can be applied to any electronic device as needed, such as a server, terminal, or other electronic device. No specific limitation is made here, and for ease of description, it will be referred to as an electronic device below.

[0047] According to one aspect of the embodiments of this application, a method embodiment of a copy deployment method is provided. Figure 1 A flowchart of a copy deployment method provided in an embodiment of this application is shown below. Figure 1 As shown, the method includes:

[0048] Step S11: Receive a replica deployment request, wherein the replica deployment request is used to request the deployment of a component replica of the target application component in the cloud computing platform to the target cluster.

[0049] The method provided in this application embodiment is applied to a processor deployed on a cloud computing platform, which may be an OpenStack cloud computing platform. Before executing the replica deployment, the planning file of the cloud computing platform needs to be configured. The configuration process includes the following steps A1-A2:

[0050] Step A1: Obtain the attribute file corresponding to the target functional module in the cloud computing platform, where the target module is any functional module in the cloud computing platform.

[0051] Step A2: Extract the definition information corresponding to the application components associated with the target functional module from the property file, and extract the definition information into the template file of the deployment tool corresponding to the target functional module.

[0052] The method provided in this application embodiment involves a processor obtaining attribute files (values.yaml files) corresponding to each functional module in a cloud computing platform. The attribute files include definition information of the application components associated with each functional module. The definition information is used to represent the detailed content of the component replicas of each application component, such as the number of component replicas and the deployment method, etc.

[0053] As an example, the default definitions of the number of copies of each application component in the values.yaml file of each module of the OpenStack cloud computing platform are templated, that is, the default definitions of the number of copies of the corresponding application component in the values.yaml file of each module of the OpenStack cloud computing platform are extracted into the template file of the corresponding deployment tool.

[0054] In this embodiment of the application, before receiving the application component processing request, the method further includes the following steps A1-A3:

[0055] Step A1: Call the template engine to query the planning file of the application component in the cloud computing platform to obtain the initial configuration information corresponding to the application component.

[0056] Step A2: Use the definition information in the template file to determine the number of copies of the application component.

[0057] Step A3: Update the initial configuration information based on the number of replicas to obtain the target configuration information.

[0058] In this embodiment, the configuration process first calls the Jinja2 template engine to query the planning file of the application component in the cloud computing platform. The planning file can be a file stored when the application component is deployed in the cloud computing platform. Therefore, it is necessary to determine the number of deployable replicas of the application component based on the definition information in the template file. Then, the number of replicas is written into the initial configuration information to obtain the final target configuration information.

[0059] In this embodiment of the application, the definition information in the template file includes the range of the number of component replicas that can be deployed by the application component, and then the number of replicas corresponding to the application component is determined based on the upper or lower limit of the range.

[0060] It should be noted that, in this embodiment, the planning file of the application component is obtained by calling the template engine, and the determined number of replicas is written into the initial configuration information of the planning file to complete the update of the configuration information. Simultaneously, the updated target configuration information allows for subsequent dynamic configuration of component replicas, thereby simplifying the process of setting the number of replicas for each module of the cloud computing platform and reducing the time required to set the number of application component replicas.

[0061] Therefore, upon receiving a replica deployment request, this application can directly obtain the requirement information from the replica deployment request and, in conjunction with the target configuration information in the planning file, automatically deploy the corresponding number of component replicas, thereby improving the deployment efficiency of component replicas.

[0062] Step S12: In response to the application replica deployment request, obtain the planning files corresponding to each application component in the cloud computing platform.

[0063] In this embodiment of the application, after receiving a replica deployment request, the processor obtains the planning file corresponding to each application component in the cloud computing platform. The planning file includes the target configuration information of the application component corresponding to the file. The target configuration information includes: the number of replicas that can be deployed for each application component.

[0064] Step S13: Extract the requirement information from the replica deployment request and extract the actual number of replicas that meet the requirement information from the planning document.

[0065] In this embodiment of the application, step S13, extracting the actual number of copies corresponding to the application components from the planning document, includes the following steps B1-B2:

[0066] Step B1: Use the template engine to extract the number of copies of each application component from the planning file.

[0067] Step B2: Obtain the number of replicas that matches the requirement information from the number of replicas corresponding to each application component as the actual number of replicas.

[0068] In this embodiment, the template engine can directly query the target configuration information from the planning file of each functional module. The target configuration information includes the number of deployable replicas of the application components associated with that functional module. Then, the actual number of replicas is determined based on the number of deployable replicas carried in the replica deployment request. Specifically, the correspondence between preset requirement information and preset replica numbers can be queried, and the actual number of replicas corresponding to the requirement information carried in the replica deployment request can be determined based on this correspondence.

[0069] As an example, the target configuration information includes a deployable replica count of 10 for the application component associated with functional module A. Analyzing the requirements, the requirement is to set the component replica count for the application component to ensure the cloud computing platform's throughput reaches a threshold H. Based on the correspondence between the preset requirements and the preset replica count, the preset number of component replicas required to reach the cloud computing platform's throughput threshold H is determined, and this number is then used as the actual number of replicas required for this deployment.

[0070] In this embodiment of the application, after obtaining the number of replicas that matches the requirement information from the number of replicas corresponding to each application component as the actual number of replicas, the method further includes: calling the template engine to render the target component replicas corresponding to the actual number of replicas.

[0071] Step S14: Send the actual number of replicas to the target cluster so that the target cluster can perform deployment operations on the containers deployed in the target cluster according to the actual number of replicas, so as to meet the needs of the cloud computing platform.

[0072] In this embodiment of the application, the method further includes: obtaining the attribute file corresponding to the target functional module in the cloud computing platform, wherein the target module is any functional module in the cloud computing platform, extracting the definition information of the application components associated with the target functional module from the attribute file, and extracting the definition information into the template file of the deployment tool corresponding to the target functional module.

[0073] In this embodiment of the application, step S14, sending the actual number of replicas to the target cluster so that the target cluster can perform deployment operations on the containers deployed in the target cluster according to the actual number of replicas to meet the needs of the cloud computing platform, includes: when the actual number of replicas matches the defined information in the template file, calling the deployment tool to send the actual number of replicas to the target cluster so that the target cluster can obtain the same number of container replicas as the actual number of replicas and instantiate the container replicas to meet the requirements, wherein the container replicas are deployed in the target cluster.

[0074] The method provided in this application embodiment can automatically extract the actual number of replicas that meet the requirements information from the planning document based on the requirements information in the replica deployment request, and create the required number of component replicas in the target cluster. This eliminates the need for manual settings, reduces the degree of human involvement, and reduces the probability of errors caused by human operation.

[0075] Figure 3 This is a block diagram of a copy deployment apparatus provided in an embodiment of this application. This system can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 3 As shown, the device includes:

[0076] The receiving module 31 is used to receive a replica deployment request, wherein the replica deployment request is used to request the deployment of a component replica of the target application component in the cloud computing platform to the target set;

[0077] Module 32 is used to obtain the planning files corresponding to each application component in the cloud computing platform in response to the application replica deployment request;

[0078] Extraction module 33 is used to extract requirement information from the replica deployment request and extract the actual number of replicas that meet the requirement information from the planning document;

[0079] Processing module 34 is used to send the actual number of replicas to the target cluster, so that the target cluster can perform deployment operations on the containers deployed in the target cluster according to the actual number of replicas, so as to meet the needs of the cloud computing platform.

[0080] In this embodiment of the application, the replica deployment device further includes: a configuration module, configured to call a template engine to query the planning file of the application component in the cloud computing platform to obtain the configuration information corresponding to the application component; to perform templated definition of the component replica of the application component based on the configuration information to obtain the templated component replica; and to write the number of replicas corresponding to the templated component replica into the planning file.

[0081] In this embodiment of the application, the extraction module 33 is used to call the template engine to extract the number of replicas corresponding to each application component from the planning document; and to obtain the number of replicas that matches the requirement information from the number of replicas corresponding to each application component as the actual number of replicas.

[0082] In this embodiment of the application, the replica deployment device further includes a rendering module, which is used to call the template engine to render the target component replicas corresponding to the actual number of replicas.

[0083] In this embodiment of the application, the copy deployment device further includes: an extraction module, used to obtain an attribute file corresponding to a target functional module in the cloud computing platform, wherein the target module is any functional module in the cloud computing platform; extract definition information of the application components associated with the target functional module from the attribute file, and extract the definition information into a template file of the deployment tool corresponding to the target functional module.

[0084] In this embodiment of the application, the processing module 34 is used to call the deployment tool to send the actual number of replicas to the target cluster when the actual number of replicas matches the definition information in the template file, so that the target cluster obtains the same number of container replicas as the actual number of replicas, and performs instantiation on the container replicas to meet the needs of the cloud computing platform, wherein the container replicas are deployed on the target cluster.

[0085] Figure 4 This is a block diagram of a copy deployment system provided in an embodiment of this application. This system can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 4 As shown, the system includes: a processor 41 and a target cluster 42;

[0086] Processor 41 is configured to receive a replica deployment request, wherein the replica deployment request is used to request the deployment of component replicas of a target application component in the cloud computing platform to the target cluster; in response to the application replica deployment request, obtain the planning file corresponding to each application component in the cloud computing platform; extract requirement information from the replica deployment request, extract the actual number of replicas that meet the requirement information from the planning file; and send the actual number of replicas to the target cluster.

[0087] The target cluster 42 is used to obtain the same number of container replicas as the actual number of replicas, and to instantiate the container replicas to meet the needs of the cloud computing platform. The container replicas are deployed in the target cluster.

[0088] As an example, this application uses this system to extract the default definition of the number of application component replicas in the values.yaml files of each module of the OpenStack cloud computing platform into the template file of the corresponding module's deployment tool. It then uses the Jinja2 template engine and the group settings of the corresponding components in the OpenStack cloud computing platform planning file to define the application component replicas in a templated manner. During subsequent deployment, the Jinja2 template engine dynamically detects and renders the application component replica templates, and transmits the actual number of replicas to the Kubernetes cluster, which then instantiates the corresponding number of replicas.

[0089] This application is based on a system that can dynamically deploy component replicas when determining the required number of replicas for each module of the cloud computing platform. The entire deployment process requires no manual operation and the process of determining the number is imperceptible to the deployment personnel. This simplifies the process of setting the number of replicas for each module of the OpenStack cloud computing platform, reduces the time required to set the number of application component replicas, improves the efficiency of setting the number of component replicas, and reduces the degree of human involvement, thereby reducing the probability of errors caused by human operation.

[0090] This application also provides an electronic device, such as... Figure 5 As shown, the electronic device may include: a processor 1501, a communication interface 1502, a memory 1503, and a communication bus 1504, wherein the processor 1501, the communication interface 1502, and the memory 1503 communicate with each other through the communication bus 1504.

[0091] Memory 1503 is used to store computer programs;

[0092] When the processor 1501 executes the computer program stored in the memory 1503, it implements the steps of the above embodiments.

[0093] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0094] The communication interface is used for communication between the aforementioned terminal and other devices.

[0095] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0096] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0097] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores instructions that, when executed on a computer, cause the computer to perform any of the copy deployment methods described in the above embodiments.

[0098] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform any of the copy deployment methods described in the above embodiments.

[0099] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., a solid-state drive).

[0100] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.

[0101] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for deploying replicas, characterized in that, include: Receive a replica deployment request, wherein the replica deployment request is used to request the deployment of a component replica of the target application component in the cloud computing platform to the target cluster; In response to the replica deployment request, obtain the planning files corresponding to each application component in the cloud computing platform; Extract the requirement information from the replica deployment request, and extract the actual number of replicas that meet the requirement information from the planning document; The actual number of replicas is sent to the target cluster, so that the target cluster performs deployment operations on the containers deployed in the target cluster according to the actual number of replicas, so as to meet the needs of the cloud computing platform. The method further includes: obtaining an attribute file corresponding to a target functional module in a cloud computing platform, wherein the target functional module is any functional module in the cloud computing platform; extracting definition information corresponding to the application component associated with the target functional module from the attribute file, and extracting the definition information into a template file of the deployment tool corresponding to the target functional module; Before receiving the replica deployment request, the method further includes: calling a template engine to query the planning file of the application component in the cloud computing platform to obtain the initial configuration information corresponding to the application component; using the definition information in the template file to determine the number of replicas corresponding to the application component; and updating the initial configuration information based on the number of replicas to obtain target configuration information. The step of extracting the actual number of replicas that meet the requirements from the planning document includes: calling the template engine to extract the number of replicas corresponding to each application component from the target configuration information of the planning document; and obtaining the number of replicas that match the requirements from the number of replicas corresponding to each application component as the actual number of replicas.

2. The method according to claim 1, characterized in that, After obtaining the number of replicas matching the demand information from the number of replicas corresponding to each application component as the actual number of replicas, the method further includes: The template engine is invoked to render the target component copies corresponding to the actual number of copies.

3. The method according to claim 1, characterized in that, Sending the actual number of replicas to the target cluster, so that the target cluster performs deployment operations on the containers deployed in the target cluster according to the actual number of replicas, to meet the needs of the cloud computing platform, includes: When the actual number of replicas matches the defined information in the template file, the deployment tool is invoked to send the actual number of replicas to the target cluster, so that the target cluster obtains the same number of container replicas as the actual number of replicas, and instantiates the container replicas to meet the needs of the cloud computing platform, wherein the container replicas are deployed on the target cluster.

4. A replica deployment device, characterized in that, include: A receiving module is used to receive a replica deployment request, wherein the replica deployment request is used to request the deployment of a component replica of a target application component in the cloud computing platform to the target cluster; The acquisition module is used to acquire the planning files corresponding to each application component in the cloud computing platform in response to the replica deployment request; The extraction module is used to extract requirement information from the replica deployment request and extract the actual number of replicas that meet the requirement information from the planning document; The processing module is used to send the actual number of replicas to the target cluster, so that the target cluster can perform deployment operations on the containers deployed in the target cluster according to the actual number of replicas, so as to meet the needs of the cloud computing platform; The replica deployment device further includes: an extraction module, used to obtain an attribute file corresponding to a target functional module in the cloud computing platform, wherein the target functional module is any functional module in the cloud computing platform; extract definition information corresponding to the application components associated with the target functional module from the attribute file, and extract the definition information into a template file of the deployment tool corresponding to the target functional module; The replica deployment device further includes: a configuration module, configured to call a template engine to query the planning file of the application component in the cloud computing platform to obtain the initial configuration information corresponding to the application component; determine the number of replicas corresponding to the application component using the definition information in the template file; and update the initial configuration information based on the number of replicas to obtain target configuration information; The extraction module is used to call the template engine to extract the number of replicas corresponding to each application component from the target configuration information of the planning document; and to obtain the number of replicas that match the requirement information from the number of replicas corresponding to each application component as the actual number of replicas.

5. A replica deployment system, characterized in that, include: Processor and target cluster; The processor is configured to receive a replica deployment request, wherein the replica deployment request is used to request the deployment of component replicas of a target application component in the cloud computing platform to a target cluster; in response to the replica deployment request, obtain a planning file corresponding to each application component in the cloud computing platform; extract requirement information from the replica deployment request, extract the actual number of replicas that meet the requirement information from the planning file; and send the actual number of replicas to the target cluster. The target cluster is used to obtain the same number of container replicas as the actual number of replicas, and to instantiate the container replicas to meet the needs of the cloud computing platform, wherein the container replicas are deployed in the target cluster; The processor is configured to obtain an attribute file corresponding to a target functional module in the cloud computing platform, wherein the target functional module is any functional module in the cloud computing platform; extract definition information corresponding to the application components associated with the target functional module from the attribute file, and extract the definition information into a template file of the deployment tool corresponding to the target functional module; The processor is configured to call a template engine to query the planning file of the application component in the cloud computing platform to obtain the initial configuration information corresponding to the application component; determine the number of replicas corresponding to the application component using the definition information in the template file; and update the initial configuration information based on the number of replicas to obtain the target configuration information. The processor is configured to call the template engine to extract the number of replicas corresponding to each application component from the target configuration information of the planning file; and to obtain the number of replicas that matches the requirement information from the number of replicas corresponding to each application component as the actual number of replicas.

6. A storage medium, characterized in that, The storage medium includes a stored program, wherein the program, when executed, performs the steps of the method according to any one of claims 1 to 3.

7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, communication interface, and memory communicate with each other through the communication bus; wherein: Memory, used to store computer programs; A processor for performing the steps of the method according to any one of claims 1-3 by running a program stored in memory.