Home > Blogs > VMware vFabric Blog


HOWTO: Deploying RabbitMQ Simulator on Cloud Foundry

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.

Initial procedure

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:

npm install

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:

/usr/local/share/npm/bin/grunt

Now, test the app locally to make sure it works with the following command:

node app.js

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:

vmc login

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.

This entry was posted in Cloud Foundry, RabbitMQ and tagged , on by .
Stacey Schneider

About Stacey Schneider

Stacey Schneider has over 15 years of working with technology, with a focus on working with sales and marketing automation as well as internationalization. Schneider has held roles in services, engineering, products and was the former head of marketing and community for Hyperic before it was acquired by SpringSource and VMware. She is now working as a product marketing manager across the vFabric products at VMware, including supporting Hyperic. Prior to Hyperic, Schneider held various positions at CRM software pioneer Siebel Systems, including Group Director of Technology Product Marketing, a role for which her contributions awarded her a patent. Schneider received her BS in Economics with a focus in International Business from the Pennsylvania State University.

One thought on “HOWTO: Deploying RabbitMQ Simulator on Cloud Foundry

  1. Pingback: How fast is a Rabbit? Basic RabbitMQ Performance Benchmarks | VMware vFabric Blog - VMware Blogs

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>