RAIN Server Linux VPS

Operations Playbook

A professional split-documentation package for performance tuning, PostgreSQL operations, backup automation, security hardening, Erupe management, and hardened cluster orchestration.

17 scripts
Destructive: 3 · High: 5 · Low: 2 · Medium: 7
Review each page before execution. Several scripts perform service restarts, firewall changes, database writes, or destructive cleanup. Test on staging and keep recovery access available.
01Kernel & Network

1. Sysctl Configuration (Kernel & Network Tuning)

Applies Linux kernel, TCP/IP, filesystem, memory, connection tracking, and NIC offload tuning for high concurrency VPS workloads.

Risk: HighOpen script
02System Maintenance

2. uCareSystem Core (Auto Update Tool)

Installs uCareSystem Core to automate Ubuntu package updates, cleanup unused packages, and remove old kernels.

Risk: MediumOpen script
03Memory

3. Add Swapfile & Zram (Managed Package)

Creates or resizes a disk swapfile and configures ZRAM so small VPS instances handle temporary memory pressure more safely.

Risk: MediumOpen script
04Runtime

4. Install Golang

Installs the latest Go toolchain from go.dev and updates shell profile PATH entries.

Risk: LowOpen script
05Package Cleanup

5. Purge Snapd

Aggressively removes Snap packages, snapd, leftover Snap data, and blocks snapd reinstallation through APT preferences.

Risk: DestructiveOpen script
06Database

6. Install PostgreSQL (Smart Installer)

Installs PostgreSQL from the official PGDG repository and interactively creates a database user and database.

Risk: MediumOpen script
07Database Automation

7. Primary DB Auto Config & Backup

Initializes a primary PostgreSQL data directory, tunes database settings, and provides backup/restore migration flow.

Risk: DestructiveOpen script
08System Limits

8. Apply u-limit 65535

Raises open file limits to 65535 for users and selected systemd services such as PostgreSQL, PgBouncer, and Nginx.

Risk: MediumOpen script
09Storage I/O

9. Increase IOPS Server Performance

Adds noatime and memory writeback tuning to reduce unnecessary disk writes and improve perceived I/O behavior.

Risk: MediumOpen script
10DNS

10. Auto-Detect Interface & Force DNS (Anti-DHCP)

Forces physical interfaces to use Cloudflare or Google DNS through systemd-resolved and persists it with a systemd service.

Risk: MediumOpen script
11Networking Gateway

11. TailScale Gateway

Configures a public VPS as an iptables/Tailscale gateway that forwards selected game/API ports to a private backend node.

Risk: HighOpen script
12Remote Storage

12. rclone GDrive Ubuntu

Installs rclone and writes a Google Drive remote configuration for backup storage.

Risk: HighOpen script
13Backup Automation

13. Auto Backup and Upload to GDrive (Fixed & Secure)

Creates a cron-driven PostgreSQL backup job that uploads compressed custom-format dumps to Google Drive using rclone.

Risk: MediumOpen script
14Security

14. Fail2ban Config

Installs Fail2ban and creates an interactive SSH jail configuration for brute-force protection.

Risk: LowOpen script
15SSH Security

15. Change SSH Port

Changes the SSH listening port, updates nftables and Fail2ban, and offers rollback if new login testing fails.

Risk: DestructiveOpen script
16Erupe Service

16. Setup Erupe Auto-Update & Management Script

Installs Erupe directory registration, update automation, service management shortcuts, logging helpers, and an interactive manager.

Risk: HighOpen script
17Cluster Control Plane

17. Master Orchestration (Cluster Management) v3.0 Hardened

Installs a hardened multi-node orchestration toolkit for RAIN/Erupe clusters with SSH, sync, database, health, audit, and rolling-update workflows.

Risk: HighOpen script