Welcome! Log In Create A New Profile

Advanced

Re: ngx_lua + proxy_next_upstream

Yichun Zhang (agentzh)
September 25, 2013 02:22AM
Hello!

On Tue, Sep 24, 2013 at 3:39 PM, pigmej wrote:
> Yeah, I meant rewrite obviously... I would still prefer to not have even rewrite if it's possible.
>

It's not worth saving at all. If you take an on-CPU Flame Graph for
your loaded Nginx worker processes, you'll never even see it on the
graph. You'd better put your optimization efforts on something that is
truly measurable.

See also https://github.com/agentzh/nginx-systemtap-toolkit#ngx-sample-bt

> I wonder why share_all_vars is not safe. Any serious consideration / example / use case ? Why it's better to copy them instead ? (What about memory footprint etc).
>

Because of side effects involved in sharing variables between the
parent request and the subrequest. You can find such scary examples in
my Nginx tutorials (still under work!):

http://openresty.org/download/agentzh-nginx-tutorials-en.html

> And I will probably send the questions to openresty group too.
>

It's just that you're more likely to get more responses more quickly
for such questions. That's all.

Regards,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

ngx_lua + proxy_next_upstream

Jedrzej Nowak September 18, 2013 09:10AM

Re: ngx_lua + proxy_next_upstream

Yichun Zhang (agentzh) September 19, 2013 08:36PM

Re: ngx_lua + proxy_next_upstream

Jedrzej Nowak September 23, 2013 03:18AM

Re: ngx_lua + proxy_next_upstream

Jedrzej Nowak September 24, 2013 05:36AM

Re: ngx_lua + proxy_next_upstream

Yichun Zhang (agentzh) September 24, 2013 04:30PM

Re: ngx_lua + proxy_next_upstream

Anonymous User September 24, 2013 06:40PM

Re: ngx_lua + proxy_next_upstream

Yichun Zhang (agentzh) September 25, 2013 02:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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