atom feed4 messages in ru.sysoev.nginxRe: Sync multi nginx (persistent) cac...
FromSent OnAttachments
lennydizzyAug 1, 2011 7:43 pm 
SplitIceAug 1, 2011 8:13 pm 
Igor SysoevAug 1, 2011 9:26 pm 
Akins, BrianAug 2, 2011 7:04 am 
Subject:Re: Sync multi nginx (persistent) caching proxy for one(or more) app server
From:Igor Sysoev (ig@sysoev.ru)
Date:Aug 1, 2011 9:26:26 pm
List:ru.sysoev.nginx

On Mon, Aug 01, 2011 at 10:43:53PM -0400, lennydizzy wrote:

Hi,

I am a newbie Nginx user, so bear with me here ;-)

I want to setup multiple (identical) caching proxy in front of my app server.

Basically - Load balancer - multiple nginx caching proxy - app server(s)

So I have two questions:

1. How do I make the cache persistent (across nginx restart)? Wiki says that keys and metadata are stored in shared memory, does that mean it's not possible to save cache?

The cache is persistent. Keys and metadata are loaded gracefully (I hope) from disk on nginx start.

2. How do I sync the caches on different nginx, so that same URL request does not hit app server multiple times. Can I use something like rsync?

No, currently it's not possible.