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


Groups > comp.arch.embedded > #23737

Re: Remote "watchdog"s

From Don Y <blockedofcourse@foo.invalid>
Newsgroups comp.arch.embedded
Subject Re: Remote "watchdog"s
Date 2016-04-21 22:08 -0700
Organization A noiseless patient Spider
Message-ID <nfcbed$eo3$1@dont-email.me> (permalink)
References <nf8moq$khq$1@dont-email.me> <n5kghbld2jtaihaqb0mf4gv7j3hch7se5m@4ax.com> <nf9n66$mj5$1@dont-email.me> <5n6jhb5it9ren15hhf8ndnv8f9p74muado@4ax.com>

Show all headers | View raw


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.

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next 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