1
INTRODUCTION TO BIGCOUCH
robert newson
couchdb conf berlin january 2013
Friday, 25 January 13
INTRODUCTION TO BIGCOUCH robert newson couchdb conf berlin - - PowerPoint PPT Presentation
INTRODUCTION TO BIGCOUCH robert newson couchdb conf berlin january 2013 1 Friday, 25 January 13 INTRODUCTIONS robert newson BigCouch CouchDB pmc member Putting the C back in CouchDB irc menace Contact rnewson@apache.org rnewson
1
Friday, 25 January 13
2
CouchDB pmc member irc menace
Putting the “C” back in CouchDB
rnewson@apache.org rnewson in #cloudant or #couchdb
@rnewson
Friday, 25 January 13
3
http://adam.heroku.com/past/2009/7/6/sql_databases_dont_scale/
Friday, 25 January 13
Easily add storage capacity by adding more servers Computing power (views, compaction, etc.) scales with more servers
Any node can handle any request With quorum, individual nodes can come and go
All clustering operations take place “behind the curtain” ‘looks’ like a single server instance of Couch, just with more awesome asterisks and caveats discussed later
4
Friday, 25 January 13
5
hash(blah) = E
Load Balancer
PUT http://rnewson.cloudant.com/dbname/blah?w=2
Node 1 A B C D N
e 2 B C D E Node 3 C D E F Node 4 D E F G Node 24 X Y Z A
Dynamo)
request
documents
Friday, 25 January 13
6
brew install erlang icu4c spidermonkey brew ln icu4c git clone https://github.com/cloudant/bigcouch.git cd bigcouch ./configure make dev
Friday, 25 January 13
7
Join the cluster
rel/dev1/bin/bigcouch rel/dev2/bin/bigcouch rel/dev3/bin/bigcouch curl localhost:15986/nodes/dev2@127.0.0.1 -X PUT -d '{}' curl localhost:15986/nodes/dev3@127.0.0.1 -X PUT -d '{}' curl http://localhost:15984/_membership
... and verify
Friday, 25 January 13
8
For the next few examples, consider a 5 node cluster
Friday, 25 January 13
9
Friday, 25 January 13
10
Friday, 25 January 13
11
Friday, 25 January 13
12
Friday, 25 January 13
13 14
Friday, 25 January 13
14
Friday, 25 January 13
15
CHTTPD Fabric Rexi Mem3 Embedded CouchDB Mochiweb, Spidermonkey, etc.
Friday, 25 January 13
16
CHTTPD Fabric Rexi Mem3 Embedded CouchDB Mochiweb, Spidermonkey, etc.
Friday, 25 January 13
17
CHTTPD Fabric Rexi Mem3 Embedded CouchDB Mochiweb, Spidermonkey, etc.
Friday, 25 January 13
18
CHTTPD Fabric Rexi Mem3 Embedded CouchDB Mochiweb, Spidermonkey, etc.
Friday, 25 January 13
19
Friday, 25 January 13
20
Friday, 25 January 13
21
Friday, 25 January 13
22
Friday, 25 January 13
23
Friday, 25 January 13
24
Friday, 25 January 13