Book Image

Learning Couchbase

By : Henry Potsangbam
Book Image

Learning Couchbase

By: Henry Potsangbam

Overview of this book

This book achieves its goal by taking up an end-to-end development structure, right from understanding NOSQL document design to implementing full fledged eCommerce application design using Couchbase as a backend. Starting with the architecture of Couchbase to get you up and running, this book quickly takes you through designing a NoSQL document and implementing highly scalable applications using Java API. You will then be introduced to document design and get to know the various ways to administer Couchbase. Followed by this, learn to store documents using bucket. Moving on, you will then learn to store, retrieve and delete documents using smart client base on Java API. You will then retrieve documents using SQL like syntax call N1QL. Next, you will learn how to write map reduce base views. Finally, you will configure XDCR for disaster recovery and implement an eCommerce application using Couchbase.
Table of Contents (12 chapters)
Index

XDCR impact


Although XDCR provides various features that enhance or provide much flexibility to your business requirements, there is a price for enabling it in the cluster.

You need to ensure that you perform proper sizing for it, or else there will be performance impact on the existing cluster. XDCR is CPU intensive, and you need to ensure that the parallel stream number is configured based on the capacity of the server CPU. Ideally, you should have one additional core for each bucket configured for XDCR.

XDCR also doubles the I/O usage of the cluster disk. Hence, make sure that you verify the I/O capacity and increase it depending on the IOPS required for your particular application requirements. Besides disk I/O, you will require more RAM for bidirectional XDCR. You can configure an additional 20 percent of the RAM in addition to the capacity required for holding the working data set.

Here ends the discussion on the XDCR feature. Now, let's try to understand another process called compaction...