Mon Jan 12 02:50:32 PST 2009
- Previous message: [Slony1-general] log switch issues
- Next message: [Slony1-general] Re: Slony1-general Digest, Vol 23, Issue 7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven, We faced a similar kind of problem with the slony version 2.0.0. In order to solve the problem we have set the slon parameter "cleanup_deletelogs" in the slony config file. You can then pass the file path to the slon through the '-f' param. "cleanup_deletelogs=ON" This is a boolean variable and deletes logs which are older than a particular transaction id. Regards, Nimesh. On Sun, Jan 11, 2009 at 1:30 AM, <slony1-general-request at lists.slony.info> wrote: > Send Slony1-general mailing list submissions to > slony1-general at lists.slony.info > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.slony.info/mailman/listinfo/slony1-general > or, via email, send a message with subject or body 'help' to > slony1-general-request at lists.slony.info > > You can reach the person managing the list at > slony1-general-owner at lists.slony.info > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Slony1-general digest..." > > > Today's Topics: > > 1. log switch issues (Steven Graham) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 09 Jan 2009 16:46:19 -0600 > From: Steven Graham <steven at maxpointinteractive.com> > Subject: [Slony1-general] log switch issues > To: slony1-general at lists.slony.info > Message-ID: <4967D3BB.2060909 at maxpointinteractive.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > All, > > I've been using slony 2.0 (RC2 and RC1...now on 2.0REL) for a while now > replicating a single table. Things were going okay then it started to > slow down and my slave db got out of sync, I tweaked some parameters on > the master and slave to get the slave "caught" up with replication and > things are okay for now. > > One thing I noticed in the master node is that I keep getting the 'log > switch to sl_log_2 still in progress - sl_log_1 not truncated' message, > and my sl_log_2 table is around 12GB (sl_log_1 is small). I'm getting > around a 30-40 second delay to first row in the log files (on the > slave), which was .001 seconds when I first started replicating several > months ago. This growth in time makes sense since the table is getting > larger and larger. From what I can tell the logs should flip back and > forth from sl_log_1 and sl_log_2 and truncate the old logs to keep these > tables to a minimum size and thus it shouldn't take 30 seconds to get > all the SYNC events. > > My question is this: What are the steps needed to unwedge this log > switch scenario, I can't see any obvious functions to call to force it. > From what I can tell the two tables are in sync. sl_status() shows lag > of 1-2 > If I'm understanding the system correctly the logswitch code is waiting > for the transactions that remain in the 'old' log to be taken care of > before it truncates and complets the switch to log_2. Is there something > that can tell the slon daemons to take a look at these dangling > transactions, or a function to flush(delete) them? Or is starting > completely over the solution? > > I've looked through the docs and other archives on how to troubleshoot > this and didn't find anything to usefull. I've REINDEX'd the tables, > vacuumed them just for good measure and I still see the same amount of > time to perform the sync. > > There is also a chance that there could be things hanging around if > there were issues with the other release candidates, this is the second > time the issue happend. The first time it happened I just dropped the > slave node and resynced to a new db. I'm willing to setup everything > from scratch again. I just want to know what to do if I run into this > situation again after starting over. > > Software setup: > Ubuntu linux 7.10 > Master: Postgres 8.3.3 > Slave: Postgres 8.3.1 > Slony: 2.0.0 > > Thanks in advance. > -Steve > > > ------------------------------ > > _______________________________________________ > Slony1-general mailing list > Slony1-general at lists.slony.info > http://lists.slony.info/mailman/listinfo/slony1-general > > > End of Slony1-general Digest, Vol 23, Issue 7 > ********************************************* >
- Previous message: [Slony1-general] log switch issues
- Next message: [Slony1-general] Re: Slony1-general Digest, Vol 23, Issue 7
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-general mailing list