Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to use client and master socket in keep alive mode #824

Merged
merged 3 commits into from
Jul 31, 2021

Conversation

jcmoraisjr
Copy link
Owner

@jcmoraisjr jcmoraisjr commented Jul 24, 2021

Add option to change from the open/send/close sequence when communicating with client and master sockets to always leave the connection open, or reuse the same connection whenever more than one command should be sent. This improves the communication speed, and also makes the first step on behalf of retrieve data from stopping instances whose listening sockets aren't alive anymore.

Currently the haproxy/utils package is dedicated to utilities related
with client or master socket and to convert its response to a
structured object. The package is being renamed to better reflect its
purpose, which will also be even more specialized with connections in
interactive mode.
Change from the open/send/close sequence when communicating with client
and master sockets to always leave the connection open. This improves
the communication speed, and also makes the first step on behalf of
retrieve data from stopping instances whose listening sockets aren't
alive anymore.
@jcmoraisjr jcmoraisjr changed the title Use client and master socket in keep alive mode Option to use client and master socket in keep alive mode Jul 25, 2021
Add the ability to disable keep alive (prompt mode, interactive) when
creating HAProxySocket. This will be the default to the current/living
instance - if for any reason HAProxy is restart outside the controller,
the established connection with the old instance would be used to send
dynamic updates. This can be improved in the future. The same connection
is still being used if more than one command is sent at the same time,
which happens when enabling and disabling backend servers.
@jcmoraisjr jcmoraisjr merged commit 984bbe3 into master Jul 31, 2021
@jcmoraisjr jcmoraisjr deleted the jm-cli-keep-alive branch July 31, 2021 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant