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


Groups > comp.arch.embedded > #23710 > unrolled thread

Remote "watchdog"s

Started byDon Y <blockedofcourse@foo.invalid>
First post2016-04-20 12:57 -0700
Last post2016-04-21 09:33 -0700
Articles 6 on this page of 26 — 6 participants

Back to article view | Back to comp.arch.embedded


Contents

  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

Page 2 of 2 — ← Prev page 1 [2]


#23759

FromDon Y <blockedofcourse@foo.invalid>
Date2016-04-23 12:59 -0700
Message-ID<nfgk06$6ft$1@dont-email.me>
In reply to#23755
On 4/23/2016 7:26 AM, upsidedown@downunder.com wrote:
>> You've got a "loose thread" on a garment and tugging on it just
>> keeps unraveling the next layer.
>>
>> There's a point at which you say "what is the value of redundancy"
>> compared to the *cost*?
>
> Usually customers with a daily production volume  more than 1 million
> USD/EUR each day require redundant systems. In other cases, when there
> is a risk to human life or there are a risk of ending into CNN main
> news :-), redundant systems are often used.

I've worked in industries where a single machine could produce
greater value per run-time *hour*.  "Redundancy" was not addressed
ON the machines, at all.  Manufacturing was kept "available" by
having spare machines instead of having more RELIABLE machines.

My point is that redundancy adds cost and complexity to a design.

Toilet flappers fail regularly.  Why not incorporate some
redundancy in their design to eliminate/reduce this
possibility?

[toc] | [prev] | [next] | [standalone]


#23791

Fromlasselangwadtchristensen@gmail.com
Date2016-04-27 15:25 -0700
Message-ID<9777402b-4e21-49a6-82f4-89b57e6021e9@googlegroups.com>
In reply to#23759
Den lørdag den 23. april 2016 kl. 21.59.19 UTC+2 skrev Don Y:
> On 4/23/2016 7:26 AM, upsidedown@downunder.com wrote:
> >> You've got a "loose thread" on a garment and tugging on it just
> >> keeps unraveling the next layer.
> >>
> >> There's a point at which you say "what is the value of redundancy"
> >> compared to the *cost*?
> >
> > Usually customers with a daily production volume  more than 1 million
> > USD/EUR each day require redundant systems. In other cases, when there
> > is a risk to human life or there are a risk of ending into CNN main
> > news :-), redundant systems are often used.
> 
> I've worked in industries where a single machine could produce
> greater value per run-time *hour*.  "Redundancy" was not addressed
> ON the machines, at all.  Manufacturing was kept "available" by
> having spare machines instead of having more RELIABLE machines.
> 
> My point is that redundancy adds cost and complexity to a design.
> 

a guy went to work with worked nights at a local paper printing delivery 
list, they had some big IBM monster of a mechanical printer and since failure to print the lists meant no paper delivered they had an expensive "guaranteed 
in a few hours" service   

eventually they just got a row of regular laser printers, as long as few of them worked they could make the lists on time so they didn't need some 
service technician on standby. and buying a new was cheaper than fixing


-Lasse

[toc] | [prev] | [next] | [standalone]


#23792

FromDon Y <blockedofcourse@foo.invalid>
Date2016-04-27 15:49 -0700
Message-ID<nfrfg3$ars$1@dont-email.me>
In reply to#23791
On 4/27/2016 3:25 PM, lasselangwadtchristensen@gmail.com wrote:
> Den lørdag den 23. april 2016 kl. 21.59.19 UTC+2 skrev Don Y:
>> On 4/23/2016 7:26 AM, upsidedown@downunder.com wrote:
>>>> You've got a "loose thread" on a garment and tugging on it just
>>>> keeps unraveling the next layer.
>>>>
>>>> There's a point at which you say "what is the value of redundancy"
>>>> compared to the *cost*?
>>>
>>> Usually customers with a daily production volume  more than 1 million
>>> USD/EUR each day require redundant systems. In other cases, when there
>>> is a risk to human life or there are a risk of ending into CNN main
>>> news :-), redundant systems are often used.
>>
>> I've worked in industries where a single machine could produce
>> greater value per run-time *hour*.  "Redundancy" was not addressed
>> ON the machines, at all.  Manufacturing was kept "available" by
>> having spare machines instead of having more RELIABLE machines.
>>
>> My point is that redundancy adds cost and complexity to a design.
>
> a guy went to work with worked nights at a local paper printing delivery
> list, they had some big IBM monster of a mechanical printer and since failure to print the lists meant no paper delivered they had an expensive "guaranteed
> in a few hours" service
>
> eventually they just got a row of regular laser printers, as long as few of them worked they could make the lists on time so they didn't need some
> service technician on standby. and buying a new was cheaper than fixing

Yeah, which is why I have many PC's.

OTOH, we have exactly ONE furnace in the house, one ACbrrr, one roof,
one set of exterior walls, etc.  we *could* implement redundancy for
each of these things -- at considerable cost and complexity!

Having walls up, heat and a roof overhead goes far beyond the "few
hours service" sort of guarantee!

[toc] | [prev] | [next] | [standalone]


#23737

