J.R.
May 04, 2020 08:56PM
> After 2minutes response 'stabilizes' with correct size (in this example
> 1526025). Problem is also amplified due clients validate response and retry
> progressively if corrupted.

What is the response your upstream is sending back? If the 'corrupted'
data is still a 200, then nginx will cache that... You need to make
sure it's sending back a 5xx if it's overloaded or whatever error
would be relevant.

You might want to consider expanding your 'use_stale' like:

'proxy_cache_use_stale error timeout invalid_header http_500 http_502
http_503 http_504;'

Why are you wasting duplicating the data in the same SHM? Just set
'use_temp_path=off' in the proxy_cache_path and be done with it.

What is the valid cache time for the content? (i.e. the headers) If
they are missing or things are set to 'no cache', then you are
obviously going to have issues...
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Strange behavior on proxy cache at high load spike

abr3 May 04, 2020 05:07PM

Re: Strange behavior on proxy cache at high load spike

J.R. May 04, 2020 08:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready