dynamic_modules: add a method to get host health by address#43769
dynamic_modules: add a method to get host health by address#43769agrawroh merged 1 commit intoenvoyproxy:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a new capability to the Envoy Dynamic Module load balancer, allowing modules to efficiently retrieve the health status of a host by its network address. This enhancement provides an O(1) lookup mechanism, significantly improving performance for dynamic modules that require quick access to host health information without iterating through all hosts. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new ABI function envoy_dynamic_module_callback_lb_get_host_health_by_address to allow dynamic modules to efficiently query a host's health status by its address. This is a useful performance improvement, avoiding the need for modules to iterate over all hosts. The changes span the C ABI header, the Rust SDK, the C++ implementation, and associated tests. The implementation is well-tested, covering success, failure, and null input cases. I have one suggestion to refactor the C++ implementation for improved readability and maintainability.
Note: Security Review did not run due to the size of the PR.
Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
…xy#43769) ## Description This PR adds a method to get the host health by address in the LB Dynamic Module. --- **Commit Message:** dynamic_modules: add a method to get host health by address **Additional Description:** Adds a method to get the host health by address in the LB Dynamic Module. **Risk Level:** Low **Testing:** Added Tests **Docs Changes:** Added **Release Notes:** N/A Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com> Signed-off-by: bjmask <11672696+bjmask@users.noreply.github.com>
…xy#43769) ## Description This PR adds a method to get the host health by address in the LB Dynamic Module. --- **Commit Message:** dynamic_modules: add a method to get host health by address **Additional Description:** Adds a method to get the host health by address in the LB Dynamic Module. **Risk Level:** Low **Testing:** Added Tests **Docs Changes:** Added **Release Notes:** N/A Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
…xy#43769) ## Description This PR adds a method to get the host health by address in the LB Dynamic Module. --- **Commit Message:** dynamic_modules: add a method to get host health by address **Additional Description:** Adds a method to get the host health by address in the LB Dynamic Module. **Risk Level:** Low **Testing:** Added Tests **Docs Changes:** Added **Release Notes:** N/A Signed-off-by: Rohit Agrawal <rohit.agrawal@databricks.com>
Description
This PR adds a method to get the host health by address in the LB Dynamic Module.
Commit Message: dynamic_modules: add a method to get host health by address
Additional Description: Adds a method to get the host health by address in the LB Dynamic Module.
Risk Level: Low
Testing: Added Tests
Docs Changes: Added
Release Notes: N/A