]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: Expire entries in bucket info cache
authorAdam C. Emerson <aemerson@redhat.com>
Fri, 17 Nov 2017 22:15:26 +0000 (17:15 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Fri, 5 Jan 2018 15:57:49 +0000 (10:57 -0500)
commitbfd4091f7faf43ebc4eb81c8215e8b3ec2d4a8c4
tree280dce433e8a5d44d2db415ae014c3cc2e1f00fd
parente51e1fa45e6a1740b94b56977bc927d302474f5c
rgw: Expire entries in bucket info cache

To bound the degree to which an RGW instance can go out to lunch if
the watch/notify breaks down, force refresh of any cache entry over a
certain age.

Fifteen minutes by default, and expiration can be turned off entirely.

This is separate from the LRU. The LRU removes entries based on the
last time of access. This expiration patch forces refresh based on the
last time they were updated.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit 4489cb58a15647a31ac0546d70400af5668404cb)
Fixes: http://tracker.ceph.com/issues/22517
src/common/options.cc
src/rgw/rgw_rados.h