Allow for custom cpu config on gce and use 20gb ram for clients (#3856)
This commit is contained in:
parent
901c74b653
commit
684e1c73dd
|
@ -12,12 +12,12 @@ gce)
|
||||||
# shellcheck source=net/scripts/gce-provider.sh
|
# shellcheck source=net/scripts/gce-provider.sh
|
||||||
source "$here"/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"
|
gpuBootstrapLeaderMachineType="$cpuBootstrapLeaderMachineType --accelerator count=4,type=nvidia-tesla-k80"
|
||||||
bootstrapLeaderMachineType=$cpuBootstrapLeaderMachineType
|
bootstrapLeaderMachineType=$cpuBootstrapLeaderMachineType
|
||||||
fullNodeMachineType=$cpuBootstrapLeaderMachineType
|
fullNodeMachineType=$cpuBootstrapLeaderMachineType
|
||||||
clientMachineType=n1-standard-16
|
clientMachineType="--custom-cpu 16 --custom-memory 20GB"
|
||||||
blockstreamerMachineType=n1-standard-8
|
blockstreamerMachineType="--machine-type n1-standard-8"
|
||||||
;;
|
;;
|
||||||
ec2)
|
ec2)
|
||||||
# shellcheck source=net/scripts/ec2-provider.sh
|
# shellcheck source=net/scripts/ec2-provider.sh
|
||||||
|
@ -91,7 +91,7 @@ Manage testnet instances
|
||||||
-P - Use public network IP addresses (default: $publicNetwork)
|
-P - Use public network IP addresses (default: $publicNetwork)
|
||||||
-g - Enable GPU (default: $enableGpu)
|
-g - Enable GPU (default: $enableGpu)
|
||||||
-G - Enable GPU, and set count/type of GPUs to use
|
-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,
|
-a [address] - Address to be be assigned to the Blockstreamer if present,
|
||||||
otherwise the bootstrap fullnode.
|
otherwise the bootstrap fullnode.
|
||||||
* For GCE, [address] is the "name" of the desired External
|
* For GCE, [address] is the "name" of the desired External
|
||||||
|
|
|
@ -161,7 +161,7 @@ cloud_CreateInstances() {
|
||||||
args+=(--image $imageName)
|
args+=(--image $imageName)
|
||||||
|
|
||||||
# shellcheck disable=SC2206 # Do not want to quote $machineType as it may contain extra args
|
# 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
|
if [[ -n $optionalBootDiskSize ]]; then
|
||||||
args+=(
|
args+=(
|
||||||
--boot-disk-size "${optionalBootDiskSize}GB"
|
--boot-disk-size "${optionalBootDiskSize}GB"
|
||||||
|
|
Loading…
Reference in New Issue