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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Re: pgbouncer y conexiones rotas



Gracias por la respuesta, he seguido el consejo pero el problema continúa (client_idle_timeout = 1). Muestro un fragmento del log para que se vea el asunto con más claridad:

2009-06-30 12:33:05.809 3717 LOG S-0x93b3018: fcweb/postgres(at)127(dot)0(dot)0(dot)1:5432 new connection to server
2009-06-30 12:33:05.810 3717 LOG S-0x93b3018: fcweb/postgres(at)127(dot)0(dot)0(dot)1:5432 closing because: connect failed (age=0)
2009-06-30 12:33:06.818 3717 LOG S-0x93b3018: fcweb/postgres(at)127(dot)0(dot)0(dot)1:5432 new connection to server
2009-06-30 12:33:06.819 3717 LOG S-0x93b3018: fcweb/postgres(at)127(dot)0(dot)0(dot)1:5432 closing because: connect failed (age=0)
2009-06-30 12:33:07.825 3717 LOG S-0x93b3018: fcweb/postgres(at)127(dot)0(dot)0(dot)1:5432 new connection to server
2009-06-30 12:33:07.826 3717 LOG S-0x93b3018: fcweb/postgres(at)127(dot)0(dot)0(dot)1:5432 closing because: connect failed (age=0)

pgbouncer reintenta conectarse continuamente y no veo la forma de evitarlo. 
¿Cómo evitar este comportamiento o detectar que no hay conexión?

Saludos, José R.

----- Original Message -----
From: Alejandro D. Burne <alejandro(dot)dburne(at)gmail(dot)com>
To: Jose Ramon Hermosilla Moreno <jrhermosilla(at)uci(dot)cu>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Sent: Mon, 29 Jun 2009 18:22:01 -0400 (CDT)
Subject: Re: [pgsql-es-ayuda] pgbouncer y conexiones rotas

El 29 de junio de 2009 15:35, Jose Ramon Hermosilla
Moreno<jrhermosilla(at)uci(dot)cu> escribió:
> Hola,
>   estoy usando pgbouncer para conectarme a una BD. Todo funciona bien, pero necesito saber como
> detectar cuando se ha caído la conexión, pues pgbouncer continua intentando conectarse.
>
> ¿Tiene alguien alguna idea?
>
> Saludos, José R.

Creo que no es que pgbouncer intenta reconectarse, solo que la
conexión es persistente, configura client_idle_timeout segun tus
necesidades.

Saludos, Alejandro




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group