Viewing function scaling settings
- In the management console
, navigate to the folder containing the function. - Go to Cloud Functions.
- Select the function.
- Under Version history, hover over the tag (e.g.,
$latest) of the function version whose scaling settings you want to view. - The following scaling settings will be displayed in a pop-up window:
- zone_instances_limit: Number of function instances per availability zone.
- zone_requests_limit: Number of concurrent function calls per availability zone.
- provisioned_instances_count: Number of provisioned instances.
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 scaling settings, run this command:
yc serverless function list-scaling-policies --id=<function_ID>
Where --id is the function ID. To find out the ID, get the list of functions.
Result:
+----------------------+---------+----------------------+---------------------+-----------------------------+
| FUNCTION ID | TAG | ZONE INSTANCES LIMIT | ZONE REQUESTS LIMIT | PROVISIONED INSTANCES COUNT |
+----------------------+---------+----------------------+---------------------+-----------------------------+
| d4eokpuol55h******** | $latest | 1 | 2 | 3 |
+----------------------+---------+----------------------+---------------------+-----------------------------+
To view scaling settings, use the listScalingPolicies REST API method for the Function resource or the FunctionService/ListScalingPolicies gRPC API call.