diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2021-09-22 15:17:35 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2021-09-22 15:19:24 +0200 |
commit | db4b4c08d9a83778a61e7a9073437b949bc542e2 (patch) | |
tree | c6e8ddb4363709a4c2ee57fce916287b13b548b6 /ironic/conf | |
parent | fe9514f7755ba5971b1d05416c88623adb1d6583 (diff) | |
download | ironic-db4b4c08d9a83778a61e7a9073437b949bc542e2.tar.gz |
Clean up caches periodically
Currently they're only cleaned up on demand, which can lead to
unnecessary disk usage on deployments that are not actively used.
Story: #2008909
Task: #42500
Change-Id: Id5b58d1d1b2bbd2988db7a08d4ccfe2166033147
Diffstat (limited to 'ironic/conf')
-rw-r--r-- | ironic/conf/conductor.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ironic/conf/conductor.py b/ironic/conf/conductor.py index 61d6b3247..f8eb0ff88 100644 --- a/ironic/conf/conductor.py +++ b/ironic/conf/conductor.py @@ -59,6 +59,10 @@ opts = [ min=0, help=_('Interval between checks of orphaned allocations, ' 'in seconds. Set to 0 to disable checks.')), + cfg.IntOpt('cache_clean_up_interval', + default=3600, min=0, + help=_('Interval between cleaning up image caches, in seconds. ' + 'Set to 0 to disable periodic clean-up.')), cfg.IntOpt('deploy_callback_timeout', default=1800, min=0, |