Successfully reported this slideshow.
Couchbase	
  101:	
  	
  
Architecture,	
  Install	
  &	
  Config
Jasdeep	
  Jaitla
Technical	
  Evangelist

email:	
  jasd...
ARCHITECTURE
Evolution from memcached

• Founders	
  were	
  key	
  contributors	
  to	
  memcached	
  
• Evolved	
  into	
  Membase,	
...
Couchbase Server Core Principles
Easy	
  
Scalability
Grow	
  cluster	
  without	
  
applicaTon	
  changes,	
  without	
  ...
Couchbase Server 2.0 Architecture
8092	
  

Query	
  API

11211	
  

Memcapable	
  	
  1.0

11210	
  

Memcapable	
  	
  2...
Couchbase Server 2.0 Architecture
8092	
  

Query	
  API

11211	
  

Memcapable	
  	
  1.0

11210	
  

Memcapable	
  	
  2...
Couchbase	
  OrganizaTon
• Couchbase	
  operates	
  like	
  a	
  Key-­‐Value	
  Document	
  Store	
  
• Key	
  is	
  a	
  ...
Metadata and Documents
meta	
  

Meta	
  InformaYon	
  
Including	
  Key	
  (id)	
  

{	
  

!

All	
  Keys	
  Unique	
  a...
Retrieval Operations
Couchbase Server
RAM Cache

EP Engine
Disk Write Queue

Application Server
Replication Queue

Replica...
Retrieval Operations
Couchbase Server
RAM Cache

get

EP Engine
Disk Write Queue

Application Server
Replication Queue

Re...
Retrieval Operations
Couchbase Server
RAM Cache

get

EP Engine
Disk Write Queue

Application Server
Replication Queue

Re...
Storage Operations
Couchbase Server
RAM Cache

EP Engine
Disk Write Queue

Application Server
Replication Queue

Replica C...
Storage Operations
Couchbase Server
RAM Cache

set/add/replace

EP Engine
Disk Write Queue

Application Server
Replication...
Storage Operations
Couchbase Server
RAM Cache

set/add/replace

EP Engine
Disk Write Queue

Application Server
Replication...
Storage Operations
Couchbase Server
RAM Cache

set/add/replace

EP Engine
Disk Write Queue

Application Server
Replication...
Storage Operations
Couchbase Server
RAM Cache

set/add/replace

EP Engine
Disk Write Queue

Application Server
Replication...
Consistency
Couchbase Server
RAM Cache

EP Engine
Disk Write Queue

Application Server
Replication Queue

Replica Couchbas...
Consistency
Couchbase Server
RAM Cache

get

EP Engine
Disk Write Queue

Application Server
Replication Queue

Replica Cou...
Ejection, NRU, Cache Miss
Couchbase Server
RAM Cache

EP Engine
Disk Write Queue

Application Server
Replication Queue

Re...
Ejection, NRU, Cache Miss
Couchbase Server
RAM Cache

set/add/replace

EP Engine
Disk Write Queue

Application Server
Repl...
Ejection, NRU, Cache Miss
Couchbase Server
NRU Documents
RAM Cache
EP
EjectedEngine
Disk Write Queue

Application Server

...
Ejection, NRU, Cache Miss
Couchbase Server
RAM Cache

EP Engine
Disk Write Queue

Application Server
Replication Queue

Re...
Ejection, NRU, Cache Miss
Non-­‐Resident	
  
Document	
  	
  
("Cache	
  Miss")

Couchbase Server
RAM Cache

get

EP Engin...
Clients Connect Directly to
Couchbase Nodes

MAP

3 IO Workers
1024

Partitions
8 GB RAM

Application Servers
Clients Connect Directly to
Couchbase Nodes

MAP

3 IO Workers
1024

Partitions
8 GB RAM

Application Servers
Clients Connect Directly to
Couchbase Nodes
MAP

MAP

3 IO Workers
1024

Partitions
MAP

Application Servers

8 GB RAM
Key Hash-Partitioning

MAP

MAP

3 IO Workers
1024

Partitions
MAP

8 GB RAM

Application Servers

ClientHashFuncYon("jasd...
Horizontal Scale-Rebalance

3 IO Workers

TOTAL

8 GB RAM

3
6 IO Workers
1024
3 IO Workers
1024

Partitions

Application ...
Horizontal Scale-Rebalance

512

TOTAL

3 IO Workers

Partitions
8 GB RAM

6 IO Workers
1024
3 IO Workers
1024
512

Partit...
Horizontal Scale-Rebalance
3 IO Workers

8 GB RAM

TOTAL
3 IO Workers
MAP

12IO Workers
6 IO Workers

8 GB RAM

1024

Part...
Horizontal Scale-Rebalance
MAP

256

3 IO Workers

Partitions
8 GB RAM

TOTAL
3 IO Workers

MAP

256
MAP

Partitions

12IO...
Horizontal Scale-Rebalance
MAP

256

3 IO Workers

Partitions
8 GB RAM

TOTAL
3 IO Workers

MAP

256
MAP

Partitions

12 I...
RAM, CPU and IO Guidelines
RAM

!
!
!
!
!
All	
  Metadata	
  for	
  All	
  
Documents	
  	
  
(64	
  bytes	
  +	
  Key	
  ...
Binary Socket Operations (11210/1)
•

get (key)
– Retrieve a document


•

set (key, value)
– Store a document, overwrites...
HTTP Operations (8092)
• View Querying
– Range Queries

– Index-Key Match Queries

– Set Match Queries

– Aggregate Reduce...
INSTALL	
  SERVER
Download Couchbase
www.couchbase.com/download
Install on Amazon via AMI
Install on Amazon via AMI
Run Couchbase and Open Browser
localhost:8091	
  or	
  ec2-­‐xx-­‐xx-­‐xx-­‐xx.compute-­‐1.amazonaws.com:8091
Setup: Step 1 - Storage Paths & RAM Maximum
Setup: Step 1 - Storage Paths & RAM Maximum
Setup: Step 2 - Sample Buckets
Setup: Step 3 - Configure Default Bucket
Setup: Step 3 - Configure Default Bucket
Setup: Step 4 - Register & Agree
Setup: Step 5 - Admin password
Setup: Complete
SETUP	
  SDK
Supported SDK's
www.couchbase.com/communiYes

• Each	
  supported	
  SDK	
  page	
  has	
  instrucTons	
  for	
  setup	
  ...
Installing Libcouchbase
www.couchbase.com/communiYes/c/geqng-­‐started

• Mac	
  Tips	
  before	
  Libcouchbase	
  &	
  SD...
Installing Libcouchbase
www.couchbase.com/communiYes/c/geqng-­‐started

• Mac	
  Via	
  Homebrew	
  
• $	
  brew	
  instal...
More On Development
Training:	
  Couchbase	
  102	
  -­‐	
  OperaYons	
  
www.couchbase.com/webinars
SERVER	
  MONITORING
Store and Retrieve Operations
Store and Retrieve Operations
Store and Retrieve Operations

Total	
  Ops/s

Retrieve	
  off	
  Disk

Retrieve	
  Ops/s

Storage	
  Ops/s
Store and Retrieve Operations

Total	
  Ops/s

Retrieve	
  off	
  Disk

Delete	
  Ops/s

CAS	
  Ops/s

Retrieve	
  Ops/s

%...
Store and Retrieve Operations
Store and Retrieve Operations

RAM	
  FULL	
  +	
  Very	
  
High	
  Velocity	
  Writes!
Store and Retrieve Operations

RAM	
  FULL	
  +	
  Very	
  
High	
  Velocity	
  Writes!

RAM	
  Used	
  for	
  
Metadata	
...
Store and Retrieve Operations

RAM	
  FULL	
  +	
  Very	
  
High	
  Velocity	
  Writes!

Begin	
  EjecYon	
  of	
  
Replic...
Store and Retrieve Operations
Store and Retrieve Operations

Disk	
  Creates

Disk	
  Updates

Disk	
  Reads	
  	
  
(Cache	
  Miss)

Disk	
  Queue	
  S...
Store and Retrieve Operations

Disk	
  Creates

Docs	
  Data	
  Size	
  
(Compressed)

Disk	
  Updates

Disk	
  Reads	
  	...
Store and Retrieve Operations

Disk	
  Queue	
  Size
Store and Retrieve Operations

Disk	
  Queue	
  Size	
  
Disk	
  Queue	
   I ize
(Need	
  More	
  SO!)
Partition (vbucket) Details
Partition (vbucket) Details
Partition (vbucket) Details
AcYve	
  ParYYons
Partition (vbucket) Details
AcYve	
  ParYYons

Replica	
  ParYYons
Partition (vbucket) Details
AcYve	
  ParYYons

Replica	
  ParYYons

Pending	
  ParYYons	
  
(Rebalance)
Partition (vbucket) Details
Partition (vbucket) Details

Item	
  Count
Partition (vbucket) Details

Item	
  Count

%	
  Documents	
  in	
  RAM
Partition (vbucket) Details

Item	
  Count

%	
  Documents	
  in	
  RAM

CreaYons
Partition (vbucket) Details

Item	
  Count

%	
  Documents	
  in	
  RAM

CreaYons

EjecYons	
  (RAM	
  Full)
Partition (vbucket) Details

Item	
  Count

%	
  Documents	
  in	
  RAM

CreaYons

EjecYons	
  (RAM	
  Full)

Documents
Partition (vbucket) Details

Item	
  Count

%	
  Documents	
  in	
  RAM

CreaYons

EjecYons	
  (RAM	
  Full)

Documents

M...
Partition (vbucket) Details
Partition (vbucket) Details

Note:	
  64	
  ParYYons	
  on	
  Mac	
  OS	
  X!	
  
This	
  is	
  simply	
  to	
  avoid	
  a...
Disk IO Information
Disk IO Information

AcYve	
  ParYYons
Disk IO Information

AcYve	
  ParYYons

Replica	
  ParYYons
Disk IO Information

AcYve	
  ParYYons

Replica	
  ParYYons

Pending	
  ParYYons	
  
(Rebalance)
Disk IO Information
Disk IO Information

Queue	
  Size
Disk IO Information

Queue	
  Size

Queue	
  Fill	
  Rate
Disk IO Information

Queue	
  Size

Queue	
  Fill	
  Rate

Queue	
  Drain	
  Rate
Disk IO Information

Queue	
  Size

Queue	
  Fill	
  Rate

Queue	
  Drain	
  Rate

Average	
  Age	
  of	
  
Queue	
  Items
QUICK	
  DEMO
Q	
  &	
  A
Focused	
  on	
  Beginning	
  Development	
  
This	
  Thursday!	
  
www.couchbase.com/webinars
COUCHBASE	
  102
Focused	
  on	
  Beginning	
  Development	
  
This	
  Thursday!	
  
www.couchbase.com/webinars
Online training - Couchbase 101 - Installation
Online training - Couchbase 101 - Installation
Online training - Couchbase 101 - Installation
Online training - Couchbase 101 - Installation
Online training - Couchbase 101 - Installation
Online training - Couchbase 101 - Installation
Online training - Couchbase 101 - Installation
Upcoming SlideShare
Loading in …5
×

Online training - Couchbase 101 - Installation

6,853 views

Published on

Learn about the Architecture of Couchbase and why it’s so fast, installation of Couchbase on various platforms, setup and configuration parameters, monitoring and the Admin console, and scaling Couchbase.

What will be covered during this training:

Couchbase Architecture
Setup parameters and options
Admin Console
Monitoring Graphs and what they mean
Buckets
RAM/CPU/IO Writers
Scaling, Clustering and Rebalancing
Couchbase in the Cloud
Using AMI installations
References to Docs, Communities, etc.

DEMO: Create and Scale Cluster on Amazon, Install on Mac, Install on Windows, Install with AMI.

Published in: Technology

Online training - Couchbase 101 - Installation

  1. 1. Couchbase  101:     Architecture,  Install  &  Config Jasdeep  Jaitla Technical  Evangelist email:  jasdeep@couchbase.com twi0er:  @scalabl3
  2. 2. ARCHITECTURE
  3. 3. 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,  ElasTc  Search  IntegraTon,  and   Cross-­‐Data  Center  ReplicaTon
  4. 4. Couchbase Server Core Principles Easy   Scalability Grow  cluster  without   applicaTon  changes,  without   downTme  with  a  single  click Always  On   24x365 No  downTme  for  soWware   upgrades,  hardware   maintenance,  etc. PE RF O R M A N C E Consistent  High   Performance Consistent  sub-­‐millisecond  
 read  and  write  response  Tmes  
 with  consistent  high  throughput JSON JSON JSO JSON N JSON Flexible  Data   Model JSON  Anywhere  document   model  with  no  fixed  schema.
  5. 5. Couchbase Server 2.0 Architecture 8092   Query  API 11211   Memcapable    1.0 11210   Memcapable    2.0 New  Persistence  Layer vBucket  state  and  replicaTon  manager Node  health  monitor Rebalance  orchestrator Global  singleton  supervisor storage  interface ConfiguraTon  manager Data  Manager Process  monitor Couchbase  EP  Engine Heartbeat Memcached REST  management  API/Web  UI Query  Engine Moxi Cluster  Manager hDp on  each  node one  per  cluster Erlang/OTP   HTTP 8091   Erlang  port  mapper 4369   Distributed  Erlang 21100  -­‐  21199
  6. 6. Couchbase Server 2.0 Architecture 8092   Query  API 11211   Memcapable    1.0 11210   Memcapable    2.0 vBucket  state  and  replicaTon  manager Node  health  monitor Rebalance  orchestrator Global  singleton  supervisor ConfiguraTon  manager storage  interface Server/Cluster   Management  &   CommunicaYon   (Erlang) hDp Process  monitor RAM  Cache,   Couchbase  EP  Engine Indexing  &   Persistence   Management   (C) New  Disk  Persistence Persistence  Layer Heartbeat Object-­‐level  Cache REST  management  API/Web  UI Query  Engine Moxi on  each  node one  per  cluster Erlang/OTP   HTTP 8091   Erlang  port  mapper 4369   Distributed  Erlang 21100  -­‐  21199
  7. 7. Couchbase  OrganizaTon • 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,  dateTme,  boolean,  and  binary   data  can  be  stored  -­‐-­‐  they  are  stored  as  Base64  encoded  strings   -­‐ Complex  Datatypes:  dicTonaries/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   programmaTc,  done  online,  and  can  vary  from  Document  to   Document
  8. 8. Metadata and Documents meta   Meta  InformaYon   Including  Key  (id)   {   ! All  Keys  Unique  and   Kept  in  RAM }   ! ! “id”:  “u::jasdeep@couchbase.com”,   “rev”:  “1-­‐0002bce0000000000”,   “flags”:  0,   “expiraYon”:  0,   “type”:  “json”   document   {   Document  Value   ! Most  Recent  In  RAM   And  Persisted  To  Disk } “uid”:  123456,   “firstname”:  “jasdeep”,   “lastname”:  “Jaitla”,   “age”:  22,   “favorite_colors”:  [“blue”,  “black”],   “email”:  “jasdeep@couchbase.com”  
  9. 9. Retrieval Operations Couchbase Server RAM Cache EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  10. 10. Retrieval Operations Couchbase Server RAM Cache get EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  11. 11. Retrieval Operations Couchbase Server RAM Cache get EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  12. 12. Storage Operations Couchbase Server RAM Cache EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  13. 13. Storage Operations Couchbase Server RAM Cache set/add/replace EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  14. 14. Storage Operations Couchbase Server RAM Cache set/add/replace EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  15. 15. Storage Operations Couchbase Server RAM Cache set/add/replace EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  16. 16. Storage Operations Couchbase Server RAM Cache set/add/replace EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  17. 17. Consistency Couchbase Server RAM Cache EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  18. 18. Consistency Couchbase Server RAM Cache get EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  19. 19. Ejection, NRU, Cache Miss Couchbase Server RAM Cache EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  20. 20. Ejection, NRU, Cache Miss Couchbase Server RAM Cache set/add/replace EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  21. 21. Ejection, NRU, Cache Miss Couchbase Server NRU Documents RAM Cache EP EjectedEngine Disk Write Queue Application Server FULL  (90%) Replication Queue Replica Couchbase Cluster Machine
  22. 22. Ejection, NRU, Cache Miss Couchbase Server RAM Cache EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  23. 23. Ejection, NRU, Cache Miss Non-­‐Resident   Document     ("Cache  Miss") Couchbase Server RAM Cache get EP Engine Disk Write Queue Application Server Replication Queue Replica Couchbase Cluster Machine
  24. 24. Clients Connect Directly to Couchbase Nodes MAP 3 IO Workers 1024 Partitions 8 GB RAM Application Servers
  25. 25. Clients Connect Directly to Couchbase Nodes MAP 3 IO Workers 1024 Partitions 8 GB RAM Application Servers
  26. 26. Clients Connect Directly to Couchbase Nodes MAP MAP 3 IO Workers 1024 Partitions MAP Application Servers 8 GB RAM
  27. 27. Key Hash-Partitioning MAP MAP 3 IO Workers 1024 Partitions MAP 8 GB RAM Application Servers ClientHashFuncYon("jasdeep@couchbase.com")  =>  ParYYon[0..1023]  {25}   ClusterMap[P(25)]  =>  [x.x.x.x]  =>  IP  of  Server  Responsible  for  ParYYon  25
  28. 28. Horizontal Scale-Rebalance 3 IO Workers TOTAL 8 GB RAM 3 6 IO Workers 1024 3 IO Workers 1024 Partitions Application Servers 8 GB RAM Partitions 16GB RAM 8 GB RAM
  29. 29. Horizontal Scale-Rebalance 512 TOTAL 3 IO Workers Partitions 8 GB RAM 6 IO Workers 1024 3 IO Workers 1024 512 Partitions Application Servers 8 GB RAM Partitions 16 GB RAM
  30. 30. Horizontal Scale-Rebalance 3 IO Workers 8 GB RAM TOTAL 3 IO Workers MAP 12IO Workers 6 IO Workers 8 GB RAM 1024 Partitions MAP 3 IO Workers MAP 512 Partitions 8 GB RAM Application Servers 3 IO Workers MAP 512 Partitions 8 GB RAM 16 32 GB RAM
  31. 31. Horizontal Scale-Rebalance MAP 256 3 IO Workers Partitions 8 GB RAM TOTAL 3 IO Workers MAP 256 MAP Partitions 12IO Workers 6 IO Workers 8 GB RAM 1024 Partitions MAP 3 IO Workers MAP 256 512 Partitions 8 GB RAM Application Servers 3 IO Workers MAP 256 512 Partitions 8 GB RAM 16 32 GB RAM
  32. 32. Horizontal Scale-Rebalance MAP 256 3 IO Workers Partitions 8 GB RAM TOTAL 3 IO Workers MAP 256 MAP Partitions 12 IO Workers 8 GB RAM 1024 Partitions MAP 3 IO Workers MAP 256 512 Partitions 8 GB RAM Application Servers 3 IO Workers MAP 256 512 Partitions 8 GB RAM 32 GB RAM
  33. 33. RAM, CPU and IO Guidelines RAM ! ! ! ! ! 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] CPU ! ! ! ! ! ! Document  Indexing   ! Monitoring   ! XDCR   ! ! Recommended:     ! minimum  4  Cores   +  1  core  per  design  document   +  1  core  per  XDCR  replicated   bucket ! Disk  IO ! ! ! ! ! Persisted  Documents   ! All  Indexes  for  Design   Documents/Views   ! Append-­‐Only  Disk  Format   &  CompacYon   ! ! Performance:   ! MulYple  EBS  Volumes  High   IOPS  Raid  0  on  Amazon
  34. 34. 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)
  35. 35. HTTP Operations (8092) • View Querying – Range Queries – Index-Key Match Queries – Set Match Queries – Aggregate Reduces – Group Level + Grouping Queries
  36. 36. INSTALL  SERVER
  37. 37. Download Couchbase www.couchbase.com/download
  38. 38. Install on Amazon via AMI
  39. 39. Install on Amazon via AMI
  40. 40. Run Couchbase and Open Browser localhost:8091  or  ec2-­‐xx-­‐xx-­‐xx-­‐xx.compute-­‐1.amazonaws.com:8091
  41. 41. Setup: Step 1 - Storage Paths & RAM Maximum
  42. 42. Setup: Step 1 - Storage Paths & RAM Maximum
  43. 43. Setup: Step 2 - Sample Buckets
  44. 44. Setup: Step 3 - Configure Default Bucket
  45. 45. Setup: Step 3 - Configure Default Bucket
  46. 46. Setup: Step 4 - Register & Agree
  47. 47. Setup: Step 5 - Admin password
  48. 48. Setup: Complete
  49. 49. SETUP  SDK
  50. 50. Supported SDK's www.couchbase.com/communiYes • Each  supported  SDK  page  has  instrucTons  for  setup   • PHP,  Ruby,  and  Python  clients  are  wrappers  around  libcouchbase  C   library,  so  libcouchbase  must  be  installed  first   • For  other  community  clients,  click  on  "All  Clients"  on  leW  nav,  scroll   down  the  page  and  you  can  see  clients  for  Go,  Erlang,  Clojure,  TCL,   Perl  and  others.
  51. 51. Installing Libcouchbase www.couchbase.com/communiYes/c/geqng-­‐started • 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
  52. 52. Installing Libcouchbase www.couchbase.com/communiYes/c/geqng-­‐started • 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
  53. 53. More On Development Training:  Couchbase  102  -­‐  OperaYons   www.couchbase.com/webinars
  54. 54. SERVER  MONITORING
  55. 55. Store and Retrieve Operations
  56. 56. Store and Retrieve Operations
  57. 57. Store and Retrieve Operations Total  Ops/s Retrieve  off  Disk Retrieve  Ops/s Storage  Ops/s
  58. 58. Store and Retrieve Operations Total  Ops/s Retrieve  off  Disk Delete  Ops/s CAS  Ops/s Retrieve  Ops/s %  Documents  in   RAM Storage  Ops/s Item  Count
  59. 59. Store and Retrieve Operations
  60. 60. Store and Retrieve Operations RAM  FULL  +  Very   High  Velocity  Writes!
  61. 61. Store and Retrieve Operations RAM  FULL  +  Very   High  Velocity  Writes! RAM  Used  for   Metadata  +  Data
  62. 62. Store and Retrieve Operations RAM  FULL  +  Very   High  Velocity  Writes! Begin  EjecYon  of   Replicas  from  RAM Begin  EjecYon  of   AcYve  from  RAM RAM  Used  for   Metadata  +  Data
  63. 63. Store and Retrieve Operations
  64. 64. Store and Retrieve Operations Disk  Creates Disk  Updates Disk  Reads     (Cache  Miss) Disk  Queue  Size
  65. 65. Store and Retrieve Operations Disk  Creates Docs  Data  Size   (Compressed) Disk  Updates Disk  Reads     (Cache  Miss) Disk  Queue  Size Docs  Size  on  Disk FragmentaYon   (from  Appends) Total  Disk  Usage
  66. 66. Store and Retrieve Operations Disk  Queue  Size
  67. 67. Store and Retrieve Operations Disk  Queue  Size   Disk  Queue   I ize (Need  More  SO!)
  68. 68. Partition (vbucket) Details
  69. 69. Partition (vbucket) Details
  70. 70. Partition (vbucket) Details AcYve  ParYYons
  71. 71. Partition (vbucket) Details AcYve  ParYYons Replica  ParYYons
  72. 72. Partition (vbucket) Details AcYve  ParYYons Replica  ParYYons Pending  ParYYons   (Rebalance)
  73. 73. Partition (vbucket) Details
  74. 74. Partition (vbucket) Details Item  Count
  75. 75. Partition (vbucket) Details Item  Count %  Documents  in  RAM
  76. 76. Partition (vbucket) Details Item  Count %  Documents  in  RAM CreaYons
  77. 77. Partition (vbucket) Details Item  Count %  Documents  in  RAM CreaYons EjecYons  (RAM  Full)
  78. 78. Partition (vbucket) Details Item  Count %  Documents  in  RAM CreaYons EjecYons  (RAM  Full) Documents
  79. 79. Partition (vbucket) Details Item  Count %  Documents  in  RAM CreaYons EjecYons  (RAM  Full) Documents Metadata
  80. 80. Partition (vbucket) Details
  81. 81. Partition (vbucket) Details Note:  64  ParYYons  on  Mac  OS  X!   This  is  simply  to  avoid  altering   default  file  descriptor  limits,  don't   XDCR  with  other  OperaYng   Systems
  82. 82. Disk IO Information
  83. 83. Disk IO Information AcYve  ParYYons
  84. 84. Disk IO Information AcYve  ParYYons Replica  ParYYons
  85. 85. Disk IO Information AcYve  ParYYons Replica  ParYYons Pending  ParYYons   (Rebalance)
  86. 86. Disk IO Information
  87. 87. Disk IO Information Queue  Size
  88. 88. Disk IO Information Queue  Size Queue  Fill  Rate
  89. 89. Disk IO Information Queue  Size Queue  Fill  Rate Queue  Drain  Rate
  90. 90. Disk IO Information Queue  Size Queue  Fill  Rate Queue  Drain  Rate Average  Age  of   Queue  Items
  91. 91. QUICK  DEMO
  92. 92. Q  &  A
  93. 93. Focused  on  Beginning  Development   This  Thursday!   www.couchbase.com/webinars
  94. 94. COUCHBASE  102 Focused  on  Beginning  Development   This  Thursday!   www.couchbase.com/webinars

×