카우치베이스 서버

CLI를 사용하여 Couchbase 클러스터 크기 조절 및 리밸런싱하기

카우치베이스 provides high availability and disaster recovery in several ways:

This blog will show how to create a Couchbase cluster using Couchbase Command Line Interface (CLI). In addition, these steps can also be performed using the Couchbase REST API 그리고 카우치베이스 웹 콘솔.

couchbase-cluster-amazon

Couchbase nodes in a cluster are homogeneous. Applications can write to any node and read from any node. There is no write-to-master and read-from-slave architecture that inherently gives you scalability problems. This allows the Couchbase cluster to truly scale horizontally to meet your growing application demands.

Creating a Couchbase cluster involves the following steps:

  • Provision Couchbase: Provision 1 or more Couchbase nodes, say on Amazon Web Services
  • Initialize master: Initialize any node to be the “master” of the cluster by calling cluster-init CLI command
  • Create cluster: For all other nodes, create a cluster by invoking the server-add CLI command
  • Rebalance cluster: Finally, rebalance the cluster by calling the 리밸런싱 CLI command

Provision Couchbase

Provision a Couchbase node on Amazon:

Security group name is explained in Couchbase Cluster on Amazon using CLI. Let’s call this node as “master”.

Initialize Couchbase “master”

Configure the “master” instance and initialize the cluster:

Create another instance, lets call it “worker”. Note, this is not a master/slave architecture. Couchbase cluster is homogenous where any node in the cluster can be “master”.

Create Couchbase Cluster

Add this newly created “worker” instance to the cluster:

Typically, you’ll create and add multiple nodes to the cluster before rebalancing.

Rebalance Couchbase Cluster

Rebalance the cluster:

Now, you can create as many instances and easy include them in the cluster. Adding a single node and rebalancing the cluster can be easily done as a single step:

Now, your cluster is accessible at https://:8091 or https://:8091. Further references …

즐기세요!

이 기사 공유하기

작가

아룬 구프트는 Couchbase의 개발자 옹호 부문 부사장입니다. 그는 Sun, Oracle, Red Hat에서 10년 이상 개발자 커뮤니티를 구축하고 이끌었습니다. 그는 복수 기능군을 갖춘 팀을 이끌고 전략, 계획, 실행, 콘텐츠, 마케팅 캠페인 및 프로그램 개발과 실행에 대한 깊은 전문 지식을 보유하고 있습니다. 그 이전에는 Sun의 엔지니어링 팀을 이끌었으며, Java EE 팀의 창립 멤버입니다. 구푸타는 기술 분야에 대한 2,000개 이상의 블로그 게시물을 작성했습니다. 그는 수많은 주제에 대해 40개 이상의 국가에서 폭넓은 강연 경험을 보유하고 있으며, 3년 연속 JavaOne Rock Star상을 수상했습니다. 또한 그는 미국에서 Devoxx4Kids 지부를 설립했으며, 어린이들에게 기술 교육을 지속적으로 추진하고 있습니다. 기술 분야에 대한 다수의 책의 저자이자 열정적인 러너인 그는 전 세계를 누비며 Java Champion로 활동하고 있으며, JUG 리더이자 JUG Dream Team 멤버인 NetBeans Dream Team의 일원입니다. 그는 @arungupta라는 계정을 통해 쉽게 연락하실 수 있습니다.

댓글 남기기

데이터베이스의 확장성을 과거의 일로 남겨두세요

각 스택 추가마다 추가 비용이 발생하고 관리해야 할 항목도 더 많아집니다. 2분 안에 절약할 수 있는 금액을 추산해 보세요.