Chapter 3. Configure Load Balancing Using Apache and Mod Jk
Total Page:16
File Type:pdf, Size:1020Kb
Red Hat JBoss Web Server 1.0 HTTP Connectors Load Balancing Guide HTTP load balancing for JBoss Enterprise Application Platform and Red Hat JBoss Web Server Edition 1.0.2 Last Updated: 2017-10-19 Red Hat JBoss Web Server 1.0 HTTP Connectors Load Balancing Guide HTTP load balancing for JBoss Enterprise Application Platform and Red Hat JBoss Web Server Edition 1.0.2 Joshua Wulf Red Hat Engineering Content Services [email protected] Samuel Mendenhall Red Hat Global Support Services James Livingston Red Hat Global Support Services Jim Tyrell Red Hat JBoss Solutions Architect Laura Bailey Red Hat, Inc. Engineering Content Services [email protected] Jared Morgan Red Hat, Inc. Engineering Content Services [email protected] ISAPI Section Mandar Joshi Red Hat, Inc. Engineering Content Services [email protected] Patches and bug fixes. Legal Notice Copyright © 2011 Red Hat, Inc. This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux ® is the registered trademark of Linus Torvalds in the United States and other countries. Java ® is a registered trademark of Oracle and/or its affiliates. XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js ® is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract Read this guide to install and configure JBoss Enterprise Application Platform and Red Hat JBoss Web Server HTTP connectors: mod_jk, mod_cluster, ISAPI, and NSAPI. This guide also discusses clustering and load-balancing using these connectors. Table of Contents Table of Contents .P .R . E. F. A. .C .E . .3 . 1. FILE NAME CONVENTIONS 3 .P .A . R. T. .I . A. .P .A . C. .H .E . .T .O . M. .C .A . T. .C . O. N. .N . E. C. .T .O . R. .4 . .C .H . A. P. .T .E .R . .1 .. .O . V. E. .R .V . I.E .W . .5 . .C .H . A. P. .T .E .R . .2 .. .D . O. W. N. L. .O .A . D. A. N. .D . I.N . S. T. .A .L . L. .6 . .C .H . A. P. .T .E .R . .3 .. .C . O. N. .F .I G. .U . R. E. L. O. .A .D . .B .A . L. A. .N . C. I.N . G. U. S. .I N. G. A. .P .A . C. H. .E . A. .N .D . .M . O. .D . _. J. K. .7 . 3.1. CONFIGURE WORKER NODES IN MOD_JK 9 3.2. CONFIGURING JBOSS TO WORK WITH MOD_JK 10 .P .A . R. T. .I I.. .J .B . O. .S .S . .H .T .T . P. .C . O. N. .N . E. C. .T .O . R. .1 .1 . .C .H . A. P. .T .E .R . .4 .. .O . V. E. .R .V . I.E .W . .1 .2 . 4.1. KEY FEATURES 12 4.2. COMPONENTS 12 .C .H . A. P. .T .E .R . .5 .. .I N. .S .T .A . L. L. .P . R. O. .X .Y . .S .E . R. V. .E .R . .C .O . M. .P . O. N. .E .N . T. S. .1 .4 . 5.1. APACHE MODULES 14 5.1.1. mod_manager.so 14 5.1.2. mod_proxy_cluster.so 15 5.1.3. mod_advertise.so 17 5.2. INSTALL PROXY SERVER COMPONENTS 18 .C .H . A. P. .T .E .R . .6 .. .C . O. N. .F .I G. .U . R. E. B. A. .S .I C. P. R. .O . X. Y. S. E. R. .V .E . R. .2 .0 . 6.1. BASIC PROXY CONFIGURATION OVERVIEW 20 6.2. CONFIGURE A LOAD-BALANCING PROXY USING THE HTTP CONNECTOR 20 .C .H . A. P. .T .E .R . .7 .. .I N. .S .T .A . L. L. .N . O. .D .E . .W . I.T .H . .B . A. S. .I C. .C . O. .N .F .I G. .U . R. A. .T .I O. .N . .2 .2 . 7.1. WORKER NODE REQUIREMENTS 22 7.2. INSTALL AND CONFIGURE A WORKER NODE 22 .C .H . A. P. .T .E .R . .8 .. .F .U . R. T. .H .E . R. .S . E. R. .V .E .R . .C . O. .N .F .I G. .U . R. A. .T .I O. .N . .2 .6 . 8.1. APACHE SERVER DIRECTIVES 26 8.1.1..