<p>Ill send you the exact paramiters I tuned on Monday.</p>
<div class="gmail_quote">On May 12, 2012 1:56 PM, "Scott Piazza" <<a href="mailto:scott.piazza@bespokess.com">scott.piazza@bespokess.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Good to know it isn't just me having this issue.<br>
<br>
I agree that monitoring must play a role, since it wasn't happening in<br>
1.6, and started when I enabled monitoring in 1.7.  With osa-dispatcher<br>
turned off on the server, the issue hasn't reappeared.  But I'd rather<br>
keep osa on.<br>
<br>
How did you change the idle connection timeout in Postgresql?  I admit,<br>
I don't use Postgres all that often, but I don't see any way of doing it<br>
without using something like pgpool.  Am I missing something obvious?<br>
<br>
----------<br>
<br>
From: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a><br>
[mailto:<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a>] On Behalf Of Paul Robert<br>
Marino<br>
Sent: Friday, May 11, 2012 6:56 PM<br>
To: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
Subject: Re: [Spacewalk-list] Spacewalk 1.7 Postgres out of connections<br>
<br>
<br>
Well I've worked around it by reducing the tcp heartbeat to 10 minutes<br>
in /etc/sysctl.conf and reducing the idle client timeout in postgresqls<br>
configuration.<br>
But yes there is an issue with this.<br>
I think it the monitoring that does it but I'm not sure. I can tell you<br>
the incidents of it do go up with monitoring turned on.<br>
The problem is is seems like its a shared library that isn't logging if<br>
the class goes out of scope out of the database correctly that make<br>
tracking the root cause significantly harder.<br>
I'm not familiar enough with python to figure explain how it should be<br>
fixed but in perl the DBI driver had. DESTROY method that catches if the<br>
programer forgot to logout of the database before the instance of the<br>
class goes out of scope or the application exits. It seems to me this is<br>
missing from the python postgresql driver and if that functionality<br>
could be added it would resolve the issue.<br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
</blockquote></div>