Skip to content

Instantly share code, notes, and snippets.

View konstantinosbotonakis's full-sized avatar
🌍
The future belongs to those who believe in the beauty of their dreams!

Konstantinos konstantinosbotonakis

🌍
The future belongs to those who believe in the beauty of their dreams!
View GitHub Profile
@konstantinosbotonakis
konstantinosbotonakis / timeout.php
Created April 16, 2024 12:10
Check Timeout on server via PHP
<?php
class TimeoutException extends Exception {}
try {
// Start time
$start = microtime(true);
// Print the full path of the currently executing script
echo "Script loaded from: " . __FILE__ . "<br>\n";
@konstantinosbotonakis
konstantinosbotonakis / HighTrafficServerSettings.md
Created December 7, 2023 19:11 — forked from fschiettecatte/HighTrafficServerSettings.md
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.