0

When running a Ruby application on Openshift, is it possible to specify custom Passenger configuration options?

In particular, I'd like to override the value of PassengerMaxPoolSize that's getting set in $OPENSHIFT_RUBY_DIR/etc/conf.d/performance.conf. Unfortunately all files in that directory require root access to modify.

Is it possible to override PassengerMaxPoolSize without root access?

1 Answer 1

0

Currently it is not possible to edit that value in the supported OpenShift Ruby Cartridge (see product documentation for what is changable http://openshift.github.io/documentation/oo_cartridge_guide.html#ruby). You can however create a custom ruby cartridge with your preferred settings and run that on OpenShift.

3
  • Ah that makes sense — thanks for the reply, Nick. As an alternative, I found these two forum posts that suggest using the .htaccess file to add additional Passenger config options: forums.openshift.com/changing-passengerpoolidletime, forums.openshift.com/…. I know those are pretty old, but is this still a supported option? As an experiment, I tried adding PassengerMinInstances to an .htaccess in my root directory but that didn't seem to do anything :( Nov 3, 2014 at 20:37
  • I'll have to test to see if its still works but really quickly, did you put it in the root of your repo or of your gear? If it was in the root of your gear, try putting it in the root of your repo.
    – niharvey
    Nov 3, 2014 at 21:27
  • I added it to the root of my repo, in the same directory as my config.ru file. Currently my .htaccess file has a single line PassengerMinInstances 2. But passenger-status still shows me dropping down to a single process periodically, which suggests that something's not working =/ Nov 3, 2014 at 21:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .