To deal with problems for task scheduling in cloud computing, this paper proposes a immune effectiveness balancing task scheduling algorithm. The proposed algorithm is modeled as a multi-objective optimization model, taking into account the time span of tasks and load balancing of virtualized resources. The simulation result shows that the proposed algorithm is efficient to improve user satisfaction and reduce the completion time of the task.