Welcome! Log In Create A New Profile

Advanced

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin
February 12, 2015 08:28AM
Hello!

On Wed, Feb 11, 2015 at 06:21:48PM +0000, Dani Bento wrote:

> Hello,
>
> After some research, we simplify our configuration to only have an
> header_filter_by_lua_file 'script.lua' with the following
> code:
>
> ngx.log(ngx.WARN, string.format("enter script"))
> ngx.exit(502)
>
> Making a siege -i -c 100 http://localhost/location we get some of the
> reported upstream_response_time.
>
> To verify if this could be some type of concurrency problem we put a
> ngx.sleep(0.001) before the ngx.exit() call. Apparently, this change
> removed all the wrong times in the upstream_response_time, giving
> always the expected value.
>
> Can be this a problem of the lua-nginx-module? Or some nginx race
> condition?

Yes, it can.

--
Maxim Dounin
http://nginx.org/

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

nginx report a timestamp on upstream_response_time

Dani Bento 946 February 10, 2015 06:56AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 495 February 10, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 465 February 10, 2015 11:10AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 1038 February 10, 2015 12:54PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 467 February 10, 2015 01:12PM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 551 February 11, 2015 10:22AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 477 February 11, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 530 February 11, 2015 01:24PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 542 February 12, 2015 08:28AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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