Vicibox MySQL Master Slave Replication

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

Vicibox MySQL Master Slave Replication

Postby randy_delgado_03 » Fri Apr 01, 2011 6:51 pm

Good Day Everyone,

Guys here's the scenario:

I already established the Master-Slave Replication between Vicibox DB installation and a replication server, however when i try to let our agents login, the web server hangs. CPU process goes to its peak (Intel I7 8 core CPU 3.4 gigz). When i removed the replication and let the agents login, CPU went back to its daily average process like it should be.

Has someone did the same setup and successfully made a Master-Slave Replication without any conflicts?

Any suggestions would be highly appreciated ...

Thank you vicidial team ...
ViciBox v.7.0.3-160505
Asterisk 11.22.0-vici
Vicidial: VERSION: 2.12-563a BUILD: 160801-2119
Servers: Stand alone server (Database, Web, Telephony)
No Additional Softwares, No Third Party Softwares
randy_delgado_03
 
Posts: 178
Joined: Wed Dec 01, 2010 2:50 pm
Location: Manila, QC

Postby williamconley » Fri Apr 01, 2011 6:54 pm

I know this will sound simplistic ... could you post your EXACT method of master/slave replication? (including .cnf settings that have been changed?)

Only changes, now, don't go posting entire conf files ...
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby randy_delgado_03 » Fri Apr 01, 2011 6:59 pm

Here's what i changed william:

"Master"

server-id=1
sync_binlog=1
binlog-do-db=[db_to_replicate] < just add another one of this line to add db to publish
log-bin=mysql-bin
binlog_format=mixed
server-id=1
innodb_flush_log_at_trx_commit = 1

"Slave"

server-id=2
log-bin=mysql-bin
binlog_format=mixed
master-connect-retry=60
replicate-do-db=asterisk
relay-log=mysqld-relay-bin
relay-log-index=mysqld-relay-bin.index
ViciBox v.7.0.3-160505
Asterisk 11.22.0-vici
Vicidial: VERSION: 2.12-563a BUILD: 160801-2119
Servers: Stand alone server (Database, Web, Telephony)
No Additional Softwares, No Third Party Softwares
randy_delgado_03
 
Posts: 178
Joined: Wed Dec 01, 2010 2:50 pm
Location: Manila, QC

Postby williamconley » Fri Apr 01, 2011 7:10 pm

is that ...ALL you changed? 8)

i'm bettin' there's a bit more ...
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby randy_delgado_03 » Fri Apr 01, 2011 7:16 pm

Yes william thats all i configured, the rest are all defaults.

Do you happen to have a sample config of my.cnf that you setted up on vicibox and works for replication purposes without any conflicts?

Thank you william ...
ViciBox v.7.0.3-160505
Asterisk 11.22.0-vici
Vicidial: VERSION: 2.12-563a BUILD: 160801-2119
Servers: Stand alone server (Database, Web, Telephony)
No Additional Softwares, No Third Party Softwares
randy_delgado_03
 
Posts: 178
Joined: Wed Dec 01, 2010 2:50 pm
Location: Manila, QC

Postby williamconley » Fri Apr 01, 2011 7:31 pm

not that I have access to at present.

how did you tell slave and/or master the location of the other server? (are you sure you didn't change anything else 8)).

also: what are you using the slave server for? (reporting or something more involved?) I know it shouldn't matter, but often that question gives rise to other things going on that may cause an issue.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby randy_delgado_03 » Fri Apr 01, 2011 7:32 pm

I configured this inside the slave console:

CHANGE MASTER TO MASTER_HOST='x.x.x.x', MASTER_USER='repl_user', MASTER_PASSWORD='repl_password', MASTER_LOG_FILE='mysql-bin.000010', MASTER_LOG_POS=645669;

Im going to use it for reporting so that my master wont get affected and also for backup purposes ...
ViciBox v.7.0.3-160505
Asterisk 11.22.0-vici
Vicidial: VERSION: 2.12-563a BUILD: 160801-2119
Servers: Stand alone server (Database, Web, Telephony)
No Additional Softwares, No Third Party Softwares
randy_delgado_03
 
Posts: 178
Joined: Wed Dec 01, 2010 2:50 pm
Location: Manila, QC

Postby williamconley » Fri Apr 01, 2011 7:44 pm

question: how is this "not going to overload" if every transaction here has to be transmitted to the slave ... and there are thousands of entries? how often do you "sync"? 60 seconds? does this sync successfully before the agents begin to dial?

http://linuxhelp123.blogspot.com/2010/0 ... ation.html
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby randy_delgado_03 » Fri Apr 01, 2011 8:11 pm

*and there are thousands of entries?
- Just the usual routine of vicibox db.

*how often do you "sync"? 60 seconds?
-Yes as specified.

*does this sync successfully before the agents begin to dial?
-Yes this sync fine before the agents log in.
ViciBox v.7.0.3-160505
Asterisk 11.22.0-vici
Vicidial: VERSION: 2.12-563a BUILD: 160801-2119
Servers: Stand alone server (Database, Web, Telephony)
No Additional Softwares, No Third Party Softwares
randy_delgado_03
 
Posts: 178
Joined: Wed Dec 01, 2010 2:50 pm
Location: Manila, QC

Postby williamconley » Fri Apr 01, 2011 8:20 pm

master and slave on same physical network (no lag worthy of note)?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 102 guests