Resource scheduling method, device and system
Resource regulating method, device and system technical field
The present embodiments relate to the network communications technology, more particularly to a kind of resource regulating method, device and system.Background technology
Cloud is a kind of emerging network distributed computing technology, can be packaged specific ins and outs by cloud, then provide service by providing a user relatively simple interface.Many enterprises are all deployed with privately owned cloud platform at present, will apply and move to the respective privately owned cloud platform of enterprise.Such as China Telecom, movement enterprise, their application include enterprise resource planning(Enterprise Resource Planning, abbreviation ERP), charging, online business hall, billing statistics analysis, marketing analysis, portal website etc., respective application is deployed in the privately owned cloud platform of enterprise itself by they.
Generally, the number of resources that enterprise can be according to needed for being calculated the portfolio of concrete application, so as to be the application deployment respective resources in the privately owned cloud platform of enterprise.Prior art in the privately owned cloud platform of enterprise for some application deployment resource, it is by calculating each time zone using required resource, then according to the required maximum using resource of each time zone application, the static configuration of resource is carried out to the cluster virtual machine of internal cloud platform.
But, the portfolio of the application of most enterprises is in different time zone and unstable, for example:The portfolio of the application of most enterprises will be increased sharply in the end of the year, but then relatively more steady in other time zones.If the maximum for the number of resources that enterprise calculates according to each time zone carries out applying deployment, more resource is in idle condition in the relatively low most time zones of portfolio, configured resource, causes the wasting of resources.If enterprise, then can be because of the inadequate resource disposed in advance, so that corresponding service can not be provided when traffic peaks occurs in the application not by the maximum deployment resource of the portfolio calculated using each time zone.The content of the invention
The embodiment of the present invention provides a kind of resource regulating method, device and system, to be supplemented by dispatching outside cloud resource internal cloud resource, so as to ensure the service quality of application.
The embodiments of the invention provide a kind of resource regulating method, including:
The portfolio for each process currently run in application is obtained, the application deployment is internally in the cluster virtual machine of cloud platform;
When the portfolio for each process currently run in the application meets preparatory condition, according to the flexible strategy of the process of the application obtained in advance, determine that the cluster virtual machine needs the number of resources extended;It is determined that during to outside cloud platform application scheduling resource, sending virtual machine application to outside cloud platform according to the number of resources of determination and asking;
After the virtual machine information that the outside cloud platform is returned is received, the external Virtual machine pointed to the virtual machine information disposes the process of the application.
The embodiment of the present invention additionally provides a kind of resource scheduling device, including:
Information obtains ear not block, the portfolio for obtaining each process currently run in application, and the application deployment is internally in the cluster virtual machine of cloud platform;
Number of resources determining module, when the portfolio of each process for currently running in the application meets preparatory condition, according to the flexible strategy of the process of the application obtained in advance, determines that the cluster virtual machine needs the number of resources extended;
Scheduling of resource application module, for it is determined that during to outside cloud platform application scheduling resource, sending virtual machine application to outside cloud platform according to the number of resources of determination and asking;
Application process transferring module, for after the virtual machine information that the outside cloud platform is returned is received, the external Virtual machine pointed to the virtual machine information to dispose the process of the application.
The embodiment of the present invention additionally provides a kind of resource scheduling system, including:
Internal cloud platform and outside cloud platform;And
Above-mentioned resource scheduling device;The resource scheduling device is communicated to connect with the internal cloud platform and the outside cloud platform.
Resource regulating method provided in an embodiment of the present invention, device and system, can carry out the dynamic dispatching of resource by granularity of process according to the portfolio of each process of the application disposed to cluster virtual machine.During the dynamic dispatching of resource, if the idling-resource of internal cloud platform can not meet the business increased requirement of the application, resource supplement can be carried out to outside cloud platform application resource, and carries out the procedure deployment of external Virtual machine, the service quality of application has thus been ensured.Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art
Without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.Fig. 1 is the resource regulating method flow chart that the embodiment of the present invention one is provided;
Fig. 2 is the structural representation for the resource scheduling system that the embodiment of the present invention two is provided;
Fig. 3 is the internal structure example of internal cloud platform in Fig. 2;
Fig. 4 is the signaling interaction diagram for the resource regulating method that the embodiment of the present invention three is provided;
Fig. 5 is the signaling interaction diagram for the resource regulating method that the embodiment of the present invention four is provided;
Fig. 6 is the structural representation for the resource scheduling device that the embodiment of the present invention five is provided.Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not paid belongs to the scope of protection of the invention.
The sequence number of following examples of the present invention is for illustration only, and the quality of embodiment is not represented.
Fig. 1 is the resource regulating method flow chart that the embodiment of the present invention one is provided.Method as shown in Figure 1 includes:
Step 11:The portfolio for each process currently run in application is obtained, the application deployment is internally in the cluster virtual machine of cloud platform.
Internal cloud platform is deployed with multiple cluster virtual machines in advance;One cluster virtual machine includes multiple virtual machines;One cluster virtual machine can dispose an application or multiple applications;One application may include one or more processes;One process can be deployed on one or more virtual machines.
After internally the application deployment of cloud platform is completed, the real time traffic load for the application disposed in internal cloud platform in cluster virtual machine can be obtained.The real time traffic load of certain application may include:The information such as process, the portfolio of each process currently run in the application;User's number of request information that the portfolio of a certain process such as process is received.
Step 12:When the portfolio for each process currently run in the application meets preparatory condition, according to the flexible strategy of the process of the application obtained in advance, determine that the cluster virtual machine needs the number of resources extended.
Preparatory condition described in this step can be set according to actual needs.For example, preparatory condition can be:The portfolio sum of each process of application is more than the first pre-determined threshold, and the idling-resource of cluster virtual machine can not
Meet the portfolio increased requirement for applying each process;Or, preparatory condition can also be:The respective portfolio of one or more processes currently run in is more than the second pre-determined threshold, and the idling-resource of cluster virtual machine can not meet these process portfolio increased requirements.Wherein, the idling-resource of above-mentioned cluster virtual machine can be obtained in advance.
If the portfolio for each process currently run in the application meets preparatory condition, according to the flexible strategy of the process of the application obtained in advance, determine that the cluster virtual machine needs the number of resources extended.
The flexible strategy of the process of the application can be obtained in advance, acquisition in the application deployment request such as provided from user.The flexible strategy of process may include:Increase the application enters number of passes;Under the situation, the number of resources that cluster virtual machine needs extend is:Increase the number of resources needed for the process of predetermined number.Or, the flexible strategy of process may include:Increase the number of resources for the one or more processes currently run in the application;Under the situation, the number of resources that the cluster virtual machine needs extend is:The increased total number resource for needed for each process currently run in the application.
Step 13:It is determined that during to outside cloud platform application scheduling resource, sending virtual machine application to outside cloud platform according to the number of resources of determination and asking.
This step can be according to predetermined policy, and whether decision-making is to outside cloud platform application scheduling resource.
Optionally, this step can be according to the idling-resource situation of internal cloud platform, and decision-making is to outside cloud platform or internal cloud platform application scheduling resource.For example:If the resource of internal cloud platform is more sufficient, the idling-resource of internal cloud platform can provide the scheduling of the number of resources of determination, then internally in the idling-resource of cloud platform, the number of resources determined can be dispatched for the cluster virtual machine.If the inadequate resource of internal cloud platform, the idling-resource of internal cloud platform can not provide the scheduling of the number of resources of determination, virtual machine application then can be sent to outside cloud platform according to the number of resources of determination to ask, for outside cloud platform application scheduling resource.
Optionally, this step can also be according to the portfolio variation tendency of each process currently run in the application, and whether decision-making is to outside cloud platform application scheduling resource.If it is an acts and efforts for expediency that the portfolio for each process currently run in the application, which increases, it is determined that to outside cloud platform application scheduling resource;If it is a long-term action that the portfolio for each process currently run in the application, which increases, it is determined that to outside cloud platform application scheduling resource.
Step 14:After the virtual machine information that the outside cloud platform is returned is received, the external Virtual machine pointed to the virtual machine information disposes the process of the application.
For ease of describing, in the embodiment of the present invention:By the void of the physical resource deployment based on internal cloud platform
Plan machine, referred to as internal virtual machine;By the virtual machine of the physical resource deployment based on outside cloud platform, referred to as external Virtual machine.
Outside cloud platform, can be according to virtual machine application request deployment external Virtual machine after virtual machine application request is received, and returns to virtual machine information;The virtual machine information includes:The information such as the reference address of external Virtual machine., can be by the process of the application, according on default process migration policy deployment to external Virtual machine after the virtual machine information that outside cloud platform is returned is received.
Default process migration strategy is for example:The process of pre-determined threshold will be less than in application with other process interaction frequency, i.e. the first process is disposed the internal virtual machine of the cluster virtual machine of the application from internal cloud platform, moved on external Virtual machine.After on the first process migration to external Virtual machine, internal cloud platform disposes the resource that first process of the cluster virtual machine release of the application takes, available for being supplied to other processes of the application to use, to meet the requirement of the application service quality.Further, since the first process and the frequency of other process interactions are relatively low, therefore, by the first process migration to external Virtual machine, the interaction between too many process will not be increased, thus the influence to the performance and service quality of application is smaller.
Or, presetting process migration strategy can also be such as:All processes currently run in the application are disposed on outside virtual machine, and the partial service load of the application is moved into external Virtual machine from the internal virtual machine of cluster virtual machine.So after deployment, the application can carry out load balancing by internal virtual machine and external Virtual machine, thus ensure the service quality of the application.
Above two process migration strategy can be applied to dispose the situation of single application in a cluster virtual machine, apply also for disposing the situation of multiple applications in a cluster virtual machine.
If in addition, in the case of a cluster virtual machine disposes multiple applications, presetting process migration strategy can also be such as:An application in multiple applications that the cluster virtual machine is disposed, i.e., all processes currently run in the first application and the application, external Virtual machine is all moved to from the internal virtual machine of cluster virtual machine.So after deployment, the resource that first application of cluster virtual machine release takes, provides service, to ensure the service quality of other application available for the other application disposed for the cluster virtual machine, and the business and its service quality of the first application, it can be provided by external Virtual machine.
The resource regulating method that the present embodiment is provided, can be according to the portfolio of each process of the application disposed to cluster virtual machine, the dynamic dispatching of progress resource by granularity of process.During the dynamic dispatching of resource, if the idling-resource of internal cloud platform can not meet the business increased requirement of the application, resource supplement can be carried out to outside cloud platform application resource, and carries out the procedure deployment of external Virtual machine, the service quality of application has thus been ensured.
Fig. 2 is the structural representation for the resource scheduling system that the embodiment of the present invention two is provided.Resource scheduling system as shown in Figure 2 includes:Internal cloud platform 21, resource scheduling device 22 and outside cloud platform 23;Resource scheduling device 22 is communicated to connect with internal cloud platform 21 and outside cloud platform 23 respectively.
The internal structure of internal cloud platform 21 can be found in shown in Fig. 3, specifically, internal cloud platform can the physical resource based on internal cloud platform dispose multiple cluster virtual machines, each cluster virtual machine includes one or more virtual machines, and a cluster virtual machine includes multiple virtual machines;One cluster virtual machine can dispose an application or multiple applications;One application may include to multiple processes;One process can be deployed on one or more virtual machines.Internal cloud platform 21 can be privately owned cloud platform;Or, internal cloud platform 21 can be publicly-owned cloud platform, such as expansible cloud computing of Amazon elasticity(Amazon Elastic Compute Cloud, abbreviation Amazon EC2) platform etc..
When the business load that resource scheduling device 22 is responsible for a certain application that cloud platform has been disposed internally meets the idling-resource of preparatory condition and internal cloud platform and can not meet application service quality, to resources such as outside cloud platform application external Virtual machines.
Outside cloud platform 23 can be privately owned cloud platform;Or, outside cloud platform 23 can be publicly-owned cloud platform, such as Amazon EC2, IBM dilatations on demand(IBM Capacity on Demand, abbreviation IBM COD), the cloud platform such as Hewlett-Packard's business event (HP Enterprise service).
Fig. 4 is the signaling interaction diagram for the resource regulating method that the embodiment of the present invention three is provided.The present embodiment is illustrated by taking the resource scheduling system shown in Fig. 2 and Fig. 3 as an example.Exemplified by one cluster virtual machine of the present embodiment, and the cluster virtual machine disposes an application.As in Figure 2-4, the resource regulating method that the present embodiment is provided includes:
Step 41:Resource scheduling device collects the cluster virtual machine information information related to application service quality.Cluster virtual machine information includes:The information such as the identifying of the cluster virtual machine disposed, application, the resource service condition of each cluster virtual machine of the deployment of each cluster virtual machine.
The related information of application service quality includes:Using information such as corresponding cluster virtual machine, the loading conditions of application;The loading condition of application includes:The information such as process, the portfolio of each process currently run in.
Step 42:Resource scheduling device judges whether the portfolio for each process currently run in the application meets preparatory condition according to the application service quality relevant information of the application, if it is satisfied, performing step 43;Otherwise, step 41 is performed.
Preparatory condition described in this step can be set according to actual needs.For example, preparatory condition can be:Should
The portfolio sum of each process is more than the first pre-determined threshold, and the idling-resource of cluster virtual machine can not meet the portfolio increased requirement for applying each process;Or, preparatory condition can also be:The respective portfolio of one or more processes currently run in is more than the second pre-determined threshold, and the idling-resource of cluster virtual machine can not meet these process portfolio increased requirements.Wherein, the idling-resource of above-mentioned cluster virtual machine can be obtained in advance.
If the portfolio for each process currently run in the application meets preparatory condition, according to the flexible strategy of the process of the application obtained in advance, determine that the cluster virtual machine needs the number of resources extended.
Step 43:Resource scheduling device obtains the flexible strategy of process of the application, determines that cluster virtual machine needs the number of resources extended according to the flexible strategy of the process.
The flexible strategy of the process of the application can be obtained in advance, acquisition in the application deployment request such as provided from user.The flexible strategy of process may include:Increase the application enters number of passes;Under the situation, the number of resources that cluster virtual machine needs extend is:Increase the number of resources needed for the process of predetermined number.Or, the flexible strategy of process may include:Increase the number of resources for the one or more processes currently run in the application;Under the situation, the number of resources that the cluster virtual machine needs extend is:The increased total number resource for needed for each process currently run in the application.
Step 44:Resource scheduling device can be according to the application service quality relevant information of the application, and decision-making is internally cloud platform or outside cloud platform application resource, if it is determined that internally cloud platform application resource, then performs step 45;If it is determined that to outside cloud platform application resource, then performing step 49.
Resource scheduling device can analyze the portfolio variation tendency for applying each process according to the application service quality relevant information of the application, and determine it is internally cloud platform or to outside cloud platform application scheduling resource according to analysis result., can internally cloud platform application resource if analysis result shows that the traffic load of each process of the application is long term phenomenon.If analysis result shows that the traffic load of each process of the application is short-term phenomenon, to outside cloud platform application resource, can thus avoid the occurrence of internal cloud platform physical resource blindly extend caused by resource utilization it is low the problem of.
Step 45:Internally cloud platform sends resource bid request to resource scheduling device, for asking to dispatch the number of resources determined for the cluster virtual machine.
Resource bid request may include:The information such as the number of resources, the mark of cluster virtual machine determined.Step 46:Internal cloud platform receives the resource bid request, it is determined whether can provide the scheduling of the number of resources of determination, if it is, performing step 47;Otherwise step 49 is performed.
Internal cloud platform asks the number of resources of application according to itself idling-resource number and resource bid, it is determined that
Whether this scheduling of resource can be provided.
If the resource of internal cloud platform is more sufficient, the idling-resource of such as internal cloud platform is more than or equal to the number of resources determined, then internal cloud platform can provide the scheduling of the number of resources of determination.
If the inadequate resource of internal cloud platform, the idling-resource of such as internal cloud platform is less than the number of resources determined, then internal cloud platform can not provide the scheduling of the number of resources of determination.
Step 47:Internal cloud platform distributes the physical resource matched with the number of resources determined in itself idling-resource, and the information of the physical resource of distribution is sent into resource scheduling device.
If internal cloud platform is determined to provide the scheduling of the number of resources determined, then internally in the idling-resource of cloud platform, the physical resource matched with the number of resources determined is distributed, and the information of the physical resource of distribution is sent to resource scheduling device.
Step 48:The physical resource that resource scheduling device is distributed based on internal cloud platform, according to the flexible tactful flexible processing of carry out process of above-mentioned process.
The flexible processing of resource scheduling device process is for example:Resource scheduling device increases the process for applying predetermined number newly in cluster virtual machine, or, resource scheduling device, which increases the application, to be needed to increase the governable memory source of one or more processes of resource.
Step 49:Resource scheduling device sends virtual machine application to outside cloud platform and asked according to the number of resources of determination.
Virtual machine application request includes:The specification and quantity of virtual machine, virtual machine need the information such as image banner to be mounted, the corresponding cluster virtual machine information of virtual machine, outside cloud platform mark.
Virtual machine needs the corresponding file of image banner to be mounted, can be uploaded to by the interface of outside cloud platform in outside cloud platform.
Outside cloud platform can be privately owned cloud platform;Or, outside cloud platform can be publicly-owned cloud platform, such as
The cloud platforms such as Amazon EC2, IBM COD, Hewlett-Packard's business event.
Resource scheduling device is specific from which outside cloud platform application resource, can be pre-configured with by keeper.Or, resource scheduling device can be according to predetermined condition automatic decision from which outside cloud platform application resource, such as the specification information for the virtual machine that the outside cloud platform that basis is obtained in advance can be provided, it is possible to provide the required virtual machine specification same size of Current resource scheduling or the outside cloud platform close to specification, is used as target external cloud platform.
Step 410:Outside cloud platform receives virtual machine application request, according to virtual machine application request deployment external Virtual machine in the physical resource of outside cloud platform.Virtual machine information is returned to resource scheduling device.
Step 411:Outside cloud platform returns to virtual machine information to resource scheduling device.
Virtual machine information may include:Reference address of external Virtual machine etc..
Step 412:Resource scheduling device stores the relevant information of external Virtual machine.
The relevant information of resource scheduling device storage external Virtual machine may include:The corresponding cluster virtual machine information of reference address, external Virtual machine, Resource Properties of external Virtual machine of external Virtual machine etc.;Wherein the Resource Properties of external Virtual machine can be:Outside cloud resource.
Step 413:Resource scheduling device is handled according to the flexible tactful carry out process of above-mentioned process is flexible, and on the external Virtual machine that the virtual machine information received is pointed to, according to the process of the default process migration policy deployment application.
The flexible processing of resource scheduling device process is for example:Resource scheduling device increases the process for applying predetermined number newly in cluster virtual machine, or, resource scheduling device, which increases the application, to be needed to increase the governable memory source of one or more processes of resource.
Default process migration strategy is for example:The process of pre-determined threshold will be less than in application with other process interaction frequency, i.e. the first process is disposed the internal virtual machine of the cluster virtual machine of the application from internal cloud platform, moved on external Virtual machine.After on the first process migration to external Virtual machine, internal cloud platform disposes the resource that first process of the cluster virtual machine release of the application takes, available for being supplied to other processes of the application to use, to meet the requirement of the application service quality.Further, since the first process and the frequency of other process interactions are relatively low, therefore, by the first process migration to external Virtual machine, the interaction between too many process will not be increased, thus the influence to the performance and service quality of application is smaller.
Or, presetting process migration strategy can also be such as:All processes currently run in the application are disposed on outside virtual machine, and the partial service load of the application is moved into external Virtual machine from the internal virtual machine of cluster virtual machine.So after deployment, the application can carry out load balancing by internal virtual machine and external Virtual machine, thus ensure the service quality of the application.
The present embodiment is completed in resource scheduling device after this scheduling of resource, repeats above-mentioned steps, the dynamic dispatching of resource can be carried out by granularity of process according to the real time business load of the application disposed to cluster virtual machine.During the dynamic dispatching of resource, it can determine that internally cloud platform, still to outside cloud platform scheduling resource, improves the flexibility of scheduling of resource according to the traffic load trend of application.In addition, when the idling-resource of internal cloud platform can not meet the business increased requirement of the application, resource supplement can be carried out to outside cloud platform application resource, and the procedure deployment of external Virtual machine is carried out using flexible process migration strategy, the service quality of application has thus been ensured.
Fig. 5 is the signaling interaction diagram for the resource regulating method that the embodiment of the present invention four is provided.The present embodiment is illustrated by taking the resource scheduling system shown in Fig. 2 and Fig. 3 as an example.Exemplified by one cluster virtual machine of the present embodiment, and the cluster virtual machine is deployed with multiple applications.As shown in Fig. 2, Fig. 3 and Fig. 5, the resource regulating method that the present embodiment is provided includes:
Step 51:Resource scheduling device collects the cluster virtual machine information information related to the application service quality for each application that cluster virtual machine is disposed.
Step 52:Resource scheduling device judges whether the portfolio for each process currently run in each application meets preparatory condition respectively according to the application service quality relevant information respectively applied in cluster virtual machine, if it is satisfied, performing step 53;Otherwise, step 51 is performed.
Step 53- steps 512:In multiple applications that the application that step 53- steps 512 are related to is disposed for the cluster virtual machine, the portfolio for each process currently run meets the application of preparatory condition, and other technologies scheme is similar to step 43- steps 412, will not be repeated here.
Step 513:Resource scheduling device is on the external Virtual machine that the virtual machine information received is pointed to, according to the process of the default process migration policy deployment application.
The relevant information of resource scheduling device storage external Virtual machine may include:The corresponding cluster virtual machine information of reference address, external Virtual machine, Resource Properties of external Virtual machine of external Virtual machine etc.;Wherein the Resource Properties of external Virtual machine can be:Outside cloud resource.
Default process migration strategy is for example:The process of pre-determined threshold will be less than in application with other process interaction frequency, i.e. the first process is disposed the internal virtual machine of the cluster virtual machine of the application from internal cloud platform, moved on external Virtual machine.After on the first process migration to external Virtual machine, internal cloud platform disposes the resource that first process of the cluster virtual machine release of the application takes, available for being supplied to other processes of the application to use, to meet the requirement of the application service quality.Further, since the first process and the frequency of other process interactions are relatively low, therefore, by the first process migration to external Virtual machine, the interaction between too many process will not be increased, thus the influence to the performance and service quality of application is smaller.
Or, presetting process migration strategy can also be such as:All processes currently run in the application are disposed on outside virtual machine, and the partial service load of the application is moved into external Virtual machine from the internal virtual machine of cluster virtual machine.So after deployment, the application can carry out load balancing by internal virtual machine and external Virtual machine, thus ensure the service quality of the application.
Or, all processes currently run in an application in multiple applications that the cluster virtual machine is disposed, such as the first application and the application all move to outside void from the internal virtual machine of cluster virtual machine
Plan machine.So after deployment, the resource that first application of cluster virtual machine release takes, provides service, to ensure the service quality of other application available for the other application disposed for the cluster virtual machine, and the business and its service quality of the first application, it can be provided by external Virtual machine.
The present embodiment can be disposed under the scene of multiple applications in a cluster virtual machine, the real time business load for each application disposed to cluster virtual machine, carry out the dynamic dispatching of resource.During the dynamic dispatching of resource, it can determine that internally cloud platform, still to outside cloud platform scheduling resource, improves the flexibility of scheduling of resource according to the traffic load trend of some application.In addition, when the idling-resource of internal cloud platform can not meet the business increased requirement of the application, resource supplement can be carried out to outside cloud platform application resource, and the procedure deployment of external Virtual machine is carried out using flexible process migration strategy, thus ensure the service quality of multiple applications of cluster virtual machine deployment.
Fig. 6 is the structural representation for the resource scheduling device that the embodiment of the present invention five is provided.Resource scheduling device as shown in Figure 6 includes:Data obtaining module 61, number of resources determining module 62, scheduling of resource application module 63 and application process transferring module 64.
Information obtains ear, and block 61 not can be used for the portfolio for obtaining each process currently run in application, and the application deployment is internally in the cluster virtual machine of cloud platform;
When number of resources determining module 62 meets preparatory condition available for the portfolio for each process currently run in the application, according to the flexible strategy of the process of the application obtained in advance, determine that the cluster virtual machine needs the number of resources extended;
Scheduling of resource application module 63 can be used for it is determined that during to outside cloud platform application scheduling resource, sending virtual machine application to outside cloud platform according to the number of resources of determination and asking;
Application process transferring module 64 can be used for after the virtual machine information that the outside cloud platform is returned is received, and the external Virtual machine pointed to the virtual machine information disposes the process of the application.
Optionally, the flexible strategy of the process includes:Increase the application enters number of passes;The cluster virtual machine needs the number of resources extended to be:Increase the number of resources needed for the process of predetermined number.Or, optionally, the flexible strategy of the process includes:Increase the number of resources for the one or more processes currently run in the application;The cluster virtual machine needs the number of resources extended to be:The increased total number resource for needed for each process currently run in the application.
Application process transferring module can carry out process migration deployment according to default process migration strategy.For example:If a cluster virtual machine is deployed with one or more applications, application process transferring module 64 is particularly used in topology relationship between the process according to the application and determines the first process, and by first process from
The internal virtual machine of the cluster virtual machine moves to the external Virtual machine;First process is processes currently being run in the application, with other process interaction frequency less than default frequency.
Or,
If a cluster virtual machine is deployed with one or more applications, application process transferring module 64 is particularly used in each process disposed and currently run in the application on the external Virtual machine, and the partial service load of the application is moved into the external Virtual machine from the internal virtual machine of the cluster virtual machine.
If a cluster virtual machine is deployed with multiple applications, application process transferring module 64 is particularly used in each process that will currently be run in the first application in multiple applications and first application, and the external Virtual machine is moved to from the internal virtual machine of the cluster virtual machine.
Further, resource scheduling device may also include:Scheduling decision module 65.
Scheduling decision module 65 can be used for when the idling-resource of the internal cloud platform can not provide the scheduling of the number of resources of determination, it is determined that to outside cloud platform application scheduling resource.Or, scheduling decision module 65 can be used for the variation tendency for analyzing the portfolio for each process currently run in the application, and be determined according to analysis result to outside cloud platform application scheduling resource.
The present embodiment resource scheduling device can carry out the dynamic dispatching of resource by granularity of process according to the real time business load of the application disposed to cluster virtual machine.During the dynamic dispatching of resource, it can determine that internally cloud platform, still to outside cloud platform scheduling resource, improves the flexibility of scheduling of resource according to the traffic load trend of application.In addition, when the idling-resource of internal cloud platform can not meet the business increased requirement of the application, resource supplement can be carried out to outside cloud platform application resource, and the procedure deployment of external Virtual machine is carried out using flexible process migration strategy, the service quality of application has thus been ensured.The working mechanism of the present embodiment resource scheduling device, reference can be made to the corresponding record of Fig. 1, Fig. 4-5 correspondence embodiment;The structure of resource scheduling device resource scheduling system under mixing cloud mode, reference can be made to the record of Fig. 2-3 correspondence embodiments;It will not be repeated here.
One of ordinary skill in the art will appreciate that:Accompanying drawing is necessary to module or flow in the schematic diagram of one embodiment, accompanying drawing not necessarily implements the present invention.
One of ordinary skill in the art will appreciate that:The module in device in embodiment can be distributed in the device of embodiment according to embodiment description, can also be carried out respective change and be disposed other than in one or more devices of the present embodiment.The module of above-described embodiment can be merged into a module, can also be further split into multiple submodule.
One of ordinary skill in the art will appreciate that:Realize all or part of step of above method embodiment
It can be completed by the related hardware of programmed instruction, foregoing program can be stored in a computer read/write memory medium, the program upon execution, performs the step of including above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although the present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It can still modify to the technical scheme described in previous embodiment, or carry out equivalent substitution to which part technical characteristic;And these modifications or replacement, the essence of appropriate technical solution is departed from the spirit and scope of technical scheme of the embodiment of the present invention.