Slow initial server startup when using Phusion Passenger and Rails

前端 未结 7 724
攒了一身酷
攒了一身酷 2020-11-29 14:58

To jump on the band-wagon of Phusion Passenger we\'ve setup a staging server for a small rails app to test things out.

So far it has been very nice to use, it makes

7条回答
  •  死守一世寂寞
    2020-11-29 15:22

    Just incase there are any nginx server users stumbling upon this question, both the 'PassengerMaxRequests' and 'PassengerStatThrottleRate' directives don't translate to nginx. However the others do:

    rails_spawn_method smart;
    rails_app_spawner_idle_time 0;
    rails_framework_spawner_idle_time 0;
    passenger_pool_idle_time 1000;
    

    HTH!

    EDIT rails_spawn_method is deprecated in passenger 3 instead use

    passenger_spawn_method smart; 
    

    everything else is just good till date.

提交回复
热议问题