Re: pgpool question

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: pgpool question
Дата
Msg-id 20050310.102517.82097898.t-ishii@sra.co.jp
обсуждение исходный текст
Ответ на pgpool question  (Oleg Bartunov <oleg@sai.msu.su>)
Ответы Re: pgpool question  (Jeff Hoffmann <jeff@propertykey.com>)
Re: pgpool question  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
> I'm experimenting with pgpool 2.51 on my Linux box runnung
> two postgresql backends: pg74:5432 and pg801:5433
> 
> I configured pgpool to use pg74:5432 as primary backend and 
> pg801:5433 as second one. Pgpool is running on default port (9999) and
> I configured my web application to use it, so I could start/stop backends
> without disturbing client (web browser).
> 
> When I stop primary backend (pg74:5432) pgpool switched to backend
>      failover from (5432) to (5433) done
> but when I start primary and stopped secondary backend pgpool
> never switched back to primary backend as expected ! 
> I see bogus message like:
>      starting failover from (5433) to (5433)
> 
> What I'm doing  wrong ?

That's an intended behavior. Or at least a side effect of failover
design. If we allow unlimited switching between the master and the
secondary, pgpool could repeat switching forever if we have unliable
network or hardware.

However it would be easy to modify pgpool to allow automatic switch
back (with a risk of unwanted repeating switching, of course). Is
this what you want?
--
Tatsuo Ishii


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

Предыдущее
От: Kevin Brown
Дата:
Сообщение: Re: fool-toleranced optimizer
Следующее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: could not read, could not write, could not fsync, Windows 2000, PostgreSQL 8.0.1