Provide an option to disable automatic clearing of stale sessions--
which, unless disabled, happens after 2 lifecycle scheduling cycles.
The default behavior is most likely not desired when a debugging or
testing lifecycle processing with rgw_lc_debug_interval is set, and
therefore re-entering a running session after 2 scheduling cycles is
fairly likely.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
- rgw
flags:
- startup
+- name: rgwlc_auto_session_clear
+ type: bool
+ level: advanced
+ desc: Automatically clear stale lifecycle sessions (i.e., after 2 idle processing cycles)
+ default: true
+ services:
+ - rgw
+ with_legacy: true
\ No newline at end of file
bool RGWLC::expired_session(time_t started)
{
+ if (! cct->_conf->rgwlc_auto_session_clear) {
+ return false;
+ }
+
time_t interval = (cct->_conf->rgw_lc_debug_interval > 0)
? cct->_conf->rgw_lc_debug_interval
: 24*60*60;