Skip to content

Commit

Permalink
Merge pull request #2 from M6Web/feat/cpu-optimization
Browse files Browse the repository at this point in the history
feat: cpu optimization
  • Loading branch information
tanguyfalconnet authored Jun 15, 2021
2 parents 35c89b3 + c13641f commit 48dbaef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/haproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def __init__(self):
self.optAllServersInFallback = Configuration().get("CLIENT_ALL_SERVERS_IN_FALLBACK_BACKEND")
self.socketPath = Configuration().get("CLIENT_HAPROXY_SOCKET_PATH")
self.backendName = Configuration().get("CLIENT_HAPROXY_BACKEND_NAME")
self.backendServerPort = str(Configuration().get("CLIENT_HAPROXY_BACKEND_SERVER_PORT"))
self.fallbackBackendName = Configuration().get("CLIENT_HAPROXY_FALLBACK_BACKEND_NAME")
self.backendBaseName = Configuration().get("CLIENT_HAPROXY_BACKEND_BASE_NAME")
self.fallbackBackendBaseName = Configuration().get("CLIENT_HAPROXY_FALLBACK_BACKEND_BASE_NAME")
Expand Down Expand Up @@ -101,7 +102,7 @@ def __addServerInBackend(self, server, bckndName, bckndbsName):
bckndName,
bckndbsName + str(server.backendServerID),
server.IPAddress,
str(Configuration().get("CLIENT_HAPROXY_BACKEND_SERVER_PORT"),)
self.backendServerPort
)
)
commands.append(
Expand Down

0 comments on commit 48dbaef

Please sign in to comment.