Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #23733

Re: Remote "watchdog"s

From Don Y <blockedofcourse@foo.invalid>
Newsgroups comp.arch.embedded
Subject Re: Remote "watchdog"s
Date 2016-04-21 09:33 -0700
Organization A noiseless patient Spider
Message-ID <nfav7i$o4$1@dont-email.me> (permalink)
References <nf8moq$khq$1@dont-email.me> <n5kghbld2jtaihaqb0mf4gv7j3hch7se5m@4ax.com> <gvSdnUEY58SIYoXKnZ2dnUU7-fGdnZ2d@giganews.com>

Show all headers | View raw


On 4/21/2016 9:25 AM, Tim Wescott wrote:
> On Wed, 20 Apr 2016 23:19:19 -0500, Robert Wessel wrote:
>
>> On Wed, 20 Apr 2016 12:57:06 -0700, Don Y <blockedofcourse@foo.invalid>
>> wrote:
>>
>>> I have a distributed system.  As such, it is possible for parts of it to
>>> crash, become unresponsive, suffer hardware failures, etc.
>>>
>>> The "system" as a whole needs a way of coping with these.
>>>
>>> In the normal course of operation, traffic between nodes gives some
>>> reassurance that the nodes involved are "sane".
>>>
>>> OTOH, if a node starts acting wonky, I can invoke recovery protocols
>>> that (in an ideal world) will reset/restart the portions of the node
>>> that appear to be misbehaving (e.g., if traffic to/from one particular
>>> task is "odd", then perhaps that task has gone south;
>>> but, the remainder of the node may be intact.  Or, some I/O that the
>>> wacky task handles is misbehaving and the task is doing its best to make
>>> sense of a broken environment).
>>>
>>> If the node itself gets hosed, then a hardware watchdog on that node
>>> *might* bring it back to nominal operating condition.
>>>
>>> But, I still need a reliable way of making a (remote) node "safe",
>>> "secure", etc.
>>>
>>> I presently deliver PoE to each node and many of them live off that.
>>> So, as a last ditch effort, I can command the switch to remove that and
>>> unceremoniously bring the node down.
>>>
>>> Except for the nodes that *aren't* dependent on that!
>>>
>>> Rather than concoct some other mechanism that might work (less
>>> effectively), perhaps it is easiest to codify this behavior in the
>>> hardware interface spec?
>>> I.e., even if you don't RELY on PoE, you must still *honor* it AS IF you
>>> did!
>>>
>>> In the simplest case, that means treating !PoE as a RESET state.  And,
>>> ensuring that the hardware will remain safe/secure in perpetual reset
>>> (i.e., not expecting RESET to be a *transient* state).
>>>
>>> Of course, the downside is that I now must be able to deliver something
>>> akin to a PoE signal on every port (though I could possibly skimp on the
>>> load carrying capability for many ports?)
>>>
>>> Any holes in this?  Or, better alternatives?
>>
>>
>> There's the obvious solution of using the power from the PoE PSE to
>> drive an enable of some sort to the device's power supply.  Heck use
>> that to energize a relay you've put across the mains input (some way of
>> overriding that at the device would probably be prudent).
>
> I also see a potential issue with motion control -- if a node is
> controlling a motor or some such, you don't necessarily want to cut off
> control at an arbitrary time.
>
> I can envision a scenario where the communications is bollixed but the
> control loop is perking along merrily -- then you shut off power to the
> processor and WHANG! some serious metal hits a stop, and bits get bent or
> fly off.

I don't see any way around that.  How many concurrent failures do
you envision handling?

In your example, the node (doing the motion control) would have to have had
a communication failure *and* its local "watchdog(s)/daemons" would have had
to have NOT detected that failure -- in order to allow for the motion to
continue.

By contrast, in my current approach, even a SINGLE failure could munge
your scenario (the PSE dropping power to the PD "unexpectedly").

As you said, upthread, you can't deal with every condition...

Back to comp.arch.embedded | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-20 12:57 -0700
  Re: Remote "watchdog"s Tim Wescott <seemywebsite@myfooter.really> - 2016-04-20 16:17 -0500
    Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-20 15:30 -0700
      Re: Remote "watchdog"s Tim Wescott <tim@seemywebsite.com> - 2016-04-20 19:27 -0500
        Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-20 17:42 -0700
  Re: Remote "watchdog"s Robert Wessel <robertwessel2@yahoo.com> - 2016-04-20 23:19 -0500
    Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-20 22:10 -0700
      Re: Remote "watchdog"s Robert Wessel <robertwessel2@yahoo.com> - 2016-04-21 22:34 -0500
        Re: Remote "watchdog"s Robert Wessel <robertwessel2@yahoo.com> - 2016-04-21 22:53 -0500
          Re: Remote "watchdog"s lasselangwadtchristensen@gmail.com - 2016-04-22 04:23 -0700
            Re: Remote "watchdog"s Robert Wessel <robertwessel2@yahoo.com> - 2016-04-22 18:47 -0500
              Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-22 17:48 -0700
                Re: Remote "watchdog"s lasselangwadtchristensen@gmail.com - 2016-04-22 18:22 -0700
                Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-22 19:11 -0700
          Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-22 13:35 -0700
            Re: Remote "watchdog"s upsidedown@downunder.com - 2016-04-23 09:29 +0300
              Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-23 00:54 -0700
                Re: Remote "watchdog"s upsidedown@downunder.com - 2016-04-23 13:46 +0300
                Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-23 04:08 -0700
                Re: Remote "watchdog"s upsidedown@downunder.com - 2016-04-23 17:26 +0300
                Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-23 12:59 -0700
                Re: Remote "watchdog"s lasselangwadtchristensen@gmail.com - 2016-04-27 15:25 -0700
                Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-27 15:49 -0700
        Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-21 22:08 -0700
    Re: Remote "watchdog"s Tim Wescott <seemywebsite@myfooter.really> - 2016-04-21 11:25 -0500
      Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-21 09:33 -0700

csiph-web