In extreme write scenarios, when AOF is enabled, the AOF rewrite process may require considerably more disk space for database persistence.

To estimate the required persistent disk space in such cases, use the formula described below.

The required persistent disk space for AOF rewrite purposes in extreme write scenarios, assuming identical shard sizes:

X (1 + 3Y +Y²) where: X = each shard size Y = number of shards

Following are examples of database configurations and the persistence disk space they would require in this scenario:

Example 1Example 2Example 3Example 4
Database size (GB)10104040
Number of shards416515
Shard size (GB)2.50.62582.67
Required disk space (GB)73191328723

For disk size requirements in standard usage scenarios, refer to the Hardware requirements section.