Summary of the invention
It is an object of the invention to disclose a kind of method of recommendation cloud host configuration, to realize to user configuration formation
Cloud host is made rational planning for, and has not only guaranteed that the various resources in cloud computing platform can be reasonably utilized, but can ensure that for
The cloud host of family configuration packages can satisfy user demand, to improve the reasonability of cloud host configuration, and prevent user's blindness
The expense of caused creation cloud host wastes after creation cloud host, improves the economic benefit of entire cloud platform.
To achieve the above object, the present invention provides a kind of method of recommendation cloud host configuration, the method is applied to clothes
The cloud host configured in business device, and cloud platform is constituted by least one cloud host, which comprises
It obtains configurations data and saves to storage equipment, self-information input interface input user's predefined data is simultaneously protected
It deposits to Analysis server;
Analysis server is input with user's predefined data, from storage equipment calls configurations data, and according to pre-
Definition condition calculates the average configuration data of cloud host, the average configuration data is saved to service server, and by business
Server visualizes the average configuration data in information input interface, is formed in the information input interface and recommends boundary
Face and customization of individual character interface;
Resource utilization by the monitoring resource program disposed in server to cloud host within a predetermined period of time, is matching
Set change interface in determine whether trigger configuration change strategy, and with change after configuration data to storage equipment in save with
Recommend recommended configuration data corresponding to interface or makees to update behaviour with personalized configuration data corresponding to customization of individual character interface
Make.
As a further improvement of the present invention, described after updating operation further include: service server guides client
Client is alternatively redirected to and recommends interface perhaps customization of individual character interface and in recommending interface or customization of individual character interface
The resource that cloud host is loaded is determined, to respond service server.
As a further improvement of the present invention, the monitoring resource program is deployed in by calculate node, memory node, network
In cloud platform composed by node and control node, the time by the monitoring resource program to set, by the money of cloud host
Source consumption data is saved to database;The configuration change strategy runs on service server, and it is pre-loaded to calculate cloud host
Difference absolute value between resource and the resource consumption data of cloud host increases or reduces to determine to execute the cloud host
Resource distribution executes amendment.
As a further improvement of the present invention, after the amendment further include:
The configuration item synchronized update that revised resource is included by service server passes through control section to control node
The configuration item that revised resource is included by point executes configuration item corresponding in calculate node, network node and memory node
It updates.
As a further improvement of the present invention, the average configuration data packet that cloud host is calculated according to predefined conditions
It includes:
The predefined item that Analysis server user according to received by service server inputs in information input interface
Part calls suitable lattice data, and the configuration item that will include in the suitable lattice data from storage equipment, to calculate being averaged for cloud host
Configuration data, and save to service server.
As a further improvement of the present invention, the method also includes:
Suitable lattice data are judged whether there is,
Lattice data are fitted if it does not exist, then transfer configurations data from storage equipment by Analysis server, and be sent to industry
Business server;
Lattice data are fitted if it exists, then after making sum operation respectively to the configuration item for including in suitable lattice data, divided by suitable lattice number
According to sum, obtain average configuration data.
As a further improvement of the present invention, the method also includes:
Average configuration data is compared with configurations data,
When the configuration item in average configuration data is less than the configuration item of configurations data, then corresponding configurations
The configuration item of data replaces the configuration item of average configuration data;
When the configuration item in average configuration data is more than or equal to the configuration item of configurations data, above-mentioned replace is not made
Change operation.
As a further improvement of the present invention, the predefined conditions are industry field, purposes, operating system, middleware
Either one of number of users condition or several conditions.
As a further improvement of the present invention, the storage equipment is selected from mechanical hard disk, solid state hard disk, Ceph storage, NAS
One of storage, SAN storage, NVDIMM or RAID are several.
As a further improvement of the present invention, the operating system is selected from Windows Server 200,3R2 32/64
Position, Windows Server 200,8R2 32/64, Windows Server 201,2R2 64, Windows Server
2016 32/64, CentOS 6.5 32/64, CentOS 6.9 32/64, CentOS 7.2 64,
Centos 7.4 64, Ubuntu 14.04 64 or Ubuntu 16.04 64.
As a further improvement of the present invention, the middleware is selected from container style middleware, database, caching middleware, disappears
Cease one of middleware or search middleware or several.
As a further improvement of the present invention, the container style middleware be selected from IIS, tomcat, nginx, apache,
One of weblogic, websphere or jBoss are several;The caching middleware be selected from redis and/or
memcached;The message-oriented middleware is selected from one of activeMQ, rabbitMQ or kafka or several;It is described to search
Rope middleware is selected from elasticSearch and/or solr.
As a further improvement of the present invention, the customization of individual character interface receives the suitable lattice data that service server returns,
And the selector bar to match with configuration item quantity is formed in the customization of individual character interface, the selector bar formation can limit cunning
Move and demarcate the sliding block of configuration item numerical value.
As a further improvement of the present invention, the method also includes:
Average configuration data or configurations number corresponding to the numerical value for the configuration item that sliding block is demarcated and suitable lattice data
According to being compared;
When the current-configuration item setting of sliding block calibration is less than average configuration data or configurations data, selector bar is issued
Alarm;
When the current-configuration item setting of sliding block calibration is more than or equal to average configuration data or configurations data, choosing
It selects item and does not issue alarm.
As a further improvement of the present invention, the method runs on server, and the server and client are established logical
Letter connection;The storage equipment, Analysis server and service server are deployed in server;The information input interface, recommendation
Interface, customization of individual character interface and the insertion of configuration change interface run on the server.
As a further improvement of the present invention, the method runs on server, and the server and client are established logical
Letter connection;The storage equipment, Analysis server and service server are deployed in server;The information input interface, recommendation
Interface, customization of individual character interface and the insertion of configuration change interface run on the client, the client by ICP/IP protocol,
Http protocol or Socket agreement and server establish connection;Wherein,
The client is configured as mutually indepedent with server in logic and can input interactive command and show information
Input interface, the computing device for recommending interface, customization of individual character interface and configuration change interface.
As a further improvement of the present invention, the method also includes the resource guarantors that are loaded the determining cloud host
It deposits to storage equipment.
As a further improvement of the present invention, the method also includes:
The corresponding resource of reduction resource distribution execution amendment is executed to the cloud host and executes reclaimer operation, and will execution
Expense corresponding to the resource of reclaimer operation is returned in account corresponding to the user for configuring the cloud host;
The resource corresponding to cloud host execution increase resource distribution execution amendment, which loads to configure again, to be operated, and by
Expense corresponding to the resource of load configuration operation again is executed to detain from account corresponding to the user for configuring the cloud host
It removes;The account settlement unit execution operated by running in service server is deducted in the return of the expense.
Compared with prior art, the beneficial effects of the present invention are: revealed through the invention recommend cloud host to configure
Method not only ensure that the various resources in cloud platform can be reasonably utilized, and also while improve the conjunction that cloud host configures
Rationality effectively prevents the phenomenon that expense of caused creation cloud host after the creation cloud host of user's blindness wastes, and
The cloud host for being ensured to be user configuration formation can be more nearly the latter and meet user to the real-time requirement of cloud host, not need
Elastic telescopic is set and configures threshold value, to improve flexibility, real-time and the accuracy for carrying out elastic configuration to cloud host.
Embodiment one:
It please join Fig. 1 to a kind of a kind of specific embodiment for the method for recommending the configuration of cloud host of the present invention illustrated in fig. 7.This
A kind of revealed method for recommending the configuration of cloud host of embodiment.This method is mainly after basic data collection step, configuration point
Analyse step, configuration recommendation step and customization of individual character step, wherein customization of individual character step not necessarily after the step of.
It please join a kind of a kind of specific embodiment for the method for recommending the configuration of cloud host of the present invention shown by Fig. 1 to Fig. 4.This
A kind of revealed method for recommending the configuration of cloud host of embodiment.This method mainly (passes through Fig. 1 after basic data collection step
Shown information input interface 100 is realized), Allocation Analysis step, configuration recommendation step (pass through recommendation circle illustrated in fig. 2
Face 100a is realized), customization of individual character step (pass through customization of individual character interface 100b illustrated in fig. 3 realize) and configuration change step
(pass through configuration change interface 100c illustrated in fig. 5 realize), wherein customization of individual character step not necessarily after the step of, and
Further preferably first after configuration recommendation step, when user thinks that the configuration item in recommended configuration may not meet predetermined encapsulation
Cloud host when, automatically chosen whether by user in customization of individual character interface initiate configuration item customization of individual character, to meet use
The demand of family differentiation.
Wherein, in configuration change step, by the monitoring resource program disposed in server to cloud host in pre- timing
Between resource utilization in section, determine whether to trigger configuration change strategy in the 100c of configuration change interface, and with change after
Configuration data to storage equipment 202 in save with recommend interface 100a corresponding to recommended configuration data or and customization of individual character
Personalized configuration data corresponding to the 100b of interface is made to update operation.
Monitoring resource program is deployed in server, and Analysis server 201 or the industry that can be further deployed in Fig. 4
It is engaged in server 203, to pass through the various resources, such as CPU, bandwidth, memory etc. in the monitoring resource program monitoring server
For configuring the consumption feelings of above-mentioned multiple configuration items included in total value, real-time Expenditure Levels and the multiple cloud hosts of cloud host
Condition.
In some specific examples, the monitoring resource program can be configured to following one or several kinds of tool, plug-in unit or
The combination of person's program.
Saidar (simple and light weight system information monitoring tools);
Sar (performance monitoring and bottleneck inspection);
(by providing about storage, the unification of process, network and memory subsystem is orderly and granularity is visible by Sysdig
Mode carries out wrong investigation, and can create system activity record file so that you can easily analyze at any time);
Vmstat (virtual memory statistical tool);
Iftop (program of the similar top based on the network information, can show current time according to bandwidth usage amount or
The network connection status of upload or download sequence estimates the deadline that simultaneously provides downloading file);
(demons are used to collect the information of different processes and distance host to Nagios, these information being collected into are all logical
It crosses powerful web interface to be presented);
Collectl (uses this performance monitoring tool by interactive mode, report can also be write disk with it
On, and accessed by web server, with a kind of manageable format of readability, it is shown that CPU, disk, memory, network, net
Network file system, process, the statistical informations such as slabs).
Analysis configuration data, when certainly also including the parameters such as the configuration item that recommended configuration mentioned below is included, this
Each embodiment of text is gathered in the practical examples run on cloud.Which such information about currently running example may include
Example is currently running, which example is stopped, is stopping, which example failure, which example is being prepared
(provision), which example is restarting etc..In addition, also accumulation is related to the data of user, including unite with population
Meter, company's size, the example of installation, professional knowledge, surfing mode etc. related data.
Meanwhile term " user " mentioned in the present specification is the side for referring to independently initiate creation cloud host,
User can be the insider (people on biological significance) with professional knowledge, be also possible to do not have any cloud computing or
The general staff (people on biological significance) of person's computer literacy is either also possible to robot program or prepackage robot
The computing device of program.In addition, cloud host can be based on Openstack framework, it is also possible to based in Kubernetes cluster
One or more container formed, other for being also possible to can to provide the functions such as virtual computing, virtual memory for user are each
The cloud host (that is, HOST) of seed type is understood to host.
Modules, component or system in the present embodiment, can be with any group of at least one programming language
It closes to write the computer program code for executing operation of the present invention, described program design language includes the program of object-oriented
Design language-such as Java, Smalltalk, Python, C++Deng, it further include conventional procedural programming language, such as C
Language or similar programming language.
A method of recommending the configuration of cloud host, comprising: it obtains configurations data and saves to storage equipment 202, from
Information input interface 100 inputs user's predefined data and saves to Analysis server 201.Wherein, according to predefined conditions meter
The average configuration data for calculating cloud host includes: the user according to received by service server 203 of Analysis server 201 in information
The predefined conditions inputted in input interface 100 call suitable lattice data from storage equipment 202, and will wrap in the suitable lattice data
The configuration item contained to calculate the average configuration data of cloud host, and is saved to service server 203.Information input interface 100,
Recommend interface 100a and customization of individual character interface 100b is embedding is distributed into user interface (UI) 10.Predefined conditions be industry field,
One of purposes, operating system, middleware or number of users condition or several conditions.
The configurations data join following tables one in detail.
Table one
Configurations data can be inputted in such a way that manual entry or template batch import and be saved to storage equipment
202.Specifically, the storage equipment 202 is selected from, mechanical hard disk, solid state hard disk, Ceph storage, NAS is stored, SAN is stored,
One of NVDIMM, RAID or database are several, and specifically select solid state hard disk in the present embodiment.Certainly, base
In the interconnection of cloud platform cluster the considerations of, storage equipment 202 can also be selected into SAN storage etc., and the association being adapted to depending on cloud platform
Depending on view and interface.Database be selected from SQL database, oracle database, MySQL database, Mongo DB database or
Any one in Influxdb database.Contained in configurations data memory, system disk, data disks, bandwidth it is minimum
Configuration and recommended configuration.
The example that a configurations data have been shown in particular in the present embodiment is specific to join shown in table two.
Table two
Meanwhile present embodiment illustrates the examples of a user's predefined data, join shown in table three.
Table three
In table two and table three, configuration item " industry " represents industry field, and configuration item " os " represents operating system, configuration
Item " it " represents IT (information technology), and configuration item " assembly " represents container style middleware.Configuration item
" it " in " it " is using the english abbreviation of industry field as expression way.
Operating system is selected from Windows Server 200,3R2 32/64, Windows Server 200,8R2 32
Position/64, Windows Server 201,2R2 64, Windows Server 2,016 32/64, CentOS 6.5
32/64, CentOS 6.9 32/64, CentOS 7.2 64, Centos 7.4 64, Ubuntu 14.04
64 or Ubuntu 16.04 64.
Middleware selected from container style middleware, database, caching middleware, message-oriented middleware or search middleware in one
Kind is several.Further, container style middleware is selected from IIS, tomcat, nginx, apache, weblogic, websphere
Either one of jBoss or several.It caches middleware and is selected from redis and/or memcached;The message-oriented middleware choosing
From one of activeMQ, rabbitMQ or kafka or several;Described search middleware is selected from elasticSearch
And/or solr.
Next, executing Allocation Analysis step, and described in detail below.
Analysis server 201 is input with user's predefined data, calls configurations data from equipment 202 is stored, and
The average configuration data that cloud host is calculated according to predefined conditions saves the average configuration data to service server 203,
And the average configuration data, information input circle are visualized in information input interface 100 by service server 203
It is formed in face 100 and recommends interface 100a and customization of individual character interface 100b.Service server 203 guides client that client is selected one
Ground, which is redirected to, recommends interface 100a perhaps customization of individual character interface 100b and recommending interface 100a or customization of individual character interface
The resource that cloud host is loaded is determined in 100b, to respond service server.
Especially, in the present embodiment, this method further include: suitable lattice data are judged whether there is,
Lattice data are fitted if it does not exist, then transfer configurations data from storage equipment 202 by Analysis server 201, concurrently
It send to service server 203;
Lattice data are fitted if it exists, then after making sum operation respectively to the configuration item for including in suitable lattice data, divided by suitable lattice number
According to sum, obtain average configuration data.
In the present embodiment, it is preferred that this method further include: compare average configuration data and configurations data
Compared with, when the configuration item in average configuration data is less than the configuration item of configurations data, then corresponding configurations data
Configuration item replace the configuration item of average configuration data;When the configuration item in average configuration data is more than or equal to configurations
When one or more configuration item of data, above-mentioned replacement operation is not made.
Join Fig. 1 shown in, specifically, user by terminal device (such as tablet computer, laptop, mobile phone etc. calculate
Device) it is formed by input user's predefined data in information input interface 100: industry field, purposes, operating system, centre
Part, (when purposes is selected as " individual ", as indicated with 1,1) number of users is fixed as ginseng number of users, and click submission " submission "
Data are transmitted to service server 203 by ICP/IP protocol, http protocol or Socket agreement by button 107.
Certainly, which embedding can also be distributed in server, and the method runs on server, server
It establishes and communicates to connect with client.Storage equipment 202, Analysis server 201 and service server 203 are deployed in server.Letter
Breath input interface 100 recommends interface 100a, customization of individual character interface 100b and configuration change interface 100c insertion to run on the visitor
Family end, client establish connection by ICP/IP protocol, http protocol or Socket agreement and server;Client is configured
For it is mutually indepedent with server in logic and interactive command can be inputted and show information input interface 100, recommend interface 100b,
The computing device of customization of individual character interface 100b and configuration change interface 100c, (such as tablet computer, laptop, mobile phone etc.
Computing device).
Configuration item region 106 is shown in information input interface 100, and in configuration item region 106 formed " industry field ",
" purposes ", " operating system ", " middleware " and " number of users " five configuration items.Each configuration item is correspondingly formed choice box 101
~106, wherein formation " service provides " and " personal host " two kinds of set options in " purposes ", and choice box 101, selection
In frame 103,104,105 in the form of pull-down choice box, it is specifically chosen for user.When user is in information input interface 100
After the input operation for completing input user's predefined data, " submission " button 107, the user's predefined data that will be inputted are clicked
It is input to service server 203.
Service server 203 will receive data and pass through ICP/IP protocol, http protocol or Socket protocol forward extremely
Analysis server 201.The data (i.e. user's predefined data) that Analysis server is transmitted 201 from service server 203 carry out
Parsing obtains the data that user is inputted, i.e., user's predefined data described above.
The operating system and middleware that Analysis server 201 is inputted according to user obtain suitable lattice number from storage equipment 202
According to each independent sum operation of configuration item in suitable lattice data obtains configurations data, and deposit in Analysis server after operation
In 201.The Analysis server 201 and service server 203 are run in server.Analysis server 201 is defeated according to user institute
Industry field, purposes, operating system, middleware, the number of users entered obtains suitable lattice data and is carried out from storage equipment 202
Operation.Analysis result data is transmitted and is protected by ICP/IP protocol, http protocol or Socket agreement by Analysis server 201
It deposits to service server 203.
User inputs configurations data in information input interface 100, joins shown in table four.
Table four
Then, configuration recommendation step is executed, and specific as follows shown.
Analysis server 201 obtains configurations data, and can specifically: according to the industry field inputted, operates
The every individually matching configurations data of system, middleware and purposes, will match CentOS 7.0 64, mysql, redis tri-
Basic recommended configuration is calculated as input in part configurations data.
The calculation formula of basic recommended configuration are as follows: data one are every every with setting value+data three with setting value+data two
Items match setting value, and round, data one, data two and data three are joined described in following tables five.
Table five
Join shown in Fig. 2, be based on above-mentioned table five, obtains recommending configurations:
Configuration item |
Numerical value |
Calculating process and result |
cpu-m |
2 |
1+1+0=2 |
cpu-o |
4 |
2+2+0=4 |
memory-m |
4 |
2+1+0.5=3.5 ≈ 4 |
memory-o |
7 |
4+2+1=7 |
sdisk-m |
20 |
20+0+0=20 |
sdisk-o |
40 |
40+0+0=40 |
ddisk-m |
6 |
0+5+0.5=5.5 ≈ 6 |
ddisk-o |
11 |
0+10+1=11 |
network-m |
1 |
1+0+0=1 |
network-o |
2 |
2+0+0=2 |
Table six
According to industry field, operating system, the middleware, purposes this four conditions adaptation inputted, it is average to obtain user
Configuration data, user are averaged the calculation formula of configuration data are as follows: (data one it is every with setting value+data two it is every with setting value+
Data three are every to match setting value) numbers of/user configuration data, and round, it is specific to join shown in following table seven.
It should be noted that this four configuration items of industry field, purposes, operating system and middleware can choose therein one
It is a or multiple, and the user being calculated jointly with other configurations item is averaged configuration parameter, and most preferably industry field, use
On the way, four configuration items of operating system and middleware, because aforementioned four configuration item has selected " service provides " (i.e. in purposes
Server in scene), least calculating dimension is not only allowed for, and can most improve the finally obtained standard for recommending configurations
True property and reasonability.
It, can be one in aforementioned four configuration item if having selected " personal host " in the configuration item of the purposes in Fig. 1
And increase the configuration item of " number ", to fully consider the performance to multi-user access cloud host of the cloud host of final configuration formation
It is required that.
Table seven
User to be calculated is averaged shown in the following tables eight of configuration parameter ginseng:
Configuration item |
Numerical value |
Calculating process and result |
cpu-o |
3 |
(4+2+4)/3=3.33 ≈ 3 |
memory-o |
4 |
(4+4+4)/3=4 |
sdisk-o |
33 |
(40+20+40)/3=33 |
ddisk-o |
75 |
(100+50+100)/3=75 |
network-o |
4 |
(4+4+4)/3=4 |
Table eight
Finally, the consequently recommended configuration result of operation: user is averaged corresponding to configuration data and basic recommended configuration data
Configuration item be compared, each configuration item access is worth maximum value, specifically join shown in following tables nine:
Table nine
Recommended configuration 101a is ultimately formed in recommending interface 100a, to show CPU, memory, system disk, data to user
The specific value of disk and bandwidth.And setting " submission " the button 102a and " customization of individual character " button 103a in recommending interface 100.If
User clicks button 102a, then the not customization of individual character step of triggering following, if clicking button 103a, the individual character of triggering following is fixed
Step processed.
Finally, executing customization of individual character step.
Join shown in Fig. 4, customization of individual character interface 100b receives the suitable lattice data that service server 203 returns, and at described
Property Custom Interface 100b in form the selector bar 103b to match with configuration item quantity, the selector bar 103b formation can limit
Slide and demarcate the sliding block 113b of configuration item numerical value.Selector bar 103b can be designed based on UI, be set as changeable colour UI.Customization of individual character
Configuration item region 101b is formed in the 100b of interface.User can drag sliding block 113b respectively, and make in corresponding selector bar 103b
Linear slide, to make personalized customization to corresponding configuration item.Meanwhile in sliding block 113b linear slide and to configuration item make
Property customization procedure in, by average configuration data corresponding to the numerical value of the sliding block 113b configuration item demarcated and suitable lattice data or
Configurations data are compared.
When the current-configuration item setting of sliding block 113b calibration is less than average configuration data or configurations data, selector bar
Issue alarm.Alarm by can choose a 103b redden or in the form of sound, vibration prompt user.When sliding block 113b calibration
When being currently configured item setting more than or equal to average configuration data or configurations data, selector bar does not issue alarm.It is described
Not issuing alarm can be that selector bar 103b becomes green or the forms such as mute prompt user.
The method of recommendation cloud host configuration disclosed in the present embodiment runs on server.Server and client are established
Communication connection.Storage equipment 202, Analysis server 201 and service server 203 are deployed in server.Information input interface
100, interface 100b and customization of individual character interface 100b insertion is recommended to run on the server.
After customization of individual character interface 100b completes individual cultivation to multiple configuration items, " submission " button 102b is clicked, with
It is finally completed personalized customization step, and submits the request of confirmation configuration to service server 203.To be finally completed to CPU, interior
It deposits, the personalized customization of system disk, data disks and bandwidth operation.The personalization that service server 203 receives user's submission is fixed
The resource that cloud host is loaded, write storage device 202, to respond service server are determined in system.Write storage device 202
Operation can call last personalized customization from storage equipment 202 by Analysis server 201 again in order to later period user
The corresponding resource of operation, and information input interface 100 shown in figure 1 (is passed through according to basic data collection step above-mentioned
Realize), Allocation Analysis step, configuration recommendation step (pass through recommendations interface 100a illustrated in fig. 2 realize), and in conjunction with cloud platform
In resource overhead situation, it is (real by recommendation interface 100b illustrated in fig. 3 to carry out reasonable personalized customization configuration again
It is existing), prevent the personalized customization of user from operating the limitation for breaking through the resource upper limit of cloud platform.Certainly, in personalized customization step
After completion, further includes: the resource conservation for being loaded the determining cloud host to storage equipment 202.
In the present embodiment, the money by the monitoring resource program disposed in server to cloud host within a predetermined period of time
Source utilization rate determines whether triggering configuration change strategy in configuration change interface (shown in ginseng Fig. 5), and with the configuration after change
Data to storage equipment 202 in save with recommend interface 100a corresponding to recommended configuration data or with customization of individual character interface
Personalized configuration data corresponding to 100b is made to update operation.And it changes with the configuration data postponed as using to personalized
Configuration data is made to update operation or makees to update operation to personalized configuration data, then needs depending on aforementioned condition.That is, if
User has selected the obtained configuration data of configuration recommendation and has not triggered customization of individual character step, then only needs using change with postponing
Configuration data to the obtained configuration data of configuration recommendation step do update operation.
As shown in figure 5, its left-hand broken line frame shows the configuration data before change configuration, right side dotted line frame shows change
With the configuration parameter postponed." confirmation " button 101c and the " Cancel " button 102c is set in the 100c of configuration change interface, and is shown
Server before and after configuration change is the variation of the price for the cloud host that user configuration goes out.Button " is confirmed " when the user clicks
When 101c, configuration change interface 100c submits the request of confirmation configuration to service server 203, and is remembered by service server 203
Some specified user is recorded to being originally assigned to the record of resource corresponding to the cloud host of the user, and can be written into storage and set
Standby 202, meanwhile, configuration information is returned to configuration change interface 100c.Through the above technical solutions, realizing the later period user again
Secondary when needing to change configuration, the configuration data after change caused by last configuration change step can be taken by the analysis
Business device 201 calls again, and is sent to service server 203 again after parsing user data, executes above-mentioned change with traversal
Configuration step.If user click the " Cancel " button 102c, stop this change operation, at this time service server 203 not to point
It analyses server 201 and issues call request.
Cooperation is referring to shown in Fig. 6 and Fig. 7, and in the present embodiment, which is deployed in by calculate node 21, deposits
Node 22, network node 23 are stored up with cloud platform composed by control node 24, is set by the monitoring resource program
Time (in the present embodiment, the time of the setting is chosen to be 7 days), the resource consumption data of cloud host are saved to database;
The configuration change strategy runs on service server 203, and the resource for calculating cloud host pre-loaded resource and cloud host disappears
The difference absolute value between data is consumed, executes amendment to determine to execute increase to the cloud host or reduce resource distribution.?
In the present embodiment, difference absolute value can be positive difference and be also possible to negative spread.Positive difference indicate to increase cloud host it is a kind of or
The numerical value of several configuration items of person, negative spread indicate the numerical value for reducing one or several kinds of configuration items to cloud host.
Meanwhile after amendment further include: the configuration item that revised resource is included by service server 203 is synchronous more
Newly to control node 24, and the configuration item for being included by revised resource by control node 24 is to calculate node 21, network
Corresponding configuration item executes update in node 22 and memory node 23.
Hereinafter, applicant shows the example of a specific change configuration step, with presenting a demonstration property explanation.
Firstly, every 1 point of monitoring resource program in calculate node 21, memory node 22, network node 23 in cloud platform
The resource of each cloud host is written using data to database clock;In the present embodiment, database uses time series database
InfluxDB;The data that each node (i.e. calculate node 21, memory node 22, network node 23) can monitor are as follows:
Calculate node 21:CPU service condition, memory service condition;Memory node 22: disk service condition;Network node
23: flow service condition.
Resource is using data definition as shown in following table ten:
Cloud host master key |
Cloud Hostname |
Monitoring period |
Cpu usage |
Memory service condition |
Disk service condition |
Flow service condition |
Table ten
Step 2: morning obtains the money of each cloud host complete cycle last week (seven days) to service server from database on every Mondays
Source uses data, and data are carried out phase adduction divided by data bulk, show that the resource per minute of each cloud host averagely uses number
According to example is as shown in following table 11 to table 14.
Cloud host A is configured as shown in following table 11:
Cloud host master key |
i-A00001 |
Cloud Hostname |
A |
CPU |
8 |
Memory |
8G |
System disk |
50G |
Data disks |
200G |
Bandwidth |
5Mbps |
Table 11
Monitoring resource uses data as shown in following table 12 and table 13:
Table 12
Cloud host master key |
i-A00001 |
Cloud Hostname |
A |
Monitoring period |
2019-01-20 10:01:00 |
Cpu usage |
20% |
Memory service condition |
1G |
System disk service condition |
10G |
Data disks service condition |
20G |
Bandwidth usage |
0.5Mbps |
Table 13
Resource averagely uses data as shown in following table 14:
Title |
Value |
Calculating process |
Cloud host master key |
i-A00001 |
|
Cloud Hostname |
A |
|
Cpu usage |
25% |
(30%+20%)/2 |
Memory service condition |
1.5G |
(2+1)/2 |
System disk service condition |
10G |
(10+10)/2 |
Data disks service condition |
20G |
(20+20)/2 |
Bandwidth usage |
1Mbps |
(1.5+0.5)/2 |
Table 14
Then, each Taiwan investment source is averagely used data items multiplied by particular factor by service server 203.Coefficient is fixed in this example
Justice is CPU=2.0, and memory=2.0, system disk=5.0, data disks=5.0, bandwidth=2.0 obtain each cloud host maximum money
Each configuration item and is respectively configured with cloud host and is compared using configuration by source, and formed following scene 1.~scene 4..
1. service server creates reduction and dilatation array in memory.
2. the configuration entry value, which is less than cloud host, configures entry value, which is written into reduction array.
3. the configuration entry value, which is greater than cloud host, configures entry value, which is written into dilatation array.
4. the configuration entry value, which is equal to cloud host, configures entry value, then do nothing.
Service server obtains reduction array and dilatation array from memory, if there is wherein one or two data not to be
Sky takes out not for the value in empty array, forms and recommend the configuration of cloud host, user is notified to carry out cloud by way of short message or mail
Host configuration reduction or dilatation, shown in the configuration result ginseng table 15 after reduction or dilatation.
Title |
Recommendation |
Calculating process |
Recommendation results |
Cloud host master key |
i-A00001 |
|
|
Cloud Hostname |
A |
|
|
CPU |
4 |
25% × 2.0 × 8 < 8 |
Reduction |
Memory |
3G |
1.5×2.0<8G |
Reduction |
System disk |
50G |
10G × 5.0=50G |
It is constant |
Data disks |
100G |
20G×5.0<100G |
Reduction |
Bandwidth |
2Mbps |
1×2.0<5Mbps |
Reduction |
Table 15
Finally, user 50 can be by logging in cloud platform access configuration change interface (such as Fig. 5), configuration change circle service-oriented
Server 203 initiates request, obtains configuration change data and reduction, dilatation difference, and show user;User clicks " really
Recognize " button 101c, then it carries out amount balance and initiates configuration change request to service server 203.
If user 50 does not confirm in 7 days, and in the presence of that can reduce configuration item, then the triggering of service server 203 is forced
Take-back strategy: automatic reduction cloud host configuration, and the configuration of primitive nebula host is returned with reduction with the difference for postponing cloud host.
Request after configuration change is sent to control node 24 by service server 203, and will be based on matching by control node 24
It sets the associated configuration information of change request and is distributed to calculate node 21, network node 22 and memory node 23, calculated with realizing
Node 21, network node 22 and memory node 23 respectively complete automatically updating for configuration change.
It further include executing reduction resource distribution to the cloud host to execute corresponding to amendment after completing configuration change step
Resource execute reclaimer operation, and expense corresponding to the resource for executing reclaimer operation is returned to the use for configuring the cloud host
In account corresponding to family;
And resource corresponding to cloud host execution increase resource distribution execution amendment is loaded to configure again and is grasped
Work, and will execute corresponding to user 50 of the expense from the configuration cloud host corresponding to the resource of load configuration operation again
It is deducted in account;The return or deduction operation of the expense are held by the account settlement unit 213 run in service server
Row.
The revealed method for recommending the configuration of cloud host of the present embodiment, not only ensure that the various resources in cloud platform can
It is reasonably utilized, the reasonability that cloud host configures also is improved simultaneously, after the creation cloud host for effectively preventing user's blindness
The phenomenon that expense of caused creation cloud host wastes, and the cloud host for being ensured to be user configuration formation can be more nearly
The latter meets user to the real-time requirement of cloud host, does not need setting elastic telescopic and configures threshold value, to improve to cloud master
Machine carries out flexibility, real-time and the accuracy of elastic configuration.