Skip to main content
. 2021 Apr 20;21(8):2879. doi: 10.3390/s21082879
Algorithm 1 Thermal aware workload scheduling
Input:DCDistributed, N the number of distributed servers, M the number of workload tasks, TRoom the temperatures in the rooms where the servers are distributed, Tset−point the desired temperature in the rooms.
Output: Wscheduling matrix keeping the tasks scheduling on servers
                 OptimizationGoal:determineWschedulingtoMIN(∑k=1Ndistance(TRoomk,Tset−pointk))
Considering the following constraints for each server k=1…N
C1:Walocationk={Taskj|j∈{1…M}andWscheduling(k)(j)>0}
C2:Qgeneratedk(T)=∑i=1ncω(i)∗fschedule(Walocationk)
C3:TRoomk(∇)=fQk(TRoomk(0),Qserverk(∇))
C4:tstartkj+texecutionj≤tdeadlinej
C5:∀t∈[0…T],CPUk(t)≥∑j=1tstartkj≤t≤tstartkj+texecutionjMCPUj(t)
C6:∀t∈[0…T],RAMk(t)≥∑j=1tstartkj≤t≤tstartkj+texecutionjMRAMj(t)
C7:∀t∈[0…T],HDDk(t)≥∑j=1tstartkj≤t≤tstartkj+texecutionjMHDDj(t)