Chapter 9: Replication
Adding peers to a new replication ring
212
7. Edit the sccservers.ini file
As part of your server replication setup, you will need to edit the
sccservers.ini
file
on every peer in the replication ring
.
1
Browse to
<Install_Dir>\SERVERS\Shared
, and open
sccservers.ini
.
2
Locate and uncomment the line starting with
DBActionListenerClass=.
This Admin server will now track changes by ’listening’ to actions in the
database, and recording them as new records in the change log.
3
Scroll down to the section called
#Properties for replication connections
,
and uncomment the line starting with
ReplNext_JDBC_URL=.
4
Replace NEXT_HOST on that line with the name or IP address of the peer
that will serve as the logical ’next’ peer in your replication ring.
If the database on ‘N’ was installed on a custom port (other than 5010),
make sure to reflect the correct port in this setting.
5
Save
the file.
If your replication ring has more than two peers:
1
In the
sccservers.ini
file section called
#Properties for replication
connections
, uncomment the line starting with:
ReplPrev_JDBC_URL=
2
In that same line, replace PREV_HOST with the IP address (or name) of
the peer that will serve as the logical ‘previous’ peer in your replication ring.
If the database on ‘N’ was installed on a custom port (other than 5010),
make sure to reflect the correct port in this setting.
3
Save
the file.
8. Run the AddReplPeer.bat file
The
AddReplPeer.bat
script identifies to each machine in the ring its next and
previous neighbor machines (by IP address). For a replication ring of only two
machines, the script is run once per machine, since each machine only has
one neighbor. For a replication ring of more than two machines, you would run
the script twice on each machine in the ring; once for its next neighbor, once for
its previous neighbor.
For example: you have a replication ring of four machines: A, B, C, and D (see
Figure 128 on page 213).