mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-25 12:41:39 +00:00
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.
This commit is contained in:
parent
481342340e
commit
ffc55b1594
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user