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

Forward plugin: Add dynamic loadbalancing algorithms #6663

Open
hawwwdi opened this issue May 5, 2024 · 0 comments
Open

Forward plugin: Add dynamic loadbalancing algorithms #6663

hawwwdi opened this issue May 5, 2024 · 0 comments

Comments

@hawwwdi
Copy link

hawwwdi commented May 5, 2024

What would you like to be added:
Currently, the forward plugin offers only two static load balancing algorithms: round robin and sequential. I propose the integration of dynamic algorithms, such as load balancing based on the response time of upstream DNS servers.
Why is this needed:
In my setup, I've configured three upstream DNS servers in the forward plugin, utilizing the sequential load balancing algorithm. However, when the latency of upstream server A increases, it impacts the entire Kubernetes cluster by elongating the time taken for name resolution when establishing new connections to certain hosts. I advocate for the inclusion of dynamic load balancing algorithms within the forward plugin to address this issue. Utilizing metrics like ResponseTime - QueryTime or something akin to the coredns_forward_request_duration_seconds metric could facilitate the implementation of a dynamic load balancing strategy. This would mitigate the adverse effects caused by latency spikes in individual upstream servers, ensuring smoother operation of the Kubernetes cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant