vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Big Board Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=172)
-   -   MySQL Solutions (https://vborg.vbsupport.ru/showthread.php?t=168226)

MrLister 01-19-2008 07:39 PM

MySQL Solutions
 
How did you guys overcome the mysql hurdle? I have http spread out to 3 servers and mysql is currently to 1 and struggling.

What did you guys do add more mysql servers? (What method and setup, ex. master-master master-slave, etc..)

I have memcache in place on many spots but the number of connections to the server seem to be exceeding it's limit.

Thanks

bosal 01-21-2008 02:08 PM

show me the forum you are talking about

AWS 01-24-2008 05:47 PM

Set up master/slave.
Why would you use 3 servers for http and only one for mysql when mysql will need multiple servers before http will?

IronMountain 02-19-2008 03:33 AM

AWS is on the money, the hog is in the mySQL. Convert some of your Apache boxes to mySQL. Also make sure your mySQL servers have a good amount of RAM. Master-Master works especially well if you want some redundancy and Master-Slave works very well if you're only worried about a high load of readers but not that many writers.

Amenadiel 02-26-2008 02:00 AM

Quote:

Originally Posted by AWS (Post 1428104)
Set up master/slave.
Why would you use 3 servers for http and only one for mysql when mysql will need multiple servers before http will?

AWS, I'm replicating my vb database with master/slave, but the user I made to allow vbulletin to access slave db doesn't appear in the processes of the slave machine.

I understand that I should change the dbtype to mysql_slave on config.php, but where? there isn't a field for that purpose.

--------------- Added [DATE]1204000231[/DATE] at [TIME]1204000231[/TIME] ---------------

Update: if I set the dbtype in config.php as mysqli_slave or mysql_slave, a few connections spawn on the slave machine, but they stay as "unauthenticated user" just keep trying to login, while my webserver just hangs up.

--------------- Added [DATE]1204001092[/DATE] at [TIME]1204001092[/TIME] ---------------

New update: after giving the slavedb user global select privileges (not just for the vb slave database) and using mysql_slave instead of mysqli_slave, it works.

Princeton 02-29-2008 01:50 PM

Another Suggestion

If you have any products/plugins installed, check all the files and plugins associated with them. Many are not written properly - for MASTER/SLAVE configuration.

for example, many SELECTS that should be going to SLAVE are actually going to the MASTER. In fact, not to long ago some rewrites were done to vbulletin files to retrieve data from the SLAVE rather than the MASTER.

check all modifications found here and commercial addons

NOTE: not all SELECTs should go to the SLAVE as there may be a delay in the MASTER/SLAVE replication


All times are GMT. The time now is 10:50 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.02378 seconds
  • Memory Usage 1,718KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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