cockroachdb / docs

CockroachDB user documentation
https://cockroachlabs.com/docs
Creative Commons Attribution 4.0 International
188 stars 456 forks source link

production checklist: add ext4 and xfs file system mount options guidance #10630

Open sheaffej opened 3 years ago

sheaffej commented 3 years ago

John Sheaffer (sheaffej) commented:

I am seeing many customers struggling with IO performance on servers with locally attached disks, only to find they have the default file system mount options which are suboptimal for any RDBMS that stores data as files in a file system.

We should consider adding guidance on how to mount filesystems to hold the CockroachDB data files (i.e. the location specified by --store or the default of ./cockroach-data).

Suggestion: In the Production Checklist consider adding verbiage such as the following: https://www.cockroachlabs.com/docs/v21.1/recommended-production-settings.html#storage


References:

Jira Issue: DOC-1577

andrewbaptist commented 1 year ago

If we are providing guidance to customers on setting up ext4, we should tune 2 additional settings to save over 5% of disk space at virtually no risk.

1) Reduce the reserved space. Setting it to 0 might be risky, but setting it to 1% should be fine. Cloudera similarly recommends this: https://docs.cloudera.com/cloudera-manager/7.4.2/managing-clusters/topics/cm-decrease-reserved-space.html. This change will save 4% of disk space.

2) Use a smaller bytes-per-inode parameter. Storage team would have the best value to use here, but something like -i 131072 would be very conservative and save almost 1.25%.