FromDon Y <blockedofcourse@foo.invalid>
Date2016-04-21 22:08 -0700
Message-ID<nfcbed$eo3$1@dont-email.me>
In reply to#23735
On 4/21/2016 8:34 PM, Robert Wessel wrote:
> On Wed, 20 Apr 2016 22:10:20 -0700, Don Y
> <blockedofcourse@foo.invalid> wrote:
>
>> On 4/20/2016 9:19 PM, Robert Wessel wrote:
>>
>>> 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).
>>
>> If the device is NOT PoE powered, it's probably because it represents a
>> substantial load (25+W?).  I'm not sure it would be prudent to let
>> something remotely disconnect power (and possibly reapply it, moments
>> later) for large loads.
>>
>> OTOH, holding the device "in reset" (possibly indefinitely or even
>> "repeatedly") should be safe(r?)
>
> Presumably this is for cases where the device is so far gone that you
> want to hit the big-red-switch.

The issue is trying to DECIDE that it's time to "pull the plug" and
bring the box to its knees.

It's not easy to know when the failure are seeing represents the failure
of a particular PROCESS that happens to reside on that node at the
present time; or, if the node itself is toast.

[(sigh)  Trying to figure out how little I need to explain to put this
all in adequate context...]

Everything is client-(agent-)server model.  Processes (servers/agents)
export services to other processes (agents/clients) via an IPC mechanism.

Processes can migrate, dynamically, between nodes.  So, a client never
really is assured of where it is executing.  Nor where each of the
services that it is consuming reside!  If the target of an IPC is
"not local" (to "this" node), then it magically becomes an RPC -- with
no notification to the caller.

IPC/RPC's can be synchronous (blocking) or asynchronous (non-blocking).
And, can have timeouts that the RTOS enforces for the caller(s).

The RTOS instance on each node is responsible for the actual IPC/RPC
mechanics -- it enforces access policies, deadlines, marshalling, etc.
So, two processes never talk to each other (even if they co-reside on
the same node!) without at least one instance of the RTOS being involved
(two instances if the target is remote).

The system is up continuously; there is never a "down time".  So, a process
can run on one particular node indefinitely.  Or, get moved around to other
nodes.  Or, can run to its logical completion.  Or, be killed off.  etc.

I *expect* (remotely apparent) failures to manifest along these lines:
    Process A on node 1 issues an RPC to process B on node 2.

    The response comes back (whenever) and is totally wonky.  Process A
    *suspects* process B of being compromised/corrupted/failed/died.

    Some other process on some other node (or node 1) issues a request
    to some other process on node 2 (or, process B!) and gets a similar
    result.

    The RTOS instances on these two sourcing nodes eventually realize
    there appear to be issues with node 2, or process B, or...

    The RTOS instances "notice" if other processes on node 2 are becoming
    "suspect".  If not, then perhaps the problem is local to process B
    and does not involve the entire node.

    (Can the RTOS instances communicate as expected?)

    If the problem appears to be one (or more) processes (on node 2 -- or
    wherever), then the RTOS's try to restart the processes (some processes
    are fault tolerant so restarting is effectively RESUMING).  At the
    extreme, the RTOS can implement an effective "warm reset".

    Note that this problem may persist.  It could be a latent bug in process
    B.  Or, something wonky with its I/O's.  Or, the region of physical
    memory that it is executing out of, etc.

    If the problem appears to apply to ALL processes on node 2 AND the
    RTOS instance on that node is similarly off-line, then the node is
    effectively isolated -- there is nothing that can be done "from outside"
    to regain its proper operation short of a hardware reset.

    On PD's, that happens when the PSE drops power to the node.  When power
    is reapplied, the node executes its POST, reports its progress and
    goes looking for a boot image.  It can either be rebooted as per normal
    *or* an "interactive" (in the sense that the rest of the system can
    interact with the Dx tool) diagnostic loaded.

    On nodes that are *not* PD's, I need a mechanism to implement the
    equivalent functionality.

If the node is found to be faulty, the processes that were running on
it can be redispatched to other node(s) and the faulted node taken
out of service and marked as unavailable.  Of course, any physical I/O's
that were present on the physical device are no longer available.
And, anything that relied on those I/O's is similarly ineligible to
execute.  (And, anything that relied on the services provided by those
things... etc.)

So, if a node was just being used for its compute resources (surplus
MIPS and bytes), the user is not typically inconvenienced (assuming
some other node can pick up the slack).

If I know this to be the case, I can immediately bring another node
online to support the processes that have died off.  Then, engage more
aggressive diagnostics on the "suspect" node without the user losing
any capabilities.

>  If you want more sophistication, you
> can put a controlling microprocessor on the device, and have that
> powered by PoE, and it could do things like force a reset, or actually
> power the device off if necessary.

I'm trying to figure out the least requirements to impose on a device
to gain that "remote reset" capability.  And, let the device figure out
how to address that.

E.g., one of my nodes is a COTS PC.  It should be relatively easy to take
an instance of my PD interface and connect the "power out" signal to
a relay, FET, buffer, etc. that ties to the "reset button" on the PC.

[toc] | [prev] | [next] | [standalone]


#23732

FromTim Wescott <seemywebsite@myfooter.really>
Date2016-04-21 11:25 -0500
Message-ID<gvSdnUEY58SIYoXKnZ2dnUU7-fGdnZ2d@giganews.com>
In reply to#23716
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.

-- 

Tim Wescott
Wescott Design Services
http://www.wescottdesign.com

[toc] | [prev] | [next] | [standalone]


#23733

FromDon Y <blockedofcourse@foo.invalid>
Date2016-04-21 09:33 -0700
Message-ID<nfav7i$o4$1@dont-email.me>
In reply to#23732
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...

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.arch.embedded


csiph-web