projects
/
invirt/packages/invirt-remote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remote-create: document load-balancing algorithm
[invirt/packages/invirt-remote.git]
/
files
/
usr
/
sbin
/
sipb-xen-remote-create
diff --git
a/files/usr/sbin/sipb-xen-remote-create
b/files/usr/sbin/sipb-xen-remote-create
index
4483ce1
..
214097f
100755
(executable)
--- 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.
"""
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
"""
TODO: use a lock to avoid creating the same VM twice in a race
"""