Welcome! Log In Create A New Profile

Advanced

Re: Problem with proxy_cache_path and limit

December 18, 2017 09:44PM
Hello!

> nginx -v
> nginx version: nginx/1.13.7

> # Server globals
> user www-data;
> worker_processes auto;
> worker_rlimit_nofile 65535;
> error_log /var/log/nginx/error.log crit;
> pid /var/run/nginx.pid;
>
>
> # Worker config
> events {
> worker_connections 1024;
> use epoll;
> multi_accept on;
> }
>
>
> http {
>
> proxy_cache_path /home/admin/cachemaster levels=1:2
keys_zone=my_cache:100m
> max_size=1g inactive=60m use_temp_path=off;
>
> }

> server {
> listen 107.170.204.190:443;
> server_name sf1.example www.sf1.example;
> ssl on;
> ssl_certificate /home/admin/conf/web/ssl.sf1.example.pem;
> ssl_certificate_key /home/admin/conf/web/ssl.sf1.example.key;
> error_log /var/log/apache2/domains/sf1.example.error.log error;
>
> location / {
> proxy_cache my_cache;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_cache_revalidate on;
> proxy_cache_min_uses 3;
> proxy_cache_valid 200 301 7d;
> proxy_pass https://example:443 https://example/;
> proxy_ignore_headers X-Accel-Expires Expires Cache-Control;
>
> }
> }
>
> but the folder /home/admin/cachemaster fills up beyond 1gb, what am i
> missing
>
> Thanks


I think is 1GB rather than 1Gb? since the minimum unit is bytes. how long
has this be going on? or just a sudden burst?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem with proxy_cache_path and limit

erick3k December 18, 2017 09:14PM

Re: Problem with proxy_cache_path and limit

tokers December 18, 2017 09:44PM

Re: Problem with proxy_cache_path and limit

erick3k December 18, 2017 09:51PM

Re: Problem with proxy_cache_path and limit

erick3k December 18, 2017 09:59PM

Re: Problem with proxy_cache_path and limit

Maxim Dounin December 19, 2017 08:46AM

Re: Problem with proxy_cache_path and limit

erick3k December 19, 2017 12:48PM

Re: Problem with proxy_cache_path and limit

erick3k December 19, 2017 12:51PM

Re: Problem with proxy_cache_path and limit

Maxim Dounin December 19, 2017 01:12PM

Re: Problem with proxy_cache_path and limit

erick3k December 19, 2017 01:31PM

Re: Problem with proxy_cache_path and limit

Maxim Dounin December 19, 2017 02:40PM

Re: Problem with proxy_cache_path and limit

erick3k December 19, 2017 04:13PM

Re: Problem with proxy_cache_path and limit

Maxim Dounin December 20, 2017 08:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
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