Monday, June 25, 2018

Couch base

Syllabus 

What is CouchBase



What is CouchBase

COUCHBASE is a Document Oriented "NOSQL" Database having below features.


  • Open Source
  • Distributed
  • Fault Tolerant
    • Persistent  -  Storing data in memory and disc.
    • Replicated


  • Schema Free & Flexible(Document Size)
  • High Performance
  • Easy to scale.

Components :    4 nodes running Couch Base services

VBuckets are  nothing but  "PARTITIONS "





Example  VBucket


---------------------------------------------------------------------------------------------------------------


FLOW  ->

JSON  Document  ->
                                  UNIQUE  KEY --->
                                                                    VBucket  ---------->
                                                                                                   Bucket --->  Node  ----> CLUSTER.

---------------------------------------------------------------------------------------------------------------


Editions  Availability

->  Community (Free) and Enterprise Editions are available.
-->  Enterprise edition free for 2 nodes, support license required for large cluster.
-->  Administred via WEB UI, CLI or REST Ful API.
-->  Available for Windows, Linux and Mac.


  • Document oriented "NOSQL" Database having features
  • Pre-requisites


    • System Requirement
    • Download




    • User Requirement
    • $hostname
    • $userdel -r couchbase
    • $userdel -r couchbase
    • $useradd couchbase
    • passwd couchbase
  • $id couchbase
  • vi /etc/sudoers
cp .bashrc /home/couchbase
sudo su - couchbase


Documentation for reference :



    • Download
  • Single Node Implementation


  • Multi Node Implementation


    • Using WEB UI
    • Using Couchbase-CLI
  • Walkthrough of the COUCHBASE WEB UI.
  • Important Administration Commands.




VBucket

The overall key space is partitioned into 1024 logical storage unit called "Virtual buckets" ( or vBucket).
vBucket are distributed across machines within the cluster via a map that is shared among servers in the cluster as well as  the client library.
The basic unit of dat storage in Couchbase is

JSON Document   ->  Unique Key  --->Vbucket  ->Bucket  -->  Node --->Cluster

No comments:

Post a Comment

Hyderabad Trip - Best Places to visit

 Best Places to Visit  in Hyderabad 1.        1. Golconda Fort Maps Link :   https://www.google.com/maps/dir/Aparna+Serene+Park,+Masj...