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

Fix incorrect reload if endpoint list grows #746

Merged
merged 1 commit into from
Mar 8, 2021
Merged

Conversation

jcmoraisjr
Copy link
Owner

Dynamic updates need to check the size of the endpoint list size. Up to now the backend server list cannot dynamically grow, even when using DNS updates. HAProxy Ingress has a list of empty slots to dynamically update endpoints, forcing a reload only when no new empty slots can be found.

Kubernetes' ep based updates always rebalance new endpoints with empty slots so its size is at least as big as the old one, but DNS based only do this if a reload is needed. This update rebalance the new list, so future DNS based dynamic updates can work without needing to reload haproxy.

Dynamic updates need to check the size of the endpoint list size. Up
to now the backend server list cannot dynamically grow, even when using
DNS updates. HAProxy Ingress has a list of empty slots to dynamically
update endpoints, forcing a reload only when no new empty slots can be
found.

Kubernetes' ep based updates always rebalance new endpoints with empty
slots so its size is at least as big as the old one, but DNS based only
do this if a reload is needed. This update rebalance the new list, so
future DNS based dynamic updates can work without needing to reload
haproxy.
@jcmoraisjr
Copy link
Owner Author

#745

@jcmoraisjr jcmoraisjr merged commit 7241e17 into master Mar 8, 2021
@jcmoraisjr jcmoraisjr deleted the jm-fix-dns-ep branch March 8, 2021 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant