Set slave to read only

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Set slave to read only

Postby boybawang » Tue Jan 20, 2015 9:48 am

Hi guys,

is it alright to set the slave to read only if your main purpose is just to lessen the load of the main database server when viewing reports?
Vicidial Installation + Configuration + Support + Custom Development
Download my ebook on installing vicidial for free http://download.vicidial.com/ubuntu/VIC ... 100331.pdf
skype: deodax.cordova@gmail.com
m: +639172063730
boybawang
 
Posts: 989
Joined: Sat Nov 14, 2009 1:18 pm
Location: Dumaguete City, Negros Oriental, Philippines

Re: Set slave to read only

Postby okli » Tue Jan 20, 2015 3:13 pm

I would say yes, definitely.
1) There still might be some reports breaking replication when attempt to write to the slave
2) Piece of mind against human errors- running write queries on the slave by mistake, instead on the master. Avoiding that lovely "ohh sh*t", followed by slave rebuilding, for the Nth time, lol.
okli
 
Posts: 671
Joined: Mon Oct 01, 2007 5:09 pm

Re: Set slave to read only

Postby DomeDan » Fri Jan 23, 2015 7:15 am

I didnt know about the slave read only option, before making the change I had to rebuild the slave now and then :P (http://www.eflo.net/VICIDIALforum/viewt ... =3&t=26231)
this is the link geoff3dmg sent to me: https://mariadb.com/blog/looking-slave- ... kip-errors
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 59 guests