MCPcopy Create free account
hub / github.com/apache/cloudstack / checkMaxconn

Function checkMaxconn

systemvm/debian/root/health_checks/haproxy_check.py:23–29  ·  view source on GitHub ↗
(haproxyData, haCfgSections)

Source from the content-addressed store, hash-verified

21
22
23def checkMaxconn(haproxyData, haCfgSections):
24 if "maxconn" in haproxyData and "maxconn" in haCfgSections["global"]:
25 if haproxyData["maxconn"] != haCfgSections["global"]["maxconn"][0].strip():
26 print("global maxconn mismatch occurred")
27 return False
28
29 return True
30
31def checkIdletimeout(haproxyData, haCfgSections):
32 if "idletimeout" not in haproxyData:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected