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

Add Support for js_balancer like balancer_by_lua_block #696

Open
liaojianxiong opened this issue Feb 27, 2024 · 2 comments
Open

Add Support for js_balancer like balancer_by_lua_block #696

liaojianxiong opened this issue Feb 27, 2024 · 2 comments
Labels

Comments

@liaojianxiong
Copy link

Are there any plans to introduce a js_balancer function akin to balancer_by_lua_block found in the Lua Nginx Module (https://github.com/openresty/lua-nginx-module?tab=readme-ov-file#balancer_by_lua_block)? We rely on balancer_by_lua for dynamically selecting servers. For instance, we utilize server tagging across multiple upstreams and use variables as a switch to avoid selecting servers with specific tags during proxying. This balancer hook is highly beneficial. However, it seems that NJS lacks a comparable hook.

@xeioex
Copy link
Contributor

xeioex commented Feb 28, 2024

Hi @liaojianxiong,

we plan to introduce js_balancer in the future.
Thank you for the feedback. Speaking of priority, we plan to introduce a new JS engine first, before adding new features, like js_balancer.

@xeioex xeioex added the feature label Feb 28, 2024
@liaojianxiong
Copy link
Author

Thanks @xeioex , hope the new JS engine goes smoothly.

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

No branches or pull requests

2 participants