|
Allocate virtual machine services. This module is responsible for allocating requests to the right virtual machines through the appropriate conditions defined by module 1 and module 2. If a request is sent, the request is classified by module 1, and the virtual servers in question even if this virtual server is not loaded are also clustered by module 2. Then the algorithm will calculate to find out which request is most suitable for which virtual machine through the return parameters of Naive Bayes and K-Means functions above. If the response time of the request (calculated from module 1) is the smallest, then this request will be processed on the virtual hosts with the furthest means (i.e., belonging to group 1, and having lowest usage). For requests that are not small or large, we can use calculation methods such as analogy or difference to calculate the allocation. |