-
Notifications
You must be signed in to change notification settings - Fork 6
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
Make leveldb options configurable #13
Comments
ah, one trickyness with this is there is support for more than one store, but I could add a somewhat generic store option type? some sort of cache size would be common to many of them. |
From testing, it seems the problem for memory usage is mostly the WriteBuffer, so I may just release a new version that drops that back to the default. |
JustinAzoff
added a commit
that referenced
this issue
Apr 11, 2018
Using a write buffer of 64M was causing flow-indexer to use 7G of ram while indexing. Changing this back to the default of 4M cuts the peak usage in half. I'm still not sure how a 64M buffer ends up turning into 7G of usage, but I think it has something to do with GC and leveldb allocating a 64M buffer for each transaction. This is a partial fix for #13
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
flow-indexer/store/leveldb.go
Lines 29 to 36 in 52b1dce
The text was updated successfully, but these errors were encountered: