All of lore.kernel.org
 help / color / mirror / Atom feed
* mon switch from leveldb to rocksdb
@ 2016-05-02 18:49 Sage Weil
  2016-05-02 19:00 ` Howard Chu
  2016-05-02 21:25 ` Wido den Hollander
  0 siblings, 2 replies; 18+ messages in thread
From: Sage Weil @ 2016-05-02 18:49 UTC (permalink / raw)
  To: ceph-devel

We're thinking about switching the default backend on the mon from leveldb 
to rocksdb.  Rocksdb is better maintained, has a stronger feature set, is 
generally faster, and is linked statically, which means we won't be 
vulnerable to buggy distro packages.

There is one blocker, though.  Some distro leveldbs name the sst files 
with the .ldb suffix.  (Some don't; very annoying.)  There is a unit test 
in rocksdb that tries to verify that ldb is silently renamed to sst, 
and it passes, but the test is incomplete: the test failes to verify 
that ldb/sst files can actually be read, and it turns out only the 'check' 
path (not the normal open and read it path) handles ldb properly.

Anyway, once that works, rocksdb will magically upgrade from leveldb to 
rocksdb.  Note that once that happens you can't switch from rocksdb back 
to leveldb without recreating the mon.

Alternatively, we could not worry about upgrading existing leveldb 
instances and just make newly created mons default to rocksdb.

1) Thoughts on moving to rocksdb in general?

2) Importance of leveldb->rocksdb conversion?

3) Anyone want to fix the ldb handling in rocksdb?

Thanks!
sage


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-05-03 17:32 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-02 18:49 mon switch from leveldb to rocksdb Sage Weil
2016-05-02 19:00 ` Howard Chu
2016-05-03 13:34   ` Mark Nelson
2016-05-03 16:41     ` Gregory Farnum
2016-05-03 17:01       ` Mark Nelson
2016-05-03 17:17         ` Sage Weil
2016-05-03 17:20           ` Gregory Farnum
2016-05-03 17:23             ` Sage Weil
2016-05-03 17:32               ` Mark Nelson
2016-05-02 21:25 ` Wido den Hollander
2016-05-02 21:42   ` Shinobu Kinjo
2016-05-02 21:47     ` Sage Weil
2016-05-03  5:25       ` Zhou, Yuan
2016-05-03  5:28         ` Somnath Roy
2016-05-03  6:00           ` Shinobu Kinjo
2016-05-03  6:29             ` Somnath Roy
2016-05-03  8:10               ` Shinobu Kinjo
2016-05-03 12:24         ` Sage Weil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.