You define deployment limit policies to control the amount of resources that deployments can consume when users deploy cloud templates in Cloud Assembly and request catalog items in Service Broker. The use cases in this procedure are an introduction to configuring deployment limit policies.
Deployment limits are applied to individual deployments for cloud templates or catalog items. If you want to limit resources at the user, project, or organization level, see How do I configure Service Broker resource quotas using policies.
As a cloud administrator, you can limit the total memory, CPU count, storage, and number of virtual machines that can be used per deployment. You can also limit memory, CPU count, and storage for specific resources in the deployment, for example, machines within a cloud template.
The limits apply to all deployments within the policy scope. You can use the policy criteria to narrow the scope to a specific deployment, in which case the policy applies to that deployment only.
- When the policy is enforced, users can provision deployment resources within the specified limits.
- Multiple deployment limit policies can be enforceable. If there are multiple policies defined for a deployment, the lowest limit value is enforced for each resource.
- If there are resource quota policies and approval policies defined that affect the deployments within the policy scope, deployment limits are enforced before the other policy types.
- If a deployment requests no resources, such as a workflow deployment, then the policy is not enforced on that deployment.
- A user requests a catalog item in Service Broker or a cloud template in Cloud Assembly.
- A user changes a deployment or its component resources.
- The storage value for some images is not calculated during allocation because the images do not contain any storage-related information. A default boot disk size of 8GB is allocated for storage for such images. The following table provides more information about what images contain boot disk capacity information for each cloud type.
Cloud Type Boot disk capacity unavailable Boot disk capacity available Azure - Default images
- Standard images
The default boot disk size is 8GB.
- Private images
- Custom images
AWS Instance store image disk sizes, including boot disk, are not counted. The default boot disk size is 8GB.
- Public images
- Private images
GCP Public images vSphere - ova
- ovf
The default boot disk size is 8GB.
Image disks are not counted.
- VM Templates
- Library item ova
- Library item ovf
In this use case, there are three policy definitions that illustrate how you can construct deployment limit policies and the results when they are enforced.
Procedure
What to do next
- For more examples of how other policies are processed and enforced, see How are Service Broker policies processed.
- Configure policies that are relevant to your organizations and projects.
- Monitor provisioned resources on the My Resource Usage dashboard. See Learn more about the Service Broker catalog items.