-
Notifications
You must be signed in to change notification settings - Fork 6
Description
I would like to add an additional Node Status Parameter ID to the specification.
Since the first unused Parameter ID is 9, I thought that would be the proper ID to use.
I will be submitting a pull request to the python-canfix library and Fix-Gateway to support this.
Quorum is used in Fix Gateway to elect a leader gateway. Only the leader should perform actions such as modifying data using the compute plugin or sendind data/commands to other components in the system.
Quorum election is very simple, each Fix Gateway is assigned a nodeid, each node sends it's id as the value in the nodestatus quorum message.
The largest value from all quorum messages that have not become old is the nodeid that becomes the leader.
A global variable in Fix Gateway and the FIXID 'LEADER' is set within each gateway to be True or False. Those values can be used to decide if an action should be performed or not within each gateway.