<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Christopher!<br>
    </p>
    <div class="moz-cite-prefix">Am 08.10.2019 um 18:03 schrieb
      Christopher Browne:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFNqd5WmBmSx4G6z3_3+EXWuVn=Ui-AG0=0piQQAwUKXh_MSyQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">On Tue, 8 Oct 2019 at 03:20, Klaus Darilion &lt;<a
            href="mailto:klaus.mailinglists@pernau.at"
            moz-do-not-send="true">klaus.mailinglists@pernau.at</a>&gt;
          wrote:<br>
        </div>
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">Hello!<br>
            <br>
            We use Slony 2.1.4, with ~55 global slaves. Susbcribing [1]
            a node takes<br>
            from ~3minutes (a few milli seconds away) to 15 minutes
            (200ms away) -<br>
            one some minutes for the initial sync.<br>
             
            <br>
          </blockquote>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
            b) Why does it take so long to subscribe? Can I speed up the
            subscribe?</blockquote>
          <div><br>
          </div>
          <div>Well, the process involves:</div>
          <div>a) Copying all of the data in the replication set, and</div>
          <div>b) Regenerating all of the indexes on the tables (as it
            is almost always faster to deactivate indexes while doing
            the COPY)</div>
          <div><br>
          </div>
        </div>
      </div>
    </blockquote>
    <p>As far as I understand adding a node involves 2 steps:</p>
    <p>1. Slony configuration via slonik "subscribe". This configures
      the cluster and creates the slony namespace on the slave.</p>
    <p>2. Initial sync: COPY the respective tables and sequences from
      the master<br>
    </p>
    <p>The initial sync (2) is actually fast, except there is low
      bandwidth to the slave. But the "subscribe" (1) is slow for far
      away nodes (in terms of RTT).</p>
    <p><br>
    </p>
    <p>regards</p>
    <p>Klaus</p>
    <br>
  </body>
</html>