Adding ability to balance load between different cell servers.
Adding ability to specify structure/size of the cell.
Change-Id: I5e87c99fe8812ba0a974d7815ab8ddc64193a608
diff --git a/tools/dev/bash_profile b/tools/dev/bash_profile
index aef0e5f..d60820d 100644
--- a/tools/dev/bash_profile
+++ b/tools/dev/bash_profile
@@ -113,7 +113,10 @@
case "$cell" in
"borrow")
aux="/tmp/cell-$$"
- curl -sS -X POST "http://$CELL_WARDEN:4321/?duration=${2:-0}&user=${3:-$(id -un)}" \
+ spec=${3:-3+1}
+ spec=${spec/+/%2B}
+ user=${4:-$(id -un)}
+ curl -sS -X POST "http://$CELL_WARDEN:4321/?duration=${2:-0}&spec=${spec}&user=${user}" \
-d "$(cat ~/.ssh/id_rsa.pub)" > $aux
. $aux
rm -f $aux