CN111880811A - Method for realizing resource arrangement of cloud platform - Google Patents

Method for realizing resource arrangement of cloud platform Download PDF

Info

Publication number
CN111880811A
CN111880811A CN202010749867.2A CN202010749867A CN111880811A CN 111880811 A CN111880811 A CN 111880811A CN 202010749867 A CN202010749867 A CN 202010749867A CN 111880811 A CN111880811 A CN 111880811A
Authority
CN
China
Prior art keywords
resource
template
terraform
cloud platform
service
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.)
Pending
Application number
CN202010749867.2A
Other languages
Chinese (zh)
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 Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud Information Technology 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 Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN202010749867.2A priority Critical patent/CN111880811A/en
Publication of CN111880811A publication Critical patent/CN111880811A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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
    • 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
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

The invention discloses a method for realizing resource arrangement of a cloud platform, which relates to the technical field of resource management; according to a resource configuration template required by a user, a Terraform template which can be identified by Terraform is created through conversion, a corresponding resource application is installed by utilizing a cloud-init tool in a cloud platform according to the Terraform template, and the deployment of the application in the resource is automatically executed.

Description

Method for realizing resource arrangement of cloud platform
Technical Field
The invention discloses a method for realizing resource arrangement of a cloud platform, relates to the technical field of resource management, and particularly relates to a method for realizing resource arrangement of the cloud platform based on Terraform and cloud-init.
Background
With the rapid development of cloud computing technology, more and more government agencies, enterprises and individuals migrate applications from a traditional computing center to a cloud center, so that more and more applications are deployed on a cloud platform, and manual installation of application resources is more complicated, which is not used for high-availability expansion of the application resources of the cloud platform, and meanwhile, the operation cost of the cloud platform is increased.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides the method for realizing the resource arrangement of the cloud platform, which has the characteristics of strong universality, simple and convenient implementation and the like and has wide application prospect.
The specific scheme provided by the invention is as follows:
a method for realizing resource arrangement of a cloud platform comprises the steps of converting and creating a Terraform template which can be identified by Terraform according to a resource configuration template required by a user,
and installing corresponding resource application by utilizing a cloud-init tool in the cloud platform according to the Terraform template, and automatically executing the deployment of the application in the resource.
The method for realizing the resource arrangement of the cloud platform adopts a micro-service architecture to realize the resource arrangement of the cloud platform.
The method for realizing the resource arrangement of the cloud platform utilizes the micro-service architecture to interact with users through front-end micro-services, receives a resource configuration template required by the users,
and creating a Terraform template which can be identified by the Terraform through back-end micro-service conversion, installing corresponding resource application by utilizing a cloud-init tool in the cloud platform according to the Terraform template, and automatically executing the deployment of the application in the resource.
According to the implementation method for arranging the resources of the cloud platform, the received resource configuration template is checked and analyzed through the back-end micro-service, the quantity and the type of the created resources are controlled, the created resource parameters are replaced according to the resource configuration template, the resource stack and the resource configuration template are bound, and the resource configuration template is converted into the Terraform template.
A cloud platform resource arrangement realizing system comprises a business logic module and a management module,
the service logic module converts and creates a Terraform template which can be identified by Terraform according to a resource configuration template required by a user,
and the management module installs corresponding resource application by utilizing a cloud-init tool in the cloud platform according to the Terraform template, and automatically executes the deployment of the application in the resource.
The cloud platform resource arrangement implementation system adopts a micro-service architecture and utilizes a service logic module and a management module to implement cloud platform resource arrangement.
The service logic module in the implementation system for arranging the cloud platform resources comprises a template management module, a resource stack management module and a service arrangement engine module
The template management module checks and analyzes the received resource configuration template, controls the quantity and types of resource creation,
the resource stack management module replaces the created resource parameters according to the resource configuration template, binds the resource stack and the resource configuration template,
the service orchestration engine module converts the resource configuration template into a Terraform template.
An implementation apparatus for resource orchestration of a cloud platform, comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is used for calling the machine readable program and executing the implementation method of the cloud platform resource arrangement.
The invention has the advantages that:
the invention provides a method for realizing resource arrangement of a cloud platform, which is characterized in that a user resource template is converted into a Terraform template based on the function of automatically creating resources according to a template edited by a user by the Terraform, the required resources can be created when the user needs the resources, meanwhile, the function of installing application in the cloud platform server resources is based on cloud-init, and after the cloud server resources are created and arranged, the cloud-init can automatically install the application according to installation application script parameters transmitted by the user, so that the aims of automatically creating the resources and automatically deploying the application are fulfilled, the resources are created as required, the application is installed, the actual utilization rate of the resources is improved, and the operation cost is effectively reduced.
Drawings
FIG. 1 is a schematic flow diagram of the process of the present invention;
fig. 2 is a schematic diagram of the system framework of the present invention.
Detailed Description
Terraform is an automatic arrangement tool for efficient construction, modification and version control infrastructure of an open source, and dynamic creation, deletion and application installation of resources are realized by editing templates and installing script files of applications and maintaining resource states. The Terraform can provide corresponding provider plug-ins through the cloud platform, and automatic arrangement management of resources on the cloud platform is achieved.
The cloud-init is a tool specially developed for initialization of the virtual machine in the cloud environment, and is used for reading relevant data from various data sources when the virtual machine is created and started, and performing custom configuration on the virtual machine according to the relevant data.
The objects for automatically creating resources and installing applications are resources on a user cloud platform, and comprise a cloud server, a cloud hard disk, an elastic IP and the like.
The present invention is further described below in conjunction with the following figures and specific examples so that those skilled in the art may better understand the present invention and practice it, but the examples are not intended to limit the present invention.
The invention provides a method for realizing resource arrangement of a cloud platform, which comprises the steps of converting and creating a Terraform template recognizable by Terraform according to a resource configuration template required by a user,
and installing corresponding resource application by utilizing a cloud-init tool in the cloud platform according to the Terraform template, and automatically executing the deployment of the application in the resource.
The method has the advantages that the problem of manually creating resources when a user needs the resources is well solved based on the function of automatically creating the resources by the Terraform according to the template edited by the user, meanwhile, the function of installing the application in the cloud server resources based on the cloud-init is realized, after the cloud server resources are created according to the Terraform template, the cloud-init can automatically install the application according to the installation application script parameters transmitted by the user in the Terraform template, and the purposes of automatically creating the resources and automatically deploying the application are achieved.
In one embodiment of the method of the present invention, the resource arrangement is performed by using a technical architecture of microservice, and the specific process is as follows:
the front-end application microservice Ros-front is used for interacting with the user, receiving the template and script file configured by the user, transmitting the template and script file to the service logic layer for processing, presenting the processing result to the user,
the method comprises the steps of using a back-end micro-Service AS-Service to receive a resource creation template and an application deployment script file transmitted by a front-end micro-Service, converting the template into a template file recognizable by the Terraform by checking the resource template and replacing a creation parameter of the deployment script, calling a corresponding management micro-Service by using the converted template file, deploying a Terraform tool of an Inspurloud provider plugin by the management micro-Service, receiving the template file and the parameter recognizable by the Terraform, and realizing resource arrangement management of products such AS a cloud server, a cloud hard disk, an EIP and the like on a cloud platform.
In another embodiment of the method of the present invention, based on the above embodiment, the resource arrangement and application deployment process is specifically implemented by using each module under the microservice architecture:
wherein, in the back-end micro Service AS-Service, a template management module is used for configuring a template for receiving user resources, carrying out verification, analysis and the like, and storing the template into a database, the template management module can also control the creating quantity and type of cloud resources,
replacing the created resource parameters by using a resource stack management module according to the template, binding the relationship between the resource stack and the template, wherein the resource stack is a group of resources which are defined in the template and are to be created,
converting the resource configuration template file by using a service arranging engine module, executing the conversion of the script file into a value of a cloud server creation parameter user _ data through a Terraform internal function, converting the resource configuration template and the script file into a Terraform recognizable basic resource template, namely a Terraform template,
then, a Terraform execution program and a cloud platform Terraform plugin are built in the Terraform engine module, a cloud base resource API can be integrated in the Terraform plugin, the Terraform command is used for executing the Terraform plugin, dynamic creation of resources on the cloud platform is realized, management of resource arrangement is carried out,
and meanwhile, the deployment of the application in the resource is realized by reading the script file in the user _ data parameter transmitted when the cloud server is established by utilizing a cloud-init tool in the cloud server.
The invention also provides a system for realizing the resource arrangement of the cloud platform, which comprises a service logic module and a management module,
the service logic module converts and creates a Terraform template which can be identified by Terraform according to a resource configuration template required by a user,
and the management module installs corresponding resource application by utilizing a cloud-init tool in the cloud platform according to the Terraform template, and automatically executes the deployment of the application in the resource.
The information interaction, execution process and other contents between the modules in the system are based on the same concept as the method embodiment of the present invention, and specific contents can be referred to the description in the method embodiment of the present invention, and are not described herein again.
It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution sequence of the steps is not fixed, and can be adjusted according to the needs. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.
The invention also provides a device for realizing the resource arrangement of the cloud platform, which comprises the following components: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is used for calling the machine readable program and executing the implementation method of the cloud platform resource arrangement. Because the device information interaction, execution process and other contents are based on the same conception as the method embodiment of the present invention, specific contents can be referred to the description in the method embodiment of the present invention, and are not described herein again.
Further, it should be clear that not only the program code read out by the computer can be executed by the processor, but also a part or all of the actual operations can be accomplished by the operating system or the like operating on the computer by the processor based on the instructions of the program code, thereby realizing the functions of any of the above-described embodiments.
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.

