This page describes the quotas and limits of Filestore.

## Number of instances

The number of instances you can create is limited only by the amount of
Filestore quota for a given project and region as well as the minimum
file share capacity. For example, if you have 32 TiB of quota in a given
region, you can create 32 instances each with 1 TiB of capacity. To see
your available per project, per region quota, go to
[the Quotas page](https://console.cloud.google.com/iam-admin/quotas).

## Number of snapshots

| Service tier | Maximum recommended number of [snapshots](https://docs.cloud.google.com/filestore/docs/snapshots.md.txt) per instance |
|---|---|
| Basic HDD | Not supported |
| Basic SSD | Not supported |
| Zonal | 240 |
| Regional | 240 |
| Enterprise | 240 |

## Number of clients

| Service tier | Instances with [custom performance](https://docs.cloud.google.com/filestore/docs/custom-performance.md.txt) off | Instances with custom performance on |
|---|---|---|
| Basic HDD | 500 connections per instance | Custom performance not supported |
| Basic SSD | 500 connections per instance | Custom performance not supported |
| Zonal (100 GiB to 10,239 GiB) | 2,000 connections per 1 TiB (1,024 GiB to 10,239 GiB only) Scales in increments of 500 for up to 20,000 connections per instance | 100 connections per 1,000 purchased IOPS |
| Zonal (10 TiB to 100 TiB) (previously high scale SSD) | 8,000 connections per 10 TiB Scales in increments of 2,000 for up to 80,000 connections per instance | 100 connections per 1,000 purchased IOPS |
| Regional (100 GiB to 10,239 GiB) | 2,000 connections per 1 TiB (1,024 GiB to 10,239 GiB only) Scales in increments of 500 for up to 20,000 connections per instance | 100 connections per 1,000 purchased IOPS |
| Regional (10 TiB to 100 TiB) | 8,000 connections per 10 TiB Scales in increments of 2,000 for up to 80,000 connections per instance | 100 connections per 1,000 purchased IOPS |
| Enterprise | 2,000 connections per 1 TiB Scales in increments of 500 for up to 20,000 connections per instance | Custom performance not supported |
[Maximum number of client connections for instances]

> [!NOTE]
> **Note:** You can't deactivate custom performance for zonal or regional instances with capacity lower than 1,024 GiB. Capacity-based connection limits apply only to instances with capacity from 1,024 GiB to 10,239 GiB. For more information, see [Small capacity instances](https://docs.cloud.google.com/filestore/docs/service-tiers.md.txt#small-instances).

## Number of VPC networks used with Filestore

You can create Filestore instances on no more than 49 unique VPC
networks, even if previously used networks are deleted. If you think that you've
reached this limit, see the troubleshooting guide topic on
[`error code 13`](https://docs.cloud.google.com/filestore/docs/create-instance-issues.md.txt)
for possible solutions.

## File share capacity

| Service tier | Capacity |
|---|---|
| Basic HDD | 1 TiB to 63.9 TiB |
| Basic SSD | 2.5 TiB to 63.9 TiB |
| Zonal with a lower capacity range | 100 GiB to 10,239 GiB |
| Zonal with a higher capacity range | 10 TiB to 100 TiB |
| Regional with a lower capacity range | 100 GiB to 10,239 GiB |
| Regional with a higher capacity range | 10 TiB to 100 TiB |
| Enterprise | 1 TiB to 10 TiB |

Enterprise instances combined with the Filestore
multishares feature can support a minimum share capacity of 10 GiB.

For more information, see [Filestore multishares](https://docs.cloud.google.com/filestore/docs/multishares.md.txt#storageclasses_and_dynamic_volume_provisioning).

## File size

| Service tier | Maximum supported file size |
|---|---|
| Basic HDD | Up to 16 TiB |
| Basic SSD | Up to 16 TiB |
| Zonal | Up to the size of instance capacity |
| Regional | Up to the size of instance capacity |
| Enterprise | Up to the size of instance capacity |

## Number of files

| Service tier | Maximum file limit |
|---|---|
| Basic HDD | 67,108,864 files per 1 TiB of capacity |
| Basic SSD | 67,108,864 files per 1 TiB of capacity |
| Zonal | Approximately 89,000,000 files per 1 TiB of capacity |
| Regional | Approximately 89,000,000 files per 1 TiB of capacity |
| Enterprise | Approximately 89,000,000 files per 1 TiB of capacity |

- The number of files listed is an indication of the maximum number of supported
  connections to small or empty files. The number of supported file connections
  decreases as file size increases.

- While no practical limit exists across service tiers, instance performance
  may be delayed when supporting a large number of files.

To check your usage, run the following command:

      df -i

`IUsed` reflects the current number of files you have and `IFree` reflects the
number of additional files that you can store.

## File locks

A [file-locking](https://en.wikipedia.org/wiki/File_locking)
client is a client with at least one acquired or requested file lock. Anything
greater than the maximum recommended limit listed introduces inconsistent
locking behaviors that may result in production outages when the instance
undergoes maintenance:

| Service tier | Maximum recommended number of file-locking clients per instance |
|---|---|
| Basic HDD | 128 |
| Basic SSD | 128 |
| Zonal | 250 |
| Regional | 250 |
| Enterprise | 250 |

## Rate limits for backups

The following [backups](https://docs.cloud.google.com/filestore/docs/backups.md.txt) operations have a rate limit of
once per 10 minutes in the steady state:

- Creating a backup of Filestore instance
- Restoring a Filestore instance from a backup (in-place restore)
- Creating a new Filestore instance from a backup

If you want to issue a burst of requests to back up your file shares, you can
issue at most 6 requests in 60 minutes.

For more information, see [Backups feature limitations](https://docs.cloud.google.com/filestore/docs/backups.md.txt#feature_limitations).

## Filestore agent volumes limits

Filestore agent volumes introduce high-density elastic NFS file
storage backed by regional volume pools:

| Resource or operation | Limit |
|---|---|
| Maximum volume pool capacity | Up to 400 TiB of `HOT` storage by default (up to 5 PB including `COLD` storage) |
| Maximum volumes per volume pool | Up to 20,000,000 volumes |
| Maximum concurrently active volumes | 50,000 |
| Volume capacity range | 100 MiB to 100 GiB |
| Throughput per volume | Up to 400 MB/s |
| IOPS per volume | Up to 10,000 IOPS |
| VPC network client IPs per pool | 2,000 IPs |
| Volume mount latency (resume) | Under 100 ms |
| Volume unmount latency (pause) | Under 100 ms |
| Volume creation and deletion latency | Under 2 seconds |
| Volume tiering to Cold | 3 s/GB or 1.5 s/10,000 files |
| Volume tiering to Hot | 1.5 s/GB or 1.5 s/10,000 files |
| Workspace cloning (from snapshot) | 3 s/GB or 1.5 s/10,000 files |
| Mount protocol | NFSv3 |
| Supported access modes | ReadWriteMany (RWX), ReadOnlyMany (ROX) |

For more information, see [About Filestore agent volumes](https://docs.cloud.google.com/filestore/docs/agent-volumes-overview.md.txt).

## What's next

- [About Filestore agent volumes](https://docs.cloud.google.com/filestore/docs/agent-volumes-overview.md.txt)
- [Service tiers](https://docs.cloud.google.com/filestore/docs/service-tiers.md.txt)
- [Known issues](https://docs.cloud.google.com/filestore/docs/known-issues.md.txt)
- [Troubleshoot performance-related issues](https://docs.cloud.google.com/filestore/docs/troubleshooting.md.txt)
- [Scale capacity](https://docs.cloud.google.com/filestore/docs/scale.md.txt)