Parameter | Description |
For sandbox images | |
Container image | Configure container images for sandbox instances:
|
Startup command | The start command for sandbox instances. If you need to execute a script file instead, ensure entering an absolute path and the script file has execute permission. |
Listening port | The listening port of the HTTP Server for the sandbox instance. warning
|
Instance configuration | |
Instance specification | Set the number of vCPU and memory capacity for the instance. By default, the instance specification set with the sandbox application will be applied. You can also adjust it as needed according to the prompts on the page. |
Instance lifetime | Sandbox instance lifetime. Instances will be terminated upon reaching the end of their lifetime. |
Environment variables | |
Environment variables | The environment variables of each sandbox instance. If not configured, the ones from the sandbox application will be applied instead. If a sandbox instance and the application both have an environment variable with the same key, the value set for the former instance will overwrite that for the latter. |
Advanced settings | |
Instance metadata | The metadata of the instance label. Example: user:2100******. You can use metadata <key,value> to filter sandbox instances. Here are some scenarios:
|
Execution timeout | Set an execution timeout as needed. If the instance does not start up within the timeout specified here, the process will quit and return an error. |
TOS storage configuration | If TOS mount is enabled for a sandbox application, the subdirectories of a TOS Bucket can be mounted to instances. If not enabled, the TOS configuration of the sandbox application will be applied. |
Operation | Description |
Search box | You can search instances by name, metadata, or image address. When searching using instance metadata, enter a key-value pair in the key=value format to find the sandbox instance. |
View logs | View logs related to the sandbox instance. |
Webshell | Log in to the instance Webshell and execute commands to perform operations such as viewing the environment information of the instance, and performing function debugging. The following commands can be used to view the environment information of instances:
tip If you are using a custom image, you need to change sandbox to the main process name of your custom image application.
tip Replace ${your_sandbox_proc_id} with the actual Sandbox service process ID you get in previous step. For example, if the process ID is 15, the complete command is: cat /proc/15/environ | tr '\0' '\n'. |
Modify lifetime | Modify the lifetime of the cloud sandbox instance. The instance will be terminated upon reaching the end of the lifetime. |
Delete | Delete a sandbox instance. This action cannot be undone. |