PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Postgresql very slow to start on with LDAP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Postgresql very slow to start on with LDAP

Réponse
 
LinkBack Outils de la discussion
Vieux 29/01/2008, 08h50   #1
Oren Laadan
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Postgresql very slow to start on with LDAP

Hi,

After switching to LDAP authentication on our system, I noticed that
PostgreSQL start-up (and shut-down) time because ridiculously high.
(The PostgreSQL server isn't used as the back-end for LDAP; the LDAP
servers sits elsewhere).

Searching through google yielded the following post which seems still
unresolved:
http://www.mail-archive.com/debian-u...msg483707.html

By looking at the LDAP server logs, I noticed that during the long time
it takes the PostgreSQL server to start, it continuously queries the
LDAP server (there are many hundreds of users and groups in our domain).

Looking back at the start-up code, I narrowed the program down to the
/usr/share/postgresql-common/PgCommon.pm file, and more specifically
the function "change_ugid()": this functions loops through the entire
LDAP database, entry by entry, repeatedly querying the LDAP server and
consuming cpu, network and most of all lost of time ...

This seems like a bug (inefficient implementation) in PostgreSQL.
(it doesn't look like a problem in the way the LDAP client side - or
server - have been setup).

This problem is verified for postgresql-client-common versions 8.1,
and 8.3 on debian unstable, and testing.

I'd appreciate suggestions as how this can be solved.

Thanks,

Oren.

(ps. please CC me as I'm not subscribed to the list)


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 29/01/2008, 11h20   #2
Alex Samad
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Postgresql very slow to start on with LDAP

On Tue, Jan 29, 2008 at 03:01:27AM -0500, Oren Laadan wrote:
> Hi,
>
> After switching to LDAP authentication on our system, I noticed that
> PostgreSQL start-up (and shut-down) time because ridiculously high.
> (The PostgreSQL server isn't used as the back-end for LDAP; the LDAP
> servers sits elsewhere).
>
> Searching through google yielded the following post which seems still
> unresolved:
> http://www.mail-archive.com/debian-u...msg483707.html
>
> By looking at the LDAP server logs, I noticed that during the long time
> it takes the PostgreSQL server to start, it continuously queries the
> LDAP server (there are many hundreds of users and groups in our domain).
>
> Looking back at the start-up code, I narrowed the program down to the
> /usr/share/postgresql-common/PgCommon.pm file, and more specifically
> the function "change_ugid()": this functions loops through the entire
> LDAP database, entry by entry, repeatedly querying the LDAP server and
> consuming cpu, network and most of all lost of time ...
>
> This seems like a bug (inefficient implementation) in PostgreSQL.
> (it doesn't look like a problem in the way the LDAP client side - or
> server - have been setup).
>
> This problem is verified for postgresql-client-common versions 8.1,
> and 8.3 on debian unstable, and testing.
>
> I'd appreciate suggestions as how this can be solved.

have you tried using nscd ?

>
> Thanks,
>
> Oren.
>
> (ps. please CC me as I'm not subscribed to the list)
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a
> subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>


--
"And so, in my State of the -- my State of the Union -- or state -- my speech to the nation, whatever you want to call it, speech to the nation -- I asked Americans to give 4,000 years -- 4,000 hours over the next -- the restof your life -- of service to America."

- George W. Bush
04/09/2002
Bridgeport, Conn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHnwtZkZz88chpJ2MRAmOqAJ9/WTeONuqEf+uY7XUlu76M6IaOQwCfZEut
V4M5ySV7E8jSz5uci4nio9M=
=Y3os
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h51.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08691 seconds with 10 queries