From 4489cb58a15647a31ac0546d70400af5668404cb 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 --- src/common/options.cc | 22 +++++++++++++++++++++- src/rgw/rgw_rados.h | 18 ++++++++++++++---- 2 files changed, 35 insertions(+), 5 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 0064af6652312..78365c699e007 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -4300,7 +4300,7 @@ std::vector