-
1. Re: mod_cluster with tomcat 9
jfclere Dec 10, 2018 5:39 AM (in response to exbalar)1 of 1 people found this helpfulyou have to use master or 1.4.x the tc-8.5.x and tc-9.0.x mod_cluster jars are compatible.
-
2. Re: mod_cluster with tomcat 9
exbalar Dec 10, 2018 7:26 AM (in response to jfclere)yes, as you said. its working fine with 8.5 jars . also can you please help me to define balancer configuration like worker.properties , urlmapping.properties and proxy url config in mod_cluster.conf ? im migrating from mod_proxy to mod_cluster with ajp connector.
i have many clusters of balancers in my current configuration differentiated by URLs, ports .
below is my current config with mod_proxy, i need to migrate to mod_cluster with same not changing the load distribution, if i use the same, what is the use of workers.properties file and if backend server detects the httpd on its own then
how to guarantee the load distribution as defined in mod_proxy?
should i define many virtual hosts ? for each cluster defined here?
should i use the same below configuration along with mod_cluster ? still mod_cluster checks the tomcat's and particular context's load ?
<Proxy balancer://wsiservices>
BalancerMember http://127.0.0.1:8011/xyz/view/services retry=60 route=localhost.8011
BalancerMember http://127.0.0.1:8012/xyz/view/services retry=60 route=localhost.8012
BalancerMember http://127.0.0.1:8021/abc/view/services retry=60 route=localhost.8021
BalancerMember http://127.0.0.1:8022/abc/view/services retry=60 route=localhost.8022
BalancerMember http://127.0.0.1:8023/abc/view/services retry=60 route=localhost.8023
BalancerMember http://127.0.0.1:8024/abc/view/services retry=60 route=localhost.8024
BalancerMember http://127.0.0.1:8025/abc/view/services retry=60 route=localhost.8025
ProxySet stickysession=JSESSIONID
ProxySet lbmethod=bybusyness
</Proxy>
ProxyPass /abc/view/services balancer://wsiservices
ProxyPassReverse /abc/view/services balancer://wsiservices
ProxyPass /xyz/view/services balancer://wsiservices
ProxyPassReverse /xyz/view/services balancer://wsiservices
<Proxy balancer://wsiinstances>
BalancerMember http://127.0.0.1:8011/xyz/services/ws_cma3 retry=60 route=localhost.8011
BalancerMember http://127.0.0.1:8012/xyz/services/ws_cma3 retry=60 route=localhost.8012
BalancerMember http://127.0.0.1:8021/abc/services/ws_cma3 retry=60 route=localhost.8021
BalancerMember http://127.0.0.1:8022/abc/services/ws_cma3 retry=60 route=localhost.8022
BalancerMember http://127.0.0.1:8023/abc/services/ws_cma3 retry=60 route=localhost.8023
BalancerMember http://127.0.0.1:8024/abc/services/ws_cma3 retry=60 route=localhost.8024
BalancerMember http://127.0.0.1:8025/abc/services/ws_cma3 retry=60 route=localhost.8025
ProxySet stickysession=JSESSIONID
ProxySet lbmethod=bybusyness
</Proxy>
ProxyPass /abc/services/ws_cma3 balancer://wsiinstances
ProxyPassReverse /abc/services/ws_cma3 balancer://wsiinstances
ProxyPass /xyz/services/ws_cma3 balancer://wsiinstances
ProxyPassReverse /xyz/services/ws_cma3 balancer://wsiinstances
<Proxy balancer://xyzcluster>
BalancerMember http://127.0.0.1:8011/xyz retry=60 route=localhost.8011
BalancerMember http://127.0.0.1:8012/xyz retry=60 route=localhost.8012
ProxySet stickysession=JSESSIONID
ProxySet lbmethod=bybusyness
</Proxy>
ProxyPass /xyz balancer://xyzcluster
ProxyPassReverse /xyz balancer://xyzcluster
<Proxy balancer://abccluster>
BalancerMember http://127.0.0.1:8021/abc retry=60 route=localhost.8021
BalancerMember http://127.0.0.1:8022/abc retry=60 route=localhost.8022
BalancerMember http://127.0.0.1:8023/abc retry=60 route=localhost.8023
BalancerMember http://127.0.0.1:8024/abc retry=60 route=localhost.8024
BalancerMember http://127.0.0.1:8025/abc retry=60 route=localhost.8025
ProxySet stickysession=JSESSIONID
ProxySet lbmethod=bybusyness
</Proxy>
ProxyPass /abc balancer://abccluster
ProxyPassReverse /abc balancer://abccluster
<Proxy balancer://qrcluster>
BalancerMember http://localhost:8089/qr route=localhost.8089
ProxySet stickysession=JSESSIONID
ProxySet lbmethod=bybusyness
</Proxy>
ProxyPass /qr balancer://qrcluster
ProxyPassReverse /qr balancer://qrcluster