vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=263)
-   -   Master-Slave mysql replication (https://vborg.vbsupport.ru/showthread.php?t=321471)

hosler 01-11-2016 02:46 PM

Master-Slave mysql replication
 
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:
Code:

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/communi...ation-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

Quote:

Originally Posted by Dave (Post 2562454)
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.


All times are GMT. The time now is 11:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00961 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete