Hello,
I understand that shared/flex clusters price storage based on uncompressed data+index usage, as per below documentation. However, the wording makes it seem specific to shared instances. Does the same billing method apply for dedicated clusters M10+ as well, or is it instead based on totalStorage() which factors in WiredTiger compression?
https://www.mongodb.com/docs/atlas/reference/faq/storage/
How does Atlas calculate storage limits for Flex Clusters?
Atlas calculates the storage limit for Flex clusters based on data usage, as opposed to the storageSize
metric used by non-Flex clusters (which includes compression). Atlas determines data usage by summing a cluster’s dataSize
and indexSize
. You can issue the db.stats() method to view the values of these fields.
Hi there
Flex clusters and Shared clusters do not bill anything extra for storage. M2 and M5 are priced at $9/month and $25/month and include 2GB of data and 5GB of data respectively. Flex clusters have a base fee of $8/month which includes 5GB of storage.
For Dedicated clusters, you are charged for the size of the disk you provision. Hope this helps.
1 Like
Thanks for replying, although it is still unclear.
For example, on an M2 shared cluster, the 2GB data inclusion will be measured against dataSize+indexSize, right?
For a M10 dedicated cluster, can you confirm the size of the provisioned disk means storageSize()?
Are you trying to calculate this to figure out what size disk to provision? Or something else?
I’m trying to understand how Atlas decides how much storage I’m using, and in effect how my billing will be affected between Flex and Dedicated clusters
Understood. As mentioned in the FAQ that you linked, data usage for Flex clusters is determined by summing a cluster’s dataSize
and indexSize
. Note that the base cost for Flex clusters includes 5GB of Storage.
In Dedicated clusters on the other hand, you pay for the disk size that you provision. The storage size is calculated based on the “storageSize” metric which reflects the compressed size of your documents and indexes