How to sort parameters in nginx cache key

2014-09-16 Thread Wei Chen
Hi: We are experiencing low cache hit ratio in Nginx server. It turned out that one reason is client may be sending the same requests with parameters in different orders. e.g. foo?p1=a&p2=b&p3=c foo?p2=b&p1=a&p3=c And our cache key is set as proxy_cache_key $uri$is_args$args; It is not feasibl

How to measure time spent on response compression for Nginx?

2014-09-13 Thread Wei Chen
Hi folks: We want to measure how long Nginx takes to compress certain response with Gzip format. Is there any way/tool to get accurate timing? Thanks, -Wei ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Measure ram consumed by Nginx proxy cache

2014-08-22 Thread Wei Chen
Hi folks: I am currently investigating performance of our production Nginx instances. Our architecture is a Nginx process in front of 8 node.js workers. As the memory is running low, we want to determine the RAM consumed by Nginx processes only. My understanding is that Nginx cache is on disk by