> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cube.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Limits and quotas

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

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

## 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                      |
| ---------------------------------------------------------------------------------- | :-------: | :--------------------------------------------: | :--------------------------------------------: | :---------------------------------------------------: |
| Number of deployments                                                              |     2     |                    Unlimited                   |                    Unlimited                   |                       Unlimited                       |
| Number of API instances per deployment                                             |     1     |                       10                       |                       10                       |             [Contact us][cube-contact-us]             |
| Number of Cube Store workers per deployment                                        |     2     |                       16                       |                       16                       |             [Contact us][cube-contact-us]             |
| Queries per day for each [Shared deployment][ref-dev-instance]                     |   1,000   |                     10,000                     |                    Unlimited                   |                       Unlimited                       |
| Queries per day for each [Dedicated deployment][ref-prod-cluster]                  |     —     |                     50,000                     |                    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]    |
| [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]    |
| [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             |     —     |                        —                       |                        —                       | Available as an [add-on][ref-monitoring-integrations] |

### 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 Shared deployment to a Dedicated deployment.
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. Usage is calculated per Cube Cloud deployment. [Contact
support][cube-contact-us] for higher quotas.

## Quotas

The [REST (JSON)][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]: /reference/core-data-apis/rest-api

[ref-gql-api]: /reference/core-data-apis/graphql-api

[ref-deployment-types]: /admin/deployment/deployment-types

[ref-pricing]: /admin/account-billing/pricing

[ref-query-history]: /admin/monitoring/query-history

[ref-monitoring-integrations]: /admin/monitoring/monitoring-integrations

[ref-dev-instance]: /admin/deployment/deployment-types#shared

[ref-prod-cluster]: /admin/deployment/deployment-types#dedicated

[cube-contact-us]: https://cube.dev/contact

[ref-query-history-tiers]: /admin/account-billing/pricing#query-history-tiers

[ref-audit-log]: /admin/monitoring/audit-log
