Reputation: 125
How can we assign a unique ID to each node/instance of an application in a distributed environment?
Upvotes: 1
Views: 152
Reputation: 718678
You could potentially use any of the following:
Presumably, you store each node's id in the persistent state of the node itself so that it can look it up when it restarts. (If not, you could make it the responsibility of the the node launch / relaunch mechanism to tell it.)
Upvotes: 1