Welcome! Log In Create A New Profile


Re: Failed disk + proxy_intercept_errors

Maxim Dounin
February 17, 2020 10:56AM

On Fri, Feb 14, 2020 at 04:14:28AM -0500, chocholo3 wrote:

> Thanks a lot for your response.
> From what you are saying I understand another option:
> current server section - Server A
> copy the same configuration and use some other spare drive as a
> proxy_cache_path configure that as - Server B
> Configure both server sections to listen on unix socket instead of network.
> Create a third server C configuration that will listen on network and will
> proxy_path to Server A with proxy_intercept_errors on and error_page served
> from location that will proxy_path to Server B.
> Is something like this supposed to work? Or it would be better to have the
> there completely independent configuration (like to use some other software
> for server C).
> (I'm asking because I did something like that i the past and it broke a bad
> way. It started serving 500 to everyone. I kind of fear to try it in
> production again.)

As I already tried to explain in the previous message, there are
edge cases which cannot be solved by error handling, at all.

As long as you only care about disk errors which happen before
sending response headers and result in serving 500, just
error_page should be enough. Using additional proxying layer
might help to cover some additional errors which happen during
sending first bytes of the response body.

The only perfect solution, however, is to use disk-level
redundancy - for example, a simple software mirror on two disks is
trivial to configure and will help a lot.

Maxim Dounin
nginx mailing list
Subject Author Posted

Failed disk + proxy_intercept_errors

chocholo3 February 12, 2020 10:36AM

Re: Failed disk + proxy_intercept_errors

Maxim Dounin February 13, 2020 10:00AM

Re: Failed disk + proxy_intercept_errors

chocholo3 February 14, 2020 04:14AM

Re: Failed disk + proxy_intercept_errors

Maxim Dounin February 17, 2020 10:56AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready