Couchbase on Amazon
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CouchbaseStarter.template
LICENSE
configure-instance.sh
create-cluster.sh
create-instance.sh
readme.adoc
rebalance-cluster.sh

readme.adoc

Couchbase on Amazon using AWS CLI

Create Couchbase Instance

Script: create-instance.sh

Usage: create-instance.sh

Run this script N times to create an N-node cluster. It takes a few minutes for the images to be provisioned. Check for the instance to be provisioned in EC2 Console or using aws ec2 describe-instance-status --instance-ids <instance-id-1> <instance-id-2> …​.

Configure Couchbase Instance

Find public IP address of the created instances:

aws ec2 describe-instances --query 'Reservations[*].Instances[*].[PublicDnsName]' --filters Name=instance-state-name,Values=running --output text
ec2-54-153-92-179.us-west-1.compute.amazonaws.com

Script: configure-instance.sh

Usage: configure-instance.sh <public-ip-1> <public-ip-2> …​

This configures:

  1. Memory

  2. Services (index, data and query)

  3. Auth credentials (username: Administrator, password: password)

  4. Loads travel-sample bucket

Create Couchbase Cluster

Script: create-cluster.sh

Usage: create-cluster.sh <public-ip-1> <public-ip-2> …​

Rebalance Couchbase Cluster

Script: rebalance-cluster.sh

Usage: rebalance-cluster.sh <public-ip-1> <public-ip-2> …​