vieyahn2017 / repos

【已经迁移到goto/javaway】
2 stars 1 forks source link

nirs/kvs -Simple key value store for shared storage 几个文件,值得学习 #5

Closed vieyahn2017 closed 5 years ago

vieyahn2017 commented 6 years ago

https://github.com/nirs/kvs

vieyahn2017 commented 6 years ago

kvs This is an experimental simple key value store for shared storage.

The database is on logical volume on a shared LUN, or on NFS or GlusterFS mount.

The user must ensure that there is a single writer in the cluster. One way is using sanlock exclusive lease.

Multiple readers can access the database while the writer is modifying it without any locking.

Multiple concurrent readers on a host can see stale pages mapped by a concurrent reader instead of fresh pages read from the shared storage. This can be solved by ensuring single reader, but I'm not sure it is really needed if all readers are quick.