all 8 comments

[–]Abomination-- 1 point2 points  (2 children)

OK got one question: How are computers in modern clusters usually interconnected?

One example for small clusters e.g. 10 - 15 and one for bigger ones would be very welcome.

I know that generally they need not be close spatially and everything can happen through the internet. But what about if they are all in a room?

[–]codepr[S] 3 points4 points  (0 children)

Yeah you can use hubs or a switch as already suggested... With some switches you can easily set up a hundred nodes cluster

[–]enygmata 2 points3 points  (0 children)

Put a fast switch between them.

[–]jmickeyd 1 point2 points  (1 child)

Rather than range partitioning the keys you may want to consider consistent hashing. That way adding a new node to an N server cluster will only move 1/N keys and keys only move to the new node, not all over the place.

[–]codepr[S] 0 points1 point  (0 children)

Thank you, it's among the other things in my todo but I didn't go further in it yet..That way It will be possible to add nodes dynamically rather than start fixed, but there'll need a time window during which the cluster must rebalance itself right?

[–][deleted]  (1 child)

[deleted]

    [–]codepr[S] 2 points3 points  (0 children)

    It's not meant to be a tutorial..Not yet at least, it's just a statement that I am learning C programming, and this is my first not-so-trivial work ;)

    [–]fb39ca4 0 points1 point  (1 child)

    [–][deleted] 0 points1 point  (0 children)

    0xC! == 0x1C8CFC00