Design of a Distributed System to Uniquely Assign Identifiers to Each Node
up vote
0
down vote
favorite
Let's say I want to design a distributed system whose only purpose is to assign each running node a unique identifier in some small range (Say, 5-100 nodes into a 10 bit identifier). When a node is added, it should get an unused identifier. We need to support more than 1024 nodes being added then removed, so of course there needs to be some system for releasing identifiers.
From first principles, what techniques would be used to implement a system like this? How would new nodes be added to the system and learn about the others? How could identifiers be released when a node crashes while guaranteeing that no two running nodes have the same identifier? Is it possible to make a system like this fault tolerant?
Is there some method by which I could test ideas I have to see if they actually work in the presence of failure etc?
distributed-system
add a comment |
up vote
0
down vote
favorite
Let's say I want to design a distributed system whose only purpose is to assign each running node a unique identifier in some small range (Say, 5-100 nodes into a 10 bit identifier). When a node is added, it should get an unused identifier. We need to support more than 1024 nodes being added then removed, so of course there needs to be some system for releasing identifiers.
From first principles, what techniques would be used to implement a system like this? How would new nodes be added to the system and learn about the others? How could identifiers be released when a node crashes while guaranteeing that no two running nodes have the same identifier? Is it possible to make a system like this fault tolerant?
Is there some method by which I could test ideas I have to see if they actually work in the presence of failure etc?
distributed-system
You should look into ZooKeeper.
– tk421
Nov 14 at 18:00
The point of this question is not to find an off-the-shelf product, but to learn how to develop one.
– Gavin Wahl
Nov 14 at 22:02
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Let's say I want to design a distributed system whose only purpose is to assign each running node a unique identifier in some small range (Say, 5-100 nodes into a 10 bit identifier). When a node is added, it should get an unused identifier. We need to support more than 1024 nodes being added then removed, so of course there needs to be some system for releasing identifiers.
From first principles, what techniques would be used to implement a system like this? How would new nodes be added to the system and learn about the others? How could identifiers be released when a node crashes while guaranteeing that no two running nodes have the same identifier? Is it possible to make a system like this fault tolerant?
Is there some method by which I could test ideas I have to see if they actually work in the presence of failure etc?
distributed-system
Let's say I want to design a distributed system whose only purpose is to assign each running node a unique identifier in some small range (Say, 5-100 nodes into a 10 bit identifier). When a node is added, it should get an unused identifier. We need to support more than 1024 nodes being added then removed, so of course there needs to be some system for releasing identifiers.
From first principles, what techniques would be used to implement a system like this? How would new nodes be added to the system and learn about the others? How could identifiers be released when a node crashes while guaranteeing that no two running nodes have the same identifier? Is it possible to make a system like this fault tolerant?
Is there some method by which I could test ideas I have to see if they actually work in the presence of failure etc?
distributed-system
distributed-system
asked Nov 14 at 17:24
Gavin Wahl
766519
766519
You should look into ZooKeeper.
– tk421
Nov 14 at 18:00
The point of this question is not to find an off-the-shelf product, but to learn how to develop one.
– Gavin Wahl
Nov 14 at 22:02
add a comment |
You should look into ZooKeeper.
– tk421
Nov 14 at 18:00
The point of this question is not to find an off-the-shelf product, but to learn how to develop one.
– Gavin Wahl
Nov 14 at 22:02
You should look into ZooKeeper.
– tk421
Nov 14 at 18:00
You should look into ZooKeeper.
– tk421
Nov 14 at 18:00
The point of this question is not to find an off-the-shelf product, but to learn how to develop one.
– Gavin Wahl
Nov 14 at 22:02
The point of this question is not to find an off-the-shelf product, but to learn how to develop one.
– Gavin Wahl
Nov 14 at 22:02
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53305683%2fdesign-of-a-distributed-system-to-uniquely-assign-identifiers-to-each-node%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You should look into ZooKeeper.
– tk421
Nov 14 at 18:00
The point of this question is not to find an off-the-shelf product, but to learn how to develop one.
– Gavin Wahl
Nov 14 at 22:02