1.6 KiB
1.6 KiB
WEVADS — Runbook
Urgences
Service Down
bash /opt/backups/healthcheck.sh
systemctl restart apache2 # Si Apache
systemctl restart postgresql # Si PostgreSQL
systemctl restart ollama # Si Ollama
Rollback après Déploiement Raté
bash /opt/backups/rollback.sh
# OU: cd /opt/wevads-arsenal && git checkout <commit> -- .
systemctl restart apache2
Disk Full (actuellement 83%)
find /tmp -name "wevads_cache_*" -delete
find /var/log -name "*.log" -mtime +3 -delete
find /opt/backups/old-bak-files/ -mtime +7 -delete
ls -t /opt/backups/adx/*.sql.gz | tail -n +4 | xargs rm -f
ls -t /opt/backups/arsenal/*.tar.gz | tail -n +4 | xargs rm -f
API Ne Répond Plus
curl -v http://localhost:5890/api/<nom>.php
tail -50 /var/log/apache2/error.log
systemctl restart apache2
Opérations Courantes
bash /opt/backups/pre-deploy.sh 'description' # AVANT toute modif
bash /opt/backups/backup.sh # Backup manuel
bash /opt/backups/healthcheck.sh # Healthcheck
Diagnostic Rapide
ss -tlnp | grep -E "5821|5890|8080|5432|11434" # Services
df -h / # Disk
top -bn1 | head -5 # CPU/RAM
tail -20 /var/log/apache2/error.log # Erreurs
Logs Importants
| Log | Emplacement |
|---|---|
| Apache error | /var/log/apache2/error.log |
| Healthcheck | /var/log/healthcheck.log |
| Performance | /var/log/wevads_performance.log |
| Auto-heal | /var/log/wevads_autoheal.log |
| SMTP | /var/log/smtp-monitor.log |
| Backup | /var/log/backup.log |