mardi 24 septembre 2019

Implementation of 2-choice algorithm for load balacing

This image specifies the problem

So far all I could come up with is:

    for task in n:
      for i in range(d):
        servers.append(random_server)

      if d > 1:
        index = min(servers)

      servers[index].taskCount++
      n--



Aucun commentaire:

Enregistrer un commentaire