Class PooledTierSelectorStrategy

java.lang.Object
org.apache.druid.client.selector.AbstractTierSelectorStrategy
org.apache.druid.client.selector.PooledTierSelectorStrategy
All Implemented Interfaces:
TierSelectorStrategy

public class PooledTierSelectorStrategy extends AbstractTierSelectorStrategy
A TierSelectorStrategy that pools servers with the configured set of priorities from PooledTierSelectorStrategyConfig.getPriorities() and delegates server selection to the configured ServerSelectorStrategy.

Unlike other TierSelectorStrategy like CustomTierSelectorStrategy which has a preference for priority order, this strategy treats all configured priorities equally by combining their servers into a single selection pool and delegates to ServerSelectorStrategy to do the server selection. If no servers match the configured priorities in the pool, an empty server list is returned, which may cause queries to return partial or no data.

Example configuration:

  • druid.broker.select.tier=pooled
  • druid.broker.select.tier.pooled.priorities=[2,1]
  • With this configuration, servers with priority 2 and 1 are pooled together and selection is delegated to the ServerSelectorStrategy. Servers with other priorities are ignored.