That's right.
manager = HelixManagerFactory.getZKHelixManager(clusterName, instanceName,
InstanceType.SPECTATOR, zkAddr);
zkAddress = zkAddr;
helixClusterName = clusterName;
manager.connect();
routingTableProvider = new RoutingTableProvider();
manager.addExternalViewChangeListener(routingTableProvider);
to route
instances = routingTable.getInstances(resourceName, partionName,
state);// state can be MASTER in your case
On Tue, Oct 2, 2018 at 5:51 AM Rob McKinnon <[email protected]> wrote:
> Lets say that I have a cluster of 5 nodes with 10 partitions and I have an
> http request that needs to get data from a specific partition. What is the
> pattern to make sure requests are routed to the correct node, in this case
> a node that is the master of that particular partition?
>
> Regards,
>
> Rob
>