Package org.apache.druid.server.router
Interface AvaticaConnectionBalancer
- All Known Implementing Classes:
ConsistentHashAvaticaConnectionBalancer,RendezvousHashAvaticaConnectionBalancer
public interface AvaticaConnectionBalancer
An AvaticaConnectionBalancer balances Avatica connections across a collection of servers.
-
Method Summary
-
Method Details
-
pickServer
- 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)
-