Welcome! Log In Create A New Profile

Advanced

Re: Proxy Cache: how much shared memory is "enough"?

December 11, 2012 03:20AM
Seems that I should have read the docs better ;)

Thank you, Maxim.

Regards,
Christian



2012/12/11 Maxim Dounin <mdounin@mdounin.ru>

> Hello!
>
> On Mon, Dec 10, 2012 at 10:37:30PM +0100, Christian Bönning wrote:
>
> > I'm planning to deploy some big websites which will make heavy usage of
> > proxy cacheing (e.g. 1.5 million actively accessed objects in cache). The
> > ratio of plain HTML vs images should be about 50/50 if that does have any
> > impact on the scenario itself. Now the question which came up is how much
> > Shared Memory for such a cache is enough. The docs don't really say very
> > much about that. So may be one of you can give me a hint on how much
> memory
> > is suitable for such a deployment.
>
> Each object in cache uses 128 bytes of memory in keys shared
> memory zone on 64-bit platforms, as outlined on wiki here:
>
> http://wiki.nginx.org/HttpProxyModule#proxy_cache_path
>
> So for 1.5 mln objects you'll need about 200M of memory.
>
> --
> Maxim Dounin
> http://nginx.com/support.html
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy Cache: how much shared memory is "enough"?

hexa December 10, 2012 04:38PM

Re: Proxy Cache: how much shared memory is "enough"?

Maxim Dounin December 11, 2012 03:08AM

Re: Proxy Cache: how much shared memory is "enough"?

hexa December 11, 2012 03:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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