<br><br>
<div class="gmail_quote">On Tue, Jun 15, 2010 at 1:15 PM, Brad Nicholson <span dir="ltr">&lt;<a href="mailto:bnichols@ca.afilias.info">bnichols@ca.afilias.info</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">On Mon, 2010-06-14 at 20:24 -0300, Hernan Saltiel wrote:<br>&gt; Thanks, Scott &amp; Steve for this clues!<br>&gt; My situation is not the PgSQL 8.0.x one, I have 8.4.x x64 installed,<br>&gt; and the replication schema uses an internet connection between two<br>
&gt; DB&#39;s, a master &amp; a slave.<br>&gt; Sometimes, the replication seems to stop working, I&#39;m trying to figure<br>&gt; out what&#39;s wrong, if there is something.<br>&gt; I&#39;ll start a shell script right now to check the master &amp; slave<br>
&gt; systems based on the clues you sent.<br>&gt; Thanks again, and best regards,<br><br></div>Does your application do any commits where you are writing a lots of<br>data in a single transaction like batch inserts, deleting large tables<br>
or updating a lot of rows?<br></blockquote>
<div> </div>
<div>Yes, it does!</div>
<div>We&#39;re working to insert massive records, almos 1 millon in a single batch.</div>
<div>This is why I&#39;m concerned about performance issues.</div>
<div>Thanks a lot, and best regards,</div>
<div> </div>
<div>HeCSa.</div>
<div> </div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5"><br><br>&gt;<br>&gt; On Mon, Jun 14, 2010 at 6:01 PM, Steve Singer<br>&gt; &lt;<a href="mailto:ssinger@ca.afilias.info">ssinger@ca.afilias.info</a>&gt; wrote:<br>&gt;         Hernan Saltiel wrote:<br>&gt;<br>
&gt;                 How can I meassure how much is too much use of my<br>&gt;                 hardware when Slony is in place?<br>&gt;                 I can meassure the CPU, memory, disk IO, and network<br>&gt;                 use, but how much is needed in order to let Slony work<br>
&gt;                 well?<br>&gt;                 Is there any way to calculate this on a transaction<br>&gt;                 number and size basis?<br>&gt;                 Thanks!<br>&gt;<br>&gt;<br>&gt;         The other thing you should look into is if your having<br>
&gt;         performance issues on your database from improper/insufficient<br>&gt;         vacuuming.  Back in the 8.0 days vacuuming issues where pretty<br>&gt;         common (I think 8.0 was before auto-vacuum or at least before<br>
&gt;         auto-vacuum got good).<br>&gt;<br>&gt;         Are your application tables bloated?<br>&gt;         Are your slony tables bloated?<br>&gt;         Are your vacuum processes taking a long time?<br>&gt;         If your&#39;ve had vacuum issues in the past have you exceeded the<br>
&gt;         size you&#39;ve allocated to the free-space map.<br>&gt;<br>&gt;         Vacuuming the entire database through a single &quot;VACUUM&quot;<br>&gt;         command launched from cron is somtimes not the best approach,<br>
&gt;         sometimes you need to issue individual vacuum commands on a<br>&gt;         per table basis where some tables get hit frequently (maybe a<br>&gt;         few times an hour) while others might only get vacuumed once a<br>
&gt;         week.   It all depends on the acccess patterns to the tables<br>&gt;         and with older versions of postgresql the DBA is often left to<br>&gt;         figure this out on their own.<br>&gt;<br>&gt;         Also slony should be issuing vacuum commands against the slony<br>
&gt;         tables so you probably don&#39;t want &#39;other&#39; vacuum commands that<br>&gt;         regularly get run to duplicate the work.<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;                     &gt; Can someone point me where should i look into<br>
&gt;                 and how to improve<br>&gt;                    replication<br>&gt;                     &gt; performance.<br>&gt;<br>&gt;                    More / faster drives and controllers.<br>&gt;<br>&gt;                     &gt; As of now there is no chance for upgradation of<br>
&gt;                 version.<br>&gt;<br>&gt;                    That would be the first thing I&#39;d recommend.  Since<br>&gt;                 you can&#39;t do it,<br>&gt;                    you&#39;re gonna have to have faster hardware,<br>
&gt;                 specifically the IO<br>&gt;                    subsystem.<br>&gt;                    _______________________________________________<br>&gt;                    Slony1-general mailing list<br>&gt;<br>&gt;                    <a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>
&gt;                 &lt;mailto:<a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a>&gt;<br>&gt;<br>&gt;<br>&gt;                  <a href="http://lists.slony.info/mailman/listinfo/slony1-general" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>
&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;                 --<br>&gt;                 HeCSa<br>&gt;<br>&gt;<br>&gt;<br>&gt;                 ------------------------------------------------------------------------<br>&gt;<br>&gt;<br>
&gt;                 _______________________________________________<br>&gt;                 Slony1-general mailing list<br>&gt;                 <a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>
&gt;                 <a href="http://lists.slony.info/mailman/listinfo/slony1-general" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>&gt;<br>&gt;<br>&gt;<br>&gt;         --<br>&gt;         Steve Singer<br>
&gt;         Afilias Canada<br>&gt;         Data Services Developer<br>&gt;         416-673-1142<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; HeCSa<br>&gt; _______________________________________________<br>&gt; Slony1-general mailing list<br>
&gt; <a href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a><br>&gt; <a href="http://lists.slony.info/mailman/listinfo/slony1-general" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>
--<br></div></div><font color="#888888">Brad Nicholson  416-673-4106<br>Database Administrator, Afilias Canada Corp.<br><br><br></font></blockquote></div><br><br clear="all"><br>-- <br>HeCSa<br>