List:Cluster« Previous MessageNext Message »
From:Magnus Blåudd Date:April 25 2013 6:54am
Subject:Re: Possible to auto-restart ndbd after network disconnection ?
View as plain text  
On 04/24/2013 12:14 PM, Sébastien Barré wrote:
> Hi Magnus,
>
> Thanks for this analysis !
> That looks quite sensible. So should I file a bug report ? Or did you
> already ?

Please do.


/ Magnus

>
> Thanks,
>
> Sébastien.
>
>
> ------------------------------------------------------------------------
> *De :* Magnus Blåudd <magnus.blaudd@stripped>
> *À :* Sébastien Barré <sebst_barre@stripped>
> *Cc :* cluster <cluster@stripped>
> *Envoyé le :* Mercredi 24 avril 2013 10h40
> *Objet :* Re: Possible to auto-restart ndbd after network disconnection ?
>
> On 04/23/2013 04:58 PM, Sébastien Barré wrote:
>  > Hi,
>  >
>  > Assume the following scenario:
>  > -2 ndb nodes, and one management node each on separate machines.
>  > -I unplug node 2: It detects that it cannot reach node 1 and tries to
> contact the management node. It cannot reach either the mgm node and so
> decides to stop itself without reporting a failure status.
>  >
>  > Because there is no failure status, asking windows to "auto-restart
> the service on failure" does not actually restart the ndbd service.
>  >
>  > Is there any way to change this behaviour (either by preventing
> service stop or by triggering a failure status so that windows tries to
> auto-restart every minute) ?
>  >
>  > Thanks !
>  >
>  > Sébastien.
>  >
>
> Hi Sébastien,
>
> the intention is that you should be able to configure the service
> properties of Windows so that ndbd or ndb_mgmd is restarted if it fails.
> You seem to have done just that but apparently ndbd shuts down and
> return 0(for OK) so it does not work. In case this is a correct
> interpretation the ndbd need to be fixed to return an exit status
> indicating it "failed".
>
> The affected code for ndbd is in angel.cpp, ndbd.cpp and ndb_daemon.cc.
> The function ndb_daemon_exit(int code) is called which then calls
> g_ntsvc.Stop(), it looks like the "code" argument is never propagated to
> g_ntsvc to indicate that the process should exit with an error.
>
>
>
> Best regards
> Magnus
>
>

Thread
Possible to auto-restart ndbd after network disconnection ?Sébastien Barré23 Apr
Re: Possible to auto-restart ndbd after network disconnection ?Magnus Blåudd25 Apr