Adding a mod_cluster proxy to JBoss dynamically at runtime

Solution Verified - Updated -

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x
  • mod_cluster

Issue

  • Is there any way to add a new httpd server to the mod_cluster proxy list without restart?
  • How can we have Jboss pick up a new mod_cluster proxy dynamically at run time?

Resolution

  • Use advertise. JBoss will automatically detect any new httpd server this way.
  • Use the following CLI command in standalone mode to add a proxy without restart:
#EAP 6  
/subsystem=modcluster:add-proxy(localhost:6666)
#EAP 7
/subsystem=modcluster:add-proxy(host=localhost,port=6666)

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments