From ffc55b159459818a720c117936db7fc5488fd519 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 20 May 2019 11:03:26 -0400 Subject: [PATCH] Reduce concurrency to redfish targets Some redfish implementations did not handle a relatively open ended barrage of concurrent requests. Try limitting to 4 concurrent requests to evaluate how the implementations handle it. --- .../confluent/plugins/hardwaremanagement/redfish.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/confluent_server/confluent/plugins/hardwaremanagement/redfish.py b/confluent_server/confluent/plugins/hardwaremanagement/redfish.py index b7c7cc09..5910e331 100644 --- a/confluent_server/confluent/plugins/hardwaremanagement/redfish.py +++ b/confluent_server/confluent/plugins/hardwaremanagement/redfish.py @@ -38,7 +38,6 @@ import traceback if not hasattr(ssl, 'SSLEOFError'): ssl.SSLEOFError = None -_workers = None pci_cache = {} def get_dns_txt(qstring): @@ -153,10 +152,7 @@ def sanitize_invdata(indata): class IpmiCommandWrapper(ipmicommand.Command): def __init__(self, node, cfm, **kwargs): - global _workers - if _workers is None: - _workers = eventlet.greenpool.GreenPool() - kwargs['pool'] = _workers + kwargs['pool'] = eventlet.greenpool.GreenPool(4) self.cfm = cfm self.node = node self._inhealth = False