[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: gear limit per application



Does it works for autoscaling or just for REST API scale events ?

2013/1/3 Ram Ranganathan <ramr redhat com>
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

HTH,

Ram//
main(O,s){s=--O;10<putchar(3^O?97-(15&7183>>4*s)*(O++?-1:1):10)&&\
main(++O,s++);}

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
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]