主权项 |
1. A method for controlling operations of a plurality of computing units, comprising:
pre-estimating network service demands for the computing units within a next period; before the next period, calculating a first number NN1 of the computing units expected to be in a busy state and a second number NN2 of the computing units expected to be in a standby state within the next period according to the pre-estimated network service demands; obtaining a number NP1 of the computing units that are in the busy state within the present period; determining whether the number NP1 of the computing units that are in the busy state within the present period is greater than the first number NN1; controlling (NP1−NN1) computing units that are presently in the busy state to disable services thereof and enter the standby state when the number NP1 of the computing units that are in the busy state within the present period is greater than the first number NN1; when the number NP1 of the computing units that are in the busy state within the present period is equal to or smaller than the first number NN1, determining whether (NN1+NN2−NP1−NP2) is smaller than or equal to a number NP3 of the computing units that are presently in an off state, wherein NP2 is the number of the computing units that are presently in the standby state; and when (NN1+NN2−N1−NP2) is smaller than or equal to the number NP3, turning on (NN1+NN2−NP1−NP2) computing units that are in the off state, and controlling (NN2−NP2) computing units that are presently in the busy state to disable services thereof and enter the standby state.
|