摘要 |
<p>A method and a device for allocating computational resources are provided. At first, a virtual machine is selected according to a total number of computational resources required for a cloud service and a respective number of the computational resources per computational unit. Computational units are selected for the cloud service from unused computational units of the selected virtual machine. Then, the selected computational units are allocated to the cloud service. An average utilization rate of the allocated computational units is calculated according to respective utilization rates of the allocated computational units. At last, the allocated computational units are adjusted according to the average utilization rate of the allocated computational units. The device includes a selection module, an allocation module, a calculation module and an adjusting module. By the method and the device, the computational resources utilization efficiency of the cloud server is improved.</p> |