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 957 February 10, 2015 06:56AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 501 February 10, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 471 February 10, 2015 11:10AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 1048 February 10, 2015 12:54PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 472 February 10, 2015 01:12PM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 561 February 11, 2015 10:22AM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 486 February 11, 2015 10:28AM

Re: nginx report a timestamp on upstream_response_time

Dani Bento 539 February 11, 2015 01:24PM

Re: nginx report a timestamp on upstream_response_time

Maxim Dounin 554 February 12, 2015 08:28AM



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

Online Users

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