libcluster icon indicating copy to clipboard operation
libcluster copied to clipboard

Accept a list of node_basenames for the DNSPoll strategy

Open Qqwy opened this issue 1 year ago • 1 comments

I would like to give different basenames to the various machines in my (cross-region) cluster, to make it more obvious which node(s) are running in which region.

This will however not work with the DNSPoll strategy because it expects a single node_basename to be configured.

I think it could easily be adapted to support multiple node_basenames, by allowing the node_basename: field to accept a list of binaries (as well as as single binary as it does now).

Qqwy avatar Mar 29 '23 13:03 Qqwy

That's probably fine, if you'd like to put together a PR for that change. The only problem I can see is that you'll need to attempt connecting to each name in the list for every IP returned by the DNS query until you successfully connect. That's probably not a big deal, but something to keep in mind when implementing the change.

bitwalker avatar Jun 22 '23 17:06 bitwalker