Parameter | Type | Sample value | Description |
Id | String | pqy****** | Function ID. |
Name | String | official-site | Function name. |
Description | String | Lightweight official website | Function description. |
Runtime | String | python3.8/v1 | Function Runtime. |
ExclusiveMode | Boolean | false | Exclusive mode switch.
|
RequestTimeout | Integer | 30 | Request timed out (the unit is second). |
MaxConcurrency | Integer | 100 | Single instance maximum concurrency. |
MemoryMB | Integer | 1,024 | Maximum memory per instance (the unit is MB). |
CodeSize | Integer | 473 | Code package size (the unit is MB). |
CodeSizeLimit | Integer | 256 | The code package size limit.
|
Source | String | pqy******/3kwem******.zip | User-entered code/image address. |
SourceLocation | String | https://vefaas.tos-s3-cn.volces.com/template_dir/666ad75b9124c400072abcvefaas-python3.9-default.zip?X-Amz****** | The source address of the code/image. |
SourceType | String | tos | Code source type, optional values are:
|
Envs | - | Function Environment variables. | |
VpcConfig | - | VPC configuration. | |
CreationTime | String | 2024-06-14 15:31:07.143863441 +0800 CST m=+88714.902440864 | Creation time. |
LastUpdateTime | String | 2024-06-14 15:31:07.143863491 +0800 CST m=+88714.902440914 | Update time. |
TlsConfig | - | Function logs configuration. | |
Owner | String | 22****** | Function owner (account Id). |
TriggersCount | Integer | 0 | The number of triggers for this function. |
InstanceType | String | nvidia-tesla-l4 | Function instance type:
|
NasStorage | - | FileNAS mount configuration. | |
TosMountConfig | - | Torch Object Storage TOS mount configuration. | |
InitializerSec | Integer | 30 | Function initialization timeout configuration. |
Command | String | ./run.sh | Custom start command for the instance (currently only supports native/v1 runtimes). |
Port | Integer | 8,000 | Custom listening port for the instance (currently only native/v1 runtime is supported). |
CpuStrategy | String | always | Function CPU billing policy, when the function is of microservices applications type, this field is always, indicating that at least one instance is running. |
ProjectName | String | default | Function associated project name. |
FunctionType | String | sandbox | Function type. |
Cell | String | 2 | Cell to which the function belongs. |
Role | String | trn:iam::1400000044:role/VeFaaSDefaultRole | IAM role bound to function instances. |
EnableApmplus | Boolean | | Turn on application monitoring. |
AsyncTaskConfig | {"EnableAsyncTask":true,"MaxRetry":3,"DestinationConfig":{"OnFailure":{"Destination":"http://dummyinstanceid.apigateway-cn-beijing-inner.volceapi.com/failure"},"OnSuccess":{"Destination":"http://dummyinstanceid.apigateway-cn-beijing-inner.volceapi.com/success"}}} | Asynchronous task configuration. |
Parameter | Type | Sample value | Description |
EnableVpc | Boolean | false | Whether the function enables VPC access. Parameter values:
|
VpcId | String | vpc-2d73mgm**** | ID of the VPC to which the function belongs. |
SubnetIds | Array of String | ["subnet-mj1l******"] | The corresponding subnet ID after the function turns on VPC access. |
SecurityGroupIds | Array of String | ["sg-3re8ffwjclybk5zsk****"] | Security group ID after function enables VPC access. |
EnableSharedInternetAccess | Boolean | false | The switch for the function to access the public network. Whether to access the public network through veFaaS's VPC shared NAT gateway. Parameter values:
|
Parameter | Type | Sample value | Description |
EnableNas | Boolean | false | Whether to turn on NAS storage mount. Parameter values:
|
NasConfigs | - | NAS storage configuration. |
Parameter | Type | Sample value | Description |
EnableTos | Boolean | false | Whether to enable Torch Object Storage mount, parameter values:
|
Credentials | - | After turning on Torch Object Storage mount, you need to provide an access key (AK/SK) with Torch Object Storage domain access permission. | |
MountPoints | - | After turning on Torch Object Storage mount, you need to provide a Torch Object Storage configuration list. No more than 5 configurations. |
Parameter | Type | Sample value | Description |
MaxRetry | Integer | 3 | Number of asynchronous task failure retries. Selectable values are 0~3. |
EnableAsyncTask | Boolean | true | Whether to turn on asynchronous tasks. |
DestinationConfig | - | Asynchronous task callback destination configuration. |
Parameter | Type | Sample value | Description |
Gid | Long | 1,000 | User group in the file system. Customization is not supported for now. If this parameter is provided, its value must be consistent with the function run user gid, which should be set to: 1000. |
Uid | Long | 1,000 | User in the file system. Customization is not supported for now. If this parameter is provided, its value must be consistent with the function run user uid, which should be set to: 1000. |
RemotePath | String | / | File system remote directory. Length: 1–128 characters, must start with "/", supports uppercase and lowercase letters, digits, and special characters (- . _ ~ / : @ = + ? #). |
FileSystemId | String | enas-cns****** | NAS file system ID. |
MountPointId | String | mount-63****** | NAS mount point ID. |
LocalMountPath | String | /mnt/nas | Function local mount directory. Length: 1~128 characters. Must start with "/", supports uppercase and lowercase letters, numbers, and special characters (- . _ ~ / : @ = + ? #). |
Parameter | Type | Sample value | Description |
AccessKeyId | String | ****** | AccessKey ID (AK) of the Volcano Engine root user. For the obtaining method, please refer to the Access key usage guide . |
SecretAccessKey | String | ****** | Secret Access Key (SK) for the Volcano Engine root user. For the obtaining method, please refer to the Access key usage guide . |
Parameter | Type | Sample value | Description |
Endpoint | String | http://tos-cn-beijing.ivolces.com | TOS accesses the domain name. |
ReadOnly | Boolean | true | Permission for the function's local directory. After mounting the Torch Object Storage bucket, specify whether the local mount directory is read-only. Parameter values:
|
BucketName | String | ai-model | TOS bucket name |
BucketPath | String | / | The mount TOS Bucket path. |
LocalMountPath | String | /mnt/tos | Function local mount directory. |