All Products
Search
Document Center

Batch Compute:Configs

Last Updated:Apr 12, 2018

Description

Configuration information when a cluster is created.

Details

Attribute Type Description
Disks object Disk configurations of instances in a cluster
Networks Object Network configurations of instances in a cluster.
Mounts Object Network disk mounting configurations of instances in a cluster.

Disks

Description

Disk configuration information when a cluster is created.

Details

Attribute Type Description
SystemDisk object System disk information
DataDisk array Data disk information

SystemDisk

Description

System disk configuration information when a cluster is created.

Details

Attribute Type Description
Type string Disk type. Default value: ephemeral
Size int Disk size.The range varies according to the disk type.

The following system disk type is available:

  • ephemeral: ephemeral disk
  • cloud - basic cloud disk

System disk size, in the unit of GB. Value range:

  • ephemeral - 40~500
  • cloud - 40~500

Default value: size=max{40, ImageSize}

The value of this parameter must be greater than or equal to max{40, ImageSize}.

DataDisk

Description

Data disk configuration information when a cluster is created.

Details

Attribute Type Description
Type string Disk type. Default value: ephemeral
Size int Disk size.The range varies according to the disk type.
MountPoint String Disk mount point

The following data disk type is available:

  • ephemeral: ephemeral disk
  • cloud - basic cloud disk

Data disk size, in the unit of GB. Value range:

  • ephemeral - 5~1024
  • cloud - 5~2000

In the Windows operating system, MountPoint can only specify the drive, for example, “D:”. The drive letter can be any letter from A to Z, except C.

Networks

Description

Network configuration information when a cluster is created.

Details

Attribute Type Description
Classic Object Classic network configuration information.
VPC Object VPC network information.

Classic

Description

Classic network configuration information.

Details

Attribute Type Description
AllowIpAddress Array IP address that allows the inbound traffic.
AllowIpAddressEgress Array IP address that allows the outbound traffic.
AllowSecurityGroup Array Security group that allows the inbound traffic.
AllowSecurityGroupEgress Array Security group that allows the outbound traffic.

VPC

Description

VPC network configuration information.

Details

Attribute Type Description
CidrBlock String CIDR block of the VPC instance. The CIDR block must fall into these ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, and their subnets. The CIDR block mask contains 12 to 24 digits.

Mounts

Description

Network disk mounting configuration when a cluster is created.

Details

Attribute Type Description
Entries Array List of network disk mount points.
Locale String Language used when the OSS or NAS storage is mounted.
Lock Bool Supported file lock when the OSS or NAS storage is mounted.
CacheSupport Bool Supported distributed cache when the OSS or NAS storage is mounted. Currently, this field can be configured only for a cluster or automatic cluster. If you configure this field for a task, this field is ignored.
NAS Object NAS configuration information.
OSS Object OSS configuration information.

MountPoint

Description

Network disk mount point.

Details

Attribute Type Description
Source String Source path for network disk mounting. It can be a string starting with “nas://“ or “oss://“.
Destination String Local mount point path of the network disk.
WriteSupport Bool Whether the mount point is writable.

NAS

Description

NAS configuration information.

Details

Attribute Type Description
AccessGroup Array NAS access group to which the cluster instance must be added.
FileSystem Array File system to be accessed.

OSS

Description

OSS configuration information.

Details

Attribute Type Description
AccessKeyId String Access ID used for OSS mounting.
AccessKeySecret String Access Secret used for OSS mounting.
SecurityToken String Security Token used for OSS mounting.

Note:

  1. The Job-level Mounts configuration overwrites the cluster-level Mounts configuration.
  2. After a cluster is modified, the RecreateInstance interface must be called to make the new Mounts configuration take effect.
  3. During NAS mounting, the source directory must start with “nas:”. Otherwise, an error occurs.