Merge branch 'master' of https://git.d-popov.com/popov/neuron-tai
This commit is contained in:
@@ -5479,7 +5479,7 @@ class _TrackerHandler(http.server.BaseHTTPRequestHandler):
|
||||
# Prefer a distributed multi-hop route when available. Greedy
|
||||
# _select_route alone would pick a single full-shard node and omit
|
||||
# partial head shards that share the same port on another host.
|
||||
route = max(candidates, key=lambda cand: len(cand.nodes)).nodes
|
||||
route = max(candidates, key=lambda cand: (len(cand.nodes), cand.prior_tps)).nodes
|
||||
error = ""
|
||||
else:
|
||||
route, error = _select_route(
|
||||
|
||||
Reference in New Issue
Block a user