Question about auto load-balancing in LXD cluster

First, LXD clustering looks amazing. Thanks so much for building this.

Question: The most I can find about which node in a cluster a container is placed on is that it’s done via “auto load-balancing”. Can you share some more details about how this is decided? What is the selection algorithm?


Glad that you like it. The algorithm is pretty simplistic at this point: pick the node with the least number of containers on it (running or stopped, that does not matter). If there is more than one candidate node, pick the first one.

Great, thank you for the information!