Can mod_proxy_balancer, mod_jk, and mod_cluster be used together?

Solution Verified - Updated -

Issue

  • We are using httpd as a loadbalancer. We first used mod_proxy_balancer for another application server:
ProxyPreserveHost On
ProxyPass /app balancer://balancer stickysession=JSESSIONID|jsessionid nofailover=On
ProxyPassReverse /app balancer://balancer
<Proxy balancer://balancer>
    BalancerMember http://127.0.0.1:8080/app route=server1
    BalancerMember http://127.0.0.1:8180/app route=server2
</Proxy>
  • Then we added mod_cluster module for our JBoss servers and saw errors like the following:
Module mod_proxy_balancer is loaded it must be removed in order for mod_proxy_cluster to function properly
  • We know that when using mod_cluster, we must comment out the mod_proxy_balancer module of httpd.
  • We want to know how can still keep the function of the previous mod_proxy_balancer configuration?
  • How to use mod_proxy_balancer and mod_cluster together?
  • Which is recommended mod_jk/mod_proxy/mod_cluster to configure JBoss EAP 5 and JBoss EAP 6 together with Apache httpd server?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
  • Red Hat JBoss Enterprise Web Server(EWS)
  • mod_cluster

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content