You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just found out a very odd behavior related to 'unicorn_use_tcp'
If I don't set any value for :unicorn_use_tcp, 1) when there is only one server, 'unicorn_use_tcp' works as false. 2) when there are more than 1 server, 'unicorn_use_tcp' seems to be true. This results in a disaster since the upstream setting in the nginx conf goes wrong when running 'cap nginx:setup'
upstream unicorn_tp_staging {
server unix:/home/xxxxxxxxxxx/shared/sockets/unicorn.tp_staging.sock fail_timeout=0;
}
upstream unicorn_tp_staging {
server 54.xxx.xxx.xxx:8080 fail_timeout=0;
server 54.xxx.xxx.xxx:8080 fail_timeout=0;
}
My case was, that it worked well in a staging environment with 1 API server then it shut down in a production environment with multiple servers. It can be avoided by setting it explicitly as you want but this is not what I expected and I think it definitely needs to be fixed.
Thanks,
The text was updated successfully, but these errors were encountered:
Hi,
I just found out a very odd behavior related to 'unicorn_use_tcp'
If I don't set any value for :unicorn_use_tcp, 1) when there is only one server, 'unicorn_use_tcp' works as false. 2) when there are more than 1 server, 'unicorn_use_tcp' seems to be true. This results in a disaster since the upstream setting in the nginx conf goes wrong when running 'cap nginx:setup'
upstream unicorn_tp_staging {
server unix:/home/xxxxxxxxxxx/shared/sockets/unicorn.tp_staging.sock fail_timeout=0;
}
upstream unicorn_tp_staging {
server 54.xxx.xxx.xxx:8080 fail_timeout=0;
server 54.xxx.xxx.xxx:8080 fail_timeout=0;
}
My case was, that it worked well in a staging environment with 1 API server then it shut down in a production environment with multiple servers. It can be avoided by setting it explicitly as you want but this is not what I expected and I think it definitely needs to be fixed.
Thanks,
The text was updated successfully, but these errors were encountered: