This paper proposes using dynamic workers and an energy saving system to efficiently schedule tasks and reduce idle workers. It introduces using particle swarm optimization and bucket sorting algorithms to assign tasks and identify idle workers that can be closed to save energy. The goal is to balance workload and achieve better energy savings for server nodes by properly allocating computing power.