Added config value for the interval that the object expirer runs.
Change-Id: I04186fa70c44f9947b1b2fbbc1a4470cbd417625
This commit is contained in:
parent
ca55c00523
commit
35f8bd3703
@ -29,6 +29,10 @@ class ObjectStorageAPIConfig(ConfigSectionInterface):
|
||||
def enabled_features(self):
|
||||
return self.get('enabled_features', self.ALL_FEATURES)
|
||||
|
||||
@property
|
||||
def object_expirer_run_interval(self):
|
||||
return int(self.get('object_expirer_run_interval', '60'))
|
||||
|
||||
@property
|
||||
def default_content_length(self):
|
||||
return self.get('default_content_length')
|
||||
|
@ -29,5 +29,8 @@ password=testing
|
||||
# '__ASK__' can be provided to run all features tests, run no features
|
||||
# tests or ask swift what features are configured and run only those.
|
||||
enabled_features=__NONE__
|
||||
# object_expirer_run_interval - defines the interval that the script which
|
||||
# removes expiring objects runs.
|
||||
# object_expirer_run_interval=60
|
||||
|
||||
tempurl_key_cache_time=60
|
||||
|
Loading…
x
Reference in New Issue
Block a user