This should produce output along the lines of the following:
This should produce an output like the following:
```plaintext
<stdin>:11: Subscription set 1 (set1) created
...
...
@@ -310,7 +307,7 @@ This should produce output along the lines of the following:
<stdin>:328: All tables added
```
Finally we can start the replication process by running the following on the
Finally, you can start the replication process by running the following on the
_new_ database server:
```shell
...
...
@@ -357,17 +354,14 @@ main
```
This script compares the sizes of the old and new database every minute and
print the result to STDOUT as well as logging it to a file. Make sure to replace
prints the results to STDOUT as well as logging it to a file. Make sure to replace
`SLONY_PASSWORD`, `OLD_HOST`, and `NEW_HOST` with the correct values.
## Stopping Replication
At some point, the two databases are in sync. If this is the case, you must plan
for a few minutes of downtime. This small downtime window is used to stop the
replication process, remove any Slony data from both databases, and restart
GitLab so it can use the new database.
Eventually, the two databases become in sync. At this point, there is a few minutes of downtime that you must plan for before the replicated database is available. During this time, the replication process should stop and all Slony data should be removed from both databases. After the replication process finishes, GitLab can restart and is able to use the newly-replicated database.
First, let's stop all of GitLab. Omnibus users can do so by running the
First, stop all of GitLab. Omnibus users can do so by running the