cruise icon indicating copy to clipboard operation
cruise copied to clipboard

log should be written to a file

Open calvinfo opened this issue 10 years ago • 3 comments

calvinfo avatar May 12 '14 06:05 calvinfo

I think you should use leveldb instead of a standard filesystem :D, or at least provide a way to add a level backend. Level is very simple to use, so... :D.

mcollina avatar May 26 '14 08:05 mcollina

Haha, I was actually thinking about using level! :D

The goraft/raft implementation fsync's on every 'append', so I mainly left this as a reminder so that we shouldn't forget that bit haha. Also -- syncing/reading from the existing log on startup would be pretty useful. In level I guess we could even use a .createReadStream() command or whatever gives you back a range of keys to get all the log entries. Seems like a good fit!

calvinfo avatar May 26 '14 11:05 calvinfo

I totally agree, was actually looking into this :). We can even default to just be pure JavaScript and allow other backends to be pluggable

jcrugzz avatar May 27 '14 06:05 jcrugzz