Allow for custom cpu config on gce and use 20gb ram for clients (#3856)

This commit is contained in:
sakridge 2019-04-18 09:36:11 -07:00 committed by GitHub
parent 901c74b653
commit 684e1c73dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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"