CN110096258A - A method of the OpenStack infrastructure architecture management based on Terraform - Google Patents

A method of the OpenStack infrastructure architecture management based on Terraform Download PDF

Info

Publication number
CN110096258A
CN110096258A CN201910361045.4A CN201910361045A CN110096258A CN 110096258 A CN110096258 A CN 110096258A CN 201910361045 A CN201910361045 A CN 201910361045A CN 110096258 A CN110096258 A CN 110096258A
Authority
CN
China
Prior art keywords
template
terraform
infrastructure
architecture
openstack
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
CN201910361045.4A
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.)
Shandong Inspur Cloud Information Technology Co Ltd
Original Assignee
Shandong 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 Shandong Inspur Cloud Information Technology Co Ltd filed Critical Shandong Inspur Cloud Information Technology Co Ltd
Priority to CN201910361045.4A priority Critical patent/CN110096258A/en
Publication of CN110096258A publication Critical patent/CN110096258A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Abstract

A kind of method that the present invention proposes OpenStack infrastructure architecture management based on Terraform, including application deployment, the method for application deployment is as follows, S110, calls corresponding service interface according to the solicited message that user sends;S120, corresponding Terraform template is obtained from template warehouse by template engine, and solicited message is stored in ETCD;S130, pass through Terraform actuator according to cluster resource information corresponding in Terraform template, construct corresponding OpenStack infrastructure framework;S140, it is sent implementing result in RabbitMQ queue by Terraform actuator;S150, the message that specified queue in RabbitMQ queue is monitored by TOPIC, judge whether examples of architectures creates success according to the return message of monitoring.Infrastructure framework is disposed and is managed with code form by the present invention, and by being packaged to Terraform and OpenStack, the efficient deployment of OpenStack infrastructure framework may be implemented.

Description

A method of the OpenStack infrastructure architecture management based on Terraform
Technical field
The present invention relates to field of communication technology more particularly to a kind of OpenStack infrastructure framves based on Terraform Method, system and the computer readable storage medium of structure management.
Background technique
OpenStack is the cloud computing management platform project of an open source, provides intuitive easy-operating basis for user Facilities management function, including infrastructure creation, delete, update, the functions such as information inspection, user only need to by It is clicked in the WEB page of OpenStack, so that it may complete the operation such as creation, management, configuration of infrastructure, be user One-stop service is provided, the operation of user is simplified.However, if when the framework of infrastructure is more complicated, The operation done in the WEB page of OpenStack can be comparatively laborious;And when needing to create identical infrastructure framework, The WEB page of OpenStack needs to carry out the operation of identical complexity, considerably increases the work load of operation maintenance personnel.
Therefore a kind of method for needing OpenStack infrastructure architecture management, fast and easily operates to meet user Demand.
Summary of the invention
The present invention provide it is a kind of by the method for the OpenStack infrastructure architecture management of Terraform, system and based on Calculation machine readable storage medium storing program for executing, main purpose are to may be implemented by being packaged Terraform and OpenStack The deployment of OpenStack infrastructure framework, facilitates the management of cluster information.
To achieve the above object, the present invention provides a kind of OpenStack infrastructure architecture management based on Terraform System, which includes:
Service interface call unit, template acquiring unit, infrastructure framework construction unit, implementing result transmission unit, Judging unit;The service interface call unit calls corresponding service interface according to the solicited message that user sends;The mould Plate acquiring unit for obtaining corresponding Terraform template from template warehouse by template engine, and solicited message is stored Into ETCD;The infrastructure framework construction unit, for passing through Terraform actuator according in Terraform template Corresponding cluster resource information creates corresponding OpenStack infrastructure framework;The implementing result transmission unit, is used for It is sent implementing result in RabbitMQ queue by Terraform actuator;The judging unit, for passing through TOPIC The message for monitoring specified queue in RabbitMQ queue, judges whether examples of architectures creates success according to the return message of monitoring.
Further, preferred structure is that the OpenStack infrastructure framework includes back-end server ECS, loads Weigh SLB, VPC network, elastic public network EIP.
Further, preferred structure is that the thread pool size of the application is 10-20.
Further, preferred structure is that the infrastructure framework construction unit includes: that infrastructure framework building is single Member, infrastructure framework update subelement, infrastructure framework deletes subelement;The infrastructure architectures subelement, For completing infrastructure architectures;The infrastructure framework updates subelement, updates for completing infrastructure framework; The infrastructure framework deletes subelement, deletes for completing infrastructure framework.
Further, preferred structure is that the template acquiring unit includes infrastructure architecture template management subelement;Institute Stating infrastructure architecture template management subelement includes: template uploading module, for according to the demand of user, writing Terraform template file uploads to the Terraform template file in template warehouse, and using project name to not It is distinguished with architecture template;Template management module distinguishes pipe to the architecture template in the template warehouse by Tags Reason, to realize the one-to-one correspondence by project name and Tags and architecture template;Template modified module;By adjusting infrastructure Architecture information in framework carries out the modification of architecture template, and is modified the area of version using Tags to architecture template Point.
A kind of method that the present invention also protects OpenStack infrastructure architecture management based on Terraform, is applied to The method of electronic device, including application deployment, application deployment is as follows: S110, calling correspondence according to the solicited message that user sends Service interface;S120, corresponding Terraform template is obtained from template warehouse by template engine, and solicited message is deposited It is put into ETCD;S130, pass through Terraform actuator according to cluster resource information corresponding in Terraform template, building Corresponding OpenStack infrastructure framework;S140, RabbitMQ is sent for implementing result by Terraform actuator In queue;S150, the message that specified queue in RabbitMQ queue is monitored by TOPIC, judge according to the return message of monitoring Whether examples of architectures creates success.
Further, preferred method is that the method holding load of the infrastructure architecture management is balanced, and laterally deployment is answered Quantity is more than or equal to 2.
Further, preferred method be in step s 130, construct corresponding OpenStack infrastructure framework, including Creation, update and deletion to infrastructure framework.
Further, preferred method be further include the method to infrastructure architecture template management in the step s 120, Method and step is as follows: S210, according to the demand of user, writes Terraform template file, by the Terraform template text Part uploads in template warehouse, and is distinguished using project name to different architecture templates;S220, pass through Tags to the mould Architecture template in plate warehouse distinguishes management, to realize the one-to-one correspondence by project name and Tags and architecture template; S230, the modification that architecture template is carried out by adjusting the architecture information in infrastructure framework, and using Tags to framework Template is modified the differentiation of version.
The present invention also protects a kind of computer readable storage medium, includes being based in the computer readable storage medium The program of the OpenStack infrastructure architecture management of Terraform, the basis OpenStack based on Terraform are set When applying the program of architecture management and being executed by processor, the OpenStack infrastructure based on Terraform as described above is realized The step of method of architecture management.
Method, system and the calculating of OpenStack infrastructure architecture management proposed by the present invention based on Terraform Machine readable storage medium storing program for executing, has the beneficial effect that:
1, by being packaged to Terraform and OpenStack, it is fast that OpenStack infrastructure framework may be implemented Speed deployment, facilitates the management of cluster information;
2, infrastructure framework is disposed and is managed with code form, when user management architecture, need to only pay close attention to frame Structure itself;
3, there is very high reusability, user is by the resource information use when infrastructure framework is disposed with code shape Formula carries out version management;It is subsequent when needing to carry out same architecture deployment, directly created using the architecture template saved, it is not necessary to Manual repetition is carried out to each resource in framework from the WEB page of OpenStack again to create;
4, can be extending transversely when needing to construct large-scale cluster, efficiently carry out the wound of cluster simultaneously in different nodes It builds, can be extending transversely without dependence between each expanding node, scalability is good, to improve cluster creation efficiency.
Detailed description of the invention
Fig. 1 is that the Method And Principle of the OpenStack infrastructure architecture management of the invention based on Terraform is illustrated Figure;
Fig. 2 is the method flow diagram for creating infrastructure framework;
Fig. 3 is the method flow diagram for updating infrastructure framework;
Fig. 4 is the method flow diagram for deleting infrastructure framework;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of system of OpenStack infrastructure architecture management based on Terraform.Referring to Fig.1 It is shown, for the Method And Principle schematic diagram of the OpenStack infrastructure architecture management based on Terraform.
The system includes: service interface call unit, template acquiring unit, infrastructure framework construction unit, executes knot Fruit transmission unit, judging unit.
Wherein, the service interface call unit calls corresponding service interface according to the solicited message that user sends;Institute Template acquiring unit is stated, for obtaining corresponding Terraform template from template warehouse by template engine, and by solicited message It is stored in ETCD;The infrastructure framework construction unit, for passing through Terraform actuator according to Terraform mould Corresponding cluster resource information in plate, creates corresponding OpenStack infrastructure framework;The implementing result transmission unit, For being sent implementing result in RabbitMQ queue by Terraform actuator;The judging unit, for passing through TOPIC monitors the message of specified queue in RabbitMQ queue, judges whether examples of architectures creates according to the return message of monitoring Success.
Wherein, it should be noted that template engine (in particular to the template engine developed for Web) is to make user Interface separates with business datum (content) and is generated, and the document of specific format can be generated in it, the template engine for website The html document of a standard will be generated.
In a specific embodiment, OpenStack infrastructure framework includes back-end server ECS (Elastlic Cloud Server) Cloud Server, load balancing SLB (Server Load Balancer, hereinafter referred SLB), VPC (Virtual Private Cloud) network, elastic public network EIP.
The introducing of load balancing SLB can reduce when separate unit Cloud Server ECS (hereinafter referred ECS) occurs abnormal to industry The impact of business promotes the availability of business.Meanwhile in conjunction with elastic telescopic service, back-end server is adjusted by dynamic, it can be fast Speed carries out elastic adjustment (dilatation or capacity reducing) to business, quickly to cope with the development of business.
Virtual Private Cloud (VPC) is the virtual network for being only applicable to your AWS account.It is logically Completely cut off with other virtual networks in AWS cloud.AWS resource can be started in VPC.
EIP elasticity public network IP, the outlet of entrance and Outside Access for providing outside access.Can according to entrance and The different flow demand of outlet, selects different bandwidth, to save money.
Here back-end server ECS, load balancing SLB, VPC network, elastic public network EIP are illustrated only, it should be understood that , OpenStack infrastructure framework is not limited in above structure.
In a specific embodiment, holding load of the present invention is balanced, can be with each cluster when aggregated structure is larger Laterally dispose multiple applications;Wherein, without dependence between each application, so as to greatly improve framework deployment efficiency.
In a specific embodiment, the thread pool size of application is 10, that is to say, that the maximum that single application is supported It is concurrently 10;It should be noted that user can be according to actual demand and actual number of concurrent, number is applied in dynamic adjustment, While guaranteeing that application is stablized, and then improve the efficiency of infrastructure architectures.
The infrastructure framework construction unit includes: infrastructure framework building subelement, the update of infrastructure framework Subelement, infrastructure framework delete subelement;The infrastructure architectures subelement, for completing infrastructure framework Creation;The infrastructure framework updates subelement, updates for completing infrastructure framework;The infrastructure framework is deleted Subelement is deleted for completing infrastructure framework.
The template acquiring unit includes infrastructure architecture template management subelement;The infrastructure architecture template pipe Managing subelement includes: template uploading module, will be described for according to the demand of user, writing Terraform template file Terraform template file uploads in template warehouse, and is distinguished using project name to different architecture templates;Template pipe Manage module, management is distinguished to the architecture template in the template warehouse by Tags, with realize pass through project name and The one-to-one correspondence of Tags and architecture template;Template modified module;By adjusting the architecture information in infrastructure framework into The modification of row architecture template, and modified the differentiation of version using Tags to architecture template.
In conclusion the system of OpenStack infrastructure architecture management of the kind based on Terraform, incorporates originally The multinomial atomic operation carried out on the interface OpenStack is needed, user need to only initiate once to request, intermediate entire treatment process Without manually being intervened;Infrastructure resources information is stored with code form, and reusability is strong, is easy to version management;Scalability By force, when constructing large-scale cluster, the creation of cluster can be carried out simultaneously in different nodes, closed between each expanding node without dependence System improves cluster and creates efficiency.
The method of the invention also includes a kind of OpenStack infrastructure architecture management based on Terraform, referring to figure Shown in 1, for the Method And Principle schematic diagram of the OpenStack infrastructure architecture management based on Terraform.It is based on The method of the OpenStack infrastructure architecture management of Terraform is applied to electronic device, including application deployment, deployment are answered Method includes step S110- step S150.This method can be executed by device, the device can by software and/or Hardware realization.
The method holding load of infrastructure architecture management is balanced, and the quantity of lateral application deployment is more than or equal to 2.Namely It says, holding load of the present invention is balanced, when aggregated structure is larger, can laterally dispose multiple applications with each cluster;Wherein, each Without dependence between, so as to greatly improve framework deployment efficiency.
Wherein, S110, the corresponding service interface of solicited message calling sent according to user.
S120, corresponding Terraform template is obtained from template warehouse by template engine, and solicited message is stored in In ETCD.
S130, pass through Terraform actuator according to cluster resource information corresponding in Terraform template, building pair The OpenStack infrastructure framework answered.
S140, it is sent implementing result in RabbitMQ queue by Terraform actuator.
S150, the message that specified queue in RabbitMQ queue is monitored by TOPIC, judge according to the return message of monitoring Whether examples of architectures creates success.
In a particular embodiment, in step s 130, corresponding OpenStack infrastructure framework is constructed, including to base Creation, update and the deletion of Infrastructure framework.
Referring to shown in Fig. 2, Fig. 2 is the method flow diagram for creating infrastructure framework.Wherein, the creation of infrastructure framework Method are as follows: user needs to be ready to build in advance the Terraform template of infrastructure framework.User is called by RESTAPI Infrastructure framework method is created, and the basic resource information needed in template is transmitted to server-side.Check the infrastructure Whether examples of architectures is being operated.Save the basic resource information that user uploads.OpenStack is called, infrastructure wound is completed It builds.Operating result is pushed in all MQ, client receives message by processing, and whether judgement basis facility creates success.
Referring to shown in Fig. 3, Fig. 3 is the method flow diagram for updating infrastructure framework.The update method of infrastructure framework Are as follows: user needs to be ready to the Terraform template of updated infrastructure framework in advance.User is called by RESTAPI Infrastructure framework method is updated, and the basic resource information needed in template is transmitted to server-side.Check the infrastructure Whether examples of architectures is being operated.According to the architecture information that user uploads, the architecture information saved when creation is updated. OpenStack is called, infrastructure framework is completed and updates.Operating result is pushed in all MQ, client is disappeared by handling to receive Whether breath, judgement basis facility create success.
Referring to shown in Fig. 4, Fig. 4 is the method flow diagram for updating infrastructure framework.The update method of infrastructure framework Are as follows: user needs Terraform template when getting out build infrastructure framework in advance.User is deleted by RESTAPI calling Server-side is sent to except infrastructure framework method, and by the example ID generated when creating.Check the infrastructure examples of architectures Whether operated.According to the example ID that user uploads, the architecture essential information of preservation is obtained, and Information application is arrived In Terraform template.OpenStack is called, infrastructure is completed and deletes.Operating result is pushed in all MQ, client is logical It crosses processing and receives message, whether judgement basis facility creates success.
In the step s 120, further include template warehouse, template warehouse to infrastructure Schema information in the form of code into Row saves, and template warehouse includes step S210-S230 to the method for infrastructure architecture template management.
Wherein, S210, according to the demand of user, writes Terraform template file, by the Terraform template text Part uploads in template warehouse, and is distinguished using project name to different architecture templates.
S220, management is distinguished to the architecture template in the template warehouse by Tags, passes through entry name to realize The one-to-one correspondence of title and Tags and architecture template.That is, when user calls architecture template, the entry name specified with user Title and Tags, can uniquely determine user needs architecture template to be used.
S230, the modification that architecture template is carried out by adjusting the architecture information in infrastructure framework, and utilize Tags modifies the differentiation of version to architecture template.That is, every time to the modification of architecture template all by Tags come into The differentiation of row revision.
The present invention provides a kind of method of OpenStack infrastructure architecture management based on Terraform, is applied to one Kind electronic device.
In the present embodiment, electronic device can be server, smart phone, tablet computer, portable computer, desktop Computer etc. has the terminal device of calculation function.
The electronic device includes: processor, memory.
Memory includes the readable storage medium storing program for executing of at least one type.The readable storage medium storing program for executing of at least one type can For the non-volatile memory medium of such as flash memory, hard disk, multimedia card, card-type memory etc..In some embodiments, described readable Storage medium can be the internal storage unit of the electronic device, such as the hard disk of the electronic device.In other embodiments In, what the readable storage medium storing program for executing was also possible to be equipped on the external memory of the electronic device, such as the electronic device Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (FlashCard) etc..
In the present embodiment, the readable storage medium storing program for executing of the memory is installed on the electronic device commonly used in storage The program etc. of OpenStack infrastructure architecture management based on Terraform.The memory can be also used for temporarily depositing Store up the data that has exported or will export.
Processor can be a central processing unit (Central Processing Unit, CPU) in some embodiments, Microprocessor or other data processing chips, program code or processing data for being stored in run memory, such as based on The program etc. of the OpenStack infrastructure architecture management of Terraform.
In the specific embodiment of the present invention, which can also include user interface, and user interface can To include that input unit such as keyboard (Keyboard), speech input device such as microphone (microphone) etc. have voice Equipment, instantaneous speech power such as sound equipment, earphone of identification function etc., optionally user interface can also include the wired of standard Interface, wireless interface.
In addition, the electronic device can also include display, display is referred to as display screen or display unit.One It can be light-emitting diode display, liquid crystal display, touch-control liquid crystal display and Organic Light Emitting Diode in a little embodiments (Organic Light-Emitting Diode, OLED) touches device etc..Display is used to show and handle in an electronic Information and for showing visual user interface.
In addition, the electronic device further includes touch sensor.It is touched provided by the touch sensor for user The region of operation is known as touch area.In addition, touch sensor described here can be resistive touch sensor, condenser type Touch sensor etc..Moreover, the touch sensor not only includes the touch sensor of contact, the touching of proximity may also comprise Touch sensor etc..In addition, the touch sensor can be single sensor, or such as multiple sensings of array arrangement Device.
In addition, the area of the display of the electronic device can be identical as the area of the touch sensor, it can also not Together.Optionally, display and touch sensor stacking are arranged, to form touch display screen.The device is based on touching aobvious Display screen detects the touch control operation of user's triggering.
Optionally, which can also include radio frequency (Radio Frequency, RF) circuit, sensor, audio-frequency electric Road etc., details are not described herein.
It may include operation in Installation practice shown in Fig. 3, in the memory as a kind of computer storage medium The program of system and the OpenStack infrastructure architecture management based on Terraform;Processor executes to be deposited in memory Above-mentioned steps are realized when the program of the OpenStack infrastructure architecture management based on Terraform of storage.
The electronic device and computer storage medium that above-described embodiment proposes, by Terraform and OpenStack It is packaged, the deployment of OpenStack infrastructure framework and the version management of framework may be implemented.User will carry out infrastructure The resource information that uses is saved when framework is disposed with code form, and carries out version management by template warehouse, it is subsequent into When row same architecture is disposed, directly using the Schema information saved, it is not necessary to again from the WEB page of OpenStack to framework In each resource carry out manual creation.
In other embodiments, the program of the OpenStack infrastructure architecture management based on Terraform can also quilt It is divided into one or more module, one or more module is stored in memory, and is executed by processor, to complete The present invention.The so-called module of the present invention is the series of computation machine program instruction section for referring to complete specific function.
The program of OpenStack infrastructure architecture management based on Terraform can be divided into: service interface tune With unit, template acquiring unit, infrastructure framework construction unit, implementing result transmission unit, judging unit.Service interface tune With unit, template acquiring unit, infrastructure framework construction unit, implementing result transmission unit, judging unit, the function realized Energy or operating procedure are similar as above, and and will not be described here in detail.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium In include the OpenStack infrastructure architecture management based on Terraform program, it is described based on Terraform's Following operation is realized when the program program of OpenStack infrastructure architecture management is executed by processor:
The specific embodiment of the computer readable storage medium of the present invention and above-mentioned based on Terraform's The specific embodiment of the method for OpenStack infrastructure architecture management is roughly the same, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, device, article or the method that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, device, article or method institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, device of element, article or method.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.Pass through above embodiment party The description of formula, it is required general that those skilled in the art can be understood that above-described embodiment method can add by software The mode of hardware platform is realized, naturally it is also possible to which by hardware, but in many cases, the former is more preferably embodiment.It is based on Such understanding, substantially the part that contributes to existing technology can be with software product in other words for technical solution of the present invention Form embody, which is stored in a storage medium (such as ROM/RAM, magnetic disk, light as described above Disk) in, including some instructions use is so that a terminal device (can be mobile phone, computer, server or the network equipment Deng) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of system of the OpenStack infrastructure architecture management based on Terraform, which is characterized in that including at least One application, the application include: service interface call unit, template acquiring unit, infrastructure framework construction unit, execute As a result transmission unit, judging unit;
The service interface call unit calls corresponding service interface according to the solicited message that user sends;
The template acquiring unit for obtaining corresponding Terraform template from template warehouse by template engine, and will ask Information is asked to be stored in ETCD;
The infrastructure framework construction unit, for passing through Terraform actuator according to corresponding in Terraform template Cluster resource information creates corresponding OpenStack infrastructure framework;
The implementing result transmission unit, for sending RabbitMQ queue for implementing result by Terraform actuator In;
The judging unit, for monitoring the message of specified queue in RabbitMQ queue by TOPIC, according to the return of monitoring Message judges whether examples of architectures creates success.
2. the system of the OpenStack infrastructure architecture management according to claim 1 based on Terraform, special Sign is that the OpenStack infrastructure framework includes back-end server ECS, load balancing SLB, VPC network, elasticity public affairs Net EIP.
3. the system of the OpenStack infrastructure architecture management according to claim 1 based on Terraform, special Sign is that the thread pool size of the application is 10-20.
4. the system of the OpenStack infrastructure architecture management according to claim 1 based on Terraform, special Sign is that the infrastructure framework construction unit includes: infrastructure framework building subelement, infrastructure framework update Unit, infrastructure framework delete subelement;
The infrastructure architectures subelement, for completing infrastructure architectures;
The infrastructure framework updates subelement, updates for completing infrastructure framework;
The infrastructure framework deletes subelement, deletes for completing infrastructure framework.
5. the system of the OpenStack infrastructure architecture management according to claim 1 based on Terraform, special Sign is that the template acquiring unit includes infrastructure architecture template management subelement;The infrastructure architecture template pipe Managing subelement includes:
Template uploading module, for according to the demand of user, Terraform template file being write, by the Terraform template File uploads in template warehouse, and is distinguished using project name to different architecture templates;
Template management module distinguishes management to the architecture template in the template warehouse by Tags, passes through item to realize The one-to-one correspondence of mesh title and Tags and architecture template;
Template modified module;The modification of architecture template, and benefit are carried out by adjusting the architecture information in infrastructure framework It is modified the differentiation of version with Tags to architecture template.
6. a kind of method of the OpenStack infrastructure architecture management based on Terraform is applied to electronic device, special Sign is, including application deployment, and the method for application deployment is as follows,
S110, corresponding service interface is called according to the solicited message that user sends;
S120, corresponding Terraform template is obtained from template warehouse by template engine, and solicited message is stored in ETCD In;
S130, pass through Terraform actuator according to cluster resource information corresponding in Terraform template, construct corresponding OpenStack infrastructure framework;
S140, it is sent implementing result in RabbitMQ queue by Terraform actuator;
S150, the message that specified queue in RabbitMQ queue is monitored by TOPIC, judge framework according to the return message of monitoring Whether example creates success.
7. a kind of method of OpenStack infrastructure architecture management based on Terraform according to claim 6, It is characterized in that, the method holding load of the infrastructure architecture management is balanced, the quantity of lateral application deployment is more than or equal to 2。
8. a kind of method of OpenStack infrastructure architecture management based on Terraform according to claim 6, It is characterized in that, in step s 130, corresponding OpenStack infrastructure framework is constructed, including to infrastructure framework Creation is updated and is deleted.
9. a kind of method of OpenStack infrastructure architecture management based on Terraform according to claim 6, It is characterized in that, further including the method to infrastructure architecture template management in the step s 120, method and step is as follows:
According to the demand of user, Terraform template file is write, the Terraform template file is uploaded into template storehouse In library, and different architecture templates are distinguished using project name;
Management is distinguished to the architecture template in the template warehouse by Tags, with realize by project name and Tags with The one-to-one correspondence of architecture template;
The modification of architecture template is carried out by adjusting the architecture information in infrastructure framework, and using Tags to framework mould Plate is modified the differentiation of version.
10. a kind of computer readable storage medium, which is characterized in that include being based in the computer readable storage medium The program of the OpenStack infrastructure architecture management of Terraform, the basis OpenStack based on Terraform are set When applying the program of architecture management and being executed by processor, realize as described in any one of claim 6 to 9 based on Terraform OpenStack infrastructure architecture management method the step of.
CN201910361045.4A 2019-04-30 2019-04-30 A method of the OpenStack infrastructure architecture management based on Terraform Pending CN110096258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910361045.4A CN110096258A (en) 2019-04-30 2019-04-30 A method of the OpenStack infrastructure architecture management based on Terraform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910361045.4A CN110096258A (en) 2019-04-30 2019-04-30 A method of the OpenStack infrastructure architecture management based on Terraform

Publications (1)

Publication Number Publication Date
CN110096258A true CN110096258A (en) 2019-08-06

Family

ID=67446510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910361045.4A Pending CN110096258A (en) 2019-04-30 2019-04-30 A method of the OpenStack infrastructure architecture management based on Terraform

Country Status (1)

Country Link
CN (1) CN110096258A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460670A (en) * 2019-08-19 2019-11-15 浪潮云信息技术有限公司 A kind of application cluster framework Automation arranging method based on Terraform and Ansible
CN110704168A (en) * 2019-10-15 2020-01-17 浪潮云信息技术有限公司 Method and device for managing OpenStack virtual machine based on Terraform
CN110750333A (en) * 2019-10-25 2020-02-04 浪潮云信息技术有限公司 Full life cycle management method for cloud service factory platform
CN111352701A (en) * 2020-03-05 2020-06-30 山东汇贸电子口岸有限公司 Method for arranging Redis cluster in Openstack environment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487892A (en) * 2015-11-26 2016-04-13 武大吉奥信息技术有限公司 Inter-cloud GIS service deploying system in Linux environment
US20170357533A1 (en) * 2016-06-08 2017-12-14 Dell Products L.P. Method and system for workload recommendations on information handling systems
CN109145034A (en) * 2017-06-15 2019-01-04 阿里巴巴集团控股有限公司 Resource rendering method, device and terminal
US20190026085A1 (en) * 2017-07-21 2019-01-24 Accenture Global Solutions Limited Intelligent cloud engineering platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105487892A (en) * 2015-11-26 2016-04-13 武大吉奥信息技术有限公司 Inter-cloud GIS service deploying system in Linux environment
US20170357533A1 (en) * 2016-06-08 2017-12-14 Dell Products L.P. Method and system for workload recommendations on information handling systems
CN109145034A (en) * 2017-06-15 2019-01-04 阿里巴巴集团控股有限公司 Resource rendering method, device and terminal
US20190026085A1 (en) * 2017-07-21 2019-01-24 Accenture Global Solutions Limited Intelligent cloud engineering platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
OREST LAVRIV 等: "Method of cloud system disaster recovery based on "Infrastructure as a code" concept", 《 2018 14TH INTERNATIONAL CONFERENCE ON ADVANCED TRENDS IN RADIOELECRTRONICS, TELECOMMUNICATIONS AND COMPUTER ENGINEERING》 *
梁超超: "基于模型的云应用动态配置框架", 《计 算 机 科 学》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460670A (en) * 2019-08-19 2019-11-15 浪潮云信息技术有限公司 A kind of application cluster framework Automation arranging method based on Terraform and Ansible
CN110704168A (en) * 2019-10-15 2020-01-17 浪潮云信息技术有限公司 Method and device for managing OpenStack virtual machine based on Terraform
CN110750333A (en) * 2019-10-25 2020-02-04 浪潮云信息技术有限公司 Full life cycle management method for cloud service factory platform
CN111352701A (en) * 2020-03-05 2020-06-30 山东汇贸电子口岸有限公司 Method for arranging Redis cluster in Openstack environment

