Viewing container scaling settings
- In the management console
, go to the folder with your container. - Go to Serverless Containers.
- Select the container. The number of provisioned instances is displayed under Revisions, in the row with the active container revision.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
To view the container scaling settings, run this command:
yc serverless container revision get container-id=flhqle7d5oh2********
Where --container-id is the container ID. To find out the ID, get a list of containers.
Result:
id: flhqle7d5oh2********
container_id: flhqle7d5oh2********
created_at: "2022-09-14T12:48:55.914Z"
image:
image_url: cr.yandex/crtrvt9l6fh2********/billing-test
image_digest: sha256:e3aaa4c9af7d99ea5e4e4236bc540a3cc826d1f1344a601ddb9cbch2********
resources:
memory: "134217728"
cores: "1"
core_fraction: "100"
execution_timeout: 10s
service_account_id: bfbdkhbl8fh2********
status: ACTIVE
provision_policy:
min_instances: "1"
The number of provisioned instances is displayed in the min_instances field.
To view container scaling settings, use the getRevision REST API method for the Container resource or the ContainerService/GetRevision gRPC API call.