Claims (8)

1. A method for realizing resource arrangement of a cloud platform is characterized in that a Terraform template which can be identified by Terraform is converted and created according to a resource configuration template required by a user,
and installing corresponding resource application by utilizing a cloud-init tool in the cloud platform according to the Terraform template, and automatically executing the deployment of the application in the resource.
2. The method as claimed in claim 1, wherein the cloud platform resource arrangement is implemented by using a micro service architecture.
3. The method as claimed in claim 2, wherein the micro-service architecture is utilized to interact with the user through the front-end micro-service to receive the resource allocation template required by the user,
and creating a Terraform template which can be identified by the Terraform through back-end micro-service conversion, installing corresponding resource application by utilizing a cloud-init tool in the cloud platform according to the Terraform template, and automatically executing the deployment of the application in the resource.
4. The method for implementing resource orchestration of the cloud platform according to claim 3, wherein a back-end micro service is used to check and analyze the received resource configuration template, control the number and types of resource creation, replace the created resource parameters according to the resource configuration template, bind the resource stack and the resource configuration template, and convert the resource configuration template into a Terraform template.
5. A cloud platform resource arrangement realizing system is characterized by comprising a service logic module and a management module,
the service logic module converts and creates a Terraform template which can be identified by Terraform according to a resource configuration template required by a user,
and the management module installs corresponding resource application by utilizing a cloud-init tool in the cloud platform according to the Terraform template, and automatically executes the deployment of the application in the resource.
6. The system according to claim 5, wherein the cloud platform resource arrangement is implemented by using a service logic module and a management module under a micro-service architecture.
7. The system of claim 6, wherein the service logic module comprises a template management module, a resource stack management module, and a service arrangement engine module
The template management module checks and analyzes the received resource configuration template, controls the quantity and types of resource creation,
the resource stack management module replaces the created resource parameters according to the resource configuration template, binds the resource stack and the resource configuration template,
the service orchestration engine module converts the resource configuration template into a Terraform template.
8. An implementation device for arranging resources of a cloud platform is characterized by comprising: at least one memory and at least one processor;
the at least one memory to store a machine readable program;
the at least one processor is configured to invoke the machine readable program to execute the method for implementing the cloud platform resource orchestration according to any one of claims 1 to 4.
CN202010749867.2A 2020-07-30 2020-07-30 Method for realizing resource arrangement of cloud platform Pending CN111880811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010749867.2A CN111880811A (en) 2020-07-30 2020-07-30 Method for realizing resource arrangement of cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010749867.2A CN111880811A (en) 2020-07-30 2020-07-30 Method for realizing resource arrangement of cloud platform

