From: Adam C. Emerson Date: Fri, 17 Nov 2017 22:15:26 +0000 (-0500) Subject: rgw: Expire entries in bucket info cache X-Git-Tag: v12.2.3~205^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bfd4091f7faf43ebc4eb81c8215e8b3ec2d4a8c4;p=ceph.git 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 (cherry picked from commit 4489cb58a15647a31ac0546d70400af5668404cb) Fixes: http://tracker.ceph.com/issues/22517 --- diff --git a/src/common/options.cc b/src/common/options.cc index 33f920525888..e190c160cbd1 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5042,6 +5042,26 @@ std::vector