I need that my NodeJS applications don't shut down automatically when a requests completes. But I am not able to reconfigure Passegner for that.
According to the passenger documentation:
But I cannot find where to configure the start parameters for Passenger. I suspect that Nginxs is who starts Passenger processes but I don't see where to put the max-pool-size and min-instances parameters.
I tried to set the min-instances in a nginx directive that results seems a valid configuration but it does not work.
According to the passenger documentation:
"it spawns and shuts down application processes according to traffic. This allows it to use more resources during busy times, while conserving resources during idle times. For consistent performance, it is thus recommended that you configure a fixed process pool: telling Passenger to use a fixed number of processes, instead of spawning and shutting them down dynamically.
Run passenger start with --max-pool-size=N --min-instances=N, where N is the number of processes you want."
But I cannot find where to configure the start parameters for Passenger. I suspect that Nginxs is who starts Passenger processes but I don't see where to put the max-pool-size and min-instances parameters.
I tried to set the min-instances in a nginx directive that results seems a valid configuration but it does not work.