June 28, 2014

Few Handy Tricks for Getting Couchbase Server on Ubuntu on Azure Right...

Hi folks – Azure adventures continue... After the previous Azure deployment articles few folks started asking about Linux. So here it is:

  • First get your Ubuntu 12 provisioned. Just look under Ubuntu.

ssh -i  myPrivateKey.key -p 22 azureuser@your_vmname.cloudapp.net
sudo apt-get install libssl0.9.8
sudo wget http://your_couchbase_server_version_download_URL.deb
sudo dpkg -i couchbase-server-enterprise_ubuntu_package.deb
  • Ok, all installed. One thing to remember is the OS drive in Azure is limited to 30GB. So if you want a production deployment, you will need to mount more drives and here is how to add more disks. If you are using Azure Powershell, I posted a script that can come in handy here.
  • Most virtual machine sizes allow multiple disks to be mounted so mounting them as a raid setup can give you the best total storage capacity. Here is how to mount many disks under raid configuration.
  • Once you have your new mount point, lets name it '/data', add a directory for couchbase and make sure to make it writeable to couchbase (I am sure you can make this a little more secure than 777 but keeping it simple)
cd /data
sudo mkdir couchbase
sudo chmod -R 777 couchbase
  • …And you are ready to setup Couchbase Server. Make sure to use /data/couchbase as your storage location and you are good to go.

Cihan Biyikoglu