Last week, we published the new RabbitMQ Simulator. I’m pleased to see how well it has been received by customers, with several very large scale RabbitMQ customers already incorporating it into their training and testing regimens. VMware employees in the field have been enjoying getting familiar with the tool as well and are using it to advance their own and their customer’s understanding of how RabbitMQ works and how to best design a messaging architecture. One sales engineer, Chris DeLashmutt even wrote a blog this week describing how to deploy the new RabbitMQ Simulator on Cloud Foundry.
For users new to RabbitMQ, certainly testing this out on Cloud Foundry can be a huge accelerator, as you can get your instance up and running for free in just a matter of minutes. Below is a summary of Chris’ instructions to deploy this simulator on Cloud Foundry, but also, if you want to shortcut the entire process, he invites you to access his deployed instance at http://rabbitmq-sim.cloudfoundry.com.
To begin, you will need to clone the RabbitMQ Simulator project from GitHub:
git clone https://github.com/RabbitMQSimulator/RabbitMQSimulator.git
Next, go to the RabbitMQSimulator directory for the remaining commands.
Next, you will need to install Node.JS. In his example, since he is a Mac user, DeLashmutt used Brew to install Node.JS:
brew install node.js
After Node.JS is finished installing, you will need to install the necessary modules from the RabbitMQSimulator project with the following command:
Next, you will need to install the "grunt" command line interface (CLI) to be able to execute some small tasks to finish building the simulator. Install the grunt CLI with the following command:
npm install -g grunt-cli
After that is finished installing, you can now invoke grunt to finish the build tasks:
Now, test the app locally to make sure it works with the following command:
If the app seems functional, then you can move on to install it on Cloud Foundry.
Installing RabbitMQ Simulator on Cloud Foundry
First, you will need an account on Cloud Foundry. If you do not have one, you can sign up for a free account here. While you wait for your account to be confirmed, follow the instructions for installing the "vmc" command line interface tool so that you can push the RabbitMQ Simulator to your account.
Now, go back to your terminal window and login to your Cloud Foundry account with the following command:
Enter the email you used to sign up with, and the password for your account.
In the same terminal session, navigate to the RabbitMQSimulator folder you cloned from git. From that directory, you need to deploy the simulator onto your account with the following command:
vmc push rabbitmq-sim --runtime=node08
Once complete you will have an application called "rabbitmq-sim" in your account, and it will use a 0.8.x runtime version of the Node.JS Droplet Execution Agent. NOTE: During the deployment process, it is ok to take defaults on everything EXCEPT the "Application Deployed URL" prompt. Since this URL needs to remain unique, you will need to select a different host name to publish your own rabbitmq-sim instance.
Once the application is finished starting, you can browse to the host name that you chose for the application, and start working with your simulator instance.