Mischa Sandberg mischa.sandberg
Wed Sep 7 20:01:17 PDT 2005
Quoting tgoodair at ca.afilias.info (Tim Goodaire)

> On Tue, Sep 06, 2005 at 05:32:43PM -0400, Jim Archer wrote:
> > Hi All...
> > 
> > Is there any requirement about how nodes are numbered?
...
> > Do I really need a node 1?  If not, I would start at 101.
> 
> You can number them any way that you want and you don't need a node
> 1 in your cluster. If you decide to not have a node 1, you should
> note that 
> the event node parameter for many slonik commands defaults to node 1,
> so 
> you'll have to specify event node if you don't have a node 1.

Actually, it works to your advantage to always be explicit.
That way, when you lose node 1 and node X becomes your master, your
scripts don't start breaking :-)

I tend to use id's that identify the object.
1000+ for node ids; 100,200,... for sets; 101,102,... for tables in set
(100), etc. Crude, but keeps me from tripping over myself.




More information about the Slony1-general mailing list