Welcome! Log In Create A New Profile

Advanced

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

Maxim Dounin
October 03, 2013 01:14PM
Hello!

On Thu, Oct 03, 2013 at 12:34:20PM -0400, ddutra wrote:

[...]

> Scenario three - The same page, saved as .html and server by nginx
>
> Transactions: 1799 hits
> Availability: 100.00 %
> Elapsed time: 120.00 secs
> Data transferred: 25.33 MB
> Response time: 2.65 secs
> Transaction rate: 14.99 trans/sec
> Throughput: 0.21 MB/sec
> Concurrency: 39.66
> Successful transactions: 1799
> Failed transactions: 0
> Longest transaction: 5.21
> Shortest transaction: 1.30
>
>
> Here is the main question. This is a huge difference. I mean, AFAIK serving
> from cache is supposed to be as fast as serving a static .html file, right?
> I mean - nginx sees that there is a cache rule for location and sees that
> there is a cached version, serves it. Why so much difference?

The 15 requests per second for a static file looks utterly slow,
and first of all you may want to find out what's a limiting factor
in this case. This will likely help to answer the question "why
the difference".

From what was previously reported here - communication with EC2
via external ip address may be very slow, and using 127.0.0.1
instead used to help.

--
Maxim Dounin
http://nginx.org/en/donation.html

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

Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

ddutra October 03, 2013 12:34PM

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

Maxim Dounin October 03, 2013 01:14PM

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

ddutra October 03, 2013 03:00PM

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

Maxim Dounin October 04, 2013 08:06AM

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

ddutra October 04, 2013 09:43AM

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

ddutra October 04, 2013 09:52AM

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

Maxim Dounin October 04, 2013 11:12AM

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

ddutra October 04, 2013 12:52PM

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

Maxim Dounin October 04, 2013 01:46PM

Re: Nginx Fastcgi_cache performance - Disk cached VS tmpfs cached VS serving static file

ddutra October 04, 2013 01:43PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 105
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready