Search code examples
ruby-on-railsnginxpassengerdevopssystem-administration

Reserve/limit Passenger threads per Application


I have multiple Rails apps in the same server running with Nginx + Passenger. I use:

    passenger_max_pool_size 20;
    passenger_min_instances 20;

to fix the number of active passenger instance but, how I fix the number for each app independently? I would like to set for example:

  • APP_A: 2 passenger instances
  • APP_B: 18 passenger instances

Is that possible?


Solution

  • To answer my own question: It can only be done with Passenger Enterprise using MaxInstances

    There is no clean solution for free version of Passenger