Resolved multiple critical discovery system issues: ## Discovery System Fixes - Fixed console commands not being discovered on first run - Implemented fallback discovery for empty caches - Added context-aware caching with separate cache keys - Fixed object serialization preventing __PHP_Incomplete_Class ## Cache System Improvements - Smart caching that only caches meaningful results - Separate caches for different execution contexts (console, web, test) - Proper array serialization/deserialization for cache compatibility - Cache hit logging for debugging and monitoring ## Object Serialization Fixes - Fixed DiscoveredAttribute serialization with proper string conversion - Sanitized additional data to prevent object reference issues - Added fallback for corrupted cache entries ## Performance & Reliability - All 69 console commands properly discovered and cached - 534 total discovery items successfully cached and restored - No more __PHP_Incomplete_Class cache corruption - Improved error handling and graceful fallbacks ## Testing & Quality - Fixed code style issues across discovery components - Enhanced logging for better debugging capabilities - Improved cache validation and error recovery Ready for production deployment with stable discovery system. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
65 lines
2.1 KiB
Makefile
65 lines
2.1 KiB
Makefile
# Einfache CDN-Verwaltung mit Make
|
|
|
|
.PHONY: deploy check health purge-cache warm-cache status reload
|
|
|
|
# Standard deployment
|
|
deploy:
|
|
@echo "🚀 Deploying Simple CDN..."
|
|
chmod +x scripts/deploy.sh
|
|
./scripts/deploy.sh
|
|
|
|
# Deployment mit Check-Modus (Dry-Run)
|
|
check:
|
|
@echo "🔍 Checking deployment (dry-run)..."
|
|
ansible-playbook -i inventories/production/hosts.yml playbooks/deploy-simple-cdn.yml --check --diff
|
|
|
|
# Health check aller Nodes
|
|
health:
|
|
@echo "🏥 Checking CDN health..."
|
|
ansible cdn_nodes -i inventories/production/hosts.yml -m uri -a "url=https://{{ inventory_hostname }}/health method=GET"
|
|
|
|
# Cache leeren
|
|
purge-cache:
|
|
@echo "🧹 Purging cache on all nodes..."
|
|
ansible cdn_nodes -i inventories/production/hosts.yml -m shell -a "find /var/cache/nginx/ -type f -delete"
|
|
@echo "✅ Cache purged on all nodes"
|
|
|
|
# Cache warming
|
|
warm-cache:
|
|
@echo "🔥 Warming cache..."
|
|
chmod +x scripts/warm-cache.sh
|
|
./scripts/warm-cache.sh
|
|
|
|
# Status-Report
|
|
status:
|
|
@echo "📊 CDN Status Report..."
|
|
ansible cdn_nodes -i inventories/production/hosts.yml -m shell -a "echo '=== {{ inventory_hostname }} ===' && /usr/local/bin/cdn-monitor && echo ''"
|
|
|
|
# Nginx neuladen
|
|
reload:
|
|
@echo "⚙️ Reloading nginx configuration..."
|
|
ansible cdn_nodes -i inventories/production/hosts.yml -m systemd -a "name=nginx state=reloaded"
|
|
|
|
# SSL-Zertifikate erneuern
|
|
renew-ssl:
|
|
@echo "🔐 Renewing SSL certificates..."
|
|
ansible cdn_nodes -i inventories/production/hosts.yml -m shell -a "certbot renew --quiet"
|
|
|
|
# Interaktive Verwaltung
|
|
manage:
|
|
@echo "🔧 Starting interactive management..."
|
|
ansible-playbook -i inventories/production/hosts.yml playbooks/manage-cdn.yml
|
|
|
|
# Hilfe
|
|
help:
|
|
@echo "📖 Available commands:"
|
|
@echo " make deploy - Deploy CDN"
|
|
@echo " make check - Test deployment (dry-run)"
|
|
@echo " make health - Check all nodes health"
|
|
@echo " make purge-cache - Clear all cache"
|
|
@echo " make warm-cache - Warm cache with popular URLs"
|
|
@echo " make status - Show detailed status"
|
|
@echo " make reload - Reload nginx config"
|
|
@echo " make renew-ssl - Renew SSL certificates"
|
|
@echo " make manage - Interactive management"
|