Hi people.<br><br>I have 52 nodes in a slony installation. I&#39;ll give you more information.<br><br>First, I have few writes on that database, about 1 TPS, on the other hand, I&#39;ve done some 20K rows updates and I&#39;ve got a lag of 20 minutes. The database size is less than 10GB.<br>
<br>This is a very simple database, only 3 tables and only 2 really importants. We implemented what Steve said, a cascade structure: one &quot;forward-only&quot; database on each DC, then it forwards to the real slaves or for others &quot;forward-only&quot; databases, something like this:<br>
<br>MASTER<br>|<br>` DC1<br>|  ` slave<br>|  ...<br>` DC2<br>
|  ` slave<br>
|  ...<br>` DC3<br>
|  ` slave<br>
   ...<br><br>Other rule that we implemented: no more than 8 nodes on each forward-only node, so, we have 3 or 4 tree depth to real slaves.<br><br>We didn&#39;t measure too much how much bandwitch we use, because we know that we have light database traffic, but it&#39;s very important to check that.<br>
<br><div class="gmail_quote">On Tue, Jun 28, 2011 at 4:00 PM,  <span dir="ltr">&lt;<a href="mailto:slony1-general-request@lists.slony.info" target="_blank">slony1-general-request@lists.slony.info</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Slony1-general mailing list submissions to<br>
        <a href="mailto:slony1-general@lists.slony.info" target="_blank">slony1-general@lists.slony.info</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.slony.info/mailman/listinfo/slony1-general" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:slony1-general-request@lists.slony.info" target="_blank">slony1-general-request@lists.slony.info</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:slony1-general-owner@lists.slony.info" target="_blank">slony1-general-owner@lists.slony.info</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Slony1-general digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: How many slaves can be supported by slony2.0? (rodney)<br>
   2. Re: How many slaves can be supported by slony2.0? (rodney)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 28 Jun 2011 09:27:11 +0800<br>
From: rodney &lt;<a href="mailto:yl.wang@invantest.com" target="_blank">yl.wang@invantest.com</a>&gt;<br>
Subject: Re: [Slony1-general] How many slaves can be supported by<br>
        slony2.0?<br>
To: Steve Singer &lt;<a href="mailto:ssinger@ca.afilias.info" target="_blank">ssinger@ca.afilias.info</a>&gt;<br>
Cc: slony1-support &lt;<a href="mailto:slony1-general@lists.slony.info" target="_blank">slony1-general@lists.slony.info</a>&gt;<br>
Message-ID: &lt;1309224431.2201.0.camel@scadmin-ThinkPad-T61&gt;<br>
Content-Type: text/plain; charset=&quot;UTF-8&quot;<br>
<br>
Steve<br>
<br>
I will try the log shipping and let you know.<br>
<br>
Thanks<br>
<br>
<br>
On Mon, 2011-06-27 at 09:26 -0400, Steve Singer wrote:<br>
&gt; On 11-06-26 10:48 PM, rodney wrote:<br>
&gt; &gt; Hi<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m trying to setup slony to replicate table from one master to around<br>
&gt; &gt; 200 slaves. Can slony support slave number at this scale? It is observed<br>
&gt; &gt; in pgadmin that when I have 1 slave, the num of listener is 1. However,<br>
&gt; &gt; when I have 2 slaves, the num of listener increase from 1 to 4 (not 2).<br>
&gt; &gt; Will this be a problem if the slave go to a large number, like 100?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Best regards<br>
&gt;<br>
&gt; Running 200 slaves isn&#39;t a common use case for slony.<br>
&gt; That doesn&#39;t mean it won&#39;t work.  I know of at least one person who is<br>
&gt; doing about 50 slaves, but I don&#39;t have details on the setup.<br>
&gt;<br>
&gt; If your going to try Slony with 200 slaves this would be my advice<br>
&gt;<br>
&gt; * Expect to encounter issues along the way, you will need to figure out<br>
&gt; the best way to deploy and tune things<br>
&gt;<br>
&gt; * Slony supports the idea of cascaded subscribers.   You can have node<br>
&gt; something like<br>
&gt;<br>
&gt;      1<br>
&gt;      |<br>
&gt;      V<br>
&gt;      2<br>
&gt;     / \<br>
&gt;    3   4<br>
&gt;<br>
&gt; so you can have a number of direct subscribers then feeding a number of<br>
&gt; slaves.   Creating a layered network would probably work better than<br>
&gt; having 50 or 100 subscribers off a single node.<br>
&gt;<br>
&gt; * Slony also supports something called &#39;log shipping&#39; where the slon on<br>
&gt; a slave generates .sql files that can then be applied to other nodes<br>
&gt; downstream.  Since these other nodes are not technically part of the<br>
&gt; slony cluster (they don&#39;t have paths, or slon daemons) you can<br>
&gt; distribute the .sql files to as many machines as you want.  This might<br>
&gt; work for you<br>
&gt;<br>
&gt; * In a slony cluster each node must confirm SYNC messages from EVERY<br>
&gt; other node even when a direct path between them doesn&#39;t exist (this<br>
&gt; explains  for the number of listeners you see in pgadmin).  At a 100<br>
&gt; nodes there will be a lot of SYNC/confirm messages.  You will probably<br>
&gt; have to increase the SYNC interval so you have fewer syncs going on.<br>
&gt;<br>
&gt;<br>
&gt; * If you try any of this let us know what works or doesn&#39;t<br>
&gt;<br>
&gt; Steve<br>
&gt;<br>
<br>
--<br>
rodney &lt;<a href="mailto:yl.wang@invantest.com" target="_blank">yl.wang@invantest.com</a>&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Tue, 28 Jun 2011 09:35:25 +0800<br>
From: rodney &lt;<a href="mailto:yl.wang@invantest.com" target="_blank">yl.wang@invantest.com</a>&gt;<br>
Subject: Re: [Slony1-general] How many slaves can be supported by<br>
        slony2.0?<br>
