Book Image

Wildfly Cookbook

Book Image

Wildfly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Balancing WildFly using auto advertising – UDP


In this recipe, we will learn how to balance two WildFly nodes running in the standalone mode. Default mod_cluster settings provide auto advertising as enabled, using a multicast address. Furthermore, in this recipe we will use a cluster configuration also to provide a better test feeling. If you need more information about clustering with WildFly, read Chapter 6, Clustering WildFly.

The entire WildFly configuration used for this recipe will not relay on any previous one. On the contrary, we assume that the Apache HTTPD installation and configuration are based on the first two recipes of this chapter.

Getting ready

For this recipe, we will need an application named balancing-test, that you can find in my GitHub repository. If you skipped the Managing applications using the deployments folder recipe in Chapter 2, Running WildFly in Standalone Mode, please refer to it to download all the source code and projects that you will need.

To build the application...