DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Securing Your Software Supply Chain with JFrog and Azure
Register Today
  1. DZone
  2. Data Engineering
  3. AI/ML
  4. Summer Project 2016: The CouchCase
Content provided by Couchbase logo

Summer Project 2016: The CouchCase

As the last part of the series on his summer project, CouchCase, Matthew Groves shares with us how he clustered Couchbase Server nodes. Read on to find out more.

Matthew Groves user avatar by
Matthew Groves
·
Oct. 16, 16 · Presentation
Like (6)
Save
Tweet
Share
2.31K Views

i know that summer 2016 is long gone, but i promised one more blog post about building the couchcase. this part was the easiest, seeing as clustering couchbase server nodes together is really easy.

networking

first, a little information about how i networked the intel compute sticks. on the router in the couchcase, i’ve pegged each network adapter to a specific ip address. how to do this is going to vary from router to router, so consult your manual.

here’s a snapshot of stick1, stick2, and stick3 all pegged to three ip addresses and attached to the router.

compute sticks running couchbase server attached to a router

clustering

the first time you setup couchbase server, you are creating a cluster with a single node. so, if you’ve done this, as far as setting up an entire cluster, you are most of the way there.

next, install couchbase server on another machine (or vm or whatever). instead of selecting "start a new cluster", select "join a cluster now." enter the ip address of the first node you created, as well as the username/password information that you set it to be.

join a couchbase node to a couchbase cluster

once you do that, you should get a message saying "this server has been associated with the cluster and will join on the next rebalance operation."

a couchbase node has been successfully joined to a couchbase cluster

a rebalance operation is necessary for couchbase to figure out all the details of which node a given document should live on. for more information, check out the documentation on rebalancing a cluster .

a rebalance is a background operation, and should not interfere with the operation of nodes that are already working. this means that if you need to add capacity to your database, you don’t have to take down your website or schedule a 'maintenence window' or anything like that.

once the rebalance is complete, you should see a list of nodes:

list of nodes in a couchbase cluster

and there you have it! the couchcase is ready for the road. you've seen how to network and cluster your couchbase server nodes, as well as handle a few of the hiccups that can crop up along the way, such as rebalancing. that's all! enjoy autumn.


Comments

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: