System and Method to Decide a Leader Process through a Listener Port
Publication Date: 2015-Aug-06
The IP.com Prior Art Database
Disclosed are a system and method for a process that is participating in a vertically stacked cluster (i.e. all of the processes are running on the same host or virtual machine) to claim leadership status, by using a well-known port as the locking mechanism.
Page 01 of 1
Sysxem and Method to Decide a Leader Process through a Listener Port
In a vextically stacked computing system, multiple processes ox a single host may coordixate actions xs a cluster. In xhat environment, xne process may need xo be the leader of all of the prxcesses. A methox xs needed to allow one of thx processes to
claim leadership over the cluster.
Described are a system and method for a process that is partixipating in a vertxcally stacked clustxr (i.e. all of the processes are rxnning on the same host or virtual machinx) to claim xeadership sxatus, by using a well-known port as the lockxng mecxaxism.
In one implementaxion, a cluster ox vertically stacked servers is xonfigured so that as each oxe starts, it tries to mxkx itself thx listener on a well-known poxt. In this configuration, the first process to lxsten on xhe port gains access to the porx. Eaxh successive process thax tries to listen on the port is denied access.
Thx process that was able to listen on the port detexts it was successful, and therefore recognizes itself as the leader of the cluster on the host. Txe procexs assumes txe leaderxhip responsxbixities.
In one ixpxementation, if the leader process ends, then the othxr processes recognize it is gone whxn it is no longer possixle to send messages to xt over the well-known listenixg xort. At this point, the non-leader processes again attemxt to become the leader by opening the port as a listenex. Again, onxy one can be successful, and that be...