Thanks scott ... <div><br></div><div>This time we will track why it&#39;s been slow ..</div><div><br></div><div>Thanks,</div><div>Dinesh..<br><br><div class="gmail_quote">On Sat, Jun 9, 2012 at 4:40 AM, Scott Marlowe <span dir="ltr">&lt;<a href="mailto:scott.marlowe@gmail.com" target="_blank">scott.marlowe@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, Jun 8, 2012 at 3:30 PM, dinesh kumar &lt;<a href="mailto:dineshkumar02@gmail.com">dineshkumar02@gmail.com</a>&gt; wrote:<br>

&gt; Hi Steve,<br>
&gt;<br>
&gt; Thank you for the e-mail ..<br>
&gt;<br>
&gt; On Sat, Jun 9, 2012 at 1:39 AM, Steve Singer &lt;<a href="mailto:ssinger@ca.afilias.info">ssinger@ca.afilias.info</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 12-06-08 02:50 PM, dinesh kumar wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thank you so much Steve ...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; We are using Slony 2.1.x ... We are still at the initial stage only...<br>
&gt;&gt;&gt; Slony is still trying to copy the data from source to destination host ..<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;  &gt;&gt; Has your initial copy_set finished?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Here only, we are facing problem... Slony struggling to copy the data ..<br>
&gt;&gt;&gt; It went well upto 140 GB. From 141GB onwards  the build started slow..<br>
&gt;&gt;&gt; Now it&#39;s very very very slow ...<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Let me know if you need any configurations what we have used ...<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Are you doing this copy over a WAN?<br>
&gt;<br>
&gt;<br>
&gt; We are doing copy over LAN.. We got very good transfer rate for up to some<br>
&gt; extent.. From after some time (i&#39;m not sure the exact time), the build got<br>
&gt; slow..<br>
<br>
</div>We need to know why.<br>
<div class="im"><br>
&gt;&gt; Can you tell what the bottleneck is? Are you IO bound on the slave? Are<br>
&gt;&gt; you CPU bound on the slave?<br>
&gt;&gt;<br>
&gt; We don&#39;t face any performance issues. IO is really good on<br>
&gt; production(Primary Cluster where it is 3 TB) and having normal CPU average<br>
<br>
</div>What does iostat -xd 10 or such have to say about the performance on<br>
the new slony destination when it&#39;s slow?<br>
<div class="im"><br>
&gt; We think, it&#39;s problem from the db itself.. We have around  400GB tables (5<br>
&gt; to 8), those are having huge bloats also.. We think, slony is taking some<br>
&gt; time to get those live rows bypassing the dead rows from DB. So we think,<br>
&gt; the actual live rows might scatter to multiple files. I think this might be<br>
&gt; the root cause ..<br>
<br>
</div>I doubt bloat in the source database would make things 1GB/hr slow.<br>
That&#39;s only 16MB/minute.<br>
<div class="im"><br>
&gt; We just stopped the existing slony setup and will perform vacuum on DB once<br>
&gt; and will do it again ...<br>
<br>
</div>Yeah, this time try and figure out what the bottleneck is via iostat,<br>
vmstat, iotop, nettop, select * from pg_stat_activity and so on.<br>
</blockquote></div><br></div>