Reputation: 1089
I'm trying to write a web backend using Node.js, Passenger, and nginx.
It was working great until I tried to add multiple node processes using the passenger_force_max_concurrent_requests_per_process
setting. For some reason adding that setting gives me the following error:
unknown directive "passenger_force_max_concurrent_requests_per_process"
If I comment that line out it works fine, so I really don't know what's going on. Any help would be welcome.
Thanks,
-tlf
nginx and Passenger both work perfectly until I try to change that setting, at which point nginx fails to start due to the aforementioned error. If I remove that line, everything works normally again.
And yes, I do know exactly what that line of code does, which is why I'm trying to add it in the first place. I would really appreciate being able to set that property, but I am unable to because it's crashing.
Upvotes: 0
Views: 258
Reputation: 18944
The most likely possibility is that your Passenger version is too old. passenger_force_max_concurrent_requests_per_process was introduced in version 5.0.22.
The other possibility is that you did not update your Nginx installation when upgrading Passenger.
Upvotes: 1
Reputation: 29168
You have made it comment out that means it is made 0.
There are two main use cases for this option:
Resource Link:
passenger_start_timeout
specifies a timeout for the startup of application processes. If an application process fails to start within the timeout period then it will be forcefully killed with SIGKILL, and the error will be logged.
Upvotes: 0