Announcement:mod_cluster 1.2.0 is just out!
This release fixes a few bugs (include CVE-2011-4608) and adds a few new features. See changelog for details. Please upgrade to that version ASAP.
Note that you have to add EnableMCPMReceive in a VirtualHost when migrating for previous versions.
Announcement:Webinar on mod_cluster
A webinar is available on mod_cluster. See community.jboss.org/docs/DOC-15629
Overviewmod_cluster is an httpd-based load balancer. Like mod_jk and mod_proxy, mod_cluster uses a communication channel to forward requests from httpd to one of a set of application server nodes. Unlike mod_jk and mod_proxy, mod_cluster leverages an additional connection between the application server nodes and httpd. The application server nodes use this connection to transmit server-side load balance factors and lifecycle events back to httpd via a custom set of HTTP methods, affectionately called the Mod-Cluster Management Protocol (MCMP). This additional feedback channel allows mod_cluster to offer a level of intelligence and granularity not found in other load balancing solutions. Within httpd, mod_cluster is implemented as a set of modules for httpd with mod_proxy enabled. Much of the logic comes from mod_proxy, e.g. mod_proxy_ajp provides all the AJP logic needed by mod_cluster. JBoss already prepares binary packages with httpd and mod_cluster so you can quickly try mod_cluster on the following platforms:
Advantagesmod_cluster boasts the following advantages over other httpd-based load balancers:
The original concepts are described in a wiki. Requirements
Note: httpd-2.2.8+ is already in the bundles, so if you use the bundle you don't need to download Apache httpd. DownloadsDownload the latest mod_cluster release here. The release is comprised of the following artifacts:
Alternatively, you can build from source using the subversion repository: http://anonsvn.jboss.org/repos/mod_cluster/tags/release/
Quick StartIf you want to skip the details and just set up a minimal working installation of mod_cluster, see the Quick Start Guide in the documentation. ConfigurationThere are 2 locations for the configuration:
MigrationMigrating from mod_jk or mod_proxy is fairly straight forward. In general, much of the configuration previously found in httpd.conf is now defined in the application server nodes. SSL supportBoth the request connections between httpd and the application server nodes, and the feedback channel between the nodes and httpd can be secured. The former is achieved via the mod_proxy_https module and a corresponding ssl-enabled HTTP connector in JBoss Web. The latter requires the mod_ssl module and explicit configuration in JBoss AS/Web. Load Balancing Demo ApplicationThe mod_cluster binary distribution for JBoss AS/JBossWeb/Tomcat includes a demo application that helps demonstrate how different server-side scenarios affect the routing of client requests by the load balancer. The demo application is located in the mod_cluster distribution's demo directory. |
Strong cryptography warning
|
Mod_cluster contains mod_ssl, therefore the warning (copied from OpenSSL)
PLEASE REMEMBER THAT EXPORT/IMPORT AND/OR USE OF STRONG CRYPTOGRAPHY SOFTWARE, PROVIDING CRYPTOGRAPHY HOOKS OR EVEN JUST COMMUNICATING TECHNICAL DETAILS ABOUT CRYPTOGRAPHY SOFTWARE IS ILLEGAL IN SOME PARTS OF THE WORLD. SO, WHEN YOU IMPORT THIS PACKAGE TO YOUR COUNTRY, RE-DISTRIBUTE IT FROM THERE OR EVEN JUST EMAIL TECHNICAL SUGGESTIONS OR EVEN SOURCE PATCHES TO THE AUTHOR OR OTHER PEOPLE YOU ARE STRONGLY ADVISED TO PAY CLOSE ATTENTION TO ANY EXPORT/IMPORT AND/OR USE LAWS WHICH APPLY TO YOU. THE AUTHORS OF OPENSSL ARE NOT LIABLE FOR ANY VIOLATIONS YOU MAKE HERE. SO BE CAREFUL, IT IS YOUR RESPONSIBILITY.
|