Re: ngx_slab_alloc() failed: no memory in cache keys zone

2017-09-20 Thread Peter Booth
Lots of questions: What are the upstream requests? Are you logging hits and misses for the cache - what's the hit ratio? What size are the objects that you are serving? How many files are there in your cache? What OS and what hardware are you using? If it's Linux can you show the results of the f

Migrate Apache directives to Nginx

2017-09-20 Thread Nathan Zabaldo
Question on SF: https://serverfault.com/questions/874730/convert-apache-mod-proxy-p-to-nginx-equivalent My PHP MVC platform CodeIgniter performs routing based on the REQUEST_URI. In Apache, you cannot change the REQUEST_URI environment variable. So, in Apache, I made use of the [P]proxy flag. Sen

Re: ngx_slab_alloc() failed: no memory in cache keys zone

2017-09-20 Thread Nick Urbanik
Dear Folks, On 19/09/17 11:16 +1000, Nick Urbanik wrote: On 19/09/17 10:46 +1000, Nick Urbanik wrote: We have this message repeatedly, despite increasing keys_zone size by a factor of three to: proxy_cache_path/srv/mycache levels=1:2 keys_zone=myzone:150m inactive=15d; Is it pos

AW: Memory usage doubles on reload

2017-09-20 Thread Lukas Tribus
Hello, starting with nginx 1.11.11 you can use worker_shutdown_timeout to limit the amount of time workers stall the shutdown. However, you will still have increased memory usage. You will always have increased memory usage while soft reloading. If you cannot accept that, then you have to stop

Re: Options for selective logging

2017-09-20 Thread Igor A. Ippolitov
Let me reply with a link: http://nginx.org/en/docs/http/ngx_http_split_clients_module.html You can either use split_clients to change upstream or to trigger logging with 'if' option of 'access_log' On 19.09.2017 21:17, mblancett wrote: I am looking for ways to target every Nth request into a v