Publications (1)

Publication Number Publication Date
CN111880811A true CN111880811A (en) 2020-11-03

Family

ID=73205131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010749867.2A Pending CN111880811A (en) 2020-07-30 2020-07-30 Method for realizing resource arrangement of cloud platform

Country Status (1)

Country Link
CN (1) CN111880811A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220283A (en) * 2021-05-10 2021-08-06 国网陕西省电力公司信息通信公司 Internet of things APP development system based on cloud arrangement
US11818055B1 (en) 2022-05-31 2023-11-14 Walmart Apollo, Llc Systems and methods for automating resource deployment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113220283A (en) * 2021-05-10 2021-08-06 国网陕西省电力公司信息通信公司 Internet of things APP development system based on cloud arrangement
US11818055B1 (en) 2022-05-31 2023-11-14 Walmart Apollo, Llc Systems and methods for automating resource deployment

Similar Documents

Publication Publication Date Title
US11042471B2 (en) System and method for providing a test manager for use with a mainframe rehosting platform
US7437706B2 (en) Automating the life cycle of a distributed computing application
Ahmad et al. A framework for architecture-driven migration of legacy systems to cloud-enabled software
CN102866944B (en) Pressure testing system and method
US10140355B2 (en) Compiling extract, transform, and load job test data cases
CN104331366A (en) Test case design efficiency promotion method and system
CN101866315B (en) Test method and system of software development tool
CN103793259A (en) Virtual device generating and deploying method
CN103135979A (en) Method, device and system for generating terminal applications
CN101316185A (en) Method for positioning system resource bottleneck by analysis result based on log file
KR101418340B1 (en) Apparatus and method of formal verification of automotive operating system
CN111880811A (en) Method for realizing resource arrangement of cloud platform
Zhang et al. Towards building a multi‐datacenter infrastructure for massive remote sensing image processing
GB2587432A (en) System and method for software architecture redesign
WO2014056371A1 (en) Method and apparatus for determining range of files to be migrated
CN114818565A (en) Simulation environment management platform, method, equipment and medium based on python
US11960870B2 (en) Container image management
CN116149747A (en) Interface arrangement method, device, electronic equipment and computer readable storage medium
CN111782207A (en) Method, device and equipment for generating task stream code and storage medium
CN112181393B (en) Front-end and back-end code generation method and device, computer equipment and storage medium
CN109885493A (en) A kind of automation combination frame reflected based on Android platform and Java
CN100456238C (en) Method and apparatus for realizing distributed object persistence and compiling unit
CN110825452A (en) Cloud service adaptation module management method for multi-cloud management
US11726778B2 (en) Translating clusters of a monolith application to microservices
CN111708677A (en) Cloud hard disk usage amount acquisition method in cloud computing environment

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