Skip to content

Instantly share code, notes, and snippets.

View mrEckendonk's full-sized avatar
🎯
if (drinkCoffee){code();}

Mike van Eckendonk mrEckendonk

🎯
if (drinkCoffee){code();}
View GitHub Profile
@fschiettecatte
fschiettecatte / HighTrafficServerSettings.md
Last active October 30, 2024 09:05
High Traffic Server Settings on RHEL / AlmaLinux / Rocky / EuroLinux / CentOS 8

High Traffic Server Settings on RHEL / AlmaLinux / Rocky / EuroLinux / CentOS 8

I recently did some work to optimize the network configuration of an AlmaLinux 8 based web server that receives a lot of traffic.

Of course these settings also apply to RHEL / Rocky / EuroLinux / CentOS 8 (hereafter referred to as Linux 8.) I think these should also work on RHEL / AlmaLinux / Rocky / EuroLinux 9 as well but I have not yet tested them.

There is a lot of information on the web for this and it distills down to a minimum recommended configuration, and a recommended configuration.

The minimum recommended configuration should be sufficient for servers with less than 10Gb, and the recommended configuration should be sufficient for servers with 10Gb or more.

@xyzulu
xyzulu / enhance_control_backup.sh
Last active May 1, 2025 15:00
Backup Enhance control panel server assets that are needed in the event of a server disaster
#!/bin/bash
##############################################################################
# At the least you will need to set the remote transfer credentials and paths.
# This script will keep 14 days of backups on your destination host.
##############################################################################
TEMP_DIR="/temp"
TIMESTAMP=$(date +%Y%m%d%H%M%S)
ARCHIVE_NAME="$TEMP_DIR/control-backup_$TIMESTAMP.tar.gz"