From 76feb2098eb4a014a910792b094c30a8875a80e6 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Tue, 12 Mar 2019 17:42:47 -0700 Subject: [PATCH] Use same VM type for validators as leader, if CUDA is enabled (#3253) - Since all nodes are created equal --- net/gce.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/net/gce.sh b/net/gce.sh index 47017ddc6c..9a5cfe4258 100755 --- a/net/gce.sh +++ b/net/gce.sh @@ -15,7 +15,7 @@ gce) cpuBootstrapLeaderMachineType=n1-standard-16 gpuBootstrapLeaderMachineType="$cpuBootstrapLeaderMachineType --accelerator count=4,type=nvidia-tesla-k80" bootstrapLeaderMachineType=$cpuBootstrapLeaderMachineType - fullNodeMachineType=n1-standard-16 + fullNodeMachineType=$cpuBootstrapLeaderMachineType clientMachineType=n1-standard-16 blockstreamerMachineType=n1-standard-8 ;; @@ -133,10 +133,12 @@ while getopts "h?p:Pn:c:z:gG:a:d:bu" opt; do g) enableGpu=true bootstrapLeaderMachineType=$gpuBootstrapLeaderMachineType + fullNodeMachineType=$bootstrapLeaderMachineType ;; G) enableGpu=true bootstrapLeaderMachineType="$OPTARG" + fullNodeMachineType=$bootstrapLeaderMachineType ;; a) customAddress=$OPTARG @@ -225,10 +227,6 @@ ec2) ;; esac -if $leaderRotation; then - fullNodeMachineType=$bootstrapLeaderMachineType -fi - # cloud_ForEachInstance [cmd] [extra args to cmd] # # Execute a command for each element in the `instances` array