Update cluster node id

Hello! Is there a way to update the current (master) node’s cluster configuration, by giving only its new ID (e.g after restart), or do I need to rebuild the whole conf string every time?
So instead of doing:
DFLYCLUSTER CONFIG <json_string_here> ?
Is there a
DFLYCLUSTER CONFIG_ID <the_new_ID_HERE>
or sth similar?

Hi, currently you need to rebuild the config with the new id on node restart. We recently merged a PR in which we introduce new flag cluster_node_id so that you can start dragonfly node with a specific id. This will be available in the next dragonfly release 1.16.0

hi thx for your answer. I saw the PR in github, do you think it would be stable to build from the main branch of github for a production setup?

my problem right now is that in a cluster env, when the ID changes, it needs to be propagated to the other nodes’ configuration as well, so even if I programmatically connect to them, I dont have a way to get their current conf so that I can just inject that ID

If you use container you can use our last weekly build, if not I would wait for the next version in about a week. Regarding your say “I dont have a way to get their current conf”, I am not sure why you need such a logic… you need to update all nodes with the same configuration every time there is a new node so you need to build the configuration from scratch and send it to all nodes, therefor you must know the cluster configuration at any point

Thanks for the update. its really helpful this feature is added.
The reason I needed to know the conf was because I have built a script that runs on each node every time dragon restarts, gets the new id and builds upon the existing conf (changing the ID) to send the new config string to all nodes.