Question

We have slony replication set up, and the replication on the slave has fallen behind by 10 days. On investigating I noticed that the sl_log_1 table has 25K records, but the sl_log_2 table has over 100 million rows, and they keep going up. How do I go about troubleshooting this?

I am a newbie to slony, and would appreciate all the help that I can get

Was it helpful?

Solution

Check if all Slony processes are running, or better - restart them. After restarting check the logs, that can be caused sometimes by some DDL query, that was performed by hand on master. If there are some serious errors on slaves, or the lag is not falling down too fast, you could always reinit the replication (but beware, that will delete all data from all tables on the slave databases).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top