Skip to content
New issue

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

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

Already on GitHub? # to your account

Ensure predictable tcp by sorting endpoints #1003

Merged
merged 1 commit into from
May 28, 2023
Merged

Conversation

jcmoraisjr
Copy link
Owner

Dynamic update code relies on comparing tcp services structs in order to verify whether any tcp service has changed or not, and if so, haproxy need to be restarted. Endpoint list is the only tcp data that might lead to differences in the case the same values are present, but in distinct order. Because of that we're applying a sort in order to generate predictable, hence comparable results.

Dynamic update code relies on comparing tcp services structs in order to
verify whether any tcp service has changed or not, and if so, haproxy
need to be restarted. Endpoint list is the only tcp data that might lead
to differences in the case the same values are present, but in distinct
order. Because of that we're applying a sort in order to generate
predictable, hence comparable results.
@jcmoraisjr
Copy link
Owner Author

#999

@jcmoraisjr jcmoraisjr merged commit 6bce9cf into master May 28, 2023
@jcmoraisjr jcmoraisjr deleted the jm-predictable-tcp branch May 28, 2023 21:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant