Re: recognising dead instances
Re: recognising dead instances
- Subject: Re: recognising dead instances
- From: Christoph Wick <email@hidden>
- Date: Mon, 25 Jan 2010 09:30:16 +0100
We normally implement a direct action - let's call it "checkSystemStatus" - that performs a fetch to ensure the database operates the way we want it. If this fetch succeeds, we just return the string "OK". Otherwise we return the exception message and the stack trace.
On a second system, we run a bunch of crontab controlled shell scripts (every 10 min) that perform a "wget" on that direct action, e.g. "http://YOURSERVER/cgi-bin/WebObjects/YOURAPP.woa/YOURINSTANCE/wa/checkSystemStatus". If that wget returns something different from "OK", we send an email with the result.
Very simple, but it works for us.
C.U.CW
--
Christoph Wick Director Software Development
STAR Healthcare Management GmbH, Pierstr. 8, 50997 Cologne, Germany
Fon:+49 2236 33665-50 Fax:+49 2236 33665-90 www.starhealthcare.info
-------------------------------------------------------------------
Sitz der Gesellschaft: Köln, Amtsgericht Köln, Reg.Nr.: HRB 55306
On 25.01.2010, at 07:40, Lachlan Deck wrote:
> Hi all,
>
> just polling for ideas / techniques people use in detecting dead instances. Naturally when there's lots of instances running in deployment it can be hard to know if a particular instance has locked up for some reason (and this can sometimes have a flow on affect with the adaptor).
>
> Thanks.
>
> with regards,
> --
>
> Lachlan Deck
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden