[Pgpool-general] Duration of commit on more than one backend configuration

Tatsuo Ishii ishii at sraoss.co.jp
Tue Jun 22 01:16:49 UTC 2010


> On 06/21/2010 08:31 PM, Tatsuo Ishii wrote:
> >> As far as I know, pgpool-II waits for [all] backends to commit the SQL
> >> statements (under replication mode) before returning to the client,
> >> right? This means that if, for example, one of the backends is very busy
> >> (100% CPU, etc.), pgpool will experience a delay and so will the
> >> application. Is this correct?
> > 
> > Correct. This is a known behavior of all synchronous replication
> > systems. This ensures that committed data (from client's point of
> > view) is actually committed to all backends.
> 
> Is there a way to set a timeout for this? It would be interesting the
> possibility of setting a timeout, and if it expires, the possibility of
> automatically degenerate the backend.

I think you could use PostgreSQL's statement_timeout for this purpose.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


More information about the Pgpool-general mailing list