2d92183c6f
CHANGES: 1. SOURCE IMPROVED CALCULATOR LIBRARY - Added source statement for php-calculator-improved.sh - Makes all improved calculation functions available 2. UPDATE DOMAIN ANALYSIS DISPLAY - Now shows BOTH improved and legacy algorithm results - Displays side-by-side comparison of recommendations - Shows memory savings/safety improvements - Color-coded to show which is recommended 3. ENHANCED OPTIMIZATION SECTION - Updated to use improved_max_children instead of legacy - Applies traffic-aware recommendations immediately - Shows detailed reasoning for recommendations 4. IMPROVED CHECK_SERVER_MEMORY_CAPACITY FUNCTION - Now uses improved algorithm for recommendations - Shows pm mode selection (STATIC/DYNAMIC/ONDEMAND) - Recommends min/max spare server settings - Displays comparative analysis vs legacy IMPACT: Users analyzing single domains now get: - Memory-based max_children with dynamic system reserve - Traffic-based max_children from 7-day access logs - PM mode recommendation (STATIC/DYNAMIC/ONDEMAND) - min_spare_servers and max_spare_servers suggestions - Detailed reasoning for recommendations When applying optimizations: - Uses improved algorithm (traffic-aware, MySQL-aware) - Falls back safely if analysis data unavailable - Better memory efficiency across all server sizes BACKWARD COMPATIBLE: - Old calculation functions still available as reference - Can display legacy recommendations for comparison - No breaking changes to existing code Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>