Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Good news everyone! The Boards.ie Subscription service is live. See here: https://subscriptions.boards.ie/

Clusters

2»

Comments

  • Moderators, Society & Culture Moderators Posts: 9,688 Mod ✭✭✭✭stevenmu


    I don't see why some limited custom form of clustering can't be an option if you're writing your own code for it, and seeing as you are writing your own code it doesn't matter too much what platform you go with.

    The app you write to sit on your 2, or however many, servers would negotiate which server would be master and which would be slave(s). If a new server joins the cluster it would join as a slave and the master would transmit it a fresh copy of all clustered data. You would need some kind of scheme whereby if the master goes down the remaining slaves would detect this and negotiate a new master amongst themselves, possibly all servers could periodically ping each other or the master could periodically send an "I'm still alive" singal to all the slaves.

    The client software would need some kind of scheme for finding the current master, such as broadcasting to the local subnet for a master of a given cluster id. It could then transmit data to the master as needed, the master would then pass the data on to the rest of the cluster. If the master goes down the client would return to scanning the subnet for the new master.

    For bonus points consider a scheme to allow a client use a 'local' master in the case of a cluster spread across multiple offices

    Actually, reading back over that, replication is definitly a more appropriate term than cluster.


Advertisement