How To Install mcrouter on Fedora 34

mcrouter is Memcached protocol router for scaling memcached deployments

Introduction

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

What is mcrouter

Mcrouter (pronounced mc router) is a memcached protocol router for scaling memcached deployments. Because the routing and feature logic are abstracted from the client in mcrouter deployments, the client may simply communicate with destination hosts through mcrouter over a TCP connection using standard memcached protocol. Typically, little or no client modification is needed to use mcrouter, which was designed to be a drop-in proxy between the client and memcached hosts.

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

Install mcrouter 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 mcrouter using dnf by running the following command:

sudo dnf -y install mcrouter

Install mcrouter 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 mcrouter using yum by running the following command:

sudo yum -y install mcrouter

How To Uninstall mcrouter on Fedora 34

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

sudo dnf remove mcrouter

mcrouter Package Contents on Fedora 34

/usr/bin/mcpiper
/usr/bin/mcrouter
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/c067ad5f55df65cd02f5c8413f0a85bbad824e
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/b69a4532bed9ba37e1ba364345aa80491fc89e
/usr/share/doc/mcrouter
/usr/share/doc/mcrouter/README.md
/usr/share/licenses/mcrouter
/usr/share/licenses/mcrouter/LICENSE
/usr/bin/mcpiper
/usr/bin/mcrouter
/usr/lib/.build-id
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/ba84620ce00e55ab1063278ff60b9a1d757919
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/9513dd5605091ce862a595f5e181337fcf1fb1
/usr/share/doc/mcrouter
/usr/share/doc/mcrouter/README.md
/usr/share/licenses/mcrouter
/usr/share/licenses/mcrouter/LICENSE

References

Summary

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