Similar Documents

Publication Publication Date Title
CN110096258A (en) A method of the OpenStack infrastructure architecture management based on Terraform
CN105190555B (en) Centralized task schedule
US8635250B2 (en) Methods and systems for deleting large amounts of data from a multitenant database
US20180025007A1 (en) Method and system for adaptive processing of resource usage records
US11379259B2 (en) Worker thread manager
CN107133309B (en) Method and device for storing and querying process example, storage medium and electronic equipment
US20190102237A1 (en) Recommending applications based on call requests between applications
US20090204578A1 (en) Targeted queries using an oma dm protocol
US9355144B2 (en) Method and apparatus for recycling information fragments in information spaces
CN111694857B (en) Method, device, electronic equipment and computer readable medium for storing resource data
CN109408205A (en) Method for scheduling task and device based on hadoop cluster
CN109426600B (en) Data acquisition processing method, device, equipment and readable storage medium
US20130132828A1 (en) Method and apparatus for implementing microblog message pages
CN107506218A (en) The management method and management system of a kind of configuration file
CN113254445B (en) Real-time data storage method, device, computer equipment and storage medium
CN110851248A (en) Asynchronous task data processing method and device and computer readable storage medium
CN106156047A (en) A kind of SNAPSHOT INFO processing method and processing device
US10445157B2 (en) Concurrent services caching
US20090106280A1 (en) Semantic-Based Lossy Compression
CN112199200B (en) Resource scheduling method and device, computer equipment and storage medium
CN109582439A (en) DCN dispositions method, device, equipment and computer readable storage medium
EP4024761A1 (en) Communication method and apparatus for multiple management domains
US8706804B2 (en) Modeled chaining of service calls
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
US11720414B2 (en) Parallel execution controller for partitioned segments of a data model

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