From: Greg Price Date: Sun, 29 Jun 2008 04:50:32 +0000 (-0400) Subject: remote-create: document load-balancing algorithm X-Git-Tag: sipb-xen-remote-server/0.2^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/commitdiff_plain/3f4a619371f8d077190f612c7dcff8611d6f5eb6?hp=d2a643d6a51efb55e24eb569328aac0f61eeb615 remote-create: document load-balancing algorithm We take the host with more RAM free. svn path=/trunk/packages/sipb-xen-remote-server/; revision=665 --- diff --git a/files/usr/sbin/sipb-xen-remote-create b/files/usr/sbin/sipb-xen-remote-create index 4483ce1..214097f 100755 --- a/files/usr/sbin/sipb-xen-remote-create +++ b/files/usr/sbin/sipb-xen-remote-create @@ -2,10 +2,7 @@ """ Picks a host to "create" (boot) a VM on, and does so. -For now, a very dumb algorithm for which host to boot on: -the one with fewer machines running. - -TODO: load-balance based on something like actual free RAM +Current load-balancing algorithm: wherever there's more free RAM. TODO: use a lock to avoid creating the same VM twice in a race """