DeFiCh / ain

DeFi Blockchain - enabling decentralized finance on Bitcoin
https://defichain.com
MIT License
408 stars 122 forks source link

Update rocksdb default options #3104

Closed Jouzo closed 4 weeks ago

prasannavl commented 1 month ago

Should also resolve https://github.com/DeFiCh/ain/issues/3098 (with the max file open targets).

Currently, we'll have 3 DBs, one managed by LevelDB, 2 rocksdb instances - one internal, and the other through vsdb. With 256 per instance, expect this to stay under most default common distro defaults of 1024.

We'll be upwards of 700+, but as long as other system resources haven't taken up too much, should work reasonably.

Note: This is just to keep it operational, but production servers are still expected to use a larger file count as larger DBs just require larger limits.