diff options
author | Ilya Etingof <etingof@gmail.com> | 2018-11-08 17:32:23 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2018-11-15 08:23:49 +0100 |
commit | 635095406c4ceafc3977cad84322ffe2795867bc (patch) | |
tree | cd2b5e360d4af59b725b33beb998ffa7099725b5 /ironic/conf | |
parent | 74e8101f74d5eec159b614d334563380296ba2e4 (diff) | |
download | ironic-635095406c4ceafc3977cad84322ffe2795867bc.tar.gz |
Reuse Redfish sessions follow up
This commit addresses minor issues found in patch [1].
1. Change-Id: I18ea013fd6e07c98b8c47d95772d3129132cdc53
Change-Id: I749af28a5a9a9e2d95e18b53d5c535b3d2649c01
Diffstat (limited to 'ironic/conf')
-rw-r--r-- | ironic/conf/redfish.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ironic/conf/redfish.py b/ironic/conf/redfish.py index 7b5026bec..aa5751414 100644 --- a/ironic/conf/redfish.py +++ b/ironic/conf/redfish.py @@ -27,7 +27,16 @@ opts = [ min=1, default=4, help=_('Number of seconds to wait between attempts to ' - 'connect to Redfish')) + 'connect to Redfish')), + cfg.IntOpt('connection_cache_size', + min=0, + default=1000, + help=_('Maximum Redfish client connection cache size. ' + 'Redfish driver would strive to reuse authenticated ' + 'BMC connections (obtained through Redfish Session ' + 'Service). This option caps the maximum number of ' + 'connections to maintain. The value of `0` disables ' + 'client connection caching completely.')) ] |