Class HashBasedRouterPolicy

All Implemented Interfaces:
ConfigurableFederationPolicy, FederationRouterPolicy

public class HashBasedRouterPolicy extends AbstractRouterPolicy
This FederationRouterPolicy pick a subcluster based on the hash of the job's queue name. Useful to provide a default behavior when too many queues exist in a system. This also ensures that all jobs belonging to a queue are mapped to the same sub-cluster (likely help with locality).