From 684e1c73dde0b080925ac1d9763f64174606560b Mon Sep 17 00:00:00 2001 From: sakridge Date: Thu, 18 Apr 2019 09:36:11 -0700 Subject: [PATCH] Allow for custom cpu config on gce and use 20gb ram for clients (#3856) --- net/gce.sh | 8 ++++---- net/scripts/gce-provider.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/gce.sh b/net/gce.sh index f85365254..e14e4df0f 100755 --- a/net/gce.sh +++ b/net/gce.sh @@ -12,12 +12,12 @@ gce) # shellcheck source=net/scripts/gce-provider.sh source "$here"/scripts/gce-provider.sh - cpuBootstrapLeaderMachineType=n1-standard-16 + cpuBootstrapLeaderMachineType="--machine-type n1-standard-16" gpuBootstrapLeaderMachineType="$cpuBootstrapLeaderMachineType --accelerator count=4,type=nvidia-tesla-k80" bootstrapLeaderMachineType=$cpuBootstrapLeaderMachineType fullNodeMachineType=$cpuBootstrapLeaderMachineType - clientMachineType=n1-standard-16 - blockstreamerMachineType=n1-standard-8 + clientMachineType="--custom-cpu 16 --custom-memory 20GB" + blockstreamerMachineType="--machine-type n1-standard-8" ;; ec2) # shellcheck source=net/scripts/ec2-provider.sh @@ -91,7 +91,7 @@ Manage testnet instances -P - Use public network IP addresses (default: $publicNetwork) -g - Enable GPU (default: $enableGpu) -G - Enable GPU, and set count/type of GPUs to use - (e.g $cpuBootstrapLeaderMachineType --accelerator count=4,type=nvidia-tesla-k80) + (e.g $gpuBootstrapLeaderMachineType) -a [address] - Address to be be assigned to the Blockstreamer if present, otherwise the bootstrap fullnode. * For GCE, [address] is the "name" of the desired External diff --git a/net/scripts/gce-provider.sh b/net/scripts/gce-provider.sh index a2ba40e03..ee8c08d90 100644 --- a/net/scripts/gce-provider.sh +++ b/net/scripts/gce-provider.sh @@ -161,7 +161,7 @@ cloud_CreateInstances() { args+=(--image $imageName) # shellcheck disable=SC2206 # Do not want to quote $machineType as it may contain extra args - args+=(--machine-type $machineType) + args+=($machineType) if [[ -n $optionalBootDiskSize ]]; then args+=( --boot-disk-size "${optionalBootDiskSize}GB"