Chapter 12. Load Balancing Demonstration
Total Page:16
File Type:pdf, Size:1020Kb
JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide HTTP load-balancing for JBoss Enterprise Application Platform Edition 5.2.0 Last Updated: 2017-10-13 JBoss Enterprise Application Platform 5 HTTP Connectors Load Balancing Guide HTTP load-balancing for JBoss Enterprise Application Platform Edition 5.2.0 Jared Morgan Joshua Wulf Laura Bailey Samuel Mendenhall James Livingston Jim Tyrell Edited by Eva Kopalova Petr Penicka Russell Dickenson Scott Mumford Legal Notice Copyright © 2012 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 the supported HTTP connectors for use with JBoss Enterprise Application Platform and JBoss Enterprise Web Server. This guide covers the Apache Tomcat Connector (mod_jk), JBoss HTTP Connector (mod_cluster), Internet Server API (ISAPI) and Netscape Server API (NSAPI), and discusses clustering and load-balancing with regard to each. 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. (. M. .O . D. ._ .J . K. .) . .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 . H. T. T. .P . .S .E . R. .V . E. .R . .A . N. .D . .M . .O . D. ._ .J . K. .7 . 3.1. CONFIGURE WORKER NODES IN MOD_JK 8 3.2. CONFIGURING JBOSS TO WORK WITH MOD_JK 9 .C .H . A. P. T. .E . R. 4. .T .R . O. U. .B . L. E. .S . H. .O . O. .T . I.N . G. A. .N . D. .O . P. .T .I .M . I.Z . I. N. .G . .M . O. .D . ._ .J .K . 1. 1. 4.1. COMMON PROBLEMS 11 4.2. GENERAL DIAGNOSTICS 17 4.3. GETTING FURTHER HELP 18 .P .A . .R . T. .I .I .. J. B. .O . .S .S . .H . T. .T .P . .C . O. .N . N. E. C. .T . O. .R . .( .M . O. .D . _. C. .L . U. .S .T . E. .R . ). .1 .9 . .C .H . A. P. T. .E . R. 5. O. V. .E .R . V. .I .E .W . 2. .0 . 5.1. KEY FEATURES 20 5.2. COMPONENTS 20 5.3. LIMITATIONS 21 .C .H . A. P. T. .E . R. 6. 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 . 2. .3 . 6.1. APACHE HTTP SERVER MODULES 23 6.1.1. mod_manager.so 23 6.1.2. mod_proxy_cluster.so 25 6.1.3. mod_advertise.so 26 6.2. INSTALL PROXY SERVER COMPONENTS 27 .C .H . A. P. T. .E . R. 7. .. 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. .9 . 7.1. BASIC PROXY CONFIGURATION OVERVIEW 29 7.2. CONFIGURE A LOAD-BALANCING PROXY USING THE HTTP CONNECTOR 29 .C .H . A. P. T. .E . R. 8. .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 . 3. .2 . 8.1. WORKER NODE REQUIREMENTS 32 8.2. INSTALL AND CONFIGURE A WORKER NODE 32 .C .H . A. P. T. .E . R. 9. A. D. .V . A. .N . C. .E.