Upd doc comment for cloud CreateInstances (#25609)
This commit is contained in:
parent
4e6b276f6c
commit
a74adb07fa
|
@ -173,28 +173,30 @@ cloud_Initialize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# cloud_CreateInstances [networkName] [namePrefix] [numNodes] [imageName]
|
# cloud_CreateInstances [networkName] [namePrefix] [numNodes]
|
||||||
# [machineType] [bootDiskSize] [enableGpu]
|
# [enableGpu] [machineType] [zone]
|
||||||
# [startupScript] [address]
|
# [bootDiskSize] [startupScript] [address]
|
||||||
|
# [bootDiskType] [additionalDiskSize] [preemptible]
|
||||||
#
|
#
|
||||||
# Creates one more identical instances.
|
# Creates one more identical instances.
|
||||||
#
|
#
|
||||||
# networkName - unique name of this testnet
|
# networkName - unique name of this testnet
|
||||||
# namePrefix - unique string to prefix all the instance names with
|
# namePrefix - unique string to prefix all the instance names with
|
||||||
# numNodes - number of instances to create
|
# numNodes - number of instances to create
|
||||||
# imageName - Disk image for the instances
|
# enableGpu - Optionally enable GPU, use the value "true" to enable
|
||||||
|
# eg, request 4 K80 GPUs with "count=4,type=nvidia-tesla-k80"
|
||||||
# machineType - GCE machine type. Note that this may also include an
|
# machineType - GCE machine type. Note that this may also include an
|
||||||
# `--accelerator=` or other |gcloud compute instances create|
|
# `--accelerator=` or other |gcloud compute instances create|
|
||||||
# options
|
# options
|
||||||
|
# zone - cloud zone
|
||||||
# bootDiskSize - Optional size of the boot disk in GB
|
# bootDiskSize - Optional size of the boot disk in GB
|
||||||
# enableGpu - Optionally enable GPU, use the value "true" to enable
|
|
||||||
# eg, request 4 K80 GPUs with "count=4,type=nvidia-tesla-k80"
|
|
||||||
# startupScript - Optional startup script to execute when the instance boots
|
# startupScript - Optional startup script to execute when the instance boots
|
||||||
# address - Optional name of the GCE static IP address to attach to the
|
# address - Optional name of the GCE static IP address to attach to the
|
||||||
# instance. Requires that |numNodes| = 1 and that addressName
|
# instance. Requires that |numNodes| = 1 and that addressName
|
||||||
# has been provisioned in the GCE region that is hosting `$zone`
|
# has been provisioned in the GCE region that is hosting `$zone`
|
||||||
# bootDiskType - Optional specify SSD or HDD boot disk
|
# bootDiskType - Optional specify SSD or HDD boot disk
|
||||||
# additionalDiskSize - Optional specify size of additional storage volume
|
# additionalDiskSize - Optional specify size of additional storage volume
|
||||||
|
# preemptible - Optionally request a preemptible instance ("true")
|
||||||
#
|
#
|
||||||
# Tip: use cloud_FindInstances to locate the instances once this function
|
# Tip: use cloud_FindInstances to locate the instances once this function
|
||||||
# returns
|
# returns
|
||||||
|
|
|
@ -128,26 +128,27 @@ cloud_Initialize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# cloud_CreateInstances [networkName] [namePrefix] [numNodes] [imageName]
|
# cloud_CreateInstances [networkName] [namePrefix] [numNodes]
|
||||||
# [machineType] [bootDiskSize] [enableGpu]
|
# [enableGpu] [machineType] [zone]
|
||||||
# [startupScript] [address]
|
# [bootDiskSize] [startupScript] [address]
|
||||||
|
# [bootDiskType] [additionalDiskSize] [preemptible]
|
||||||
#
|
#
|
||||||
# Creates one more identical instances.
|
# Creates one more identical instances.
|
||||||
#
|
#
|
||||||
# networkName - unique name of this testnet
|
# networkName - unique name of this testnet
|
||||||
# namePrefix - unique string to prefix all the instance names with
|
# namePrefix - unique string to prefix all the instance names with
|
||||||
# numNodes - number of instances to create
|
# numNodes - number of instances to create
|
||||||
# imageName - Disk image for the instances
|
# enableGpu - Optionally enable GPU, use the value "true" to enable
|
||||||
|
# eg, request 4 K80 GPUs with "count=4,type=nvidia-tesla-k80"
|
||||||
# machineType - GCE machine type. Note that this may also include an
|
# machineType - GCE machine type. Note that this may also include an
|
||||||
# `--accelerator=` or other |gcloud compute instances create|
|
# `--accelerator=` or other |gcloud compute instances create|
|
||||||
# options
|
# options
|
||||||
|
# zone - cloud zone
|
||||||
# bootDiskSize - Optional size of the boot disk in GB
|
# bootDiskSize - Optional size of the boot disk in GB
|
||||||
# enableGpu - Optionally enable GPU, use the value "true" to enable
|
|
||||||
# eg, request 4 K80 GPUs with "count=4,type=nvidia-tesla-k80"
|
|
||||||
# startupScript - Optional startup script to execute when the instance boots
|
# startupScript - Optional startup script to execute when the instance boots
|
||||||
# address - Optional name of the GCE static IP address to attach to the
|
# address - Optional name of the GCE static IP address to attach to the
|
||||||
# instance. Requires that |numNodes| = 1 and that addressName
|
# instance. Requires that |numNodes| = 1 and that addressName
|
||||||
# has been provisioned in the GCE region that is hosting `${zone}`
|
# has been provisioned in the GCE region that is hosting `$zone`
|
||||||
# bootDiskType - Optional specify SSD or HDD boot disk
|
# bootDiskType - Optional specify SSD or HDD boot disk
|
||||||
# additionalDiskSize - Optional specify size of additional storage volume
|
# additionalDiskSize - Optional specify size of additional storage volume
|
||||||
# preemptible - Optionally request a preemptible instance ("true")
|
# preemptible - Optionally request a preemptible instance ("true")
|
||||||
|
|
|
@ -139,23 +139,30 @@ cloud_Initialize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# cloud_CreateInstances [networkName] [namePrefix] [numNodes] [imageName]
|
# cloud_CreateInstances [networkName] [namePrefix] [numNodes]
|
||||||
# [machineType] [bootDiskSize] [startupScript] [address]
|
# [enableGpu] [machineType] [zone]
|
||||||
|
# [bootDiskSize] [startupScript] [address]
|
||||||
|
# [bootDiskType] [additionalDiskSize] [preemptible]
|
||||||
#
|
#
|
||||||
# Creates one more identical instances.
|
# Creates one more identical instances.
|
||||||
#
|
#
|
||||||
# networkName - unique name of this testnet
|
# networkName - unique name of this testnet
|
||||||
# namePrefix - unique string to prefix all the instance names with
|
# namePrefix - unique string to prefix all the instance names with
|
||||||
# numNodes - number of instances to create
|
# numNodes - number of instances to create
|
||||||
# imageName - Disk image for the instances
|
# enableGpu - Optionally enable GPU, use the value "true" to enable
|
||||||
# machineType - GCE machine type
|
# eg, request 4 K80 GPUs with "count=4,type=nvidia-tesla-k80"
|
||||||
|
# machineType - GCE machine type. Note that this may also include an
|
||||||
|
# `--accelerator=` or other |gcloud compute instances create|
|
||||||
|
# options
|
||||||
|
# zone - cloud zone
|
||||||
# bootDiskSize - Optional size of the boot disk in GB
|
# bootDiskSize - Optional size of the boot disk in GB
|
||||||
# startupScript - Optional startup script to execute when the instance boots
|
# startupScript - Optional startup script to execute when the instance boots
|
||||||
# address - Optional name of the GCE static IP address to attach to the
|
# address - Optional name of the GCE static IP address to attach to the
|
||||||
# instance. Requires that |numNodes| = 1 and that addressName
|
# instance. Requires that |numNodes| = 1 and that addressName
|
||||||
# has been provisioned in the GCE region that is hosting |zone|
|
# has been provisioned in the GCE region that is hosting `$zone`
|
||||||
# bootDiskType - Optional specify SSD or HDD boot disk
|
# bootDiskType - Optional specify SSD or HDD boot disk
|
||||||
# additionalDiskSize - Optional specify size of additional storage volume
|
# additionalDiskSize - Optional specify size of additional storage volume
|
||||||
|
# preemptible - Optionally request a preemptible instance ("true")
|
||||||
#
|
#
|
||||||
# Tip: use cloud_FindInstances to locate the instances once this function
|
# Tip: use cloud_FindInstances to locate the instances once this function
|
||||||
# returns
|
# returns
|
||||||
|
@ -169,6 +176,7 @@ cloud_CreateInstances() {
|
||||||
declare optionalBootDiskSize="$7"
|
declare optionalBootDiskSize="$7"
|
||||||
declare optionalStartupScript="$8"
|
declare optionalStartupScript="$8"
|
||||||
declare optionalAddress="$9"
|
declare optionalAddress="$9"
|
||||||
|
|
||||||
declare region=
|
declare region=
|
||||||
region=$(__cloud_GetRegion "$zone")
|
region=$(__cloud_GetRegion "$zone")
|
||||||
|
|
||||||
|
|
|
@ -130,22 +130,23 @@ cloud_Initialize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
# cloud_CreateInstances [networkName] [namePrefix] [numNodes] [imageName]
|
# cloud_CreateInstances [networkName] [namePrefix] [numNodes]
|
||||||
# [machineType] [bootDiskSize] [enableGpu]
|
# [enableGpu] [machineType] [zone]
|
||||||
# [startupScript] [address]
|
# [bootDiskSize] [startupScript] [address]
|
||||||
|
# [bootDiskType] [additionalDiskSize] [preemptible]
|
||||||
#
|
#
|
||||||
# Creates one more identical instances.
|
# Creates one more identical instances.
|
||||||
#
|
#
|
||||||
# networkName - unique name of this testnet
|
# networkName - unique name of this testnet
|
||||||
# namePrefix - unique string to prefix all the instance names with
|
# namePrefix - unique string to prefix all the instance names with
|
||||||
# numNodes - number of instances to create
|
# numNodes - number of instances to create
|
||||||
# imageName - Disk image for the instances
|
# enableGpu - Optionally enable GPU, use the value "true" to enable
|
||||||
|
# eg, request 4 K80 GPUs with "count=4,type=nvidia-tesla-k80"
|
||||||
# machineType - GCE machine type. Note that this may also include an
|
# machineType - GCE machine type. Note that this may also include an
|
||||||
# `--accelerator=` or other |gcloud compute instances create|
|
# `--accelerator=` or other |gcloud compute instances create|
|
||||||
# options
|
# options
|
||||||
|
# zone - cloud zone
|
||||||
# bootDiskSize - Optional size of the boot disk in GB
|
# bootDiskSize - Optional size of the boot disk in GB
|
||||||
# enableGpu - Optionally enable GPU, use the value "true" to enable
|
|
||||||
# eg, request 4 K80 GPUs with "count=4,type=nvidia-tesla-k80"
|
|
||||||
# startupScript - Optional startup script to execute when the instance boots
|
# startupScript - Optional startup script to execute when the instance boots
|
||||||
# address - Optional name of the GCE static IP address to attach to the
|
# address - Optional name of the GCE static IP address to attach to the
|
||||||
# instance. Requires that |numNodes| = 1 and that addressName
|
# instance. Requires that |numNodes| = 1 and that addressName
|
||||||
|
|
Loading…
Reference in New Issue