The service maximization dispatching method of cloud computing and system
Technical field
The present invention relates to cloud computing technology, particularly relate to scheduling solution and the system of cloud computing technology.
Background technology
In existing cloud computing technology, when carrying out scheduling of resource, the main load balancing considering cloud computing resources.But in the practical application of cloud computing, sometimes need to obtain maximum volume of services by the scheduling of cloud computing resources, make existing cloud computing resources can serve as far as possible many users and complete as far as possible many tasks.
Therefore, existing cloud computing technology is to pursue for the purpose of load balancing, and such cloud computing resource scheduling method to meet the maximized object of volume of services.
Summary of the invention
Based on this, be necessary the scheduling problem for cloud computing resources, the dispatching method of the cloud computing providing a kind of quantity preferential and system, existing cloud computing resources is utilized to dispatch, obtain maximum volume of services as far as possible, make existing cloud computing resources can serve as far as possible many users and complete as far as possible many tasks.
A dispatching method for cloud computing, comprises the steps: to obtain step, obtains multiple resource data; Calculation procedure, calculates the volume of services of multiple resource data respectively according to multiple resource data; Comparison step, the size of the volume of services that more multiple resource data is corresponding, obtains the preferred resources data that maximum amount of service is corresponding; And scheduling steps, the scheduling of cloud computing resources is carried out according to preferred resources data.
Wherein in an embodiment, obtain in step, the number of users that resource data comprises service and the task amount completed for relative users; In calculation procedure, the number of users that volume of services equals to serve is multiplied by the task amount for relative users completes.
Wherein in an embodiment, obtain in step, the task amount that resource data comprises the number of users of service, user class and completes for relative users; In calculation procedure, the number of users that volume of services equals to serve is multiplied by user class, then is multiplied by the task amount for relative users completes.
A dispatching patcher for cloud computing, comprising: obtain module, obtain multiple resource data; Computing module, calculates the volume of services of multiple resource data respectively according to multiple resource data; Comparison module, the size of the volume of services that more multiple resource data is corresponding, obtains the preferred resources data that maximum amount of service is corresponding; And scheduler module, the scheduling of cloud computing resources is carried out according to preferred resources data.
Wherein in an embodiment, obtain the number of users that resource data that module obtains comprises service and the task amount completed for relative users; Computing module performs following calculating: the number of users that volume of services equals to serve is multiplied by the task amount for relative users completes.
Wherein in an embodiment, obtain the task amount that resource data that module obtains comprises the number of users of service, user class and completes for relative users; Computing module performs following calculating: the number of users that volume of services equals to serve is multiplied by user class, then is multiplied by the task amount for relative users completes.
Cloud computing of the present invention ask many dispatching methods and system, according to the volume of services of various scheduling scheme, select the scheduling scheme that volume of services is maximum, to make to obtain maximum volume of services to the scheduling of cloud computing resources, make existing cloud computing resources can serve as far as possible many users and complete as far as possible many tasks.
Accompanying drawing explanation
Fig. 1 is the flow chart of the dispatching method of cloud computing of the present invention;
Fig. 2 is the theory diagram of the dispatching patcher of cloud computing of the present invention.
Embodiment
Many scheduling are asked in cloud computing of the present invention, utilize existing cloud computing resources to dispatch, obtain maximum volume of services as far as possible, make existing cloud computing resources can serve as far as possible many users and complete as far as possible many tasks.
Cloud computing resources of the present invention includes but not limited to cloud computing and necessary resources thereof.
As shown in Figure 1, the dispatching method of cloud computing of the present invention, comprises the steps:
S1: obtain step, obtain multiple resource data, the number of users that resource data comprises service and the task amount completed for relative users.
S2: calculation procedure, calculates the volume of services of multiple resource data respectively according to multiple resource data, the number of users * that volume of services equals to serve is the task amount that relative users completes.
S3: comparison step, the size of the volume of services that more multiple resource data is corresponding, obtains the preferred resources data that maximum amount of service is corresponding.
S4: scheduling steps, carries out the scheduling of cloud computing resources according to preferred resources data.
In the another kind of embodiment of the dispatching method of cloud computing of the present invention, the task amount that resource data comprises the number of users of service, user class and completes for relative users; The number of users * user class * that volume of services equals to serve is the task amount that relative users completes.
As shown in Figure 2, a kind of dispatching patcher of cloud computing, comprises the acquisition module, computing module, comparison module and the scheduler module that connect successively.
Obtain module and obtain multiple resource data, the number of users that resource data comprises service and the task amount completed for relative users.
Computing module calculates the volume of services of multiple resource data respectively according to multiple resource data, and the number of users * that volume of services equals to serve is the task amount that relative users completes.
The size of the volume of services that the more multiple resource data of comparison module is corresponding, obtains the preferred resources data that maximum amount of service is corresponding.
Scheduler module carries out the scheduling of cloud computing resources according to preferred resources data.
In the another kind of embodiment of the dispatching patcher of cloud computing of the present invention, the task amount that resource data comprises the number of users of service, user class and completes for relative users; The number of users * user class * that volume of services equals to serve is the task amount that relative users completes.
The above embodiment only have expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.