Book Image

WildFly Configuration, Deployment, and Administration

By : Francesco Marchioni, Christopher Adam M Ritchie
Book Image

WildFly Configuration, Deployment, and Administration

By: Francesco Marchioni, Christopher Adam M Ritchie

Overview of this book

Table of Contents (19 chapters)
WildFly Configuration, Deployment, and Administration Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Load-balancing with mod_cluster


The mod_cluster is an HTTP-based load balancer, which, like mod_jk, can be used to forward requests to a set of application server instances. There are several advantages of using mod_cluster over mod_jk or mod_proxy:

  • Dynamic clustering configuration

  • Better load balancing due to the ability to use server-side load metrics

  • Better integration with the application life cycle

  • AJP is optional

When using a standard load balancer, such as mod_jk, you have to provide a static list of nodes that are used to spread load. This process is inconvenient, especially if you want to dynamically add or remove nodes depending on the amount of traffic around your application. In addition to this, using a flat cluster configuration can be tedious and prone to error, especially if you have a high number of nodes in your cluster.

When using mod_cluster, nodes are dynamically added to, or removed from, your cluster. To achieve this, each WildFly server communicates its life cycle state...