Skip to content

Hot Standby should check for secondary server upon start#112

Merged
nytamin merged 8 commits intoSofie-Automation:masterfrom
bbc:fix/hot-standby-check-init-on-secondary
Apr 14, 2025
Merged

Hot Standby should check for secondary server upon start#112
nytamin merged 8 commits intoSofie-Automation:masterfrom
bbc:fix/hot-standby-check-init-on-secondary

Conversation

@olzzon
Copy link
Copy Markdown
Contributor

@olzzon olzzon commented Apr 10, 2025

About the Contributor

This fix is made on behalf of BBC

Type of Contribution

Bug fix for hotStandby

Current Behavior

When starting the mos-gateway and only the secondary server was online, it would report BAD primary connection

New Behavior

openMediaHotStandby state are now parsed to the connection logic and an isConnected has been added for primary check when in hotStandby. Heartbeat is still the primary test for non-hotStandby setups.

A mos-dummy-device has been added as a package. This has been used for reatime failover testing and debugging, and has been added for future needs. It has been noted in it's README.md that it's not intended to replaces quickMOS

Testing Instructions

Other Information

Status

  • PR is ready to be reviewed.
  • The functionality has been tested by the author.
  • Relevant unit tests has been added / updated.
  • Relevant documentation (code comments, system documentation) has been added / updated.

@nytamin nytamin self-requested a review April 14, 2025 06:11
@nytamin nytamin merged commit d3c2e74 into Sofie-Automation:master Apr 14, 2025
1 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants