Use same VM type for validators as leader, if CUDA is enabled (#3253)
- Since all nodes are created equal
This commit is contained in:
		@@ -15,7 +15,7 @@ gce)
 | 
				
			|||||||
  cpuBootstrapLeaderMachineType=n1-standard-16
 | 
					  cpuBootstrapLeaderMachineType=n1-standard-16
 | 
				
			||||||
  gpuBootstrapLeaderMachineType="$cpuBootstrapLeaderMachineType --accelerator count=4,type=nvidia-tesla-k80"
 | 
					  gpuBootstrapLeaderMachineType="$cpuBootstrapLeaderMachineType --accelerator count=4,type=nvidia-tesla-k80"
 | 
				
			||||||
  bootstrapLeaderMachineType=$cpuBootstrapLeaderMachineType
 | 
					  bootstrapLeaderMachineType=$cpuBootstrapLeaderMachineType
 | 
				
			||||||
  fullNodeMachineType=n1-standard-16
 | 
					  fullNodeMachineType=$cpuBootstrapLeaderMachineType
 | 
				
			||||||
  clientMachineType=n1-standard-16
 | 
					  clientMachineType=n1-standard-16
 | 
				
			||||||
  blockstreamerMachineType=n1-standard-8
 | 
					  blockstreamerMachineType=n1-standard-8
 | 
				
			||||||
  ;;
 | 
					  ;;
 | 
				
			||||||
@@ -133,10 +133,12 @@ while getopts "h?p:Pn:c:z:gG:a:d:bu" opt; do
 | 
				
			|||||||
  g)
 | 
					  g)
 | 
				
			||||||
    enableGpu=true
 | 
					    enableGpu=true
 | 
				
			||||||
    bootstrapLeaderMachineType=$gpuBootstrapLeaderMachineType
 | 
					    bootstrapLeaderMachineType=$gpuBootstrapLeaderMachineType
 | 
				
			||||||
 | 
					    fullNodeMachineType=$bootstrapLeaderMachineType
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
  G)
 | 
					  G)
 | 
				
			||||||
    enableGpu=true
 | 
					    enableGpu=true
 | 
				
			||||||
    bootstrapLeaderMachineType="$OPTARG"
 | 
					    bootstrapLeaderMachineType="$OPTARG"
 | 
				
			||||||
 | 
					    fullNodeMachineType=$bootstrapLeaderMachineType
 | 
				
			||||||
    ;;
 | 
					    ;;
 | 
				
			||||||
  a)
 | 
					  a)
 | 
				
			||||||
    customAddress=$OPTARG
 | 
					    customAddress=$OPTARG
 | 
				
			||||||
@@ -225,10 +227,6 @@ ec2)
 | 
				
			|||||||
  ;;
 | 
					  ;;
 | 
				
			||||||
esac
 | 
					esac
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if $leaderRotation; then
 | 
					 | 
				
			||||||
  fullNodeMachineType=$bootstrapLeaderMachineType
 | 
					 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# cloud_ForEachInstance [cmd] [extra args to cmd]
 | 
					# cloud_ForEachInstance [cmd] [extra args to cmd]
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Execute a command for each element in the `instances` array
 | 
					# Execute a command for each element in the `instances` array
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user