CN113722045B - Cluster application deployment method and device - Google Patents

Cluster application deployment method and device Download PDF

Info

Publication number
CN113722045B
CN113722045B CN202110841799.7A CN202110841799A CN113722045B CN 113722045 B CN113722045 B CN 113722045B CN 202110841799 A CN202110841799 A CN 202110841799A CN 113722045 B CN113722045 B CN 113722045B
Authority
CN
China
Prior art keywords
information
cluster
application
deployment
deployed
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
Application number
CN202110841799.7A
Other languages
Chinese (zh)
Other versions
CN113722045A (en
Inventor
刘建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN202110841799.7A priority Critical patent/CN113722045B/en
Publication of CN113722045A publication Critical patent/CN113722045A/en
Application granted granted Critical
Publication of CN113722045B publication Critical patent/CN113722045B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for deploying application of a cluster, wherein the method comprises the following steps: acquiring application information of cluster applications to be deployed; acquiring cluster applications to be deployed from predefined applications according to the application information; acquiring a deployment template of a cluster application to be deployed; according to the application information, information configuration is carried out in a deployment template; acquiring target environment information for deploying the cluster application to be deployed after information configuration from predefined environment information; determining cluster deployment information of a cluster application to be deployed according to the target environment information; and deploying the cluster application to be deployed according to the cluster deployment information. The application deployment efficiency of the cluster can be improved by the scheme.

Description

Cluster application deployment method and device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for deploying applications of a cluster.
Background
With the rapid development of information technology, new technology is continuously evolved, excellent open source projects are greatly emerging, and the demands for cluster application deployment are also continuously increased. For example, the containerized platform Kubernetes is used to manage containerized applications on multiple hosts in a cloud platform, with the goal of making deploying containerized applications simple and efficient.
However, most of the current cluster application deployment methods rely on tools to perform direct deployment, and professional deployment personnel are required to install corresponding tools and configure environment information to be used normally, so that the application deployment efficiency of the cluster is not high.
Disclosure of Invention
The invention provides a method and a device for deploying application of a cluster, which can improve the efficiency of deploying the application of the cluster.
In a first aspect, an embodiment of the present invention provides an application deployment method for a cluster, including:
acquiring application information of cluster applications to be deployed;
acquiring the cluster application to be deployed from a predefined application according to the application information;
acquiring a deployment template of the cluster application to be deployed;
according to the application information, information configuration is carried out in the deployment template;
acquiring target environment information for deploying the cluster application to be deployed after information configuration from predefined environment information;
determining cluster deployment information of the cluster application to be deployed according to the target environment information;
and deploying the cluster application to be deployed according to the cluster deployment information.
In a possible implementation manner, the configuring information in the deployment template according to the application information includes:
and configuring application configuration information and model configuration information related to the application information in the deployment template according to the application information.
In one possible implementation, the application configuration information includes: application name, application version, associated model identification, model version, application state, template type, and template path;
and/or the number of the groups of groups,
the model configuration information includes: template type, template version, component type, and modifiable attribute set.
In a possible implementation manner, the determining cluster deployment information of the to-be-deployed cluster application according to the target environment information includes:
determining cluster information of a determined cluster according to the target environment information;
determining data center information according to the cluster information;
and determining cluster deployment information of the cluster application to be deployed by utilizing the data center information, the cluster information and the target environment information.
In one possible implementation, the step of defining the environmental information includes:
defining at least one data center; wherein the attributes of the data center include: a data center name and cluster list;
for each data center:
adding at least one cluster in a current data center; wherein the attributes of the cluster include: a cluster unique identifier, a cluster configuration file, a cluster monitoring address and a start-stop instruction of a cluster which are associated with the cluster list;
defining environment information for each of the clusters; wherein, an environmental information belongs to a cluster, and each cluster at least comprises an environmental information.
In a second aspect, an embodiment of the present invention provides an application deployment apparatus for a cluster, including: the system comprises an application information acquisition module, a cluster application acquisition module, a deployment template acquisition module, an information configuration module, an environment information acquisition module, a deployment information determination module and a deployment module;
the application information acquisition module is used for acquiring application information of the cluster application to be deployed;
the cluster application acquisition module is used for acquiring the cluster application to be deployed from a predefined application according to the application information acquired by the application information acquisition module;
the deployment template acquisition module is used for acquiring the deployment template of the cluster application to be deployed, which is acquired by the cluster application acquisition module;
the information configuration module is used for carrying out information configuration in the deployment template acquired by the deployment template acquisition module according to the application information;
the environment information acquisition module is used for acquiring target environment information for deploying the cluster application to be deployed after the information configuration module is used for configuring the information from the predefined environment information;
the deployment information determining module is used for determining cluster deployment information of the cluster application to be deployed according to the target environment information acquired by the environment information acquiring module;
the deployment module is used for deploying the cluster application to be deployed according to the cluster deployment information determined by the deployment information determination module.
In one possible implementation manner, the information configuration module is configured to configure application configuration information and model configuration information related to the application information in the deployment template according to the application information.
In one possible implementation, the information configuration module, when performing an operation of configuring application configuration information and model configuration information related to the application information in the deployment template according to the application information,
the application configuration information includes: application name, application version, associated model identification, model version, application state, template type, and template path;
and/or the number of the groups of groups,
the model configuration information includes: template type, template version, component type, and modifiable attribute set.
In one possible implementation manner, the deployment information determining module is configured to perform the following operations:
determining cluster information of a determined cluster according to the target environment information;
determining data center information according to the cluster information;
and determining cluster deployment information of the cluster application to be deployed by utilizing the data center information, the cluster information and the target environment information.
In one possible implementation, the method further includes: an environmental information definition module;
the environment information definition module is used for executing the following operations:
defining at least one data center; wherein the attributes of the data center include: a data center name and cluster list;
for each data center:
adding at least one cluster in a current data center; wherein the attributes of the cluster include: a cluster unique identifier, a cluster configuration file, a cluster monitoring address and a start-stop instruction of a cluster which are associated with the cluster list;
defining environment information for each of the clusters; wherein, an environmental information belongs to a cluster, and each cluster at least comprises an environmental information.
According to the technical scheme, when the application of the cluster is deployed, firstly, the application information of the application of the cluster to be deployed is acquired, and then, the corresponding application is acquired from the predefined application according to the application information. After the cluster application to be deployed is acquired, acquiring a deployment template of the cluster application to be deployed, and performing information configuration in the deployment template. Further, target environment information for deploying the cluster application to be deployed is obtained from the predefined environment information, so that cluster deployment information for deploying the cluster application to be deployed can be determined according to the target environment information, and deployment of the cluster application to be deployed can be achieved according to the cluster deployment information. Therefore, the deployment mode provided by the scheme is simple and convenient, deployment personnel can realize the deployment of the cluster application only by carrying out simple configuration, and therefore the efficiency of the deployment of the cluster application can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present 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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for deploying applications of a cluster, provided by one embodiment of the invention;
fig. 2 is a schematic diagram of an application deployment apparatus of a cluster according to an embodiment of the present invention.
Detailed Description
As described above, with the rapid development of information technology, new technology is continuously evolving, a great deal of excellent open source projects are emerging, and demands for cluster application deployment are also continuously increasing. For example, the containerized platform Kubernetes is used to manage containerized applications on multiple hosts in a cloud platform, with the goal of making deploying containerized applications simple and efficient.
However, most of the conventional Kubernetes cluster application deployment methods rely on tools to deploy directly, and such deployment methods have the following disadvantages: firstly, the technical threshold is high, and deployment personnel can normally use the device only by installing corresponding tools and configuring environment information; secondly, aiming at the DevOps scene of the Gitlab, the connection information of the cluster needs to be configured in the corresponding project, and the cluster cannot be opened for use; thirdly, potential safety hazards exist, because deployment personnel need to take configuration files corresponding to the clusters, the operation of the controller cannot be performed, and certain potential safety hazards exist; fourth, the responsibility is not clearly divided, so that the content to be modified is confused in the deployment, and the deployment list is not clear.
Based on the above, the design concept based on an open application model (Open Application Model, OAM) is considered, and the application deployment of the Kubernetes cluster can be realized without complicated configuration. The deployment of the application of the method adopts a design of separating the application from the model, isolates the focus of service research and development and operation and maintenance from the model, ensures that the focus of each role is more concentrated and concentrated, simultaneously provides unified management of a data center, a cluster and an environment, simplifies the deployment complexity and improves the deployment efficiency. For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments, and all other embodiments obtained by those skilled in the art without making any inventive effort based on the embodiments of the present invention are within the scope of protection of the present invention. Note that the following description mainly uses Kubernetes cluster application.
As shown in fig. 1, an embodiment of the present invention provides a method for deploying an application of a cluster, where the method may include the following steps:
step 101: acquiring application information of cluster applications to be deployed;
step 102: acquiring cluster applications to be deployed from predefined applications according to the application information;
step 103: acquiring a deployment template of a cluster application to be deployed;
step 104: according to the application information, information configuration is carried out in a deployment template;
step 105: acquiring target environment information for deploying the cluster application to be deployed after information configuration from predefined environment information;
step 106: determining cluster deployment information of a cluster application to be deployed according to the target environment information;
step 107: and deploying the cluster application to be deployed according to the cluster deployment information.
In the embodiment of the invention, when the application of the cluster is deployed, firstly, the application information of the application of the cluster to be deployed is acquired, and then, the corresponding application is acquired from the predefined application according to the application information. After the cluster application to be deployed is acquired, acquiring a deployment template of the cluster application to be deployed, and performing information configuration in the deployment template. Further, target environment information for deploying the cluster application to be deployed is obtained from the predefined environment information, so that cluster deployment information for deploying the cluster application to be deployed can be determined according to the target environment information, and deployment of the cluster application to be deployed can be achieved according to the cluster deployment information. Therefore, the deployment mode provided by the scheme is simple and convenient, deployment personnel can realize the deployment of the cluster application only by carrying out simple configuration, and therefore the efficiency of the deployment of the cluster application can be improved.
Of course, before deployment of the application of the cluster, i.e. when developing the deployment scenario of the clustered application, some information needs to be defined to enable the deployment scenario of the clustered application to be implemented. When the application deployment scheme of the cluster is developed, the method can be realized in the following way:
step one: a data center is defined.
A data center is an overall management dimension, and one data center may contain 1-n Kubernetes clusters. The entity class of the data center comprises the following attributes: data center name (datacentrname), kubernetes cluster list (clusterist), etc.
Step two: kubernetes clusters are added.
Based on the data center defined in the step one, a Kubernetes cluster is added in the data center. Wherein, the attribute of the cluster may include: a unique identification (ClusterID) of the cluster, which unique identification needs to be associated with the list of clusters of step one; a configuration file (ConfigFile) of the cluster, the configuration file being mainly used for managing the cluster; the monitoring address (monitor Url) of the cluster, this configuration is in order to support switching the cluster, the correspondent monitoring address can carry on the unified switching too; whether a cluster is enabled (Enable), this configuration controls whether the current cluster is enabled.
Step three: an environment is defined.
Environmental information is defined, wherein the environmental information comprises information such as a data center to which the environment belongs, a cluster to which the environment belongs and the like, and one environment can only belong to one Kubernetes cluster. The environment information mainly includes cluster identification (ClusterID), which is cluster information used to identify the environment, and one environment can only belong to one cluster.
Step four: and writing a deployment package.
And writing deployment package information of the corresponding service according to the deployment information and uploading the deployment package information to the corresponding warehouse. The deployment package is a template package for deploying the application, wherein the template package comprises all resource descriptions of the deployment application, can be written by using the currently popular Helm Charts package, and is uploaded to a warehouse after the writing is completed so as to be called later.
Step five: and newly adding application and model information.
And calling a corresponding service interface, and adding information of an application and a model, wherein the application main attribute comprises a resource type and a deployment package position, and the model main attribute comprises a configurable attribute description and the like. This part is the need to define application configuration information and model configuration information related to the application according to the application to be deployed. Wherein the application configuration information may include: name (Name), version (Version), associated model identification (ComponentID), model Version (ComponentVersion), application State (State), template type (template type), template path (template location), etc.; the model configuration information may include: name (Name), version (Version), component type (CompType), modifiable attribute set (features), etc.
Step six: and newly adding a deployment task.
And newly adding a deployment task, selecting associated application and model information, selecting an environment to be deployed, and executing the deployment task. The steps of the deployment task mainly comprise the following steps:
(1) Acquiring application information, judging whether the application exists, if so, performing the next step, and if not, ending;
(2) Acquiring a deployment template type, and selecting a corresponding resolver according to the deployment template type;
(3) Pulling the deployment template package according to the path of the deployment template package, and if the deployment template package exists, performing the next step;
(4) Acquiring corresponding environment information according to the input environment identifier, wherein the environment information comprises the affiliated cluster and data center information;
(5) Setting cluster information in a context according to the acquired environment information;
(6) Acquiring configured module information and storing the deployment task;
(7) And executing deployment, deploying to the corresponding kubernetes cluster, and returning a final deployment result.
In one possible implementation, step 104 may configure application configuration information and model configuration information related to the application information in the deployment template according to the application information when the information is configured in the deployment template according to the application information.
When the configuration of the cluster application is performed, after a proper template is determined according to the application information, the relevant application information needs to be further filled into the template according to the application information, namely, the information configuration needs to be performed in the template. And the information configured may mainly include application configuration information and model configuration information.
In one possible implementation, the application configuration information includes: application name, application version, associated model identification, model version, application state, template type, and template path;
in one possible implementation, the model configuration information includes: template type, template version, component type, and modifiable attribute set.
It follows that in configuring application configuration information and model configuration information into a deployment template, the application configuration information may include: name (Name), version (Version), associated model identification (ComponentID), model Version (ComponentVersion), application State (State), template type (template type), template path (template location), etc.; the model configuration information may include: name (Name), version (Version), component type (CompType), modifiable attribute set (features), etc. This solves the four disadvantages described above, namely at least the following four objectives are achieved:
(1) The application deployment is realized based on the open API, deployment personnel can complete the application deployment only through simple configuration, and the complexity of the application deployment is simplified;
(2) Aiming at the DevOps scene of the Gitlab, complex cluster connection information configuration is avoided, and the application deployment stage in the DevOps can be completed only by completing the corresponding API call in the script;
(3) The method effectively controls the operating range of deployment personnel in an API mode, and avoids misoperation;
(4) By adopting an OAM model, clear responsibility division is performed, and confusion caused by unclear responsibility is avoided.
In one possible implementation manner, determining cluster deployment information of a cluster application to be deployed according to target environment information includes:
determining cluster information of a determined cluster according to the target environment information;
determining data center information according to the cluster information;
and determining cluster deployment information of the cluster application to be deployed by utilizing the data center information, the cluster information and the target environment information.
In the embodiment of the invention, the cluster deployment information for deploying the cluster application to be deployed can be determined by combining the data center information, the cluster information and the target environment information with other configuration information.
In one possible implementation manner, when defining the environment information, the method may be specifically implemented as follows:
defining at least one data center; wherein the attributes of the data center include: a data center name and cluster list;
for each data center:
adding at least one cluster in a current data center; wherein, the attribute of cluster includes: a cluster unique identifier, a cluster configuration file, a cluster monitoring address and a start-stop instruction of a cluster which are associated with the cluster list;
defining environment information for each cluster; wherein, an environmental information belongs to a cluster, and each cluster at least comprises an environmental information.
For example, the main attributes of the data center defined by the main attributes can be realized by the following ways:
Figure BDA0003179162540000101
the interface called by the method is as follows:
Figure BDA0003179162540000102
Figure BDA0003179162540000111
for another example, the manner of adding the cluster attribute may include:
Figure BDA0003179162540000112
for another example, the manner in which the environmental attribute is defined may include: the main attributes are as follows:
Figure BDA0003179162540000113
Figure BDA0003179162540000121
the interface realized by the method is as follows:
Figure BDA0003179162540000122
of course, when performing deployment development of the cluster application, after defining the environment information, further writing a deployment package, newly added application and model information and newly added deployment tasks are required.
For example, when the application and model information are added, the main interfaces of the application implementation include:
Figure BDA0003179162540000131
the main interfaces of the model implementation are as follows:
Figure BDA0003179162540000132
Figure BDA0003179162540000141
for example, the interface of the newly added deployment task may include:
Figure BDA0003179162540000142
as shown in fig. 2, the embodiment of the present invention further provides an application deployment apparatus for a cluster, where the apparatus may include: an application information acquisition module 201, a cluster application acquisition module 202, a deployment template acquisition module 203, an information configuration module 204, an environment information acquisition module 205, a deployment information determination module 206, and a deployment module 207;
an application information obtaining module 201, configured to obtain application information of a cluster application to be deployed;
the cluster application acquisition module 202 is configured to acquire a cluster application to be deployed from a predefined application according to the application information acquired by the application information acquisition module 201;
a deployment template obtaining module 203, configured to obtain a deployment template of the to-be-deployed cluster application obtained by the cluster application obtaining module 202;
the information configuration module 204 is configured to perform information configuration in the deployment template acquired by the deployment template acquisition module 203 according to the application information;
the environment information obtaining module 205 is configured to obtain, from predefined environment information, target environment information for deploying the cluster application to be deployed after the information configuration module 204 performs information configuration;
a deployment information determining module 206, configured to determine cluster deployment information of a cluster application to be deployed according to the target environmental information acquired by the environmental information acquiring module 205;
a deployment module 207, configured to deploy the cluster application to be deployed according to the cluster deployment information determined by the deployment information determining module 206.
In one possible implementation, the information configuration module 204 is configured to configure application configuration information and model configuration information related to the application information in the deployment template according to the application information.
In one possible implementation, the information configuration module 204, when performing the operation of configuring application configuration information and model configuration information associated with application information in a deployment template according to the application information,
the application configuration information includes: application name, application version, associated model identification, model version, application state, template type, and template path;
in one possible implementation, the model configuration information includes: template type, template version, component type, and modifiable attribute set.
In one possible implementation, the deployment information determination module 206 is configured to perform the following operations:
determining cluster information of a determined cluster according to the target environment information;
determining data center information according to the cluster information;
and determining cluster deployment information of the cluster application to be deployed by utilizing the data center information, the cluster information and the target environment information.
In one possible implementation manner, the application deployment device of the cluster further includes: an environmental information definition module;
the environment information definition module is used for executing the following operations:
defining at least one data center; wherein the attributes of the data center include: a data center name and cluster list;
for each data center:
adding at least one cluster in a current data center; wherein, the attribute of cluster includes: a cluster unique identifier, a cluster configuration file, a cluster monitoring address and a start-stop instruction of a cluster which are associated with the cluster list;
defining environment information for each cluster; wherein, an environmental information belongs to a cluster, and each cluster at least comprises an environmental information.
The embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of any of the embodiments of the present invention.
The present specification also provides a computing device comprising a memory having executable code stored therein and a processor which, when executing the executable code, implements the method of any of the embodiments of the present solution.
It will be appreciated that the architecture illustrated in the present embodiment does not constitute a specific limitation on the application deployment apparatus of the cluster. In other embodiments of the specification, clustered application deployment apparatuses may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
It is noted that 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 statement "comprises one" does not exclude that an additional identical element is present in a process, method, article or apparatus that comprises the element.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: various media in which program code may be stored, such as ROM, RAM, magnetic or optical disks.
The content of information interaction and execution process between the units in the device is based on the same conception as the method embodiment of the present invention, and specific content can be referred to the description of the method embodiment of the present invention, which is not repeated here.
Those skilled in the art will appreciate that in one or more of the examples described above, the functionality described in the present solution may be implemented in hardware, software, a pendant, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
The above embodiments are further described in detail for the purposes, technical solutions and beneficial effects of the present invention, and it should be understood that the above embodiments are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (2)

1. The application deployment method of the cluster is characterized by comprising the following steps:
acquiring application information of cluster applications to be deployed;
acquiring the cluster application to be deployed from a predefined application according to the application information;
acquiring a deployment template of the cluster application to be deployed;
according to the application information, information configuration is carried out in the deployment template;
acquiring target environment information for deploying the cluster application to be deployed after information configuration from predefined environment information;
determining cluster deployment information of the cluster application to be deployed according to the target environment information;
deploying the cluster application to be deployed according to the cluster deployment information;
the information configuration in the deployment template according to the application information comprises the following steps:
configuring application configuration information and model configuration information related to the application information in the deployment template according to the application information;
the application configuration information includes: application name, application version, associated model identification, model version, application state, template type, and template path;
and/or the number of the groups of groups,
the model configuration information includes: template type, template version, component type, and modifiable attribute set;
determining cluster deployment information of the cluster application to be deployed according to the target environment information, including:
determining cluster information of a determined cluster according to the target environment information;
determining data center information according to the cluster information;
determining cluster deployment information of the cluster application to be deployed by utilizing the data center information, the cluster information and the target environment information;
defining the environment information, including:
defining at least one data center; wherein the attributes of the data center include: a data center name and cluster list;
for each data center:
adding at least one cluster in a current data center; wherein the attributes of the cluster include: a cluster unique identifier, a cluster configuration file, a cluster monitoring address and a start-stop instruction of a cluster which are associated with the cluster list;
defining environment information for each of the clusters; wherein, an environmental information belongs to a cluster, and each cluster at least comprises an environmental information.
2. An application deployment apparatus for a cluster, comprising: the system comprises an application information acquisition module, a cluster application acquisition module, a deployment template acquisition module, an information configuration module, an environment information acquisition module, a deployment information determination module and a deployment module;
the application information acquisition module is used for acquiring application information of the cluster application to be deployed;
the cluster application acquisition module is used for acquiring the cluster application to be deployed from a predefined application according to the application information acquired by the application information acquisition module;
the deployment template acquisition module is used for acquiring the deployment template of the cluster application to be deployed, which is acquired by the cluster application acquisition module;
the information configuration module is used for carrying out information configuration in the deployment template acquired by the deployment template acquisition module according to the application information;
the environment information acquisition module is used for acquiring target environment information for deploying the cluster application to be deployed after the information configuration module is used for configuring the information from the predefined environment information;
the deployment information determining module is used for determining cluster deployment information of the cluster application to be deployed according to the target environment information acquired by the environment information acquiring module;
the deployment module is used for deploying the cluster application to be deployed according to the cluster deployment information determined by the deployment information determination module;
the information configuration module is used for configuring application configuration information and model configuration information related to the application information in the deployment template according to the application information;
the information configuration module, when executing an operation of configuring application configuration information and model configuration information related to the application information in the deployment template according to the application information,
the application configuration information includes: application name, application version, associated model identification, model version, application state, template type, and template path;
and/or the number of the groups of groups,
the model configuration information includes: template type, template version, component type, and modifiable attribute set;
the deployment information determining module is configured to perform the following operations:
determining cluster information of a determined cluster according to the target environment information;
determining data center information according to the cluster information;
determining cluster deployment information of the cluster application to be deployed by utilizing the data center information, the cluster information and the target environment information;
further comprises: an environmental information definition module;
the environment information definition module is used for executing the following operations:
defining at least one data center; wherein the attributes of the data center include: a data center name and cluster list;
for each data center:
adding at least one cluster in a current data center; wherein the attributes of the cluster include: a cluster unique identifier, a cluster configuration file, a cluster monitoring address and a start-stop instruction of a cluster which are associated with the cluster list;
defining environment information for each of the clusters; wherein, an environmental information belongs to a cluster, and each cluster at least comprises an environmental information.
CN202110841799.7A 2021-07-26 2021-07-26 Cluster application deployment method and device Active CN113722045B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110841799.7A CN113722045B (en) 2021-07-26 2021-07-26 Cluster application deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110841799.7A CN113722045B (en) 2021-07-26 2021-07-26 Cluster application deployment method and device

Publications (2)

Publication Number Publication Date
CN113722045A CN113722045A (en) 2021-11-30
CN113722045B true CN113722045B (en) 2023-06-16

Family

ID=78673943

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110841799.7A Active CN113722045B (en) 2021-07-26 2021-07-26 Cluster application deployment method and device

Country Status (1)

Country Link
CN (1) CN113722045B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118092979A (en) * 2024-04-17 2024-05-28 浪潮通用软件有限公司 Cluster application reconstruction method and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515628A (en) * 2019-08-09 2019-11-29 济南浪潮数据技术有限公司 Using dispositions method and device
CN111866149A (en) * 2020-07-23 2020-10-30 平安证券股份有限公司 Cluster deployment method and device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11579941B2 (en) * 2019-05-05 2023-02-14 Mastercard International Incorporated Control cluster for multi-cluster container environments

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515628A (en) * 2019-08-09 2019-11-29 济南浪潮数据技术有限公司 Using dispositions method and device
CN111866149A (en) * 2020-07-23 2020-10-30 平安证券股份有限公司 Cluster deployment method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN113722045A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN113034095B (en) Man-machine interaction method and device combining RPA and AI, storage medium and electronic equipment
US10303450B2 (en) Systems and methods for a policy-driven orchestration of deployment of distributed applications
US8429645B2 (en) Method for optimizing migration of software applications to address needs
US20180095730A1 (en) Optimizing Performance of Applications Driven by Microservices Architecture
CN107707614B (en) System hop protocol-based app routing implementation method, device and storage medium
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN112269640B (en) Method for realizing life cycle management of container cloud component
CN108804300A (en) Automated testing method and system
CN104881343A (en) Testing method and testing system
CN110851234A (en) Log processing method and device based on docker container
CN104699503A (en) Method and device for replacing function execution logic in Android system
CN113722045B (en) Cluster application deployment method and device
CN112615758A (en) Application identification method, device, equipment and storage medium
CN109684028B (en) Method, device and equipment for separating operating system from user data
US20190087160A1 (en) System and method for creating domain specific language
CN106371931B (en) A kind of high-performance geoscience computing service system based on Web frame
US20200304383A1 (en) Generation of templates for cloud computing platforms
CN113626095A (en) Switching method and switching system of configuration center, electronic equipment and storage medium
KR20210040311A (en) Method, apparatus, device and storage medium for customizing personalized rules for entities
CN110018866B (en) User interface theme updating method, device and system, vehicle machine and vehicle
CN112558968A (en) Resource tree view generation method, device, equipment and storage medium
US9696987B2 (en) Complex computer environment installation
US8347299B2 (en) Association and scheduling of jobs using job classes and resource subsets
CN110018831A (en) Program processing method, device and Related product
CN111352664A (en) Distributed machine learning task starting method, system, equipment and storage medium

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