Summary of the invention
The technical problem to be solved in the present invention is to provide the virtual dispatching method of a kind of cloud computing and device, can not realize the problem of service based amount scheduling in order to solve prior art medium cloud platform.
For solving the problems of the technologies described above, on the one hand, the invention provides the virtual dispatching method of a kind of cloud computing, said method comprising the steps of:
The configuration threshold values corresponding with operation system issues interface and traffic carrying capacity reports interface on the cloud platform, and configures the upper and lower limit threshold values of described operation system traffic carrying capacity;
Described upper and lower limit threshold values is issued interface by described threshold values be handed down to described operation system;
Traffic carrying capacity to described operation system is monitored, and reports interface to report monitoring result to described cloud platform by described traffic carrying capacity;
According to described monitoring result, carry out virtual scheduling.
Further, described monitoring result comprises:
The traffic carrying capacity of described operation system is over described upper limit threshold values or lower than described lower limit threshold values.
Further, according to described monitoring result, carry out virtual scheduling, specifically comprise:
When the described monitoring result traffic carrying capacity that is described operation system surpasses described upper limit threshold values, start a main frame that is in closed condition, and start the business virtual machine on this main frame;
The traffic carrying capacity balance dispatching of described operation system to all business virtual machines, and is continued the traffic carrying capacity of described operation system is monitored.
Further, according to described monitoring result, carry out virtual scheduling, specifically comprise:
When described monitoring result is the traffic carrying capacity of described operation system during lower than described lower limit threshold values, all the business virtual machine (vm) migrations on the main frame of least-loaded to other main frame, are then closed this main frame;
The traffic carrying capacity balance dispatching of described operation system to remaining all business virtual machines, and is continued the traffic carrying capacity of described operation system is monitored.
Further, when the traffic carrying capacity of described operation system is between described upper limit threshold values and described lower limit threshold values, continue the traffic carrying capacity of described operation system is monitored.
On the other hand, the present invention also provides a kind of cloud computing virtual dispatching device, and described device comprises:
Dispensing unit, the threshold values corresponding with operation system issues interface and traffic carrying capacity reports interface for configuring on the cloud platform, and configures the upper and lower limit threshold values of described operation system traffic carrying capacity;
Issue the unit, be used for that described upper and lower limit threshold values is issued interface by described threshold values and be handed down to described operation system;
Report the unit, be used for the traffic carrying capacity of described operation system is monitored, and report interface to report monitoring result to described cloud platform by described traffic carrying capacity;
Scheduling unit is used for according to described monitoring result, carries out virtual scheduling.
Further, described monitoring result comprises:
The traffic carrying capacity of described operation system is over described upper limit threshold values or lower than described lower limit threshold values.
Further, described scheduling unit specifically is used for:
When the described monitoring result traffic carrying capacity that is described operation system surpasses described upper limit threshold values, start a main frame that is in closed condition;
To the main frame of new startup, make the traffic carrying capacity balance dispatching of described operation system to All hosts a part of business virtual machine (vm) migration, and continue the traffic carrying capacity of described operation system is monitored.
Further, described scheduling unit specifically is used for:
When described monitoring result is the traffic carrying capacity of described operation system during lower than described lower limit threshold values, all the business virtual machines on a main frame are all moved on other main frame, then close this main frame;
The traffic carrying capacity balance dispatching of described operation system to remaining All hosts, and is continued the traffic carrying capacity of described operation system is monitored.
Further, the described unit that reports specifically is used for:
When the described traffic carrying capacity that reports the described operation system of unit monitoring is between described upper limit threshold values and described lower limit threshold values, continue the traffic carrying capacity of described operation system is monitored.
Beneficial effect of the present invention is as follows:
The present invention dispatches according to the upper and lower limit threshold values that sets in advance by monitoring operation system traffic carrying capacity, has realized the scheduling mode that the service based amount is dispatched, and has reflected actual scheduling situation, and is more accurate, and has advantages of energy-saving and cost-reducing.
Embodiment
In order to solve the problem that can not realize the scheduling of service based amount in prior art, the invention provides the virtual dispatching method of a kind of cloud computing and device, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, does not limit the present invention.
The main purpose of the embodiment of the present invention is to provide a kind of virtual dispatching method of cloud computing and device of service based amount, and the information of the system that can arrange and accept business is dispatched according to business characteristic.Technical scheme comprises and traffic carrying capacity dispatch interface, configuration service amount scheduling threshold values is set, issues threshold values to operation system, service system monitoring traffic carrying capacity, operation system and report, report according to operation system and dispatch six steps.
As shown in Figure 1, the embodiment of the present invention relates to the virtual dispatching method of a kind of cloud computing, comprises the following steps:
Step S101, the configuration threshold values corresponding with operation system issues interface and traffic carrying capacity reports interface on the cloud platform, and configures the upper and lower limit threshold values of described operation system traffic carrying capacity;
In this step, the dispatch interface of definition traffic carrying capacity on the cloud platform, interface comprise that the threshold values of the setting of cloud platform and issuing service amount threshold values issues interface and operation system reporting service amount information and reports interface to the traffic carrying capacity of cloud platform.The cloud platform provides unified interface format, and as long as each operation system is according to this form, just can realize and the docking of cloud platform.
The cloud platform provides the unified scheduling configuration page, and after the login scheduling configuration page, the page can present configuration item according to the dispatch interface of configuration.Usually two threshold values of upper and lower bound that need configuration service system business amount.The concrete numerical value of upper and lower limit threshold values can have more the experience setting, also can carry out emulation by l-G simulation test and obtain; Perhaps obtain optimal values by repeatedly adjusting.
In addition, usually to a plurality of operation systems should be arranged, therefore, when being configured, also need the ID (IDentity, identify label number) of configuration service system due to the cloud platform, like this, the cloud platform just can be distinguished different operation systems.
Step S102 issues interface with described upper and lower limit threshold values by described threshold values and is handed down to described operation system;
In this step, the cloud platform is according to operation system title (ID), issues by threshold values the upper and lower limit threshold values that interface will be corresponding with this operation system and sends to this operation system.
Step S103 monitors the traffic carrying capacity of described operation system, and reports interface to report monitoring result to described cloud platform by described traffic carrying capacity;
In this step, operation system need to have the function of the own traffic carrying capacity of monitoring, and traffic carrying capacity is judged, judges that whether it is over upper limit threshold values or lower than the lower limit threshold values.Traffic carrying capacity can be presented as percentage, perhaps the form of concrete numerical value.
The situation of change of service system monitoring traffic carrying capacity, if find that traffic carrying capacity reaches the threshold values of setting, (surpass upper limit threshold values or lower than the lower limit threshold values), and state and report for the last time inconsistent, think that service needed dispatches, need to send out message to the cloud platform.Traffic carrying capacity by definition reports interface to report monitoring result to arrive the cloud platform.Report content to comprise operation system sign (operation system title) and threshold values state.The threshold values state can be for surpassing upper limit threshold values or lower than the lower limit threshold values.Wherein, operation system sign is used for to the main frame situation of cloud platform area separate service virtual machine operation, the dispatching party that the threshold values state is used for instructing the cloud platform to.
Step S104 according to described monitoring result, carries out virtual scheduling.
The data that operation system reports comprise traffic ID and threshold values state, after the cloud platform is received, according to the threshold values state be converted to specific dispatching party to.If reach lower limit, dispatching party is to for energy-saving and cost-reducing; If reach the upper limit, dispatching party is to being load balancing.All by the realization of cloud platform, operation system does not need to be concerned about the specific implementation of scheduling in scheduling.But operation system need to be monitored the equipment operation of oneself, finds the startup of business virtual machine and stops.
In this step, when monitoring result is that traffic carrying capacity surpasses upper limit threshold values, show that current need business to be processed is more, need to increase main frame and process, therefore, carrying out virtual scheduling is to open a main frame; Then average load, be about to traffic carrying capacity and be averagely allocated on All hosts.For example, a kind of scheduling mode is: with load the most a part of business virtual machine (vm) migration of high main frame move to the main frame of new startup.When monitoring result is traffic carrying capacity during lower than the lower limit threshold values, show that current need business to be processed is less, should close some main frames, be beneficial to save energy and reduce the cost.Therefore, carrying out virtual scheduling is to close a main frame.But before closing this main frame, need to first carry out average load, on the main frame that soon all business virtual machine (vm) migrations of this main frame are moving to other, make business be averagely allocated to remaining All hosts.Usually, close according to the order that the load of main frame is ascending, that is to say, preferentially with the business scheduling virtual machine of least-loaded to other main frame, then close the main frame of least-loaded.
Below, in conjunction with a specific embodiment, be elaborated.
As shown in Figure 2, the virtual dispatching method of the related a kind of cloud computing of the embodiment of the present invention comprises the following steps:
Step S201 arranges the traffic carrying capacity dispatch interface;
In this step, the cloud platform provides unified interface format (interface format sees Table 1), like this cloud platform just can with the miscellaneous service system docking, unified development specifications, thereby also simplified the development difficulty of operation system.
Table 1
When the corresponding a plurality of operation system of cloud platform, after the interface exploitation of operation system is completed, then define in the cloud platform, the cloud platform just can be known to that operation system sending valve Value Data like this, the data that the while also could the correct system of accepting business reports.Because interface definition does not relate to concrete business tine and the details of service operation, so the exploitation of interface is non-intrusion type, avoided the impact of interface on business itself for operation system.
Step S202, configuration service amount scheduling threshold values;
In this step, operation system realizes the registration of business by definition informing business platform, and because interface is fixed, so the cloud platform just can provide the unified scheduling configuration page (page is as shown in table 2), and inside realizes distinguishing by service key.On webpage representation, the user can select title, the descriptor of required configuration service, and passes through the bound threshold values of input frame configuration service amount.
Table 2
Step S203, cloud platform issuing service amount scheduling threshold values is to operation system;
Submission after page configuration is completed, the cloud platform calls threshold values and issues interface according to the Business Name (traffic ID) of selecting, and upper limit threshold values, lower limit threshold values are issued to the operation system corresponding with Business Name.After operation system was received information, whether response arranged the upper and lower limit threshold values successful, and the cloud platform represents the page according to the information of returning.When the cloud platform for some reason, when the upper and lower limit threshold values that issues went wrong, for example the upper and lower limit threshold values was 200%, operation system responds that the upper and lower limit threshold values is set is unsuccessful to the cloud platform.
Step S204, operation system is monitored traffic carrying capacity;
The ruuning situation of service system monitoring self belongs to the basic function of operation system, so there is not too many development, operation system is as long as add the judgement of traffic carrying capacity in monitoring.Traffic carrying capacity can be presented as percentage, the perhaps form of concrete numerical value, and this is completed voluntarily by operation system.
Step S205 judges that the traffic carrying capacity of operation system whether lower than the lower limit threshold values, if so, turns step S206, if not, turns step S207;
Step S206, when the traffic carrying capacity of operation system during lower than the lower limit threshold values, operation system reports interface that monitoring result is sent to the cloud platform by traffic carrying capacity, notice cloud platform starts energy-saving and cost-reducing scheduling method, that is: the business virtual machine with a main frame all moves on other main frame that is moving, and then closes this main frame; During migration business virtual machine, need to the traffic carrying capacity balance dispatching to the residual owners machine, carry out equally loaded.Usually, close according to the order that the load of main frame is ascending, that is to say, preferentially with the business scheduling virtual machine of least-loaded to other main frame, then close the main frame of least-loaded.After being finished, this step turns step S204;
Step S207 judges that the traffic carrying capacity of operation system whether higher than upper limit threshold values, if so, turns step S208, if not, turns step S204;
Step S208, when the traffic carrying capacity of operation system during higher than upper limit threshold values, operation system reports interface that monitoring result is sent to the cloud platform by traffic carrying capacity, notice cloud platform starting load balance dispatching pattern, that is: will start a main frame that is in closed condition, then with a part of business virtual machine (vm) migration to the main frame of new startup, during migration business virtual machine, should make the traffic carrying capacity balance dispatching to the main frame of all startups, carry out equally loaded.Usually, preferentially with a part of business virtual machine (vm) migration of load maximum to the main frame of new startup, carry out equally loaded.After being finished, this step turns step S204.
In the present embodiment, when the cloud platform changes or stop the current scheduling strategy, represent that flow process finishes.
In step S206, S208, each adjustment is all close or start a main frame, and then turns step S204, proceeds business amount monitor, when again triggering scheduling, closes again or starts a main frame.That is, the present embodiment is to adopt the mode of stepping to dispatch, and therefore, dispatching effect is better accurately.
In addition, the present embodiment also relates to a kind of virtual dispatching device of cloud computing of realizing said method, comprising:
Dispensing unit 301, the threshold values corresponding with operation system issues interface and traffic carrying capacity reports interface for configuring on the cloud platform; And configure the upper and lower limit threshold values of described operation system traffic carrying capacity;
Issue unit 302, be used for that described upper and lower limit threshold values is issued interface by described threshold values and be handed down to described operation system;
Report unit 303, be used for the traffic carrying capacity of described operation system is monitored, and report interface to report monitoring result to described cloud platform by described traffic carrying capacity;
Scheduling unit 304 is used for according to described monitoring result, carries out virtual scheduling.
Wherein, monitoring result comprises: the traffic carrying capacity of described operation system is over described upper limit threshold values or lower than described lower limit threshold values.
Scheduling unit 304 specifically is used for:
When the described monitoring result traffic carrying capacity that is described operation system surpasses described upper limit threshold values, start a main frame that is in closed condition;
To the main frame of new startup, make the traffic carrying capacity balance dispatching of described operation system to All hosts a part of business virtual machine (vm) migration, and continue the traffic carrying capacity of described operation system is monitored.
When described monitoring result is the traffic carrying capacity of described operation system during lower than described lower limit threshold values, all the business virtual machines on a main frame are all moved on other main frame, then close this main frame;
The traffic carrying capacity balance dispatching of described operation system to remaining All hosts, and is continued the traffic carrying capacity of described operation system is monitored.
Report unit 303 specifically to be used for:
When the traffic carrying capacity that reports the unit 303 described operation systems of monitoring is between described upper limit threshold values and described lower limit threshold values, continue the traffic carrying capacity of described operation system is monitored.
The concrete function of related each unit of this device embodiment has detailed description in embodiment of the method, based on concise and to the point consideration, the present embodiment is not being described in detail.
As can be seen from the above-described embodiment, the present invention dispatches according to the bound threshold values that sets in advance by monitoring operation system traffic carrying capacity, realized the scheduling mode that the service based amount is dispatched, reflected actual scheduling situation, more accurate, and have advantages of energy-saving and cost-reducing.
Although be the example purpose, the preferred embodiments of the present invention are disclosed, it is also possible those skilled in the art will recognize various improvement, increase and replacement, therefore, scope of the present invention should be not limited to above-described embodiment.