mirror of
https://github.com/lancachenet/monolithic
synced 2024-11-21 19:43:05 +00:00
Switch to using proxy_cache_lock_age
This allows us to cache the response in the event a file hasn't been downloaded yet Set to 2m as a really long time to download a single 1m slice from upstream Based on thoughts from https://github.com/lancachenet/generic/pull/113
This commit is contained in:
parent
2fa012f667
commit
51753881f9
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,10 @@
|
|||
# this really happens, otherwise we end up wasting bandwith
|
||||
# getting the file multiple times.
|
||||
proxy_cache_lock on;
|
||||
# If it's taken over a minute to download a 1m file, we are probably stuck!
|
||||
# Allow the next request to cache
|
||||
proxy_cache_lock_age 2m;
|
||||
# If it's totally broken after an hour, stick it in bypass (this shouldn't ever trigger)
|
||||
proxy_cache_lock_timeout 1h;
|
||||
|
||||
# Allow the use of state entries
|
||||
|
@ -28,3 +32,4 @@
|
|||
# 40G max file
|
||||
proxy_max_temp_file_size 40960m;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue