refactor : update routing strategy
Fix failover logic.