Monday, April 23, 2012

CouchDB on AWS (Marketplace)

Software Installation Details
Product: Couchbase Server - Enterprise Standard
Version:1.8, released 04/03/2012 
Costs: 49c/hr (+2c/hr)
Installation Instructions from Seller
HOST is the DNS or IP address of your newly launched EC2 instance. Please log into your server's web console, using your browser, at this URL: http://HOST:8091

Next, create a "default" bucket on your server by using this web console screen: MANAGE -> Data Buckets -> Create New Data Bucket
In the dialog box, enter "default" for the bucket name and click "Create". (accept the default parameters in the dialog box.) Generate synthetic test requests.

SSH onto your EC2 instance, such as by using: ssh -i your-ssh-key.pem ec2-user@HOST

In your SSH session, generate test requests against the default bucket by running: /opt/membase/bin/memcachetest -l

Next, monitor your database performance.

Navigate to the following screen to see the online performance graphs: MONITOR -> Data Buckets -> "default"

Ports and Security Groups: If you are creating your own Security Group, the following TCP ports and port ranges should be opened for inbound connections from your web application servers and other server nodes (for clustering), via Source CIDR / IP filtering or Security Group filtering. That is, these ports should not be opened for general internet access. * 4369, * 5984, * 8091, * 11210, * 11211, * port range: 21100 to 21299

More information about your AMI and its pre-installed software is available in this file on your EC2 instance: /home/ec2-user/README.txt

________________________________________


Browse to: http://ec2-<ip>.ap-southeast-1.compute.amazonaws.com:8091/

Up and running, now to test out with Java client

http://www.couchbase.com/develop/java/current
 
net.spy.memcached.internal.CheckedOperationTimeoutException: Timed out waiting for operation 

http://www.couchbase.com/forums/thread/cannot-write-apache-aws-couchbase

Giving up... going local...
Install couchbase-server-community_x86_64_2.0.0-dev-preview-3.setup.exe
Code works fine now...
Set Succeeded
Synchronous Get Suceeded: Hello World!
Asynchronous Get Succeeded: Hello World!