Re: memory pool allocation

2014-04-09 Thread nginxsantos
Any expert opinions??? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249161,249185#msg-249185 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Parallel subrequests

2014-04-09 Thread honwel
how to write a filter module after the postpone filter . if i change module's config file or complie file (auto/) ? any example? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245707,249183#msg-249183 ___ nginx mailing list nginx@nginx.org

mysql backend

2014-04-09 Thread Shawn Za
Hi. If nginx ties back to a mysql backend on a remote server for IMAP/SMTP, don't I need to add $protocol_ports->{'smtp'}=25; below the $protocol_ports->{'imap'}=143; ? Also I should not be listening to 993 on my actual backend but rather 143 and just enforce TLS and make sure the ssl protocols a

Re: OpenSSL leaks server-Keys / The Heartbleed Bug

2014-04-09 Thread mex
> Also it's worth to look at the recent nginx blog post regarding > heartbleed: > > http://nginx.com/blog/nginx-and-the-heartbleed-vulnerability/ > thanx for the link maxim, has been incorporated regards, mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249102,249178#msg-249

RE: SSL_write failed (32: Broken pipe) while processing SPDY if cache on

2014-04-09 Thread Michael Giagnocavo
Thanks a ton, that worked. I read a few bug reports but didn't see that one. I'm not sure how our config worked previously since we've been using SPDY and proxy_cache for a month :\. Sincerely, -Michael -Original Message- From: nginx-boun...@nginx.org [mailto:nginx-boun...@nginx.org] On

Re: expected behavior of --with-debug

2014-04-09 Thread Maxim Dounin
Hello! On Wed, Apr 09, 2014 at 10:51:24AM -0400, Jeff Kaufman wrote: > In ngx_pagespeed we interpret --with-debug to mean "include debugging > symbols and debug-only assertions". Is this what most people using > nginx would expect? > > (We distribute two precompiled versions of PSOL, "debug" an

expected behavior of --with-debug

2014-04-09 Thread Jeff Kaufman
In ngx_pagespeed we interpret --with-debug to mean "include debugging symbols and debug-only assertions". Is this what most people using nginx would expect? (We distribute two precompiled versions of PSOL, "debug" and "release", and we've been using --with-debug to switch between them. Now we're

Re: Memory Pool

2014-04-09 Thread Valentin V. Bartenev
On Wednesday 09 April 2014 08:22:10 nginxsantos wrote: > Thank you for the reply. > > I know it is simple. But, will we not get more performance benefit if we > create the pools before hand. Say I will create a memory pool for the > connections (for example say with 4000 entries). Everytime I need

memory pool allocation

2014-04-09 Thread nginxsantos
Suppose, I am allocating a pool of greater than 4k(page size). Say for example I am calling the function ngx_create_pool with 8096. But, this function will set the max as 4095 even if it has allocated 8K. Not sure, why is it being done like this. p->max = (size < NGX_MAX_ALLOC_FROM_POOL) ? siz

Re: nginx-1.5.13

2014-04-09 Thread Kevin Worthington
Hello Nginx users, Now available: Nginx 1.5.3 for Windows http://goo.gl/D75u6G (32-bit and 64-bit versions) These versions are to support legacy users who are already using Cygwin based builds of Nginx. Officially supported native Windows binaries are at nginx.org. Announcements are also availab

Re: Memory Pool

2014-04-09 Thread nginxsantos
Thank you for the reply. I know it is simple. But, will we not get more performance benefit if we create the pools before hand. Say I will create a memory pool for the connections (for example say with 4000 entries). Everytime I need one, I will go and get it from that pool and when I free it, I w

Re: Upstream Keepalive Questions

2014-04-09 Thread Maxim Dounin
Hello! On Tue, Apr 08, 2014 at 05:41:17PM -0400, abstein2 wrote: > Maxim, > > Thanks so much for clarifying. Just to make sure I'm understanding > correctly, if I had something like this pseudo-code > > upstream upstream1 { } > upstream upstream2 { } > upstream upstream3 { } > upstream upstream

Re: Memory Pool

2014-04-09 Thread Valentin V. Bartenev
On Wednesday 09 April 2014 04:55:42 nginxsantos wrote: > Nginx when it accepts a connection, it creates a memory pool for that > connection (allocating from heap). After which further memory requirement > for that connection will be allocated from that pool. This is good. > But, why don't we pre c

Re: Memory Pool

2014-04-09 Thread nginxsantos
Also I noticed that initially for a connection, it allocates a pool of size 256 and if that exceeds, it goes and calls ngx_palloc_large which in turn calls malloc. So, can we not allocate more in the first attempt. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249144,249149#msg-249149

Re: OpenSSL leaks server-Keys / The Heartbleed Bug

2014-04-09 Thread Maxim Konovalov
On 4/9/14 2:18 AM, mex wrote: > Guide to Nginx + SSL + SPDY has been updated with some infos, links and > tests > regarding heartbleed > > https://www.mare-system.de/guide-to-nginx-ssl-spdy-hsts/#heartbleed > Also it's worth to look at the recent nginx blog post regarding heartbleed: http://ngi

Re: SMNP monitoring support

2014-04-09 Thread nginxsantos
This module is just to monitor the status page. Is there any SNMP module which can generate some snmp alarms when certain threshold exceeds or when there is a crash? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248344,249146#msg-249146 ___

Re: Dynamic upstream proxy_pass

2014-04-09 Thread kay
My bad, in one location I forgot to remove port, that is why nginx tried to resolve upstream as hostname. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249142,249145#msg-249145 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/

Memory Pool

2014-04-09 Thread nginxsantos
Nginx when it accepts a connection, it creates a memory pool for that connection (allocating from heap). After which further memory requirement for that connection will be allocated from that pool. This is good. But, why don't we pre create the memory pools depending upon the number of connections

Re: Dynamic upstream proxy_pass

2014-04-09 Thread Makailol Charls
Hello! You need to use resolver directive in Nginx. Also you need to set DNS entries for your backend hostname. Best regards, Makailol On Wed, Apr 9, 2014 at 1:49 PM, kay wrote: > I'm trying to set upstream names by variables, but nginx recognizes > variables as hostnames, not upstream names.

Dynamic upstream proxy_pass

2014-04-09 Thread kay
I'm trying to set upstream names by variables, but nginx recognizes variables as hostnames, not upstream names. For example: map $cookie_backend $proxy_host { default 'backend1'; '1' 'backend2'; } ... ... ... upstream backend1 { server backend123:8080; server backen

Re: SSL_write failed (32: Broken pipe) while processing SPDY if cache on

2014-04-09 Thread Valentin V. Bartenev
On Wednesday 09 April 2014 06:20:42 Michael Giagnocavo wrote: > We're using nginx 1.5.12 and 1.5.13 on Ubuntu 12.04 LTS via Azure VM. > > Since last night, on both FireFox and Chrome, Windows and OSX, we're having > difficulty with SPDY. If the browser cache is warm and proxy_cache is > enabled