To: Steve Singer &lt;<a href="mailto:ssinger@ca.afilias.info" target="_blank">ssinger@ca.afilias.info</a>&gt;<br>
Cc: slony1-support &lt;<a href="mailto:slony1-general@lists.slony.info" target="_blank">slony1-general@lists.slony.info</a>&gt;<br>
Message-ID: &lt;1309224925.2201.3.camel@scadmin-ThinkPad-T61&gt;<br>
Content-Type: text/plain; charset=&quot;UTF-8&quot;<br>
<br>
After reading the log shipping document from<br>
<a href="http://slony.info/documentation/logshipping.html" target="_blank">http://slony.info/documentation/logshipping.html</a>, find it not<br>
straightforward to configure. I&#39;ll just give up on this solution.<br>
<br>
Thanks.<br>
<br>
<br>
On Mon, 2011-06-27 at 09:26 -0400, Steve Singer wrote:<br>
&gt; On 11-06-26 10:48 PM, rodney wrote:<br>
&gt; &gt; Hi<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m trying to setup slony to replicate table from one master to around<br>
&gt; &gt; 200 slaves. Can slony support slave number at this scale? It is observed<br>
&gt; &gt; in pgadmin that when I have 1 slave, the num of listener is 1. However,<br>
&gt; &gt; when I have 2 slaves, the num of listener increase from 1 to 4 (not 2).<br>
&gt; &gt; Will this be a problem if the slave go to a large number, like 100?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Best regards<br>
&gt;<br>
&gt; Running 200 slaves isn&#39;t a common use case for slony.<br>
&gt; That doesn&#39;t mean it won&#39;t work.  I know of at least one person who is<br>
&gt; doing about 50 slaves, but I don&#39;t have details on the setup.<br>
&gt;<br>
&gt; If your going to try Slony with 200 slaves this would be my advice<br>
&gt;<br>
&gt; * Expect to encounter issues along the way, you will need to figure out<br>
&gt; the best way to deploy and tune things<br>
&gt;<br>
&gt; * Slony supports the idea of cascaded subscribers.   You can have node<br>
&gt; something like<br>
&gt;<br>
&gt;      1<br>
&gt;      |<br>
&gt;      V<br>
&gt;      2<br>
&gt;     / \<br>
&gt;    3   4<br>
&gt;<br>
&gt; so you can have a number of direct subscribers then feeding a number of<br>
&gt; slaves.   Creating a layered network would probably work better than<br>
&gt; having 50 or 100 subscribers off a single node.<br>
&gt;<br>
&gt; * Slony also supports something called &#39;log shipping&#39; where the slon on<br>
&gt; a slave generates .sql files that can then be applied to other nodes<br>
&gt; downstream.  Since these other nodes are not technically part of the<br>
&gt; slony cluster (they don&#39;t have paths, or slon daemons) you can<br>
&gt; distribute the .sql files to as many machines as you want.  This might<br>
&gt; work for you<br>
&gt;<br>
&gt; * In a slony cluster each node must confirm SYNC messages from EVERY<br>
&gt; other node even when a direct path between them doesn&#39;t exist (this<br>
&gt; explains  for the number of listeners you see in pgadmin).  At a 100<br>
&gt; nodes there will be a lot of SYNC/confirm messages.  You will probably<br>
&gt; have to increase the SYNC interval so you have fewer syncs going on.<br>
&gt;<br>
&gt;<br>
&gt; * If you try any of this let us know what works or doesn&#39;t<br>
&gt;<br>
&gt; Steve<br>
&gt;<br>
<br>
--<br>
rodney &lt;<a href="mailto:yl.wang@invantest.com" target="_blank">yl.wang@invantest.com</a>&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Slony1-general mailing list<br>
<a href="mailto:Slony1-general@lists.slony.info" target="_blank">Slony1-general@lists.slony.info</a><br>
<a href="http://lists.slony.info/mailman/listinfo/slony1-general" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-general</a><br>
<br>
<br>
End of Slony1-general Digest, Vol 52, Issue 13<br>
**********************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>José Arthur Benetasso Villanova<br>