37de22241cc8afc827eb6f0ab98471ee95600d54
MAJOR ENHANCEMENT: Three-Constraint Intelligent Model The PHP-FPM optimization now uses a sophisticated three-constraint model to make the MOST INTELLIGENT recommendations possible: CONSTRAINT 1: Memory-Based (What available RAM allows) - Accounts for system reserve and MySQL memory - Limits PHP-FPM to max 60% of total RAM - Uses conservative 20MB per process assumption - Results in realistic max_children values CONSTRAINT 2: Traffic-Based (What actual usage patterns suggest) - Analyzes peak concurrent requests from access logs - Considers traffic stability (unstable/moderate/stable) - Applies appropriate headroom factors (30% for stability) - Caps at realistic traffic-based limits CONSTRAINT 3: Fair Share (Proportional allocation based on traffic) - Calculates server's total PHP-FPM capacity - Allocates to each domain based on its traffic percentage - High-traffic sites get more capacity, low-traffic get less - Prevents single domain from monopolizing resources FINAL RECOMMENDATION = MIN(Memory, Traffic, Fair Share) This ensures: - ✅ Never exceeds available RAM - ✅ Never exceeds realistic traffic needs - ✅ Fair distribution across domains - ✅ Maximum capacity utilization - ✅ Safe for shared hosting environments NEW FUNCTIONS: - calculate_server_capacity() - Total server PHP-FPM capacity - get_domain_traffic_percentage() - Domain's traffic % analysis - calculate_max_children_fair_share() - Fair share allocation - calculate_optimal_php_settings_intelligent() - Three-constraint model BATCH ANALYZER CHANGES: - Step 1: Calculates server capacity once upfront - Step 2: Analyzes domain traffic patterns - Step 3: Uses intelligent three-constraint model for each domain - Output now shows: traffic percentage, limiting factor per domain EXAMPLE ON 8GB SERVER: - Server capacity: 320 max_children total - Site A (70% traffic, 2GB peak): Gets 224 (capped at ~105 by memory) - Site B (30% traffic, 500MB peak): Gets 96 (limited by traffic needs) - Combined total: ~131 max_children ≈ 2.6GB (safe within 4.8GB available) This is production-ready for shared hosting where fair resource distribution and safety are critical.
🧪 Linux Server Toolkit - DEV Branch
STATUS: 🚀 Development & Testing Branch (Separate from Production)
This is the
devbranch for testing, development, and experimentation. Changes here are isolated from production and can be safely tested before merging to main.
🚀 Quick Start
One command - pulls dev branch with YELLOW ⚠️ BETA banner:
curl -sL https://git.mull.lol/cschantz/Linux-Server-Management-Toolkit/archive/dev.tar.gz | tar xz && source linux-server-management-toolkit/run.sh
When exiting (option 0), answer "yes" and cleanup happens automatically - no extra steps.
📍 Key Differences (Dev vs Production)
| Feature | Dev Branch | Production |
|---|---|---|
| Cache | .sysref.beta |
.sysref |
| Version | 2.1.0-BETA |
2.1.0 |
| Banner | 🟨 Yellow (⚠️) | 🔵 Cyan |
| Git Branch | dev |
main |
| Purpose | Testing & Development | Stable/Production |
📦 Features
Comprehensive multi-panel server management suite supporting cPanel, InterWorx, Plesk, and standalone Apache with:
- 🛡️ Security & Monitoring: Live attack monitor, bot blocker, malware scanner, IP reputation
- 💾 Backup & Recovery: Acronis management, MySQL database restore
- 🌐 Website Diagnostics: Error analysis, WordPress tools, Cloudflare detection
- 📧 Email Diagnostics: Mail queue, blacklist checker, SPF/DKIM/DMARC validation
- 📊 Performance Analysis: MySQL optimization, PHP tuning, hardware health, Varnish cache
- 🔍 System Diagnostics: Health checks, loadwatch analysis, bandwidth monitoring
📖 Documentation
For detailed documentation, see the main repository: https://git.mull.lol/cschantz/Linux-Server-Management-Toolkit
Version: 2.1.0-BETA Repository: https://git.mull.lol/cschantz/Linux-Server-Management-Toolkit Branch: dev
Languages
Shell
100%