twitter/finagle

Dtab alternate not chosen over higher-precedence failing service

開放

#653 建立於 2017年10月4日

 (3 則留言) (0 個反應) (0 位負責人)Scala (1,435 個分叉)batch import
help wanted

倉庫指標

星標
 (8,864 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Expected behavior

Suppose I have a dtab

  /svc => /$/namer/srv1 | /$/namer/srv2

I would expect that if every request issued to srv1 resulted in a failure, requests would start being sent to srv2 instead.

Actual behavior

So long as srv1 can be bound to an address, it receives all the traffic.

Is there any way to make it so that srv1 failures will result in requests being routed to srv2? I want srv1 to get traffic preferentially, and I don't want to rely solely on a namer's active health checks to control that.

貢獻者指南