haproxyを使用したtomcatプロキシ

haproxyを使用したtomcatプロキシ

tomcatプロキシを使用しようとしていますhaproxy。 Tomcatとhaproxyはコンテナgis-webとweb-gatewayにドッキングされています(両方ともdockerブリッジネットワークに追加されています)。

sample.warwebapps内にアプリケーションを追加し、上記tomcatのサンプルアプリケーションを表示できます。host:8080/sample

これはプロキシを実行する HaProxy 構成の一部です。

frontend http-in
    bind 0.0.0.0:80
    mode http
   
        acl IS_SAMPLE path_beg /sample
    use_backend gis_web if IS_SAMPLE

 backend gis_web
    mode http
    server gis_web_srv gis-web maxconn 1000 check port 8080

一度設定すると、私のサンプルアプリケーションはHost:80 / sampleに表示されます。

また、Docker ログに次のエラーが表示されます。

Server gis_web/gis_web_srv is DOWN, reason: Layer4 connection problem, info: "No route to host", check duration: 1001ms.
0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
backend 'gis_web' has no server available!

私は何が間違っていましたか?そのエイリアスがどこかを指している場合、gis_web_srvに関連していますか?

ベストアンサー1

おすすめ記事