JustinAzoff / flow-indexer

Flow-Indexer indexes flows found in chunked log files from bro,nfdump,syslog, or pcap files
44 stars 6 forks source link

Make leveldb options configurable #13

Open JustinAzoff opened 6 years ago

JustinAzoff commented 6 years ago

https://github.com/JustinAzoff/flow-indexer/blob/52b1dced9fc447ce646517e99ff11731de994a65/store/leveldb.go#L29-L36

JustinAzoff commented 6 years ago

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.

JustinAzoff commented 6 years ago

also https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis

JustinAzoff commented 6 years ago

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.