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

是否支持hash key #15

Open
ericxiong opened this issue Apr 20, 2018 · 2 comments · Fixed by nicholaschiasson/ngx_upstream_jdomain#48
Open

是否支持hash key #15

ericxiong opened this issue Apr 20, 2018 · 2 comments · Fixed by nicholaschiasson/ngx_upstream_jdomain#48

Comments

@ericxiong
Copy link

我的应用场景是在kubernetes集群中使用headless service,myproxy-service能解析出多个ip,并且ip列表可能变化。我希望根据url中的sn参数进行hash,选定server。不知道ngx_upstream_jdomain是否支持这种场景。类似如下配置:

    upstream myproxy {
        hash $arg_sn consistent;

        jdomain myproxy-service 8080;
    }

此外具体的设计有没有相应文档,实现是把解析出来的ip列表以nginx server的形式提供给upstream吗?

@wdaike
Copy link
Owner

wdaike commented Apr 20, 2018 via email

@wdaike
Copy link
Owner

wdaike commented Apr 20, 2018 via email

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

Successfully merging a pull request may close this issue.

2 participants