A
A
Alexander Petrov2019-11-14 14:45:44
Nginx
Alexander Petrov, 2019-11-14 14:45:44

Will the site work if some processes are not running?

There is this part of the nginx configuration:

upstream my_site {
    server   unix:/tmp/thin_demo_1.0.sock;
    server   unix:/tmp/thin_demo_2.0.sock;
}

The question is, if the thin_demo_2.0.sock process is killed and does not work, then everything will function normally? nginx won't direct users to this process? Or is it better not to do this and keep all processes running?
Do not ask why I need it)) Just need it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lynn "Coffee Man", 2019-11-14
@Mirkom63

Depends on other settings, but in general every second request will not work.
If you need to turn off the server and at the same time leave it in the list, there is a down flag in the settings
nginx.org/en/docs/http/ngx_http_upstream_module.ht...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question