vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   DB Slave Search Server (https://vborg.vbsupport.ru/showthread.php?t=181292)

TechGuy 06-02-2008 02:37 PM

DB Slave Search Server
 
I am attempting to use a MySQL slave server for search only. I have followed the advice in other threads in the forums and have modified my config.php as:

$config['Database']['dbtype'] = 'mysql_slave';
if (THIS_SCRIPT == search)
{
$config['SlaveServer']['servername'] = '192.168.0.4';
$config['SlaveServer']['port'] = 3306;
$config['SlaveServer']['username'] = '****';
$config['SlaveServer']['password'] = '*****';
$config['SlaveServer']['usepconnect'] = 0;

}

With these changes Vbulletin returns a blank white page. I modified the php.ini to turn all error logging on, however, I continue to receive no errors on screen nor in apache's error.log.

Any advice would be appreciated!

royo 06-02-2008 02:40 PM

Even though it's a local server address, you may want to remove the password, for security reasons. Sorry for being offtopic, and not being able to help you out though :/.

snakes1100 06-02-2008 02:49 PM

Did you try and enable debug in apache and see if it spit out any more info?

Do you have error logging on in mysql?

Marco van Herwaarden 06-02-2008 03:26 PM

Why are you enclosing this in an if-statement?

What you are doing now is to tell vBulletin to always use the slave server (vBulletin will only use the slave for queries that are not critical), but on any other page then the search page no MySQL server information is provided for the slave server.

TechGuy 06-02-2008 03:28 PM

Thanks royo. I was in such a hurry when I did that I completely forgot.

I have debug on for apache and there is nothing relating to search.php at all. Same goes for the MySQL error log.

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

Marco,

I was under the impression if I removed the conditional statement that VB would use the slave db for ALL reads. I only want VB to use the slave db when searching. Did I misunderstand?

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

Going through line by line I've been able to locate the two lines that are throwing the page off. I have no idea why these two lines are throwing the page off however, they are:
2237 eval(standard_error(fetch_error('searchnoresults', $displayCommon), '', false));
3736 eval('print_output("' . fetch_template($templatename) . '");');

Dismounted 06-03-2008 04:15 AM

Quote:

Originally Posted by TechGuy (Post 1538882)
I was under the impression if I removed the conditional statement that VB would use the slave db for ALL reads. I only want VB to use the slave db when searching. Did I misunderstand?

As Marco has said, vBulletin only uses the slave for non-critical reads, so you might as well enable for all pages.

TechGuy 06-03-2008 10:19 AM

Even without the conditional statement I am still receiving the blank page when a search is submitted.


All times are GMT. The time now is 01:31 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.01688 seconds
  • Memory Usage 1,724KB
  • 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
  • (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