We have a sinatra app which is running on passenger + nginx setup, Currently we are facing an issue that Session gets lost randomly. We also tried disabling smart spawning in passenger but it didn't worked.Server load and memory usage is also fine.
But we were able to fix the issue by setting passenger_max_pool_size 1;
in nginx configuration.
Why this issue is happening when pool size is greater than 1 ?
Will this configuration cause any performance issue with our app since passenger cant spawn new instances ?
nginx sites-enabled conf
server {
listen 8082;
server_name 0.0.0.0;
root /home/deploy/manager/current/app/public;
passenger_ruby /usr/local/rvm/gems/ree-1.8.7-2012.02/wrappers/ruby;
passenger_enabled on;
}