Background technique
User needs largely apply in deployment cloud platform in cloud platform, and in order to ensure being deployed in virtual machine internal
Using the access that can support a large number of users, the mode of application cluster is needed to maintain the load balancing of application, therefore rapidly and efficiently
Creation application become it is still unimportant.Traditional cloud platform application publication process is directly setting all configurations when issuing application
Parameter, this mode of operation have the following problems:
First is that publication application every time, requires the relevant parameter configuration of operation maintenance personnel setting more application, repeats similar
Operation consumes the operation maintenance personnel more working time, reduces the working efficiency of operation maintenance personnel;
Second is that the mode of creation application is single, the application that can only create concentrating type meets the needs of sole user;For needing
Virtual machine is created in batches, and needs that original creation cannot be passed through in the user of the synchronous installation software application of virtual machine internal
Application mode issues the flexibility and diversity of application to limit the needs of meeting them.
Summary of the invention
The invention reside in a kind of method for custom-configuring creation and applying template is provided, solves cloud platform creation and largely answer
The problem of used time needs to repeat configuration operation, is unable to fast and flexible publication application.
The technical solution that the present invention solves above-mentioned technical problem is:
The method includes the following steps:
Step 1: increasing a template newly, the exemplary configuration of virtual machine in template is set;
Step 2: configuration is using the storage class and cloud disk size for whether needing carry cloud disk and cloud disk in template;
Step 3: the whether correct complete filling of virtual machine Basic Configuration Items is examined, if it is thening follow the steps 4;Otherwise it returns
One step;
Step 4: whether configuration needs to bind Floating IP address using virtual machine in template;
Step 5: according to user demand, independently choosing whether addition software load balanced device, selection is to then follow the steps 6;
Otherwise, step 7 is executed;
Step 6: clustered deploy(ment) type applies template, needs to input user and it is expected the expanding policy mode realized;
Step 7: using the template of applying of deployment types, user, which can input, hopes virtual machine internal installation using deployment period
Application program and application program installation path;
Step 8: after examining expanding policy to fill in complete meet the requirements, submitting template and the template of creation is stored in cloud and put down
On platform;
Step 9: terminating.
Diversified configuration item is provided in the template, user can be according to the need of different scenes in production environment
It asks, configures diversified using template, user issues in application, best template can be chosen, for answering according to target requirement
Publication creation;
The virtual machine instance configures matching for the CPU for referring to virtual machine, memory, disk size and virtual machine storage class
It sets.After template is for issuing application, using the virtual machine according to the creation corresponding configuration of exemplary configuration defined in template.
The carry cloud disk refers in the template of publication application if being configured with cloud disk continuous item, using creation virtual machine
When can create additional cloud disk simultaneously and be mounted on virtual machine for users to use.
When user has selected software load balanced device, then template type is clustered deploy(ment) type, according to the publication of this template
Using then can be according to the cluster of expanding policy dynamic expansion for one;When the non-selected software load balanced device of user, then template class
Type is using deployment types, and user may be selected to wish to be deployed in the installation road of the application program of virtual machine internal and application program
Diameter, after issuing application success, the virtual machine internal of creation can accordingly install the application of selection.
The virtual machine cpu utilization rate got according to monitoring may be selected in the expanding policy wide variety, memory uses
The strategies such as rate, disk read-write rate trigger colony dispatching;It is virtual that laterally newly-increased virtual machine, lateral clone may be selected in extended mode
Machine, longitudinal modification virtual machine configuration, mixed scheduling mode carry out dynamic dispatching cluster scale.
The present invention repeats general operation when applying publication by introducing the method for custom-configuring creation and applying template
It is independent, a new functional module is constructed, by being configured needing the parameter for being repeated as many times configuration to be put into template, letter
The process for having changed operation maintenance personnel publication application realizes one template of creation i.e. for all users for issuing application, improves
The efficiency of operation maintenance personnel operation.Meanwhile operation maintenance personnel can be met different by issuing the different different types of templates of configuration
The diversified demand of user.