Welcome! Log In Create A New Profile

Advanced

Re: nginx cache

Vasil Mikhalenya
April 16, 2015 11:50AM
возможно ли ограничить количество одновременно загружаемых файлов с
апстрима?

2015-04-16 11:40 GMT+02:00 Vasil Mikhalenya <bazilek@gmail.com>:

> ситуацию спасло добавление
>
> proxy_cache_lock_age 120s;
>
> однако из описания неясен смысл директивы proxy_cache_lock_timeout,
> кто-то может пояснить
>
> 2015-04-16 11:26 GMT+02:00 Vasil Mikhalenya <bazilek@gmail.com>:
>
>> Вопрос по кешированию,
>>
>> proxy_cache_path /var/lib/nginx/cache keys_zone=one:20m inactive=1d
>> use_temp_path=off;
>>
>> server {
>> listen 80;
>> server_name _;
>>
>> proxy_cache one;
>>
>> location / {
>> proxy_pass http://origin.corp.com;
>> proxy_set_header Host $proxy_host;
>> add_header Cache $upstream_cache_status;
>> }
>> }
>>
>> приходит 10 запросов от клиентов, файла в кеше нет - создается 10 файлов
>> в cache temp dir
>>
>> -rw------- 1 nginx nginx 1988247552 Apr 16 09:19 0000000001
>> -rw------- 1 nginx nginx 1985142784 Apr 16 09:19 0000000003
>> -rw------- 1 nginx nginx 1547857920 Apr 16 09:19 0000000004
>> -rw------- 1 nginx nginx 1767833600 Apr 16 09:19 0000000006
>> -rw------- 1 nginx nginx 1144295424 Apr 16 09:19 0000000007
>> -rw------- 1 nginx nginx 1661476864 Apr 16 09:19 0000000008
>> -rw------- 1 nginx nginx 1252536320 Apr 16 09:19 0000000009
>> -rw------- 1 nginx nginx 1593856000 Apr 16 09:19 0000000010
>> -rw------- 1 nginx nginx 1242357760 Apr 16 09:19 0000000011
>> -rw------- 1 nginx nginx 902340608 Apr 16 09:19 0000000012
>> -rw------- 1 nginx nginx 872054784 Apr 16 09:19 0000000013
>>
>> Когда проходит 100 запросов - файл не выкачается и не закешируется
>> никогда т.к. канал будет полностью заполнен.
>>
>> nginx version: nginx/1.7.10
>>
>> Nginx действительно так работает, или я что-то упустил ?
>>
>>
>> --
>> Best regards,
>> Vasil Mikhalenya
>>
>
>
>
> --
> Best regards,
> Vasil Mikhalenya
>



--
Best regards,
Vasil Mikhalenya
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

nginx cache

Vasil Mikhalenya April 16, 2015 05:28AM

Re: nginx cache

Vasil Mikhalenya April 16, 2015 05:42AM

Re: nginx cache

Vasil Mikhalenya April 16, 2015 11:50AM

Re: nginx cache

Валентин Бартенев April 16, 2015 07:28PM

Re: nginx cache

Vasil Mikhalenya April 29, 2015 05:36AM

Re: nginx cache

Maxim Dounin April 29, 2015 07:20AM

Re: nginx cache

Vasil Mikhalenya April 30, 2015 07:06AM

Re: nginx cache

Vasil Mikhalenya February 12, 2016 10:40AM

Re: nginx cache

Vasil Mikhalenya February 12, 2016 11:18AM

Re: nginx cache

Maxim Dounin February 12, 2016 09:18PM

Re: nginx cache

Vasil Mikhalenya February 14, 2016 06:36AM

Re: nginx cache

Vasil Mikhalenya February 29, 2016 07:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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