# Limits and quotas in Cube Cloud

Cube Cloud implements limits on resource usage on account and deployment levels
to ensure the best experience for all Cube Cloud users.

<InfoBox>

Applies to [all plans](https://cube.dev/pricing).

</InfoBox>

## Limit types

Each limit can be of one of the following types:

- _Hard limit_ either has a threshold that can't be exceeded or prevents further
  use of a resource when a threshhold is hit until a cool-down period passes
  (e.g., until the next day starts) or the limit is increased (e.g., when a Cube
  Cloud account upgrades to another tier).
- _Soft limit_ may allow further use of a resource after a threshold is hit.

## Resources

The following resources are subject to limits, depending on [deployment
types][ref-deployment-types] and [product tiers][ref-pricing]:

| Resource                                                                            | Free Tier |  Starter  |  Premium  | Enterprise |      Enterprise Premier       |
| ----------------------------------------------------------------------------------- | :-------: | :-------: | :-------: | :--------: | :---------------------------: |
| Number of deployments                                                               |     2     | Unlimited | Unlimited | Unlimited  |           Unlimited           |
| Number of API instances per deployment                                              |     1     |    10     |    10     |     10     | [Contact us][cube-contact-us] |
| Number of Cube Store workers per deployment                                         |     2     |    16     |    16     |     32     | [Contact us][cube-contact-us] |
| Queries per day for each [development instance][ref-dev-instance]                   |   1,000   |  10,000   | Unlimited | Unlimited  | Unlimited                     |
| Queries per day for each [production cluster][ref-prod-cluster]                     |     —     |  50,000   | Unlimited | Unlimited  | Unlimited                     |
| [Query History][ref-query-history] — retention period                               |   1 day   | Depends on the [tier][ref-query-history-tiers] | Depends on the [tier][ref-query-history-tiers] | Depends on the [tier][ref-query-history-tiers] | Depends on the [tier][ref-query-history-tiers] |
| [Query History][ref-query-history] — queries processed per day for each deployment  |   1,000   | Depends on the [tier][ref-query-history-tiers] | Depends on the [tier][ref-query-history-tiers] | Depends on the [tier][ref-query-history-tiers] | Depends on the [tier][ref-query-history-tiers] |
| [Audit Log][ref-audit-log] — retention period                                       |     —     |     —     |     —     |     —      | 30 days                       |
| [Audit Log][ref-audit-log] — events collected                                       |     —     |     —     |     —     |     —      | 10,000                        |
| [Monitoring Integrations][ref-monitoring-integrations] — exported data              |     —     | Depends on the [tier][ref-monitoring-integrations-tiers] | Depends on the [tier][ref-monitoring-integrations-tiers] | Depends on the [tier][ref-monitoring-integrations-tiers] | Depends on the [tier][ref-monitoring-integrations-tiers] |

### Number of deployments

This is a hard limit. Consider upgrading to [another tier][ref-pricing].

### Number of API instances

This is a hard limit. Consider upgrading to [another tier][ref-pricing].

### Number of Cube Store workers

This is a hard limit. Consider upgrading to [another tier][ref-pricing].

An option to use 32 Cube Store workers is subject to availability in select
regions. Please [contact support][cube-contact-us] for more details.

### Queries per day

This is a hard limit. Usage is calculated per Cube Cloud account, i.e., in total
for all deployments within an account.

When a threshold is hit, further queries will not be processed. In that case,
consider upgrading a development instance to a production cluster.
Alternatively, consider upgrading to [another tier][ref-pricing].

### Queries processed by Query History per day

This is a soft limit. Usage is calculated per Cube Cloud account, i.e., in total
for all deployments within an account.

When a threshold is hit, query processing will be stopped. Please [contact
support][cube-contact-us] for further assistance.

### Data retained by Query History

This is a soft limit. Usage is calculated per Cube Cloud account, i.e., in total
for all deployments within an account.

### Data collected and retained by Audit Log

This is a hard limit. Usage is calculated per Cube Cloud account, i.e., in total
for all deployments within an account. Please [contact
support][cube-contact-us] for further assistance.

### Data exported via Monitoring Integrations

This is a hard limit. Consider upgrading to the next [Monitoring Integrations tier][ref-monitoring-integrations-tiers].
Usage is calculated per Cube Cloud deployment.

## Quotas

The [REST][ref-rest-api] and [GraphQL][ref-gql-api] APIs both have a standard
quota of 100 requests per second per deployment; this can also go higher
for short bursts of traffic. These limits can be raised on request,
[contact support][cube-contact-us] for more details.

When the quota is exceeded, the API will return a `429 Too Many Requests`
response.

[ref-rest-api]: /product/apis-integrations/rest-api
[ref-gql-api]: /product/apis-integrations/graphql-api
[ref-deployment-types]: /product/deployment/cloud/deployment-types
[ref-pricing]: /product/administration/pricing
[ref-query-history]: /product/administration/monitoring/query-history
[ref-monitoring-integrations]: /product/administration/deployment/monitoring
[ref-dev-instance]:
  /product/deployment/cloud/deployment-types#development-instance
[ref-prod-cluster]:
  /product/deployment/cloud/deployment-types#production-cluster
[cube-contact-us]: https://cube.dev/contact
[ref-query-history-tiers]: /product/administration/pricing#query-history-tiers
[ref-audit-log]: /product/administration/monitoring/audit-log
[ref-monitoring-integrations-tiers]: /product/administration/pricing#monitoring-integrations-tiers
