How To Install mod_qos on CentOS 7

In this tutorial we learn how to install mod_qos on CentOS 7. mod_qos is Quality of service module for Apache

Introduction

In this tutorial we learn how to install mod_qos on CentOS 7.

What is mod_qos

The mod_qos module may be used to determine which requests should be served and which shouldn’t in order to avoid resource over-subscription. The module collects different attributes such as the request URL, HTTP request and response headers, the IP source address, the HTTP response code, history data (based on user session and source IP address), the number of concurrent requests to the server (total or requests having similar attributes), the number of concurrent TCP connections (total or from a single source IP), and so forth. Counteractive measures to enforce the defined rules are blocking, dynamic timeout adjustment, request delay, response throttling, and dropping of TCP connections.

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

Install mod_qos on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install mod_qos

Install mod_qos on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install mod_qos

How To Uninstall mod_qos on CentOS 7

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

sudo dnf remove mod_qos

References

Summary

In this tutorial we learn how to install mod_qos on CentOS 7 using yum and dnf.