Failover do Nginx Proxy Manager (HA)
🔁 Failover do NPM (HA)
Section titled “🔁 Failover do NPM (HA)”🎯 Objetivo
Section titled “🎯 Objetivo”Validar que o VIP (192.168.1.20) mantém continuidade de acesso quando o nó primário do NPM (RPi) falha.
✅ Pré-condições
Section titled “✅ Pré-condições”- NPM do NAS sincronizado com o RPi (
/opt/scripts/npm-sync.sh) - DNS interno resolvendo domínios para
192.168.1.20 - keepalived ativo nos dois nós
▶️ Teste padrão
Section titled “▶️ Teste padrão”1. Validar estado inicial
Section titled “1. Validar estado inicial”curl http://192.168.1.20:9080/status.jsoncurl -I https://git.scultetus.dev.brEsperado:
- nó
rpicomoMASTER - resposta HTTP válida sem
502
2. Simular falha do primário
Section titled “2. Simular falha do primário”No RPi:
sudo poweroff3. Validar assunção do NAS
Section titled “3. Validar assunção do NAS”curl http://192.168.1.20:9080/status.jsoncurl -I https://git.scultetus.dev.brEsperado:
- nó
nascomoMASTER - domínio segue acessível
4. Validar retorno
Section titled “4. Validar retorno”Após religar o RPi:
curl http://192.168.1.20:9080/status.jsonEsperado:
- retorno ao estado normal com RPi como
MASTER
✅ Checklist final
Section titled “✅ Checklist final”- VIP responde
- failover ocorre em poucos segundos
- domínio continua acessível durante failover
- retorno ao estado normal ocorreu
- nenhum
502em serviços esperados em HA
⚠️ Limitações operacionais
Section titled “⚠️ Limitações operacionais”- Authelia roda só no RPi (não HA)
- serviços exclusivos do RPi podem falhar mesmo com VIP ativo
- VIP não substitui sincronização de configuração do NPM