nearcore icon indicating copy to clipboard operation
nearcore copied to clipboard

Reducing hard drive validator footprint

Open ilblackdragon opened this issue 6 months ago • 5 comments

Currently validators foot print is very high as they maintain additional indices that are not needed.

There should be a flag to not maintain those indecies and reduce hard drive footprint of validator.

A number of validators OOMed due to over 1.4 TB hard drive during spike in transactions.

ilblackdragon avatar Dec 20 '23 16:12 ilblackdragon

To add more context here, currently a validator node and a rpc node store the same amount of data in rocksdb. However, validator nodes do not need to store some indices such as DBCol::Transactions, DBCol::Receipts, DBCol::TransactionResultForBlock and so on. Removing those indices for validator nodes could help reduce the disk usage of a validator node, which reduces the cost of running a validator node.

bowenwang1996 avatar Dec 21 '23 08:12 bowenwang1996

No brainer decission for us. The less resources needed the better performance and efficiency for the network.

packetstracer avatar Dec 21 '23 16:12 packetstracer

In order to make an issue a good one for somebody to work on as their first contribution this lacks pointers towards the approximate area of where the changes should be made. If there are any anticipated gotchas, those should be written down too.

nagisa avatar Dec 29 '23 12:12 nagisa

will check this week

fallenmi avatar Jan 11 '24 13:01 fallenmi

@valar999 I see you also sent #10748. do you want to assign this issue to yourself if you want to work on it? it is currently unassigned.

tayfunelmas avatar Mar 25 '24 19:03 tayfunelmas