Package org.apache.druid.server.router
Class RendezvousHashAvaticaConnectionBalancer
- java.lang.Object
-
- org.apache.druid.server.router.RendezvousHashAvaticaConnectionBalancer
-
- All Implemented Interfaces:
AvaticaConnectionBalancer
public class RendezvousHashAvaticaConnectionBalancer extends Object implements AvaticaConnectionBalancer
-
-
Constructor Summary
Constructors Constructor Description RendezvousHashAvaticaConnectionBalancer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerpickServer(Collection<Server> servers, String connectionId)
-
-
-
Method Detail
-
pickServer
public Server pickServer(Collection<Server> servers, String connectionId)
- Specified by:
pickServerin interfaceAvaticaConnectionBalancer- Parameters:
servers- Servers to balance acrossconnectionId- Connection ID to be balanced- Returns:
- Server that connectionId should be assigned to. The process for choosing a server must be deterministic and sticky (with a fixed set of servers, the same connectionId should always be assigned to the same server)
-
-