Eric D. Schabell: OpenShift Primer Demo - Drools Planner rises to new heights in the Clouds

Wednesday, June 6, 2012

OpenShift Primer Demo - Drools Planner rises to new heights in the Clouds

The following demo is an OpenShift World Premier for the Drools Planner Project.

I am a fan of the Drools Planner project and know the lead Geoffrey for some time now. I have always wondered why this project was not showcasing in an OpenShift demo and we got to chatting about it. I promised to provide the HowTo if he would push me a working WAR file, which he did that same night.

The demo is available live online here:

Here is how to run the demo application from any OpenShift instance, which will highlight a vehicle routing (planning) problem that optimizes and refreshes your browser every few seconds. Note that the performance is a bit slower to resolve the problem than on a local machine, but that is just the limiting resources that have been allocated to my OpenShift instance.

Drools Planner on OpenShift Express

Installing the Drools Planner tool on OpenShift was never easier!

Running on OpenShift

Create an account at
Create a jbossas-7 application
rhc app create -a droolsplanner -t jbossas-7
Add this upstream openshift-droolsplanner repo
cd droolsplanner
git remote add upstream -m master git://
git pull -s recursive -X theirs upstream master
# note that the git pull above can be used later to pull updates.
Then push the repo upstream
git push
That's it, you can now checkout your application at:

You too can now be a Planner in the Clouds in minutes! ;-)


  1. One extra note: the webexample has been limited (with a fixed thread pool size) to run only 4 solvers at the same time because a solver uses a lot of CPU power. Each solver is also limited to run no longer then 2 minutes (less if terminated early by the user). So if the solving doesn't start, just wait a minute.

  2. Easy to deploy your own indeed:

    The only extra command I needed was to create my domain first:
    rhc-domain create -n mydomain -l mylogin


Note: Only a member of this blog may post a comment.