vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Mysql Slave Databases, Load Balancing AND Failover (https://vborg.vbsupport.ru/showthread.php?t=113681)

Make Money? 04-21-2006 04:42 PM

Mysql Slave Databases, Load Balancing AND Failover
 
Here's what I'm trying to do:

I want to use Vbulletin's slave database option AND have failover. I've got 2 servers. I'm using www.zoneedit.com to round-robin my dns between Server A and Server B. Both Servers Vbulletin's are writing to the database on Server A and reading from the database on Server B.

In the event Server A fails, Server B needs to suddenly now both read and write to it's own (hopefully up-to-date) replicated database. Is there any way to tell Server B it needs to now stand on it's own 2...erm...legs?

Then what happens when Server A recovers and comes back online? While the servers can each be configured to act as both master and slave, Server A may not have caught up before it is thrust back into action. Perhaps there is a way to force Server A not to appear? You can specify a string on a page for Zoneedit to check to see if a server is offline or not. Maybe a script in vbulletin which checks the binlogs of both servers to see if it's caught up before revealling some text?

And maybe this script could even show or not show the string depending on the load of the server, that way Zoneedit would switch the dns long before the actual crash occurs!

Any cool ideas? :banana:


All times are GMT. The time now is 03:53 PM.

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.00894 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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