Tuesday, 2014-01-07

*** nowen1 has quit (Quit: Leaving.)12:02
*** rudy6 (~rudy6@213.132.115.194) has joined #wikid12:24
*** rudy6 has quit (Ping timeout: 264 seconds)13:02
*** rudy6 (~rudy6@213.132.115.194) has joined #wikid13:05
*** rudy6 has quit (Ping timeout: 264 seconds)13:30
*** rudy6 (~rudy6@213.132.115.194) has joined #wikid13:30
*** nowen (~nowen@99-174-92-191.lightspeed.tukrga.sbcglobal.net) has joined #wikid14:10
*** rudy6 has quit (Quit: Nettalk6 - www.ntalk.de)14:38
*** Troy_ (329b98a8@gateway/web/freenode/ip.50.155.152.168) has joined #wikid17:34
*** Troy_ is now known as Guest2623517:34
nowenHey Troy, what's the status?20:48
nowenGuest26235: ping20:50
Guest26235sorry.. i logged on then got busy with another issue21:09
nowennp21:09
Guest26235I really don't know where to go next with this21:09
nowenok - so let's review21:09
nowenyou've got two servers, sync'ing fails, but the timestamps for the logs match.21:10
Guest26235I get that timeout when I sync the db and I don't see what is going on from the logs21:10
nowenwhat if you sync everything, not just the db?21:10
Guest26235yes.. the timestamps do match still.. i re-checked about an hour ago21:10
Guest26235so I'm thinking the db did actually sync fine21:10
nowenso, are they replicating?21:11
nowenif the logging matches, then they must be21:11
Guest26235yes.. i'm assuming so21:11
Guest26235I suppose I won't be able to tell for sure until we shutdown the primary and bring up the slave db21:11
nowenoh, I was under the impression that you had not restarted them in replication21:11
Guest26235yes.. i restarted yesterday after the sync21:12
nowenI don't see any other way the logs could match except replicatoin21:12
Guest26235as I said, when i started in replication mode, everything looked normal21:12
nowenand the start would sync too21:13
Guest26235yes.. i got no errors when I started the slave first then the master21:13
Guest26235it showed that it copied and synced21:13
Guest26235only time I got the timeout error is when I ran the wikidctl sync from the old primary (sjc) to the new slave (hsv)21:14
nowenso, now you want to switch them back so your scripts work?21:14
Guest26235yes..21:16
Guest26235so to do that I would need to stop both servers21:16
Guest26235do the demote/promote21:17
Guest26235after switching the configuration back to the original setup, would I need to run the sync from the original primary back to the old primary (new slave)21:18
Guest26235?21:18
nowenyes21:18
nowenbut sync should not take long21:18
nowenis that better than switching the scripts?21:19
Guest26235at what point is the current slave db updated with the new data from the current primary?21:19
nowenreplication is real-time.21:19
nowenso is the lag on the timestamps gone?21:20
Guest26235ok21:20
Guest26235sometimes the lag is a few seconds, but usually never more than a minute21:20
Guest26235I think just depends on what activity is being logged when the timestamps are taken21:21
nowenthat makes sense21:21
Guest26235the server is pretty busy log wise.. I see several transactions every minute21:22
Guest26235so I think that maybe explains why the timestamps are sometimes off by a few seconds21:22
nowenyeah, the logs could be changing faster than you can  sql query them21:23
noweni have to pick my son from BB from about 4:40-5:20 est. today, just fyi.  I'll be here afterward21:27
Guest26235ok.. no problem.. i will probably not do anything until tomorrow at this point21:29
nowenok21:29
Guest26235I would not need to run another db sync in the current replication before doing the promote/demote switch correct?21:31
nowenI don't think so. the sync on start should handle it.  the sync command is more for first time, big diffs, etc21:31
Guest26235just run the switch.. run the db sync from the new primary the new slave, then start slave, primary?21:32
Guest26235ok21:32
nowenyes, and running start on the primary will start the 2ndary21:32
Guest26235i'll take a backup of the db just in case21:32
nowenalways a good idea21:33
Guest26235because we've had about 10 or so users register since21:33
Guest26235ok.. i didn't know that.. i always thought you had to manually start the 2ndary first before starting the primary21:33
nowenhmm21:36
nowenhas the db gotten real big all the sudden?21:36
nowenjust got the latest email21:37
nowenI gotta run. I'll be back in about 40.  any way to get Vince on here?21:38
*** nowen is now known as nowen_away21:38
*** nowen_away is now known as nowen22:25
nowenGuest26235: back22:28
*** nowen has quit (Quit: Leaving.)23:11
*** Guest26235 has quit (Quit: Page closed)23:16

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!