an introduction to MEMBASE @tlossen, 2010-08-05 1
May 06, 2015
an introduction to
MEMBASE
@tlossen, 2010-08-05
1
“simple, fast, elastic”
2
overview
• key-value-store
• API-compatible to memcached
- same protocol / client libs
• ‘memcached with persistence’
3
status
• developed by NorthScale & Zynga
• used in production (farmville)
• released in June 2010
- Apache 2.0 License
• current version is 1.6 beta 2
4
cluster structure
• all nodes are alike
- one elected as “coordinator”
• each node is master for part of key space
- handles all reads & writes
5
sharding
6
node
7
storage
8
replication• each vbucket has configurable
number of replicas
• protects against node failure
- quick failover
• master sends updates to replicas asynchronously
9
elasticity
• can add nodes at any time
• can remove nodes at any time
- replicas are promoted to master
• rebalancing necessary
• no downtime!
10
rebalancing
• initiated manually
• membase calculates new vbucket map
• masters / replicas are migrated to other nodes (as needed)
11
deployment
12
q & a
13
links
• “Membase Unleashed”
- northscale.com/products/resources.html
• membase.org
• github.com/northscale
14