Giter Site home page Giter Site logo

preichl / mod_cluster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from modcluster/mod_cluster

0.0 0.0 0.0 5.08 MB

mod_cluster is an intelligent Apache httpd-based load-balancer

Home Page: http://www.jboss.org/mod_cluster

Java 96.76% Batchfile 0.09% Shell 3.15%

mod_cluster's Introduction

mod_cluster

Project mod_cluster is a httpd-based load-balancer. It 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 to transmit server-side load-balance factors and lifecycle events back to httpd. This additional feedback channel allows mod_cluster to offer a level of intelligence and granularity not found in other load-balancing solutions.

Mod_cluster boasts the following advantages over other httpd-based load-balancers:

  • Dynamic configuration of httpd workers
  • Server-side load balance factor calculation
  • Fine grained web-app lifecycle control
  • AJP is optional

http://www.jboss.org/mod_cluster

Installation

JBoss AS 7/WildFly 8+

These versions already ship with bundled mod_cluster. It is configured via mod_cluster subsystem.

JBoss AS 6

This is the first version of AS that bundled mod_cluster, the configuration is located in /server/<profile>/deploy/mod_cluster.sar/META-INF directory.

JBoss Web / Tomcat

The tar.gz from the assembly contains the JBossWeb-Tomcat.

  1. Extract the JBossWeb-Tomcat directory.
  2. Copy the JAR files from JBossWeb-Tomcat/lib to the Tomcat lib.
  3. Remove the mod_cluster-container-tomcat(n).jar that don't correspond to the Tomcat version you are using.
  4. Copy the JBossWeb-Tomcat/lib/jboss-logging-jdk.jar and JBossWeb-Tomcat/lib/jboss-logging-spi.jar dependency jars into the same lib directory.
  5. Modify server.xml within the conf directory and add a non-cluster mode engine listener as documented here.

Project Structure

core
container
  spi (contains no dependencies on a specific web container)
  tomcat (base for Tomcat container implementations, based on Tomcat 7.0)
  tomcat8 (Tomcat 8.0 container implementation)
  tomcat85 (Tomcat 8.5 and 9.0 milestone container implementation)
demo
  client
  server

Building

Servlet Container Modules

Before building, ensure you have Maven version 3.0 or newer (mvn -version) and JDK 6.0 or newer (java -version). It is possible to build modules for all containers:

mvn install

Distribution package:

mvn -P dist package

Dynamic load-balancing demo is located in the /demo directory:

mvn install

License

This software is distributed under the terms of the GNU Lesser General Public License (see lgpl.txt).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.