What is the Default Compression on a MongoDB Managed Database?
Linode
Linode Staff
When I try to enable compression on my database and do a mongorestore
, all the block_compressor
values get removed. Is compression on a MongoDB Managed Database cluster is disabled by default?
1 Reply
tlambert
Linode Staff
When you're deploying a MongoDB cluster through the API or CLI, you can pass a compression_type
call to enable compression on your cluster. The compression options are none
, snappy
, and zlip
. The default is none
. You can find this information in the API documentation.
Once the cluster is deployed the compression type can't be reconfigured.
These options are only available when deploying through the API or CLI though, since you can't select a compression type when provisioning your cluster in the Cloud Manager.