Runbook — Failover (DNS + Proxy + VIP)
🎯 Objetivo
Section titled “🎯 Objetivo”Restaurar acesso rapidamente seguindo uma ordem única: DNS -> VIP -> Proxy -> Auth -> Backend.
🚨 Sequência operacional padrão
Section titled “🚨 Sequência operacional padrão”1. DNS
Section titled “1. DNS”nslookup git.scultetus.dev.brnslookup git.scultetus.dev.br 192.168.1.11nslookup git.scultetus.dev.br 192.168.1.12Se não resolver corretamente, tratar DNS antes de seguir.
2. VIP
Section titled “2. VIP”ping 192.168.1.20curl http://192.168.1.11:9080/status.jsoncurl http://192.168.1.10:9080/status.jsonSe VIP não estiver saudável, tratar keepalived.
3. Proxy
Section titled “3. Proxy”curl -k -I https://git.scultetus.dev.brdocker exec -it nginx-proxy-manager curl http://SERVICO_INTERNOSe 502, validar backend e sincronização do NPM.
4. Autenticação
Section titled “4. Autenticação”curl -k -I https://auth.scultetus.dev.brcurl http://192.168.1.11:9091/api/healthdocker logs autheliaSe login falhar, validar Authelia no RPi e snippets do NPM.
5. Backend
Section titled “5. Backend”curl -I http://IP_DO_SERVICOSe backend falhar, incidente é do serviço, não do proxy.
✅ Checklist de encerramento
Section titled “✅ Checklist de encerramento”- domínio resolve internamente
- VIP responde e tem apenas um MASTER
- proxy responde sem
502 - autenticação externa funciona
- backend responde diretamente