The content of the invention
It is an object of the invention to disclose a kind of method of combination of cloud resource, to realize cloud resource visualized management and
The automation of O&M, the deployment of reduction cloud resource and management difficulty, improve Consumer's Experience;And realize in cloud resource layout process not
Need to rely on existing resource template, and realize mass configuration is made based on change in topology to the various resources for distributing to tenant.
For achieving the above object, the invention provides a kind of method of combination of cloud resource, including:
S1, blank template built according to the topological relation of customization, and created simultaneously in cloud resource pond using orchestration engine
Configuration resource corresponding with the blank template;
S2, orchestration engine enter according at least one of blank template resource to the topology for being pre-assigned to the cloud resource of user
Row parsing;
S3, the topology to the cloud resource in step S2 carry out resource layout, by adding resource into blank template to obtain
To resource template;
S4, the change in topology according to the resource for having distributed to user, circulation performs step S2 and step S3, with more new resources
Resource in template.
As a further improvement on the present invention, resource is not added in advance in the blank template in the step S1.
As a further improvement on the present invention, the step S2 is specially:A kind of resource in blank template is to pre-
The topology for distributing to the cloud resource of user is parsed.
As a further improvement on the present invention, the step S3 also includes:Orchestration engine is in the way of calling plug-in unit, to step
The topology of cloud resource in rapid S2 carries out resource layout, to obtain resource template by adding resource into blank template.
As a further improvement on the present invention, the plug-in unit for being organized into engine calling is inserted including ALIYun plug-in units, AWS
Part, Heat plug-in units or TOSCA plug-in units.
As a further improvement on the present invention, in the step S1, after blank template is built, in the way of stack list
Show as visualization.
As a further improvement on the present invention, the step S1 also includes:Blank template is preserved to persistent storage and is situated between
Matter, the orchestration engine calls the resource template from persistent storage medium.
As a further improvement on the present invention, the step S1 also includes:Orchestration engine is periodically from persistent storage medium
The blank template at middle selection a certain moment, and blank template is manually imported into orchestration engine.
As a further improvement on the present invention, the persistent storage medium includes:Database, Ceph storage devices,
Hadoop distributed file systems, SAN storage devices, NAS storage devices, RAID or object storage system;
The resource includes authentication module, cloud main frame, cloud hard disk, SSH keys, public network IP, virtual private networks, route
At least one of device, load equalizer or fire wall.
As a further improvement on the present invention, the step S4 also includes:Orchestration engine is by the resource template initially created
It is compared with the generated resource template that changes of any one topology status after the resource template that initially creates, with right
The resource of differentiation carries out batch configuration.
Compared with prior art, the beneficial effects of the invention are as follows:A kind of method of combination of cloud resource shown by the present invention
Existing resource template is needed not rely on, and being customized of resource can be configured according to tenant's personalized demand, is realized
Blank template based on topology is changed and layout with cloud resource, improves the predictability to resource layout and flexibility,
And batch configuration can be carried out when being changed to distributing to tenant and topology, realize the visualized management and O&M of cloud resource
Automation, reduction cloud resource deployment and management difficulty, improve Consumer's Experience.
Embodiment
The present invention is described in detail for shown each embodiment below in conjunction with the accompanying drawings, but it should explanation, these
Embodiment not limitation of the present invention, those of ordinary skill in the art according to these embodiment institute work energy, method,
Or equivalent transformation or replacement in structure, belong within protection scope of the present invention.
Layout is a kind of specification, and user can draw by the different object of its regulation or to other layouts or object
With, between them opening relationships and to they apply different types of strategy.These objects include but is not limited to be carried by cloud
All the first category features of confession and the cloud service extension for being added to cloud.It can specify that different types of relation." dependence " is
One example of relation.Different types of strategy can be applied." high availability (HA) and auto zoom " is this tactful several
Individual example.User can coordinate some processes in same, multiple or public cloud.These processes can include what is provided by cloud
Any feature/object.For example:Security policies, storage are coordinated, networked, actual CR (includes but is not limited to virtual machine, OS
The computing resource of container or actual physics machine), new cloud service/extension for being enabled on cloud, etc..Layout is cloud computing group
Part is tied in the manageable set of single, user together.For example, using layout, user can be with related network, internet security
With the instantiation of holder and computing resource, wherein computing resource includes, but not limited to the thing of virtual machine, OS containers or reality
Manage machine.In this manual, term "Cloud resource" and term "Resource" tool equivalents.
" network topology " refers to the interconnection layout between cloud resource in this manual.Cloud resource (or resource) both can be with
It is a service, application, a kind of resource or a kind of distributes to the physical/virtual equipment that tenant uses.
Join Fig. 1 to a kind of a kind of embodiment of the method for combination of cloud resource illustrated in fig. 5, this method include with
Lower step.
Step S1, according to the topological relation of customization build blank template, and using orchestration engine 10 in cloud resource pond
Create and configure resource corresponding with the blank template.
In the blank template generated in step sl and not comprising entity cloud resource (such as cloud main frame, cloud hard disk
Deng).So-called customization refers to that tenant is according to the demand that it is personalized or customizes to cloud platform (for example, being based on
The cloud platform of Openstack systems) request build formation topological relation process.Each component in the blank template is opened up
The relation of flutterring follows the Technical Architecture of cloud platform.The blank template can be carried out accessing at any time by tenant or the keeper of cloud platform and
Inquiry.Tenant can modify to the species and concrete configuration for the cloud resource that addition is wanted in blank template, by opening up for establishment
The relation of flutterring saves as blank template and submitted.In step sl, addition resource, i.e. blank template in advance is had no in blank template
In and do not contain the resource of entity.
Join shown in Fig. 2, it is preferred that in the present embodiment, after order performs sub-step P01 and sub-step P02, also
Including sub-step P03:Blank template is preserved to persistent storage medium.Specifically, the persistent storage medium includes:Data
Storehouse, Ceph storage devices, Hadoop distributed file systems, SAN storage devices, NAS storage devices, RAID or object storage
System, for ease of describing, in this manual, the persistent storage medium optional database, and be elaborated as example.
Certainly, database can select relevant database, also can select object-oriented database.Preserve to the sky of persistent storage medium
White template can be organized into engine 10 in the later stage and be called, and addition tenant needs the various resources added into blank template.
Sub-step P04, using blank template, and is loaded onto in orchestration engine 10.Being opened in orchestration engine 10 has multiple lines
Journey, to respond layout request event of multiple tenants to cloud resource simultaneously.
Then, execution sub-step P05 is redirected, generates stack list to tenant as visualization to show.With reference to the institute of reference picture 5
Show, tenant can check the establishment progress of blank template in layout area.Corresponding in the blank template that tenant can create needs
Cloud resource control (such as virtual machine VM) is pulled into editing area, then discharges cursor to complete the establishment in blank template.When upper
State cloud resource control to be fully completed after deployment, click on " preservation " button, you can complete the establishment operation of blank template.
Then, execution sub-step P06 is redirected, judges whether resource distribution succeeds;If so, execution sub-step P07 is then redirected,
The resource that stack list and displaying are added in blank template is generated, and redirects execution sub-step P09, displaying stack list is created
Progress;If it is not, then redirecting execution sub-step P08, rolling back action, and execution sub-step P10 is redirected, terminates to create stack list,
Then follow-up sub-step P11 is performed, displaying stack list creates result.
Terminate, so far step S1 is finished completely.
In the present embodiment, the resource mould that various cloud resources are formed is added into blank template by orchestration engine 10
The cloud resource of entity is included in plate, and is prepared by follow-up editing operation.It is preferred that, the step S1 also includes:Orchestration engine
10 periodically select the blank template at a certain moment, and blank template is manually imported into orchestration engine from persistent storage medium
10.Blank template both can be understood as a kind of template when tenant has just proceeded by cloud platform operation relative to resource template,
It is previous before being understood to relative to newest resource template (i.e. " new resource template ") also with the operation of tenant
The resource template (i.e. " old resource template ") of state.Old resource template is only both front and back state with new resource template
Template.Periodically select the blank template at a certain moment from persistent storage medium by orchestration engine 10, and by blank mould
Plate manually imports orchestration engine 10 so that the method for combination of the cloud resource has trackability, improves cloud resource layout just
Victory, reduces the computing cost for the physical machine to form and provide cloud platform service.
Step S2, orchestration engine 10 are according at least one of blank template resource to being pre-assigned to the cloud resource of user
Topology is parsed.
Step S3, the topology to the cloud resource in step S2 carry out resource layout, by adding resource into blank template
To obtain resource template.
Join shown in Fig. 3, above-mentioned steps S2 and step S3 specifically includes following sub-step.
In the present embodiment, can based on blank template pre- structure topological relation, and from a kind of resource (for example, empty
Intend private network).Due in step sl, be tenant create blank template in contain virtual private networks, public network IP etc.
Topological relation is formed between many cloud resources, these cloud resources.Therefore, using a kind of resource as the entrance of topology, it can check simultaneously
Show the topological relation of whole blank template.
Specifically, sub-step P12 is first carried out, a kind of resource is selected to check topological relation.Then, execution sub-step is redirected
P13, by orchestration engine 10, obtains resource topology relation.Then, execution sub-step P14 is redirected, generation forms the blank of topology
Template, then redirects execution sub-step P15, is shown as the topology of the cloud resource of tenant's predistribution.In this stage, blank template
And it is configured with the cloud resource of entity.Then, execution sub-step P16 is redirected, resource layout is carried out based on topology.With reference to such as Fig. 5 institutes
Show, Fig. 5 shows that the method for combination of the cloud resource configures the instance graph of blank template.Recommendation template is formed with layout area, is deleted
Remove, empty, preserving and the virtualization such as application template function button.It is Internet connections fire wall, virtual flow-line, multiple virtual
Interchanger, each virtual switch can be according to the different virtual machine of the customization need matching quantity of tenant, load equalizer
(SLB), and the resources such as IP (IP address section of virtual private networks) and default fire wall are set.Completed when blank template is built
Afterwards, click on after " recommendation template ", be loaded into the blank template, and preferable the blank template is saved into persistent storage medium
In, the later stage transfers the sky when configuring the cloud resource of entity into blank template from persistent storage medium (such as database)
White template, and according to the existing topological relation formed in blank template, the cloud resource of entity is carried out into blank template
Configuration operation.When clicking on " application template ", perform step S3, the topology to the cloud resource in step S2 and carry out resource layout,
By adding resource into blank template to obtain resource template.
It is preferred that, also include in step S3:Orchestration engine 10 is in the way of calling plug-in unit, to the cloud resource in step S2
Topology carries out resource layout, to obtain resource template by adding resource into blank template.Plug-in unit (Plugin), for propping up
The resource topology of other manufacturers is held, to be converted to the available content of cloud platform.The plug-in unit is specifically included:ALIYun plug-in units 201,
AWS plug-in units 202, Heat plug-in units 203 or TOSCA plug-in units 204.Orchestration engine 10 supports blank template generation and the cloud of multithreading
Resource distribution is operated, to form resource template.The resolving resource request of orchestration engine 10 order, and concurrently distribution request.Tenant is led to
Cross orchestrating services API and message queue (MQ) to orchestration engine 10 carry out editing operation, with by orchestration engine 10 to resource pool
In various resources (for example, authentication module (IAM) 31, cloud main frame (CEC) 32, cloud hard disk (CBS) 34, SSH keys, public network IP,
Virtual private networks (VPC) 33, cloud database (RDS) 35, router, load equalizer or fire wall) according to blank template
The cloud resource virtual by pulling carries out resource distribution, and fills into blank template, to form the cloud resource comprising entity
Resource template.
Finally, step S4, the change in topology according to the resource for having distributed to user are performed, circulation performs step S2 and step
S3, to update the resource in resource template.
It is preferred that, step S4 also includes:Orchestration engine 10 is by the resource template initially created and the resource that initially creates
Any one topology status generated resource template that changes is compared after template, to be carried out to the resource of differentiation
Batch configuration.Because record has the various resources pre-allocated for tenant in resource template, and these resources form complete topology
Relation, therefore, when tenant is in the resource that cloud platform is distributed, the attribute or configuration for having resource change (such as empty
Intend private network and occur configuration variation), then keeper or tenant can check the institute associated with the virtual private networks (VPC)
There is config option, batch modification and management are made to the resource of differentiation (i.e. some or some resources), so as to improve to money
The predictability of source layout and flexibility, and batch configuration can be carried out when being changed to distributing to tenant and topology (i.e. pair
Various cloud resources that the tenant can exclusively enjoy make global modification operation), realize cloud resource visualized management and O&M from
Dynamicization, the deployment of reduction cloud resource and management difficulty, improve Consumer's Experience.
After sub-step P16 is completed, order performs sub-step P17, submits the resource template after layout.Now,
Orchestration engine 10 calls blank template from database, and with resource template resulting after layout is compared with blank template
Compared with, and judge whether consistent;
If so, then redirecting execution sub-step P24, terminate to create haystack queue, then perform sub-step P25, showing resource
Layout result;
If it is not, then redirecting execution sub-step P19, establishment/renewal/deletion resource, and execution is circulated, until aforesaid operations are held
Row is finished, and continues to redirect execution sub-step P20, judges whether establishment/renewal/deletion resource succeeds;If so, then redirecting execution
Sub-step P21, preserves stack list and resource record, and order performs sub-step P22, shows resource layout progress, final to jump
Turn to perform sub-step P25 showing resource layout results;So as to terminate whole resource layout process, and terminate (EDN);If it is not, then
Redirect execution sub-step P23, rollback, then order execution sub-step P24, end establishment stack list, and equally redirect execution
Sub-step P25.
So far, a kind of method of combination of cloud resource of the invention carries out resource layout to the various resources pre-allocated for tenant
Flow all terminates.
Those listed above is a series of to be described in detail only for feasibility embodiment of the invention specifically
Bright, they simultaneously are not used to limit the scope of the invention, all equivalent implementations made without departing from skill spirit of the present invention
Or change should be included in the scope of the protection.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference in claim should not be considered as to the claim involved by limitation.
Moreover, it will be appreciated that although the present specification is described in terms of embodiments, not each embodiment is only wrapped
Containing an independent technical scheme, this narrating mode of specification is only that for clarity, those skilled in the art should
Using specification as an entirety, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art
It may be appreciated other embodiment.