lib/failover/base/decision_worker.rb
def make_decision(active_score, passive_score)
      # False, do nothing
      return false if active_score <= passive_score

      # True, do failover
      if active_score > passive_score
        self.do_failover
        return true
      end
    end
# Make decision based on given score
Make decision based on given score
Make decision based on given score
def make_decision(active_score, passive_score)
      return false if active_score <= passive_score
      if active_score > passive_score
        self.do_failover
        return true
      end
    end
def make_decision ( active_score , passive_score ) return false if active_score <= passive_score if active_score > passive_score self . do_failover return true end end
Make decision based on given score
Make decision based on given score
# False, do nothing # True, do failover
active_score
passive_score