in our cluster we have Overlord and Coordinator running both on two differnet nodes. So we have Leader and StandBy nodes.
The basic scenario is like following (which normally does not change)
HOST1: Coordinator/Overlord in Leader Mode
HOST2: Coordinator/Overlord in StandBy Mode
From time to time we changing config, restarting nodes, etc. and HOST2 may become the leader.
Calling the console (web-ui) for Coordinator or Overlord with fixed links to HOST1 is not a problem,
because there is a redirect to the Leader-Node HOST2.
But, we also have scripts that submit daily tasks by cron job, where we use HOST1 (hardcoded) and then there
is no redirect. The only thing which happens is NOTHING
My questions are:
Is this really the way how it should work, and we have to check HOSTx:8090/druid/indexer/v1/isLeader in our scripts tho get the leader?
Is there a reason why there is no redirect to leader when submitting task-specs?
What do you think about implementing such a redirect?