Not truly at an application level but you can do this at a gear group level.
The simplest way would be to use the web console --
https://$console_ip/app/console/applications/$appname/scaling URI and set the maximum limit accordingly.
Replace $console_ip and $app_name accordingly.
Or if you want to do it programmatically, you could use the REST API:
curl -k -X PUT -d "scales_to=$limit" -u "$user:$password" https://$broker_ip/broker/rest/domains/$domain/applications/$app/cartridges/$cartridge
Example to limit scaling the php-5.3 web-serving tier of a scaled app to a max of 7 gears use something like:
curl -k -X PUT -d "scales_to=7" -u "$user:$password" https://$broker_ip/broker/rest/domains/$domain/applications/$app/cartridges/php-5.3
On Jan 3, 2013, at 3:28 AM, Diego Spinola Castro wrote:
> Hi guys, i'm wondering if there's any way to control gear count per application. Inspite of setting account wide max gear i wanna be able to set application wide max gears (in case of a scalable one).
> Any ideas?
> dev mailing list
> dev lists openshift redhat com