Welcome! Log In Create A New Profile

Advanced

Re: Cannot totally switch off caching

Alexander Kunz
July 02, 2013 09:08AM
Hello,

Am 02.07.2013 14:37, schrieb imanenkov:
> Maxim Dounin Wrote:
>> If you want to change nginx configuration - just add
>> $upstream_cache_status variable to a log, it will show if a
>> response was from nginx cache (HIT) or was requested from a
>> backend.
>>
>> Other upstream-related variables may be interesting too, in
>> particular $upstream_response_time. See here for more:
>
> I add new log_format in /etc/nginx/nginx.conf:
> log_format main '$remote_addr - $remore_user, $upstream_cache_status :
> $upstream_response_time'
>
> and assign this formatter to access.log.
>
> On several times running on "caches/fast" site output is:
> 192.168.111.254 - -, - : 0.090
> 192.168.111.254 - -, - : 0.044
> 192.168.111.254 - -, - : 0.054
> 192.168.111.254 - -, - : 0.057
> 192.168.111.254 - -, - : 0.047
> 192.168.111.254 - -, - : 0.049
> 192.168.111.254 - -, - : 0.053
>
> wait some time (~2 mins), run again, and another string:
> 192.168.111.254 - -, - : 23.998
>

do you use a PHP framework? Most frameworks can cache also. What happens
if you request the page with a unique parameter which is not used by
PHP? Somethink like a random value at the end of your url
test.php?random=xxxxx

What happens on your page/script generally? 24 seconds is a long time.
Are you querying a database? Or filesystem operations? Perhaps it can
help you commenting out step by step in your PHP page/script.

What kind of sotware do you use for this load test? Is this
"192.168.111.254" your localhost? Or is it possible that there is a
proxy between your test server and load generator which is not bypassed?

It's not a nginx caching result.

Kind regrads

Alexander



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

Cannot totally switch off caching

imanenkov July 01, 2013 04:33AM

Re: Cannot totally switch off caching

Maxim Dounin July 01, 2013 08:00AM

Re: Cannot totally switch off caching

Igor Sverkos July 01, 2013 08:30AM

Re: Cannot totally switch off caching

imanenkov July 01, 2013 08:32AM

Re: Cannot totally switch off caching

Maxim Dounin July 01, 2013 12:38PM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 02:08AM

Re: Cannot totally switch off caching

Maxim Dounin July 02, 2013 06:50AM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 07:49AM

Re: Cannot totally switch off caching

Maxim Dounin July 02, 2013 08:28AM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 08:37AM

Re: Cannot totally switch off caching

Maxim Dounin July 02, 2013 08:58AM

Re: Cannot totally switch off caching

Alexander Kunz July 02, 2013 09:08AM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 09:46AM

Re: Cannot totally switch off caching

Alexander Kunz July 02, 2013 11:06AM

Re: Cannot totally switch off caching

imanenkov July 03, 2013 02:50AM

Re: Cannot totally switch off caching

Alexander Kunz July 03, 2013 02:54AM

Re: Cannot totally switch off caching

Alexander Kunz July 01, 2013 08:48AM

Re: Cannot totally switch off caching

Ben Johnson July 01, 2013 09:06AM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 01:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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