Volcano Engine Function as a Service
Parameter | Type | Required | Sample value | Description |
Action | String | Yes | CreateSandbox | Interface name. The name of the current API is CreateSandbox. |
Version | String | Yes | 2024-06-06 | Interface version. The version of the current API is 2024-06-06. |
FunctionId | String | Yes | wrws**** | The ID of the sandbox application to which sandbox instances belong. To obtain sandbox application IDs, you can go to Volcano Engine Function as a Service (veFaaS) console > Cloud sandbox > Sandbox application page. |
Timeout | Integer | No | 60 | The lifetime of sandbox instances:
|
Metadata | JSON Map | No | {"app":"test"} | The metadata of the sandbox instance label, which is used to mark and filter instances. The format is <"key":"value">. |
InstanceTosMountConfig | No | - | Torch Object Storage (TOS) mount configuration of the sandbox instance. warning
| |
Envs | No | - | Environment variables for sandbox instances. | |
InstanceImageInfo | No | - | Image information of sandbox instances, including image address, start command, and listening port. | |
CpuMilli | Integer | No | 1,000 | CPU specification of the sandbox instance :
|
MemoryMB | Integer | No | 2048 | The memory specification of a sandbox instance:
|
MaxConcurrency | Integer | No | 100 | Maximum concurrent requests per instance:
|
RequestTimeout | Integer | No | 30 | Request timeout period:
|
Parameter | Type | Required | sample value | Description |
Enable | Boolean | Yes | true | Whether to enable TOS mount for sandbox instances
|
TosMountPoints | Yes | - | The detailed information of TOS mount directory used by sandbox instances. |
parameter | Type | Required | Sample value | Description |
Key | String | Yes | business_type | Keys for sandbox instance environment variables. |
Value | String | Yes | free | The value of the environment variable for the sandbox instance. |
Parameter | Type | Required | Sample value | Description |
Id | String | No | xGWv9**** | ID of the preheated image used by the sandbox instance. |
Port | Integer | Yes | 8,080 | Listening port of the sandbox instance. warning Note that these ports are already occupied by veFaaS: 9000,9001,9990. |
Image | String | No | cr-vefaas-cn-beijing.cr.volces.com/wdf/test/****:latest | The address of the preheated image used by sandbox instances. |
Command | String | Yes | bash /root/sandbox/scripts/run.sh | The start command for the sandbox instance. If you need to execute a script file instead, ensure entering an absolute path and the script file has execute permission. |
Parameter | Type | Required | Sample value | Description |
BucketPath | String | Yes | /sandbox | The remote TOS directory mounted to the sandbox instance. |
LocalMountPath | String | Yes | /mnt/tos | The local directory of the TOS storage bucket mounted to the sandbox instance. If this directory is the local mount directory for TOS storage configured in the sandbox application, the system will modify TOS BucketPath accordingly. |
Parameter | Type | Sample value | Description |
SandboxId | String | vefaas-e8m6xarn-p2zamuv2fr-****** | The ID, which is also the name of the sandbox instance. |