near / nearcore

Reference client for NEAR Protocol
https://near.org
GNU General Public License v3.0
2.31k stars 618 forks source link

Tune the rocksdb configuration #1782

Open MaksymZavershynskyi opened 4 years ago

MaksymZavershynskyi commented 4 years ago

Currenly our rocksdb configuration is copied from Parity. We need to make sure it is actually correctly configured for our usage. There are two groups of parameters:

We also need to educate ourselves on what are the different types of compactions are offered by rocksdb and decide which one should we use.

ailisp commented 4 years ago

Some resources: rocksdb turning guide: https://github.com/facebook/rocksdb/wiki/Setup-Options-and-Basic-Tuning https://github.com/facebook/rocksdb/wiki/RocksDB-Tuning-Guide

Parity check disk is hd/ssd and set compaction params differently: https://github.com/paritytech/parity-common/blob/92ec1826884281820ebbbfc428e6c0fbdcccb9bf/kvdb-rocksdb/src/lib.rs#L110

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity in the last 2 months. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.