From bfd4091f7faf43ebc4eb81c8215e8b3ec2d4a8c4 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Fri, 17 Nov 2017 17:15:26 -0500 Subject: [PATCH] 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 --- src/common/options.cc | 20 ++++++++++++++++++++ src/rgw/rgw_rados.h | 18 ++++++++++++++---- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 33f92052588..e190c160cbd 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -5042,6 +5042,26 @@ std::vector