From 749317cd0dfea6d454c0119b28dd102fc274b455 Mon Sep 17 00:00:00 2001 From: Patrick Darley Date: Thu, 10 Sep 2015 13:57:32 +0000 Subject: Change ybd instance count for building and deploying ybd will fail if deployments are made with more than one instance seemingly. Builds are prophesised to run optimally with 5 instances. Also, some unnecessary things removed from build_a_system.sh --- build_a_system.sh | 10 +++++----- deploy_a_system.sh | 4 ++++ 2 files changed, 9 insertions(+), 5 deletions(-) mode change 100644 => 100755 deploy_a_system.sh diff --git a/build_a_system.sh b/build_a_system.sh index 5fca8cb..254c583 100755 --- a/build_a_system.sh +++ b/build_a_system.sh @@ -7,14 +7,14 @@ system_name="$1" definitions_dir=/home/patrickdarley/definitions ybd_dir=/home/patrickdarley/ybd -echo "$system_name" -echo "$definitions_dir"/systems/"$system_name" -echo "$ybd_dir"/ybd.py +# Building is optimal with 5 "instances" on the monster machine +sed -i '/^instances: /c\instances: 5' /home/patrickdarley/ybd/config/ybd.conf -# A will this build things +# will this build things - No. # "$ybd_dir"/ybd.py "$definitions_dir"/systems/"$system_name" -#try changing to the definitions dir +# try changing to the definitions dir then building +# ybd seems to set the "target" to be current dir, regardless cd "$definitions_dir" diff --git a/deploy_a_system.sh b/deploy_a_system.sh old mode 100644 new mode 100755 index 99ac9b9..ef99ce9 --- a/deploy_a_system.sh +++ b/deploy_a_system.sh @@ -7,6 +7,10 @@ cluster_name="$1" definitions_dir=/home/patrickdarley/definitions ybd_dir=/home/patrickdarley/ybd +# Can only deploy with a single instance of ybd. Crashes +# with >1 +sed -i '/^instances: /c\instances: 1' /home/patrickdarley/ybd/config/ybd.conf + # try changing to the definitions dir then building # ybd seems to set the "target" to be current dir, regardless # Of it being definitions or not -- cgit v1.2.1