From: Jeff Mitchell <jeffrey.mitchell@gmail.com>
To: Wido den Hollander <wido@widodh.nl>
Cc: "ceph-devel@vger.kernel.org" <ceph-devel@vger.kernel.org>
Subject: Re: RGW object purging in upstream caches
Date: Tue, 22 Jan 2013 12:15:50 -0500 [thread overview]
Message-ID: <50FEC946.2010802@gmail.com> (raw)
In-Reply-To: <50FEC144.2050304@widodh.nl>
Wido den Hollander wrote:
> Now, when running just one Varnish instance which does loadbalancing
> over multiple RGW instances is not a real problem. When it sees a PUT
> operation it can "purge" (called banning in Varnish) the object from
> it's cache.
>
> When looking at the scenario where you have multiple caches you run into
> the cache-consistency problem. If an object is modified the caches are
> not notified and will continue to serve an outdated object.
>
> Looking at the Last-Modified header is not an option since the cache
> will not contact RGW when serving out of it's cache.
>
> To handle this there has to be some kind of "hook" inside RGW that can
> notify Varnish (or some other cache) when an object changes.
For nginx, it appears there is a well-tested production module that does
this: http://labs.frickle.com/nginx_ngx_cache_purge/ (see the examples
at the end of the README)
--Jeff
next prev parent reply other threads:[~2013-01-22 17:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-22 16:41 RGW object purging in upstream caches Wido den Hollander
2013-01-22 17:15 ` Jeff Mitchell [this message]
2013-05-07 19:45 ` John Nielsen
2013-05-07 22:25 ` Yehuda Sadeh
2013-05-07 23:01 ` John Nielsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50FEC946.2010802@gmail.com \
--to=jeffrey.mitchell@gmail.com \
--cc=ceph-devel@vger.kernel.org \
--cc=wido@widodh.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.