Skip site navigation (1) Skip section navigation (2)

Re: Reliably determining whether the server came up

From: Mischa Sandberg <mischa_sandberg(at)telus(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Reliably determining whether the server came up
Date: 2008-11-15 20:29:05
Message-ID: 1226780945.491f3111e22de@legacywebmail.telus.net (view raw or flat)
Thread:
Lists: pgsql-admin
Quoting "H. Hall" <hhall1001(at)reedyriver(dot)com>:

> 
> Mischa Sandberg wrote:
> > I've been trying to work out a reliable script to determine, 
> > after pg_ctl start, that the server is done attempting
> > to come up, and that it has either succeeded OR FAILED.
> > This is for several hundred unattended appliance-type servers,
> > currently on PG 8.0 but soon to be on 8.3
> >   
> 
> Why don't you try to create a connection to a db on each server?

Thanks, but that only tells me if the server is up at the time of trying
to connect. What I'm trying to test is, did the server just start up and
abort? This is in a large cluster, and in (say) a box-by-box software
upgrade, any time-outs are additive.


In response to

Responses

pgsql-admin by date

Next:From: Joshua D. DrakeDate: 2008-11-15 20:31:55
Subject: Re: Reliably determining whether the server came up
Previous:From: H. HallDate: 2008-11-15 18:43:45
Subject: Re: Reliably determining whether the server came up

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group