Parameter | Type | Sample value | Description |
Id | String | pqyqo9qa | 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. |
CodeSize | Integer | 473 | Code package size. |
CodeSizeLimit | Integer | 256 | The code package size limit.
|
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:
|
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****** | Account ID of the function owner. |
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, only supported by native/v1 runtime. |
Port | Integer | 8,000 | Custom listening port for the instance, supported only by native/v1 runtime. |
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 | Project name. |
FunctionType | String | sandbox | Function type. |
Cell | String | 2 | Cell to which the function belongs. |
Role | String | trn:iam::1400000044:role/VeFaaSDefaultRole | Bind IAM role to function instances. |
EnableApmplus | Boolean | ture | Turn on application monitoring. |
AsyncTaskConfig | {"EnableAsyncTask":true,"MaxRetry":3,"DestinationConfig":{"OnFailure":{"Destination":"http://dummyinstanceid.apigateway-cn-beijing-****.****.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 value:
|
VpcId | String | vpc-2d73mgm**** | ID of the VPC to which the function belongs. |
SubnetIds | Array of String | ["subnet-mj1l******"] | Subnet ID after the function turns on VPC access. |
SecurityGroupIds | Array of String | ["sg-3re8ffwjclybk5zsk****"] | Security group ID after the function turns on 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 value:
|
Parameter | Type | Sample value | Description |
EnableNas | Boolean | false | Whether to enable NAS storage mount, parameter value:
|
NasConfigs | - | NAS storage configuration. |
Parameter | Type | Sample value | Description |
EnableTos | Boolean | false | Whether to enable TOS storage mount, parameter value:
|
Credentials | - | After turning on TOS storage mount, you need to provide an access key (AK/SK) with TOS domain name access permission. | |
MountPoints | - | After turning on TOS storage mount, you need to provide a TOS storage configuration list. No more than 5. |
Parameter | Type | Sample value | Description |
MaxRetry | Integer | 3 | Number of asynchronous task retry attempts after failure, selectable values are 0~3. |
EnableAsyncTask | Boolean | true | Whether to enable asynchronous tasks. |
DestinationConfig | - | Asynchronous task callback target configuration. |
Parameter | Type | Sample value | Description |
Gid | Long | 1,000 | User group in the file system. Custom settings are currently not supported. If this parameter is provided, the parameter value must be consistent with the function's run user GID, and the value must be: 1000. |
Uid | Long | 1,000 | User in the file system; custom user configuration is not supported for now. If this parameter is provided, its value must match the UID of the function's run user and must be: 1000. |
RemotePath | String | / | File system remote directory. Length 1~128 characters, must start with "/", supports uppercase and lowercase letters, numbers, 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, digits, 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 | Function local directory access permission. After mounting the TOS Bucket, specifies whether the function's 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. |