You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.
I'm trying to connect to a 3 node cluster, with requireMaster=false, but still all connections seem to be made to the Leader node.
Trying to undersand the code, it seems to me that this part will always select the Leader node if it's available, because the ordering in MemerInfo.state has Leader > Follower
final case class ClusterInfo(serverAddress: InetSocketAddress, members: List[MemberInfo]) {
lazy val bestNode: Option[MemberInfo] = {
val xs = members.filter { x => x.isAlive && x.state.isAllowedToConnect }
if (xs.isEmpty) None else Some(xs.maxBy(_.state))
}
}
we are using eventstore client 7.3.0 and eventstore 5.0.8
The text was updated successfully, but these errors were encountered:
I believe that requireMaster is sent on each request to EventStoreDB(s) - bestNode prefers the leader node regardless of requireMaster - Perhaps @t3hnar can elaborate a bit on that decision.
I'm trying to connect to a 3 node cluster, with requireMaster=false, but still all connections seem to be made to the Leader node.
Trying to undersand the code, it seems to me that this part will always select the Leader node if it's available, because the ordering in MemerInfo.state has Leader > Follower
we are using eventstore client 7.3.0 and eventstore 5.0.8
The text was updated successfully, but these errors were encountered: