Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Smoke Detector instances can't coordinate without MS

See original GitHub issue

What problem has occurred? What issues has it caused?

MS has been down this morning. All online Smoke Detector instances (iBug, ArtOfCode, teward/Solar Flare, teward/Lunar Eclipse) keep claiming they’re receiving failover signals and starting up. In the past four hours of MS being down, about 26 standby requests have been made in Charcoal HQ (see transcript here and the next time period, ctrl+f for !!/standby).

What would you like to happen/not happen?

Metasmoke instances should coordinate between themselves over chat somehow:

  • which ones are online
  • which one is the primary instance
  • whether the primary instance is healthy and responsive

We should never have two instances of metasmoke running and responding simultaneously, even when MS is down.

We should never have more than one instance running actively (i.e. out of standby). All other instances beyond the primary should be in standby.

We should never have multiple instances repeatedly claiming to have received a failover signal and leaving standby while another instance is already primary and active. This should be maintained even when MS is down.

When no instances are present and healthy and online asserting primacy, other instances should attempt to assert primacy. If multiple assert primacy simultaneously there should be a means to allow them to decide who “wins”: for example, if they all post to Charcoal HQ asserting primacy, the one with the earlier chat message ID wins and becomes the primary, others do not leave standby because they recognise they had a later chat message ID.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

ArtOfCode-commented, Oct 3, 2018

I have a neat little websocket server around somewhere, and plenty of machine space to host it. I’d suggest using that - all instances, including standbys, connect to it, and essentially use it as a relay between themselves to co-ordinate when MS is down.

Undo1commented, Oct 3, 2018

Does sound interesting, though - we already know how to talk and listen to chat, could be neat to make a new room where Smokey talks to itself. Would need to be low volume, but it’d completely remove us from the hosting question for this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Planning & Implementing a Successful Smoke Alarm ... - NFPA
Let's get started! Note: Smoke alarm installation programs, in which firefighters and trained volunteers install smoke alarms and batteries, are not the same...
Read more >
Smoke Alarms and Fire Safety - Ohio Department of Commerce
“Smoke alarms” identify fires through the detection of smoke using various technologies, as contrasted with devices that detect the presence of heat or ......
Read more >
Aspirating Smoke Detection Applications Guide
An Aspirating Smoke Detection (ASD) System utilises an aspirator (fan) to actively draw air into a remote detector, through a sampling pipe network...
Read more >
MS-9600/MS-9600E - Bass United Fire & Security Systems
Smoke detectors cannot be expected to provide adequate warning of fires caused by arson, children playing with matches (especially in bedrooms), smoking in...
Read more >
Ways to Interconnect Smoke and/or CO Alarms - First Alert
There are a few different ways that alarms can interconnect with each other. The technology varies based on the alarm model you've chosen....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found