Book Image

WildFly Configuration, Deployment, and Administration - Second Edition

Book Image

WildFly Configuration, Deployment, and Administration - Second Edition

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

Installing mod_cluster libraries


There are two things to consider when installing and configuring mod_cluster. The first involves the WildFly configuration, and the second involves downloading and installing the mod_cluster libraries to Apache. We will look at WildFly first, as it is preconfigured, and then move on to the installation of mod_cluster.

Bundled in your WildFly installation, you will find the mod_cluster 1.3.0 module. This subsystem is included as part of the clustering configuration in both the standalone-ha.xml and domain.xml configuration files, as follows:

<subsystem xmlns="urn:jboss:domain:modcluster:1.2">
    <mod-cluster-config advertise-socket="modcluster" connector="ajp">
        <dynamic-load-provider>
            <load-metric type="cpu"/>
        </dynamic-load-provider>
    </mod-cluster-config>
</subsystem>

The preceding default configuration references its socket-binding through the advertise-socket element:

<socket-binding...