-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event db pruning #11681
Comments
@rvagg @Stebalien wondering what you think makes sense |
I'd like to see some stats on what this looks like on nodes that have been running some time, even the whole time we've been generating events. My node, which I think is only a couple of weeks since I started fresh looks like this:
So assuming the write-ahead log doesn't grow too much more than this, that's maybe 13M per day for events and maybe 2M per day for txhash. @rjan90 @TippyFlitsUK care to share some older We're also planning on adding at at least a table to the db, and probably indexing that too, which will increase it slightly again. #11640 |
My database that has been running (off and on) since last July is ~2GiB total (a little over 2GiB for transaction hashes). Pruning these doesn't seem like a priority, IMO. |
So, there's actually a reason to do this: consistency. Right now, we may events but no longer have the associated messages due to splitstore compaction, which leads to issues like #11117. We should probably trim the index after performing splitstore compaction. |
Currently, there isn't ant event db management tooling for users.
I think two things that could be nice to add
./lotus indexes prune-event
similar to./lotus-shed indexes prune-msgindex
The text was updated successfully, but these errors were encountered: