PDA

View Full Version : Master-Slave mysql replication


hosler
01-11-2016, 02:46 PM
Hey fellas,
Been trying to get a master-slave setup using MariaDB 10. Everything seems to work fine until I tell vbulletin about the slave server. Everything gets super flaky when I enable the slave server in config.php. I start getting errors like this:

Critical Error

We are currently experiencing technical difficulties. Please check back in 24 hours.


I get these errors about 50% of the time.

Anyone know what this is a symptom of or what is the best way to debug? I tried turning debug mode on in the config.php, but I couldn't find any debug info anywhere.

P.S. Here is the guide I used to setup replication: https://www.digitalocean.com/community/tutorials/how-to-set-up-master-slave-replication-in-mysql

Dave
01-11-2016, 02:53 PM
Are those 500 internal server errors?
Could you check the error logs of your web-server/PHP to see the exact error?

hosler
01-11-2016, 03:09 PM
I'm not seeing anything in my nginx error log when this happens.

Also sometimes I get this error instead of the previous one I mentioned: "Search result already expired, please try a new search." This error doesn't take up the whole screen, where the first error I mentioned in my first post did take up the whole screen and didn't render any images/styles/themes.

Here is the actual website: https://graal.in/

I'll leave the slave database enabled for a while.

Dave
01-11-2016, 03:15 PM
Hmm weird, my guess it's just an error announced by vBulletin 5 itself because something goes wrong inside of vBulletin. You could try posting on the official forums of vBulletin.com, maybe they can help you out.

hosler
01-11-2016, 04:10 PM
Hmm weird, my guess it's just an error announced by vBulletin 5 itself because something goes wrong inside of vBulletin. You could try posting on the official forums of vBulletin.com, maybe they can help you out.

yeah ive been trying, but I can't post anything yet. I guess I just need to wait longer for them to validate my forum account or something.

Anyway, the main reason im trying to do master/slave setup is to get a performance boost. my forums are just super slow and I can't figure out why.

Dave
01-11-2016, 04:12 PM
What's the load on PHP, MariaDB and the web-server?
Any decent VPS should be able to handle < 100 concurrent users with ease.

hosler
01-11-2016, 04:22 PM
It's a very light load. Anywhere between 0-4 active users with about 20 bots at any given time.