Couchbase 101 - Installation of Couchbase
-
Upload
couchbase -
Category
Technology
-
view
2.167 -
download
1
description
Transcript of Couchbase 101 - Installation of Couchbase
![Page 1: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/1.jpg)
Tuesday, October 8, 13
![Page 2: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/2.jpg)
Technical Evangelist
twi0er: @scalabl3email: [email protected]
Jasdeep Jaitla
Couchbase 101 -‐ The Server
Tuesday, October 8, 13
![Page 3: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/3.jpg)
Technical Evangelist
twi0er: @scalabl3email: [email protected]
Jasdeep Jaitla
Couchbase 101 -‐ The Server
Tuesday, October 8, 13
![Page 4: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/4.jpg)
Tuesday, October 8, 13
![Page 5: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/5.jpg)
ARCHITECTURE
Tuesday, October 8, 13
![Page 6: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/6.jpg)
Evolution from memcached
•Founders were key contributors to memcached
•Evolved into Membase, a distributed and persisted key-‐value store
•Evolved into Couchbase Document Store with JSON support and Map-‐Reduce Indexes, ElasOc Search IntegraOon, and Cross-‐Data Center ReplicaOon
Tuesday, October 8, 13
![Page 7: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/7.jpg)
Couchbase Server Core Principles
Easy Scalability
Consistent High Performance
Always On 24x365
Grow cluster without applica9on changes, without down9me with a single click
Consistent sub-‐millisecond read and write response 9mes with consistent high throughput
No down9me for soBware upgrades, hardware maintenance, etc.
Flexible Data Model
JSON Anywhere document model with no fixed schema.
JSONJSONJSON
JSONJSON
PERFORMANCE
Tuesday, October 8, 13
![Page 8: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/8.jpg)
Couchbase Server 2.0 Architecture
Heartbeat
Process m
onito
r
Glob
al singleton supe
rviso
r
Confi
gura9o
n manager
on each node
Rebalance orchestrator
Nod
e he
alth m
onito
r
one per cluster
vBucket state and
replica9
on m
anager
h"pRE
ST m
anagem
ent A
PI/W
eb UI
HTTP8091
Erlang port mapper4369
Distributed Erlang21100 -‐ 21199
Erlang/OTP
storage interface
Couchbase EP Engine
11210Memcapable 2.0
Moxi
11211Memcapable 1.0
Memcached
New Persistence Layer
8092Query API
Que
ry Engine
Data Manager Cluster Manager
Tuesday, October 8, 13
![Page 9: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/9.jpg)
Couchbase Server 2.0 Architecture
New Persistence Layer
storage interface
Couchbase EP Engine
11210Memcapable 2.0
Moxi
11211Memcapable 1.0
Object-‐level Cache
Disk Persistence
8092Query API
Que
ry Engine
HTTP8091
Erlang port mapper4369
Distributed Erlang21100 -‐ 21199
Heartbeat
Process m
onito
r
Glob
al singleton supe
rviso
r
Confi
gura9o
n manager
on each node
Rebalance orchestrator
Nod
e he
alth m
onito
r
one per cluster
vBucket state and
replica9
on m
anager
h"p
REST m
anagem
ent A
PI/W
eb UI
Erlang/OTP
Server/Cluster Management & Communica6on
(Erlang)
RAM Cache, Indexing & Persistence Management
(C)
Tuesday, October 8, 13
![Page 10: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/10.jpg)
Couchbase OrganizaOon
• Couchbase operates like a Key-‐Value Document Store
• Key is a UTF-‐8 string up to 256 Bytes
• Values can be:
-‐ Simple Datatypes: strings, numbers, dateOme, boolean, and binary data can be stored -‐-‐ they are stored as Base64 encoded strings
-‐ Complex Datatypes: dicOonaries/hashes, arrays/lists, can be stored in JSON format (simple lists can be string based with delimiter)
-‐ JSON is a special class of string with a specific format for encoding simple and complex data structures
• Schema is unenforced and implicit, schema changes are programmaOc, done online, and can vary from Document to Document
Tuesday, October 8, 13
![Page 11: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/11.jpg)
Metadata and Documentsmeta{
“id”: “u::[email protected]”,“rev”: “1-‐0002bce0000000000”,“flags”: 0,“expiraUon”: 0,“type”: “json”
}
document{
“uid”: 123456,“firstname”: “jasdeep”,“lastname”: “Jaitla”,“age”: 22,“favorite_colors”: [“blue”, “black”],“email”: “[email protected]”
}
Meta Informa6on Including Key (id)
All Keys Unique and Kept in RAM
Document Value
Most Recent In RAM And Persisted To Disk
Tuesday, October 8, 13
![Page 12: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/12.jpg)
Retrieval Operations
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
Tuesday, October 8, 13
![Page 13: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/13.jpg)
Retrieval Operations
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
get
Tuesday, October 8, 13
![Page 14: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/14.jpg)
Retrieval Operations
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
get
Tuesday, October 8, 13
![Page 15: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/15.jpg)
Storage Operations
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
Tuesday, October 8, 13
![Page 16: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/16.jpg)
Storage Operations
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
set/add/replace
Tuesday, October 8, 13
![Page 17: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/17.jpg)
Storage Operations
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
set/add/replace
Tuesday, October 8, 13
![Page 18: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/18.jpg)
Storage Operations
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
set/add/replace
Tuesday, October 8, 13
![Page 19: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/19.jpg)
Storage Operations
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
set/add/replace
Tuesday, October 8, 13
![Page 20: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/20.jpg)
Consistency
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
Tuesday, October 8, 13
![Page 21: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/21.jpg)
Consistency
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
get
Tuesday, October 8, 13
![Page 22: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/22.jpg)
Ejection, NRU, Cache Miss
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
Tuesday, October 8, 13
![Page 23: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/23.jpg)
Ejection, NRU, Cache Miss
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
set/add/replaceset/add/replaceset/add/replace
Tuesday, October 8, 13
![Page 24: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/24.jpg)
Ejection, NRU, Cache Miss
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
FULL (90%)
NRU Documents Ejected
Tuesday, October 8, 13
![Page 25: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/25.jpg)
Ejection, NRU, Cache Miss
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
Tuesday, October 8, 13
![Page 26: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/26.jpg)
Ejection, NRU, Cache Miss
Couchbase Server
EP EngineRAM Cache
Disk Write Queue
Replication Queue
Application Server
Replica Couchbase Cluster Machine
get
Non-‐Resident Document
("Cache Miss")
Tuesday, October 8, 13
![Page 27: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/27.jpg)
Clients Connect Directly to Couchbase Nodes
Application Servers
MAP
1024
8 GB RAMPartitions
3 IO Workers
Tuesday, October 8, 13
![Page 28: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/28.jpg)
Clients Connect Directly to Couchbase Nodes
Application Servers
MAP
1024
8 GB RAMPartitions
3 IO Workers
Tuesday, October 8, 13
![Page 29: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/29.jpg)
Clients Connect Directly to Couchbase Nodes
Application Servers
MAP
MAP
MAP
1024
8 GB RAMPartitions
3 IO Workers
Tuesday, October 8, 13
![Page 30: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/30.jpg)
Key Hash-Partitioning
Application Servers
MAP
MAP
MAP
1024
8 GB RAMPartitions
3 IO Workers
ClientHashFunc6on("[email protected]") => Par66on[0..1023] {25}ClusterMap[P(25)] => [x.x.x.x] => IP of Server Responsible for Par66on 25
Tuesday, October 8, 13
![Page 31: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/31.jpg)
Application Servers8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
Horizontal Scale-Rebalance
TOTAL
16 GB RAM
6 IO Workers
1024
Partitions
1024
Partitions
TOTAL
8 GB RAM
3 IO Workers
1024
Partitions
Tuesday, October 8, 13
![Page 32: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/32.jpg)
Application Servers8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
Horizontal Scale-Rebalance
TOTAL
16 GB RAM
6 IO Workers
1024
Partitions1024
Partitions
512
Partitions
512
Partitions
Tuesday, October 8, 13
![Page 33: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/33.jpg)
Horizontal Scale-Rebalance
TOTAL
32 GB RAM
12 IO Workers
1024
Partitions
Application Servers
8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
512
Partitions
512
Partitions
TOTAL
16 GB RAM
6 IO Workers
1024
Partitions
MAP
MAP MAP
MAP
Tuesday, October 8, 13
![Page 34: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/34.jpg)
Horizontal Scale-Rebalance
TOTAL
32 GB RAM
12 IO Workers
1024
Partitions
Application Servers
8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
512
Partitions
512
Partitions
256
Partitions
256
Partitions
256
Partitions
256
Partitions
TOTAL
16 GB RAM
6 IO Workers
1024
Partitions
MAP
MAP
MAP
MAP
MAP
MAP
MAP
MAP
Tuesday, October 8, 13
![Page 35: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/35.jpg)
Horizontal Scale-Rebalance
TOTAL
32 GB RAM
12 IO Workers
1024
Partitions
Application Servers
8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
8 GB RAM
3 IO Workers
512
Partitions
512
Partitions
256
Partitions
256
Partitions
256
Partitions
256
Partitions
MAP
MAP
MAP
MAP
MAP
MAP
MAP
MAP
Tuesday, October 8, 13
![Page 36: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/36.jpg)
All Metadata for All Documents
(64 bytes + Key Length)
Document Values(NRU Ejected if RAM Quota
Used > 90%)
Also Leave RAM For OS:
[Filesystem Cache >> Views]
Document Indexing
Monitoring
XDCR
Recommended:
minimum 4 Cores+ 1 core per design document+ 1 core per XDCR replicated
bucket
Persisted Documents
All Indexes for Design Documents/Views
Append-‐Only Disk Format& CompacUon
Performance:
MulUple EBS Volumes High IOPS Raid 0 on Amazon
RAM, CPU and IO Guidelines
RAM CPU Disk IO
Tuesday, October 8, 13
![Page 37: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/37.jpg)
Binary Socket Operations (11210/1)• get (key)
– Retrieve a document
• set (key, value)
– Store a document, overwrites if exists
• add (key, value)
– Store a document, error/exception if exists
• replace (key, value)
– Store a document, error/exception if doesn’t exist
• incr (key)
– Create/Increment Atomic Counter
• decr (key)
– Decrement Atomic Counter
• cas (key, value, cas)
– Compare and swap, set document only if it hasn’t changed (Optimistic Lock)
Tuesday, October 8, 13
![Page 38: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/38.jpg)
HTTP Operations (8092)
• View Querying
– Range Queries
– Index-Key Match Queries
– Set Match Queries
– Aggregate Reduces
– Group Level + Grouping Queries
Tuesday, October 8, 13
![Page 39: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/39.jpg)
Tuesday, October 8, 13
![Page 40: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/40.jpg)
INSTALL SERVER
Tuesday, October 8, 13
![Page 41: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/41.jpg)
Download Couchbasewww.couchbase.com/download
Tuesday, October 8, 13
![Page 42: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/42.jpg)
Install on Amazon via AMI
Tuesday, October 8, 13
![Page 43: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/43.jpg)
Install on Amazon via AMI
Tuesday, October 8, 13
![Page 44: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/44.jpg)
Run Couchbase and Open Browserlocalhost:8091 or ec2-‐xx-‐xx-‐xx-‐xx.compute-‐1.amazonaws.com:8091
Tuesday, October 8, 13
![Page 45: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/45.jpg)
Setup: Step 1 - Storage Paths & RAM Maximum
Tuesday, October 8, 13
![Page 46: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/46.jpg)
Setup: Step 1 - Storage Paths & RAM Maximum
Tuesday, October 8, 13
![Page 47: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/47.jpg)
Setup: Step 2 - Sample Buckets
Tuesday, October 8, 13
![Page 48: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/48.jpg)
Setup: Step 3 - Configure Default Bucket
Tuesday, October 8, 13
![Page 49: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/49.jpg)
Setup: Step 3 - Configure Default Bucket
Tuesday, October 8, 13
![Page 50: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/50.jpg)
Setup: Step 4 - Register & Agree
Tuesday, October 8, 13
![Page 51: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/51.jpg)
Setup: Step 5 - Admin password
Tuesday, October 8, 13
![Page 52: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/52.jpg)
Setup: Complete
Tuesday, October 8, 13
![Page 53: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/53.jpg)
Tuesday, October 8, 13
![Page 54: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/54.jpg)
SETUP SDK
Tuesday, October 8, 13
![Page 55: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/55.jpg)
Supported SDK'swww.couchbase.com/communiUes
• Each supported SDK page has instrucOons for setup
• PHP, Ruby, NodeJS and Python clients are wrappers around libcouchbase C library, so libcouchbase must be installed first
• For other community clients, click on "All Clients" on lei nav, scroll down the page and you can see clients for Go, Erlang, Clojure, TCL, other nodejs and Perl.
Tuesday, October 8, 13
![Page 56: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/56.jpg)
Installing Libcouchbase
• Mac Tips before Libcouchbase & SDK Install
• Make sure you have XCode & Command Line Tools Installed
• Install Homebrew if you don't have it already
• Do a $ brew update, $ brew upgrade and $ brew doctor to be sure you're up to date
www.couchbase.com/communiUes/c/gekng-‐started
Tuesday, October 8, 13
![Page 57: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/57.jpg)
Installing Libcouchbase
• Mac Via Homebrew
• $ brew install libcouchbase
• PC-‐Windows
• Download appropriate Zip from website
• Redhat/CentOS
• wget the yum repositories
• $ sudo yum install -‐y libcouchbase2-‐libevent libcouchbase-‐devel
• Ubuntu
• wget ubuntu repositories
• $ sudo apt-‐get install libcouchbase2-‐libevent libcouchbase-‐dev
www.couchbase.com/communiUes/c/gekng-‐started
Tuesday, October 8, 13
![Page 58: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/58.jpg)
More On Development
Training: Couchbase 102 -‐ Developingwww.couchbase.com/webinars
Tuesday, October 8, 13
![Page 59: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/59.jpg)
Tuesday, October 8, 13
![Page 60: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/60.jpg)
SERVER MONITORING
Tuesday, October 8, 13
![Page 61: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/61.jpg)
Store and Retrieve Operations
Tuesday, October 8, 13
![Page 62: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/62.jpg)
Store and Retrieve Operations
Tuesday, October 8, 13
![Page 63: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/63.jpg)
Store and Retrieve Operations
Storage Ops/sRetrieve Ops/sRetrieve off DiskTotal Ops/s
Tuesday, October 8, 13
![Page 64: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/64.jpg)
Store and Retrieve Operations
Storage Ops/sRetrieve Ops/sRetrieve off DiskTotal Ops/s
Item CountDelete Ops/s CAS Ops/s % Documents in RAM
Tuesday, October 8, 13
![Page 65: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/65.jpg)
Store and Retrieve Operations
Tuesday, October 8, 13
![Page 66: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/66.jpg)
Store and Retrieve Operations
RAM FULL + Very High Velocity Writes!
Tuesday, October 8, 13
![Page 67: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/67.jpg)
Store and Retrieve Operations
RAM FULL + Very High Velocity Writes!
RAM Used for Metadata + Data
Tuesday, October 8, 13
![Page 68: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/68.jpg)
Store and Retrieve Operations
RAM FULL + Very High Velocity Writes!
Begin EjecUon of Replicas from RAM
Begin EjecUon of AcUve from RAM
RAM Used for Metadata + Data
Tuesday, October 8, 13
![Page 69: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/69.jpg)
Store and Retrieve Operations
Tuesday, October 8, 13
![Page 70: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/70.jpg)
Store and Retrieve Operations
Disk Creates Disk Updates Disk Queue SizeDisk Reads (Cache Miss)
Tuesday, October 8, 13
![Page 71: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/71.jpg)
Store and Retrieve Operations
Disk Creates Disk Updates Disk Queue SizeDisk Reads (Cache Miss)
Total Disk UsageDocs Data Size (Compressed) Docs Size on Disk FragmentaUon
(from Appends)
Tuesday, October 8, 13
![Page 72: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/72.jpg)
Store and Retrieve Operations
Disk Queue Size
Tuesday, October 8, 13
![Page 73: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/73.jpg)
Store and Retrieve Operations
Disk Queue SizeDisk Queue Size(Need More IO!)
Tuesday, October 8, 13
![Page 74: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/74.jpg)
Partition (vbucket) Details
Tuesday, October 8, 13
![Page 75: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/75.jpg)
Partition (vbucket) Details
Tuesday, October 8, 13
![Page 76: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/76.jpg)
Partition (vbucket) DetailsAcUve ParUUons
Tuesday, October 8, 13
![Page 77: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/77.jpg)
Partition (vbucket) DetailsAcUve ParUUons Replica ParUUons
Tuesday, October 8, 13
![Page 78: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/78.jpg)
Partition (vbucket) DetailsAcUve ParUUons Replica ParUUons Pending ParUUons
(Rebalance)
Tuesday, October 8, 13
![Page 79: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/79.jpg)
Partition (vbucket) Details
Tuesday, October 8, 13
![Page 80: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/80.jpg)
Partition (vbucket) Details
Item Count
Tuesday, October 8, 13
![Page 81: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/81.jpg)
Partition (vbucket) Details
% Documents in RAM
Item Count
Tuesday, October 8, 13
![Page 82: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/82.jpg)
Partition (vbucket) Details
% Documents in RAM
CreaUons
Item Count
Tuesday, October 8, 13
![Page 83: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/83.jpg)
Partition (vbucket) Details
EjecUons (RAM Full)
% Documents in RAM
CreaUons
Item Count
Tuesday, October 8, 13
![Page 84: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/84.jpg)
Partition (vbucket) Details
Documents
EjecUons (RAM Full)
% Documents in RAM
CreaUons
Item Count
Tuesday, October 8, 13
![Page 85: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/85.jpg)
Partition (vbucket) Details
Metadata
Documents
EjecUons (RAM Full)
% Documents in RAM
CreaUons
Item Count
Tuesday, October 8, 13
![Page 86: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/86.jpg)
Partition (vbucket) Details
Tuesday, October 8, 13
![Page 87: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/87.jpg)
Partition (vbucket) Details
Note: 64 Par66ons on Mac OS X! This is simply to avoid altering default file descriptor limits,
don't XDCR with other Opera6ng Systems
Tuesday, October 8, 13
![Page 88: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/88.jpg)
Disk IO Information
Tuesday, October 8, 13
![Page 89: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/89.jpg)
Disk IO Information
AcUve ParUUons
Tuesday, October 8, 13
![Page 90: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/90.jpg)
Disk IO Information
AcUve ParUUons Replica ParUUons
Tuesday, October 8, 13
![Page 91: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/91.jpg)
Disk IO Information
AcUve ParUUons Replica ParUUons Pending ParUUons (Rebalance)
Tuesday, October 8, 13
![Page 92: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/92.jpg)
Disk IO Information
Tuesday, October 8, 13
![Page 93: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/93.jpg)
Disk IO Information
Queue Size
Tuesday, October 8, 13
![Page 94: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/94.jpg)
Disk IO Information
Queue Fill Rate
Queue Size
Tuesday, October 8, 13
![Page 95: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/95.jpg)
Disk IO Information
Queue Fill Rate
Queue Drain Rate
Queue Size
Tuesday, October 8, 13
![Page 96: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/96.jpg)
Disk IO Information
Average Age of Queue Items
Queue Fill Rate
Queue Drain Rate
Queue Size
Tuesday, October 8, 13
![Page 97: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/97.jpg)
Tuesday, October 8, 13
![Page 98: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/98.jpg)
QUICK DEMO
Tuesday, October 8, 13
![Page 99: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/99.jpg)
Tuesday, October 8, 13
![Page 100: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/100.jpg)
Q & A
Tuesday, October 8, 13
![Page 101: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/101.jpg)
Focused on Beginning DevelopmentThis Thursday!
www.couchbase.com/webinars
Tuesday, October 8, 13
![Page 102: Couchbase 101 - Installation of Couchbase](https://reader034.fdocuments.us/reader034/viewer/2022052323/55878f25d8b42a3b5d8b46b9/html5/thumbnails/102.jpg)
COUCHBASE 102
Focused on Beginning DevelopmentThis Thursday!
www.couchbase.com/webinars
Tuesday, October 8, 13