I recently started playing around with Jelastic. They provide Platform-as-Infrastructure. It's a PaaS + IaaS platform.

They recently released a new version named Joker (for Jelastic + Docker). And one of their particularities is to offer easy horizontal AND vertical scaling.

If you have followed the latest Couchbase 4.x release you know that a big part of it is Multi Dimensional Scaling. Scale vertically and horizontally.

This makes Jelastic a great place to deploy Couchbase. So I am starting a series of post to explain how to do so.

And the first step is of course to do a classic Couchbase deployment. I made a short video to show you how easy it is. I have accelerated some parts of the video(environnement creation and rebalance) so you don't get bored.

 

It is a straight forward process. You create an environnement based on the many different one Jelastic proposes(AWS, Azure, and more). In that Environnement you decide what you want to deploy. I have selected a Docker deployment as I just want a Couchbase cluster for now. When selecting your image you are directly hooked up to the Docker HUB

Once you have selected your image, you decide how many nodes you want and how big you want them to be thanks to the cloudlets selector.

Once you click ok, Jelastic is building the environnement for you. Here I selected 3 nodes where the couchbase/server docker image will be deployed.

Once the deployment is over, you can select one of the node and add an Endpoint to it. An endpoint gives you a public URL given an image and a port. I am giving the 8091 port that is the Couchbase web console port.

From now on I can access the web console and go through the Cluster setup. When done with the setup I start adding the two other nodes that were previously created by Jelastic.

Once you have added the nodes you can trigger a rebalance and you are good to go!

If you want to learn more about  Couchbase and Docker, and understand what's happening under the hood, there are several interesting blog posts you can read.

Author

Posted by Laurent Doguin, Developer Advocate, Couchbase

Laurent is a Paris based Developer Advocate where he focuses on helping Java developers and the French community. He writes code in Java and blog posts in Markdown. Prior to joining Couchbase he was Nuxeo’s community liaison where he devoted his time and expertise to helping the entire Nuxeo Community become more active and efficient.

Leave a reply