haproxyを使用できますが、この場合は必要ありません。
nginxを使用します。
複数の竜巻の設定例は次のとおりです。
server {
listen *:80;
server_name myserver.com;
location /data/blahblah {
proxy_pass http://127.0.0.1:3001;
proxy_redirect off;
}
location /news/blahblah {
proxy_pass http://127.0.0.1:4001;
proxy_redirect off;
}
}
そして、haproxyでスケーリングできます...
listen http 0.0.0.0:80
mode http
stats enable
stats refresh 10s
stats hide-version
cookie MYSERVER insert
balance roundrobin
option httpclose
option httpchk OPTIONS /heath.html
option forwardfor
option httplog
option logasap
log global
server MYSERVER 10.0.0.1:80 cookie SERVER1 check
server MYSERVER 10.0.0.2:80 cookie SERVER2 check
server MYSERVER 10.0.0.3:80 cookie SERVER3 check