View stunning SlideShares in full-screen with the new iOS app!Introducing SlideShare for AndroidExplore all your favorite topics in the SlideShare appGet the SlideShare app to Save for Later — even offline
View stunning SlideShares in full-screen with the new Android app!View stunning SlideShares in full-screen with the new iOS app!
增删节点怎么办• 传统分片的解决方法：手工迁移数据• Dynamo: replication on vnode
IDC failure• Preference list• N nodes must in different data center
程序如何组织上述一切• Node has 3 main component – Request coordination – Membership – Failure detection
Client driven vs. server driven• Coordinator – Choose N nodes by using consistent hashing – Forwards a request to N nodes – Waits responses for R or W nodes, or timeout – Check replica version if get – Send a response to client
Dynamo impl.• Kai, in Erlang• E2-dynamo, in Erlang• Sina DynamoD, in C –N=3 – Merkle tree based on commit log – Virtual node mapping saved in db – Storage based on memcachedb