How To Install mod_cluster on Fedora 34

mod_cluster is Apache HTTP Server dynamic load balancer with Wildfly and Tomcat libraries

Introduction

In this tutorial we learn how to install mod_cluster on Fedora 34.

What is mod_cluster

Mod_cluster is an httpd-based load balancer. Like mod_jk and mod_proxy, mod_cluster 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. The application server nodes use this connection to transmit server-side load balance factors and lifecycle events back to httpd via a custom set of HTTP methods, affectionately called the Mod-Cluster Management Protocol (MCMP). This additional feedback channel allows mod_cluster to offer a level of intelligence and granularity not found in other load balancing solutions.

We can use yum or dnf to install mod_cluster on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mod_cluster.

Install mod_cluster on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install mod_cluster using dnf by running the following command:

sudo dnf -y install mod_cluster

Install mod_cluster on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install mod_cluster using yum by running the following command:

sudo yum -y install mod_cluster

How To Uninstall mod_cluster on Fedora 34

To uninstall only the mod_cluster package we can use the following command:

sudo dnf remove mod_cluster

mod_cluster Package Contents on Fedora 34

/etc/httpd/conf.d/mod_cluster.conf
/usr/lib/.build-id
/usr/lib/.build-id/30
/usr/lib/.build-id/30/495e3526701ffc4f3cfde8670ab42c4f04fb72
/usr/lib/.build-id/87
/usr/lib/.build-id/87/00801d6e409a81e94ec47b542c33530d9d8a98
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/795e524b6a2caabaac6a031a269d79c60b4f49
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/0afa4fd91b707129a369df3e471f18c648718a
/usr/lib64/httpd/modules/mod_advertise.so
/usr/lib64/httpd/modules/mod_cluster_slotmem.so
/usr/lib64/httpd/modules/mod_manager.so
/usr/lib64/httpd/modules/mod_proxy_cluster.so
/usr/share/doc/mod_cluster
/usr/share/doc/mod_cluster/README
/usr/share/licenses/mod_cluster
/usr/share/licenses/mod_cluster/lgpl.txt
/etc/httpd/conf.d/mod_cluster.conf
/usr/lib/.build-id
/usr/lib/.build-id/64
/usr/lib/.build-id/64/b78327ab8f2fea9ee736539446b4e62d5bc4b1
/usr/lib/.build-id/95
/usr/lib/.build-id/95/8bc412617b80a1c8ff4a06ac6b9290ac4f1a88
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/8ee04402743b5eb48f3e51fc0448cd167873b7
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/4f89b6067d47c743223bf6807bc7fb508455c1
/usr/lib64/httpd/modules/mod_advertise.so
/usr/lib64/httpd/modules/mod_cluster_slotmem.so
/usr/lib64/httpd/modules/mod_manager.so
/usr/lib64/httpd/modules/mod_proxy_cluster.so
/usr/share/doc/mod_cluster
/usr/share/doc/mod_cluster/README
/usr/share/licenses/mod_cluster
/usr/share/licenses/mod_cluster/lgpl.txt

References

Summary

In this tutorial we learn how to install mod_cluster on Fedora 34 using yum and dnf.