On-demand provisioning is intended to accelerate app development by eliminating
the need for development teams to request
and wait for operators to create a service instance.
However, to control costs, operations teams and administrators must ensure
responsible use of resources.

There are several ways to control the provisioning of on-demand service instances
by setting various quotas at these levels:

Create Global-level Quotas

Each Redis for Pivotal Cloud Foundry (PCF) service has a separate service broker.
A global quota at the service level sets the maximum number of service instances
that can be created by a given service broker. If a service has more than one plan,
then the number of service instances for all plans combined cannot exceed the global
quota for the service.

The operator sets a global quota for each Redis for PCF service independently.
For example, if you have MySQL for PCF and RabbitMQ for PCF,
you must set a separate global service quota for each of them.

When the global quota is reached for a service, no more instances of that service
can be created unless the quota is increased, or some instances of that service are deleted.

Create Plan-level Quotas

A service may offer one or more plans.
You can set a separate quota per plan so that instances of that plan cannot exceed the plan quota.
For a service with multiple plans, the total number of instances created for all
plans combined cannot exceed the global quota for the service.

When the plan quota is reached, no more instances of that plan can be created
unless the plan quota is increased or some instances of that plan are deleted.

Create and Set Org-level Quotas

An org-level quota applies to all Redis for PCF services and sets the maximum number of
service instances an organization can create within Redis for PCF.
For example, if you set your org-level quota to 100, developers can create up to
100 service instances in that org using any combination of Redis for PCF services.

When this quota is met, no more service instances of any kind can be created in
the org unless the quota is increased or some service instances are deleted.

To create and set an org-level quota, do the following:

Run this command to create a quota for service instances at the org level:

Create and Set Space-level Quotas

A space-level service quota applies to all Redis for PCF services and sets the maximum
number of service instances
that can be created within a given space in Redis for PCF.
For example, if you set your space-level quota to 100,
developers can create up to 100 service instances in that space using any
combination of Redis for PCF services.

When this quota is met, no more service instances of any kind can be created in
the space unless the quota is updated
or some service instances are deleted.

Calculate Resource Costs for On-Demand Plans

On-demand plans use dedicated VMs, disks, and various other resources from an
IaaS, such as AWS.
To calculate maximum resource cost for plans individually or combined,
you multiply the quota by the cost of the resources selected in the plan
configuration(s).
The specific costs depend on your IaaS.

To view configurations for your Redis for PCF on-demand plan, do the following:

Click the section for the plan you want to view. For example, On-Demand Plan 1.

The image below shows an example that includes the VM type and persistent disk
selected for the server VMs, as well as the quota for this plan.

Note:
Although operators can limit on-demand instances with plan quotas and a global
quota, as described in the above topics,
IaaS resource usage still varies based on the number of on-demand instances
provisioned.

Calculate Maximum Resource Cost Per On-Demand Plan

To calculate the maximum cost of VMs and persistent disk for each plan, do the
following calculation:

plan quota x cost of selected resources

For example, if you selected the options in the above image,
you have selected a VM type micro and a persistent disk type 20 GB,
and the plan quota is 15.
The VM and persistent disk types have an associated cost for the IaaS you are using.
Therefore, to calculate the maximum cost of resources for this plan, multiply the
cost of the resources selected by the plan quota: