statbate / docs

MIT License
0 stars 0 forks source link

Statbate is running on the AX102 Hetzner server.
CPU 7950X3D, 128 GB DDR5 ECC, 2 x1.92 TB NVMe (KIOXIA KCD81RUG1T92), 1 GBit/s network.

I am using ext4 file system. Clickhouse and Mariadb work better with noatime

# nano /etc/fstab
UUID=xxx / ext4 defaults,noatime 0 0

# after that you can do a remount or reboot
# mount -o remount,noatime /

# check changes
# mount
/dev/md1 on / type ext4 (rw,noatime)

CPU Scaling Governor. Always use the performance scaling governor.

# let's check
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
schedutil

# now let's change
# apt-get install cpufrequtils
# nano /etc/default/cpufrequtils
ENABLE="true"
GOVERNOR="performance"
MAX_SPEED="0"
MIN_SPEED="0"

# systemctl restart cpufrequtils.service
# and check again
# cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance

After installing OS Debian 11, I need to update and install packages and change config files.

apt-get update
apt-get upgrade
apt-get install htop bwm-ng strace lsof iotop git build-essential screen
  1. Mariadb
  2. ClickHouse
  3. Nginx
  4. PHP
  5. Python
  6. Redis
  7. App
  8. Add cron