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

加入haproxy之后,如何让 visualizer也能用haproxy进行路由呢? #2

Open
rebornwwp opened this issue Jul 29, 2019 · 0 comments

Comments

@rebornwwp
Copy link

rebornwwp commented Jul 29, 2019

# Configure HAProxy to route requests to swarm nodes on port 8000
backend http_back
    log global
    balance roundrobin
    http-request replace-value Host .* info.cern.ch
    server node4 192.168.99.105:8080 check
    server node1 192.168.99.105:8000 check
    server node2 192.168.99.106:8000 check
    server node3 192.168.99.107:8000 check

我在haproxy的路由规则中加入了node4的路由规则,visualizer的url是http://ip:port这样的形式, 这样和django的url可能存在矛盾,这样,路由的时候,加载的页面将按照路由的顺序交替变化,有啥方法可以解决这样的问题?

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

No branches or pull requests

1 participant