Viewing function scaling settings
Written by
Updated at February 28, 2024
Management console
CLI
API
Yandex Cloud Toolkit
- In the management console
, select the folder containing your function. - Select Cloud Functions.
- Select a function.
- Under Version history, hover over the tag (e.g.,
$latest
) of the function version whose scaling settings you want to view. - Information on these scaling settings will be displayed in a pop-up window:
- zone_instances_limit: Number of function instances in an availability zone.
- zone_requests_limit: Number of concurrent function calls in an availability zone.
- provisioned_instances_count: Number of provisioned instances.
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
To view the function scaling settings, run this command:
yc serverless function list-scaling-policies --id=<function_ID>
Where --id
: Function ID. To find out the ID, request a list of functions.
Result:
+----------------------+---------+----------------------+---------------------+-----------------------------+
| FUNCTION ID | TAG | ZONE INSTANCES LIMIT | ZONE REQUESTS LIMIT | PROVISIONED INSTANCES COUNT |
+----------------------+---------+----------------------+---------------------+-----------------------------+
| d4eokpuol55h******** | $latest | 1 | 2 | 3 |
+----------------------+---------+----------------------+---------------------+-----------------------------+
To view function scaling settings, use the listScalingPolicies REST API method for the Function resource or the FunctionService/ListScalingPolicies gRPC API call.
You can view scaling settings of a function using the Yandex Cloud Toolkit plugin