We are running nginx 0.8.54 as a http proxy with cache enabled for a couple of php-generated html documents.
Lately we had difficulties with available harddisk space on the buffer / cache harddisk - increasing it's size from 8 to 20GB helped only temporarily.
Is there a way to estimate the maximum amount of space nginx could allocate when running and to ensure by configuration that nginx will never run out of disk space?
( Logfiles are rotated to another machine already, so that will never be a problem )
My cache size is set to 4096m max_size, 64m key_zone, all other settings like proxy_buffer_size, proxy_max_temp_file_size etc are left at default values.
The biggest problem is, that in case of a full disk nginx_proxy fails to write temp and or bufferfiles and serves a blank document with the original HTTP response code.. Google doesnt like blank HTTP 200 OK documents, so neither we do :)
Also determining a full disk is hard since for some reason a command like df -h shows more than 50% of the harddisk space free at all times.
@edit
I didnt see this problem on other machines running 0.8.53 with a similar configuration and similar amounts of caching / traffic
Edited 2 time(s). Last edit at 04/14/2011 04:37AM by mfeldheim.