CN113190239B - Method for rapidly deploying industrial application - Google Patents
Method for rapidly deploying industrial application Download PDFInfo
- Publication number
- CN113190239B CN113190239B CN202110554229.XA CN202110554229A CN113190239B CN 113190239 B CN113190239 B CN 113190239B CN 202110554229 A CN202110554229 A CN 202110554229A CN 113190239 B CN113190239 B CN 113190239B
- Authority
- CN
- China
- Prior art keywords
- industrial application
- deployment
- instance
- industrial
- kubernetes
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000003860 storage Methods 0.000 claims description 10
- 238000007726 management method Methods 0.000 claims description 4
- 230000001419 dependent effect Effects 0.000 claims description 3
- 230000002085 persistent effect Effects 0.000 claims description 3
- 230000000007 visual effect Effects 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 4
- 238000011161 development Methods 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000013508 migration Methods 0.000 abstract description 2
- 230000005012 migration Effects 0.000 abstract description 2
- 238000004806 packaging method and process Methods 0.000 abstract description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000005096 rolling process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of computer technology, in particular to a method for rapidly deploying industrial application, which improves the application efficiency to the maximum extent, simultaneously eliminates the migration cost caused by platform difference, improves the speed of deploying and operating industrial Internet application by a developer and reduces the operation and maintenance cost of the application by carrying out secondary development on Kubernates frames and abstracting and packaging the concepts of application and instance; the method comprises the following steps: s1, firstly, abstracting industrial application; s2, after abstraction, defining the concept of the instance; s3, parameterizing the running requirements of industrial applications according to the abstract concepts in the S1, and defining templates required by different industrial application running; s4, adding platform related animation in the deployment file of the instance; s5, generating a complete Kubernetes deployment file according to parameters input by a user and combining the template file in the step S3, storing the complete Kubernetes deployment file in an example, and sending the generated deployment file to APISERVER through an HTTPPOST request to realize quick deployment of industrial application.
Description
Technical Field
The invention relates to the technical field of computer technology, in particular to a method for rapidly deploying industrial application.
Background
In the trend of industrial internetworking, the development and deployment of industrial internet applications (industrial applications) is one of the most important of these.
Compared with the general Internet application, the application in the industrial Internet field has industrial properties and has high coupling with each link service in industrial production. Because of part of the historical carryover reasons, on the one hand, industry has a large number of different communication protocols to correspond to different companies or different classes of products; on the other hand, the deployment and the operation of industrial application are faced with the complex problem of adapting to hosts of different platforms and different environments, wherein the work such as debugging, environment adaptation and the like is a very time-consuming link in the whole flow; during operation and maintenance of the third aspect, the operation and maintenance costs are high, including the problems of electric energy consumption, labor cost and the like.
Disclosure of Invention
In order to solve the technical problems, the invention provides a method for rapidly deploying industrial application, which improves the application efficiency to the maximum extent, simultaneously eliminates the migration cost caused by platform difference, improves the speed of deploying and operating industrial Internet application by a developer and reduces the operation and maintenance cost of the application by carrying out secondary development on Kubernates frames and abstracting and packaging the concepts of application and instance.
The invention discloses a method for rapidly deploying industrial application, which comprises the following steps:
s1, in order to achieve the aim of rapid deployment, firstly, abstracting industrial applications, extracting the same parts of all the industrial applications, and obtaining abstract concepts;
S2, after abstraction, defining an instance concept, associating the abstract concept with industrial application, and applying for and using bottom hardware resources including CPU, memory, storage and network resources by the resource management method provided by k 8S;
S3, parameterizing the running requirements of industrial applications according to the abstract concepts in the S1, and defining templates required by different industrial application running;
s4, tracking and inquiring the running state of the related application are provided by defining anotation in k8S, and platform related animation is added in the deployment file of the instance;
S5, generating a complete Kubernetes deployment file according to parameters input by a user and combining the template file in the step S3, storing the complete Kubernetes deployment file in an example, and transmitting the generated deployment file to APISERVER through an HTTP POST request by interacting with APISERVER components of the Kubernetes during deployment, so that the industrial application customized by the user is rapidly deployed in the Kubernetes cluster, and rapid deployment of the industrial application is realized.
In the method for rapidly deploying industrial application, in the step S1, abstract concepts comprise a run time running environment, CPU and memory use requirements, persistent storage use requirements, external service ports and other dependent service resources.
In the step S2, the definition of the example is as follows:
Wherein the InstanceRevision (historical version information) of the instance stores yaml files deployed in the Kubernetes cluster for controlling the use of underlying computing resources by the Kubernetes;
The above-described manifest field encapsulates a Kubernetes deployment file, an example of which is as follows:
This deployment file contains hundreds of different configuration fields, hiding complex yaml files using the concept of an instance; different abstract concepts required by the rapid deployment of the industrial application in the S1 are in one-to-one correspondence with kubernetes deployment files according to the following modes:
(1) The image field describes the industrial application run-time environment;
(2) The resources field describes the CPU memory resources required for the industrial application to run;
(3) The port field describes the external port number exposed by the industrial application running;
(4) Section PersistentVolumeClaim describes the storage resources required for the industrial application to run;
(5) The Service section describes external services on which the industrial application runs;
by way of example this concept, a complex Kubernetes deployment file is presented to the user in a clear and understandable manner.
The invention discloses a method for rapidly deploying industrial application, which comprises the following steps of:
examples of template files are as follows:
The fields represented by the ${ } symbol are parameters required by running industrial applications, and a user only needs to fill the parameters according to proper visual guidance, so that the rapid deployment of the industrial applications is realized, complex Kubernetes deployment files do not need to be processed, and meanwhile, the powerful cloud native ecology provided by the Kubernetes system can be used, and the multi-environment deployment and capacity expansion of the platform can be realized through the templatization definition of a single industrial application.
The invention discloses a method for rapidly deploying industrial application, which comprises the following specific steps in the step S4:
adc.htres.cn/user-id:"${USER_ID}"
adc.htres.cn/instance-id:"${INSTANCE_ID}"
where $ { USER_ID } is the owner ID of the INSTANCE, representing the owner of the resource, $ { INSTANCE_ID } is the ID of the INSTANCE, representing a specific unique identification of the resource, through which the running state and resource consumption data for the INSTANCE are located.
Compared with the prior art, the invention has the beneficial effects that: the industrial Internet application developer can realize quick deployment of the industrial Internet application developed by the industrial Internet application developer, manage the application running state, and simultaneously can use a series of functions of Kubernetes powerful cloud primitive ecology, including elastic capacity expansion, physical resource management, rolling upgrading, monitoring alarm and the like, so that the developer is helped to deploy and run the own industrial application in a faster and more efficient mode.
Detailed Description
The following describes the embodiments of the present invention in further detail with reference to examples. The following examples are illustrative of the invention and are not intended to limit the scope of the invention.
The invention discloses a method for rapidly deploying industrial application, which comprises the following steps:
s1, in order to achieve the aim of rapid deployment, firstly, abstracting industrial applications, extracting the same parts of all the industrial applications, and obtaining abstract concepts;
S2, after abstraction, defining an instance concept, associating the abstract concept with industrial application, and applying for and using bottom hardware resources including CPU, memory, storage and network resources by the resource management method provided by k 8S;
S3, parameterizing the running requirements of industrial applications according to the abstract concepts in the S1, and defining templates required by different industrial application running;
s4, tracking and inquiring the running state of the related application are provided by defining anotation in k8S, and platform related animation is added in the deployment file of the instance;
S5, generating a complete Kubernetes deployment file according to parameters input by a user and combining the template file in the step S3, storing the complete Kubernetes deployment file in an example, and transmitting the generated deployment file to APISERVER through an HTTP POST request by interacting with APISERVER components of the Kubernetes during deployment, so that the industrial application customized by the user is rapidly deployed in the Kubernetes cluster, and rapid deployment of the industrial application is realized.
In the method for rapidly deploying industrial application, in step S1, abstract concepts comprise a run time operating environment, CPU and memory use requirements, persistent storage use requirements, external service ports and other dependent service resources.
In the method for rapidly deploying industrial application, in step S2, the definition of an example is as follows:
wherein InstanceRevision (historical version information) of the instance stores yaml files deployed in the Kubernetes cluster, which are used for controlling the Kubernetes to use underlying computing resources (such as CPU, memory, storage, network resources, etc.);
InstanceRevision is defined as follows:
The above-described manifest field encapsulates a Kubernetes deployment file, an example of which is as follows:
The deployment file contains hundreds of different configuration fields, has a high learning threshold for an entry user, and uses the concept of an example to hide a complex yaml file; different abstract concepts required by the rapid deployment of the industrial application in the S1 are in one-to-one correspondence with kubernetes deployment files according to the following modes:
(1) The image field describes the industrial application run-time environment;
(2) The resources field describes the CPU memory resources required for the industrial application to run;
(3) The port field describes the external port number exposed by the industrial application running;
(4) Section PersistentVolumeClaim describes the storage resources required for the industrial application to run;
(5) The Service section describes external services on which the industrial application runs;
by way of example this concept, a complex Kubernetes deployment file is presented to the user in a clear and understandable manner.
The invention relates to a method for rapidly deploying industrial application, which comprises the following steps of:
examples of template files are as follows:
The fields represented by the ${ } symbol are parameters required by running industrial applications, and a user only needs to fill the parameters according to proper visual guidance, so that the rapid deployment of the industrial applications is realized, complex Kubernetes deployment files do not need to be processed, and meanwhile, the powerful cloud native ecology provided by the Kubernetes system can be used, and the multi-environment deployment and capacity expansion of the platform can be realized through the templatization definition of a single industrial application.
The invention relates to a method for rapidly deploying industrial application, which comprises the following specific steps in step S4:
adc.htres.cn/user-id:"${USER_ID}"
adc.htres.cn/instance-id:"${INSTANCE_ID}"
where $ { USER_ID } is the owner ID of the INSTANCE, representing the owner of the resource, $ { INSTANCE_ID } is the ID of the INSTANCE, representing a specific unique identification of the resource, through which the running state and resource consumption data for the INSTANCE are located.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that modifications and variations can be made without departing from the technical principles of the present invention, and these modifications and variations should also be regarded as the scope of the invention.
Claims (4)
1. A method for rapid deployment of an industrial application, comprising the steps of:
s1, in order to achieve the aim of rapid deployment, firstly, abstracting industrial applications, extracting the same parts of all the industrial applications, and obtaining abstract concepts;
S2, after abstraction, defining an instance concept, associating the abstract concept with industrial application, and applying for and using bottom hardware resources including CPU, memory, storage and network resources by the resource management method provided by k 8S;
S3, parameterizing the running requirements of industrial applications according to the abstract concepts in the S1, and defining templates required by different industrial application running;
s4, tracking and inquiring the running state of the related application are provided by defining anotation in k8S, and platform related animation is added in the deployment file of the instance;
S5, generating a complete Kubernetes deployment file according to parameters input by a user and combining the template file in the step S3, storing the complete Kubernetes deployment file in an example, and transmitting the generated deployment file to APISERVER through an HTTP POST request by interacting with APISERVER components of the Kubernetes during deployment, so that the industrial application customized by the user is rapidly deployed in a Kubernetes cluster, and rapid deployment of the industrial application is realized;
different abstract concepts required by the rapid deployment of the industrial application in the S1 are in one-to-one correspondence with kubernetes deployment files according to the following mode:
The image field describes the industrial application run-time environment;
The resources field describes the CPU memory resources required for the industrial application to run;
The port field describes the external port number exposed by the industrial application running;
section PersistentVolumeClaim describes the storage resources required for the industrial application to run;
the Service section describes external services on which the industrial application runs;
by way of example this concept, a complex Kubernetes deployment file is presented to the user in a clear and understandable manner.
2. The method for rapidly deploying industrial application according to claim 1, wherein in step S1, the abstract concept comprises a run time environment, CPU and memory use requirements, persistent storage use requirements, external service ports and other dependent service resources.
3. The method for rapidly deploying industrial applications according to claim 2, wherein the step S3 includes a template file, wherein the fields represented by ${ } symbols in the template file are parameters required by running industrial applications, and the user only needs to fill in the parameters according to proper visual guidance, so that rapid deployment of industrial applications can be realized, complex Kubernetes deployment files do not need to be processed, and powerful cloud primitive ecology provided by a Kubernetes system can be used, so that multi-environment deployment and capacity expansion of a platform can be realized through templatization definition of a single industrial application.
4. A method for rapid deployment of industrial applications according to claim 3, wherein in step S4, the specific steps are as follows:
adc.htres.cn/user-id: "${USER_ID}"
adc.htres.cn/instance-id: "${INSTANCE_ID}"
where $ { USER_ID } is the owner ID of the INSTANCE, representing the owner of the resource, $ { INSTANCE_ID } is the ID of the INSTANCE, representing a specific unique identification of the resource, through which the running state and resource consumption data for the INSTANCE are located.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110554229.XA CN113190239B (en) | 2021-05-20 | 2021-05-20 | Method for rapidly deploying industrial application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110554229.XA CN113190239B (en) | 2021-05-20 | 2021-05-20 | Method for rapidly deploying industrial application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113190239A CN113190239A (en) | 2021-07-30 |
CN113190239B true CN113190239B (en) | 2024-05-24 |
Family
ID=76982727
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110554229.XA Active CN113190239B (en) | 2021-05-20 | 2021-05-20 | Method for rapidly deploying industrial application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113190239B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040079337A (en) * | 2004-03-06 | 2004-09-14 | 마이크로소프트 코포레이션 | Architecture for distributed computing system and automated design, deployment, and management of distributed applications |
JP2004272912A (en) * | 2003-03-06 | 2004-09-30 | Microsoft Corp | Architecture for distributed computing system and automated design, development and management of distributed application |
EP2177986A1 (en) * | 2008-09-30 | 2010-04-21 | ICS Triplex ISaGRAF Inc. | Application builder for industrial automation |
EP3506603A1 (en) * | 2017-12-28 | 2019-07-03 | Atos Integration | Method for the development of an ontology adapted to a specific industrial domain |
WO2019184164A1 (en) * | 2018-03-30 | 2019-10-03 | 平安科技(深圳)有限公司 | Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium |
CN110768833A (en) * | 2019-10-25 | 2020-02-07 | 北京宝兰德软件股份有限公司 | Application arrangement and deployment method and device based on kubernets |
-
2021
- 2021-05-20 CN CN202110554229.XA patent/CN113190239B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004272912A (en) * | 2003-03-06 | 2004-09-30 | Microsoft Corp | Architecture for distributed computing system and automated design, development and management of distributed application |
KR20040079337A (en) * | 2004-03-06 | 2004-09-14 | 마이크로소프트 코포레이션 | Architecture for distributed computing system and automated design, deployment, and management of distributed applications |
EP2177986A1 (en) * | 2008-09-30 | 2010-04-21 | ICS Triplex ISaGRAF Inc. | Application builder for industrial automation |
EP3506603A1 (en) * | 2017-12-28 | 2019-07-03 | Atos Integration | Method for the development of an ontology adapted to a specific industrial domain |
WO2019184164A1 (en) * | 2018-03-30 | 2019-10-03 | 平安科技(深圳)有限公司 | Method for automatically deploying kubernetes worker node, device, terminal apparatus, and readable storage medium |
CN110768833A (en) * | 2019-10-25 | 2020-02-07 | 北京宝兰德软件股份有限公司 | Application arrangement and deployment method and device based on kubernets |
Non-Patent Citations (2)
Title |
---|
云应用部署配置模型;姬源;黄育松;谢冬;王向东;;计算机系统应用(05);全文 * |
基于OpenStack和Kubernetes的双向部署技术研究;杜磊;;电脑知识与技术(01);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113190239A (en) | 2021-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107431651B (en) | Life cycle management method and equipment for network service | |
US20020069400A1 (en) | System for reusable software parts for supporting dynamic structures of parts and methods of use | |
CN105512083A (en) | YARN based resource management method, device and system | |
Doyu et al. | A tinymlaas ecosystem for machine learning in iot: Overview and research challenges | |
US11941375B2 (en) | Application program for extension and deployment of integrated and exportable cross platform digital twin model | |
WO2007071116A1 (en) | Managing device models in a virtual machine cluster environment | |
CN113342472A (en) | Micro-service cluster creating method and device, electronic equipment and readable storage medium | |
CN112965721B (en) | Project compiling method and device based on Android, computer equipment and storage medium | |
US20200065670A1 (en) | Transferable training for automated reinforcement-learning-based application-managers | |
CN113190239B (en) | Method for rapidly deploying industrial application | |
CN115048112A (en) | Micro-service deployment method, device, electronic equipment and storage medium | |
CN116434040A (en) | RISC-V (reduced instruction set computer-virtual machine) architecture-oriented real-time target detection method and system | |
US20070006225A1 (en) | System and method for converting a target computing device to a virtual machine | |
CN106951288B (en) | Development and application method and device of hot upgrade resource | |
US20170222944A1 (en) | Computing resource deployment in non-mutually configurable environments | |
CN109683879B (en) | Front-end component processing method and device | |
US6321273B1 (en) | Method and apparatus using parameterized vectors for converting interface definition language-defined data structures into a transport and platform independent format | |
CN115237457A (en) | AI application operation method and related product | |
US20230110520A1 (en) | Ui service package generation and registration method and apparatus, and ui service loading method and apparatus | |
US11671325B1 (en) | Determining IoT device compatibility with deployments | |
Henderson | Business processes, legacy systems and a fully flexible future | |
CN116860353B (en) | Data processing method, device, electronic equipment and storage medium | |
US11237863B2 (en) | Method for leveraging the virtual hardware resources physically located on the server by means of the mobile electronic module provided with the peripheral device connection ports | |
CN112346820B (en) | Blockchain JVM application method, device and storage medium | |
CN117093227B (en) | Method and device for executing intelligent contract |
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 |