Re: Reliably determining whether the server came up

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: Reliably determining whether the server came up
Дата
Msg-id 1226781115.22056.1.camel@jd-laptop.pragmaticzealot.org
обсуждение исходный текст
Ответ на Re: Reliably determining whether the server came up  (Mischa Sandberg <mischa_sandberg@telus.net>)
Ответы Re: Reliably determining whether the server came up  ("H. Hall" <hhall1001@reedyriver.com>)
Список pgsql-admin
On Sat, 2008-11-15 at 12:29 -0800, Mischa Sandberg wrote:
> Quoting "H. Hall" <hhall1001@reedyriver.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.

Actually it doesn't. If you are using any standard library to connect if
the server is not ready to accept connections, it will tell you when you
connect. If the server failed to come up, you won't get a connection at
all, if you try to connect and you are able to connect but not initiate
a session and appropriate response will be sent.

Joshua D. Drake

--


В списке pgsql-admin по дате отправления:

Предыдущее
От: Mischa Sandberg
Дата:
Сообщение: Re: Reliably determining whether the server came up
Следующее
От: "H. Hall"
Дата:
Сообщение: Re: Reliably determining whether the server came up