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 a list of available balancers – TCP


In this recipe, we will learn how to balance two WildFly nodes running in the standalone mode, using TCP balancing. Instead of sending information messages to a multicast address, the WildFly mod_cluster sends everything directly to Apache.

Furthermore, in this recipe we will also use a cluster configuration, to provide a better test feeling. If you need more information about clustering with WildFly, refer to Chapter 5, Managing the Datasource Subsystems with the CLI. By the way, the entire WildFly configuration used for this recipe will not relay on any previous one. On the contrary, we assume that 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...