Problem trying to create scaled app using jbossas-7 and mysql

The OpenShift forums have been retired.
You can still read and search them, but for help, please post a question on Stack Overflow.

Hi,

I have a JBoss app that uses a mysql database.

I managed to get this running on Openshift using a single gear. Now I want to deploy my app as a scaled app with separate gears for JBoss and MySQL.

I deleted the existing app and then did...

rhc app create -s -a statsapi -t jbossas-7 -g medium 

and then created the mysql gear with...

rhc cartridge add mysql-5.1 --app statsapi

No if I do...

rhc app show statsapi --state

then I see...

Cartridge jbossas-7, haproxy-1.4 is started
Cartridge mysql-5.1 is started

Does this mean my haproxy cartridge and the jbossas-7 cartridge are running on the same gear?

I tried to check which gears are running as explained in...

https://www.openshift.com/faq/can-i-access-my-applications-gear

but ~/haproxy-1.4/conf/gear-registry.db is empty

Have I created the app the right way?

$> Does this mean my haproxy cartridge and the jbossas-7 cartridge are running on the same gear? Yes, for a scalable app with 1 web framework gear, both haproxy and the web framework cartridges run on the same gear. To validate, you can run rhc account, and it will show you how many gears you are using. If it's just this one app, should be 2/3 gears used. Let us know if you need more gears for your trials - https://www.openshift.com/page/resource-request-form

$> Have I created the app the right way? Yes, so far so good. If your app scales up, then you'll see another gear used which will show up in gear-registry.db. You can test this by setting the minimum from 1 gear to 2 gears (alternatively, you can drive load). See "rhc cartridge scale --help" for more details on how. Likewise, you can use the Web Console:
https://openshift.redhat.com/app/console/applications/statsapi/scaling (this URL is reachable via the HAProxy link in your application's details page).