<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">We recently had a very similar
      scenario, turned out to be a timeout on the firewall that killed
      IDLE connections longer than X (2 hours in our case) and it saw
      the top level SLONY process as IDLE.&nbsp; Maybe you have a similar
      firewall rule?<br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      <br>
      &nbsp;&nbsp; On 2/15/14, 11:09 PM, Tory M Blue wrote:<br>
    </div>
    <blockquote
cite="mid:CAEaSS0YVcwmCNGTjDgwAqh-XsXRuA4zP4_EqX9fozJyBHPDqSA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>So I've been fighting with this for a few months. I had
          someone on slony Dev attempt to lend a hand but others in the
          group, felt it was more of a &nbsp;postgres issue. While this may
          be true, I'm still looking for some assistance. Everything
          points to a disconnect in slony.</div>
        <div><br>
        </div>
        <div>Wide area replication, fails on one of my largest tables.
          Now the table will copy over complete no issues (using
          standard pgsql commands), it's the post processing after the
          data is copied that seems to cause a sig term or something on
          the connection, since slony states that the set failed and
          tries again, fails at the same place ,</div>
        <div><br>
        </div>
        <div>2014-02-15 15:23:00 PST CONFIG remoteWorkerThread_1: Begin
          COPY of table "tracking"."spotlightimp"</div>
        <div>2014-02-15 16:46:45 PST CONFIG remoteWorkerThread_1:
          5643041332 bytes copied for table "tracking"."spotlightimp" &nbsp;
          &lt;--- Completes transfer</div>
        <div>&nbsp;2014-02-15 17:34:10 PST CONFIG remoteWorkerThread_1:
          7870.124 seconds to copy table "tracking"."spotlightimp" &nbsp;
          &nbsp;&lt;-- At this point it finishes the index creation and
          everything else</div>
        <div>
          2014-02-15 17:34:10 PST CONFIG remoteWorkerThread_1: copy
          table "tracking"."adimp"</div>
        <div>2014-02-15 17:34:10 PST CONFIG remoteWorkerThread_1: Begin
          COPY of table "tracking"."adimp"</div>
        <div>2014-02-15 17:34:10 PST ERROR &nbsp;remoteWorkerThread_1:
          "select "_slonyschema".copyFields(19);" &nbsp; &lt;--- FAILS but
          adimp table is there, this is a red herring. the issue is
          above!</div>
        <div>2014-02-15 17:34:10 PST WARN &nbsp; remoteWorkerThread_1: data
          copy for set 2 failed 1 times - sleep 15 seconds</div>
        <div>NOTICE: &nbsp;Slony-I: Logswitch to sl_log_1 initiated</div>
        <div>CONTEXT: &nbsp;SQL statement "SELECT
          "_slonyschema".logswitch_start()"</div>
        <div>PL/pgSQL function _slonyschema.cleanupevent(interval) line
          96 at PERFORM</div>
        <div>2014-02-15 17:34:14 PST INFO &nbsp; cleanupThread: 7209.360
          seconds for cleanupEvent()</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I've brought my work_mem to over 40GB and that's not
          helping the length of time for this large table. I have even
          removed the index statement still doesn't cut the time, &nbsp;The
          copy is fine, all the data comes over. It's something in the
          processing of the table. There is s disconnect at some point
          between when slony finishes up the copy of the spotlightimp,
          and Postgres processes the rules in the table, and slony
          starts on the next table.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>2014-02-15 18:48:27 PST CONFIG remoteWorkerThread_1: copy
          table "tracking"."spotlightimp"</div>
        <div>2014-02-15 18:48:27 PST CONFIG remoteWorkerThread_1: Begin
          COPY of table "tracking"."spotlightimp"</div>
        <div>2014-02-15 20:11:07 PST CONFIG remoteWorkerThread_1:
          5643067207 bytes copied for table "tracking"."spotlightimp"</div>
        <div>2014-02-15 20:59:46 PST CONFIG remoteWorkerThread_1:
          7878.124 seconds to copy table "tracking"."spotlightimp"</div>
        <div>2014-02-15 20:59:46 PST CONFIG remoteWorkerThread_1: copy
          table "tracking"."adimp"</div>
        <div>2014-02-15 20:59:46 PST CONFIG remoteWorkerThread_1: Begin
          COPY of table "tracking"."adimp"</div>
        <div>2014-02-15 20:59:46 PST ERROR &nbsp;remoteWorkerThread_1:
          "select "_slonyschema".copyFields(19);"&nbsp;</div>
        <div>2014-02-15 20:59:46 PST WARN &nbsp; remoteWorkerThread_1: data
          copy for set 2 failed 1 times - sleep 15 seconds</div>
        <div>NOTICE: &nbsp;Slony-I: log switch to sl_log_2 complete -
          truncate sl_log_1</div>
        <div>CONTEXT: &nbsp;PL/pgSQL function
          _slonyschema.cleanupevent(interval) line 94 at assignment</div>
        <div>2014-02-15 20:59:50 PST INFO &nbsp; cleanupThread: 7203.435
          seconds for cleanupEvent()</div>
        <div><br>
        </div>
        <div>I do feel incredibly strongly it's the size of the table
          and how long the process takes, the network / postgres is
          either reaping the connection or other causing slony to be in
          an unknown state and causes the error the minute we try to
          move forward from the spotlightimp table.. If I could cut down
          the preprocessing after the table was copied that may solve
          it, but removing the index part has not helped the situation
          as I hoped it would. &nbsp;This is a complicated table, as well as
          it's size.</div>
        <div><br>
        </div>
        <div>I would love to get this sorted out, slony should allow for
          this remote replication, but something is going wrong and man
          would I love to get this resolved!</div>
        <div><br>
        </div>
        <div>CentOS6.2</div>
        <div>
          Postgres 9.2.4 slony 2.1.3</div>
        <div><br>
        </div>
        <div>Thanks</div>
        <div>Tory</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Slony1-general mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Slony1-general@lists.slony.info">Slony1-general@lists.slony.info</a>
<a class="moz-txt-link-freetext" href="http://lists.slony.info/mailman/listinfo/slony1-general">http://lists.slony.info/mailman/listinfo/slony1-general</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>