Keep one month worth of data - gc_num_epochs_to_keep #11692
Unanswered
andreclaro
asked this question in
Q&A
Replies: 1 comment
-
Yes, setting gc_num_epochs_to_keep to 60 should retain approximately one month of historical data, since each epoch lasts around 12 hours (60 epochs × 12 hours = 30 days). However, ensure your storage capacity can handle the additional data, as keeping more epochs increases disk usage. You may also want to test on testnet before applying it to mainnet to verify performance and consistency. Let us know if you need further clarification! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a requirement to keep one month worth of historical data in our Near RPC nodes (testnet and mainnet).
I think we can archive that by setting
gc_num_epochs_to_keep
to 60, since 1 epoch is around 12 hours.Can you confirm this is the way to do it? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions