This document contains the current resource capacity limits and per-minute API
request quotas for Memorystore for Valkey.

## Instance limits

Memorystore for Valkey enforces the following usage limits:

| Limit | Value |
|---|---|
| Databases per instance | 1 |
| [Usage units per instance](https://docs.cloud.google.com/memorystore/docs/valkey/quotas.md.txt#instance_usage_units) | 250 |

### Max clients

*Max clients* is the maximum number of client connections that you can have for
each node of a [node type](https://docs.cloud.google.com/memorystore/docs/valkey/instance-node-specification.md.txt#choose-node-type)
without experiencing performance issues.

To make sure that you don't exceed the maximum number of client connections, we
recommend that you monitor the [`/instance/node/clients/connected_clients`](https://docs.cloud.google.com/memorystore/docs/valkey/supported-monitoring-metrics.md.txt#node-level_metrics) metric.

The following table lists the node types that are available for
Memorystore for Valkey, and the default and maximum number of client connections
that you can have for each node type.

| Node type | Default number of client connections | Maximum number of client connections^1^ |
|---|---|---|
| shared-core-nano | 5,000 | 5,000 |
| custom-pico | 16,000 | 32,000 |
| custom-micro | 16,000 | 32,000 |
| custom-mini | 16,000 | 32,000 |
| standard-small | 16,000 | 32,000 |
| highmem-medium | 32,000 | 64,000 |
| highcpu-medium | 32,000 | 64,000 |
| standard-large | 32,000 | 64,000 |
| highmem-xlarge | 64,000 | 64,000 |
| highmem-2xlarge | 64,000 | 64,000 |

> [!CAUTION]
> **Caution** : We recommend that you use the `shared-core-nano` node type only for development or testing purposes because this node type has no SLA. If you run Memorystore for Valkey in a production environment, then we recommend using another node type. For more information about these node types, see [Choose a node type](https://docs.cloud.google.com/memorystore/docs/valkey/instance-node-specification.md.txt#choose-node-type).

^1^ To learn how to adjust the maximum client connection limit, see
[Configure an instance](https://docs.cloud.google.com/memorystore/docs/valkey/configure-instances.md.txt).

### Instance usage units

The per-project instance usage units for a Memorystore for Valkey instance is
calculated by the following formula:

Instance usage units = (shard_count) \* (1 + replica_count)

The regional quota for Memorystore for Valkey limits the total amount of usage
units that you can provision across all of your instances in a region.

For example, if you provision three instances in your project with 3 shards and
1 replica each in `us-central1`, then you consume 18 units out of the total
regional unit quota for `us-central1`.

## Per-minute API requests quota

> [!NOTE]
> **Note:**
> - You cannot request a quota increase for Memorystore for Valkey API operations, such as instance `create`, `update`, and `delete`. There is no limit to the number of Valkey commands you can run, such as Valkey `SET`, `GET`, and `DEL`.
> - Follow the [Exponential backoff recommendations](https://docs.cloud.google.com/memorystore/docs/valkey/exponential-backoff.md.txt) to reduce the number of API requests made if an error is encountered.

The per-minute quotas for Memorystore for Valkey API requests/operations are as follows, and are subject to change:

| API Requests Quota | Value |
|---|---|
| Create or delete Valkey instance requests per project per minute | 10 |
| Valkey instance requests per project per minute | 60 |

Create or delete Valkey instance requests include:

- Create operations (`gcloud memorystore instances create`)
- Delete operations (`gcloud memorystore instances delete`)

Memorystore for Valkey API operations include:

- Get operations (`gcloud memorystore instances describe`)
- List operations (`gcloud memorystore instances list`)
- Create operations (`gcloud memorystore instances create`)
- Delete operations (`gcloud memorystore instances delete`)
- Update operations (`gcloud rmemorystore instances update`)

This quota is for memorystore.googleapis.com requests/operations, not OSS Valkey
protocol/commands. These limits apply to each Google Cloud console project and
are shared across all applications and IP addresses using that project.