vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Big Board Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=172)
-   -   Ways to optimize vBulletin post your solutions (https://vborg.vbsupport.ru/showthread.php?t=115130)

dbembibre 05-09-2006 06:51 AM

Ways to optimize vBulletin post your solutions
 
If interesting make a list with diferents solutions to optimize the servers.
Mine

Server:
Dual Xeon 2.8 (Dual), 2Gb Ram and SCSI Ultra 320 without Raid
Fedora Core 2.
eAccelerator, MySQL 4.1 and PHP 4.2

Stats:
Number of Posts 1.232.221
Number of members 16.927
Online 500-800

vBulletin:
-Natural search instead off vBulletin search.
Boolean search OFF

-A plugin to disable search when load is high
https://vborg.vbsupport.ru/showthread.php?t=102882

-vBulletin cache ON with eAccelerator and cached keys of static data

-Index for ip field in post table.

Please post your solutions about caching and optimize vBulletin

Excuse my broken English.

Xorlev 05-09-2006 06:34 PM

-APC cache. I recommend APC cache over eAccelerator if you're not on a shared environment, or need the decoding abilities of Zend Optimizer. If you do, then run eAccelerator (keep an eye out for bugs) + Zend Optimizer.

-Run PHP 5.1.2+. PHP 5 is horribly slow, and I prefer it over PHP 4. By default, PHP 5 also passes objects as references rather than copies which can save on RAM.

-PHP via FastCGI or similar. I run my PHP with Litespeed webserver...it has a custom SAPI module that's faster than FastCGI, but even so FastCGI is far faster than CGI or mod_php.

-Dump Apache. Apache is a great server, but it tries to be everything to everyone and is rather clunky. Use Lighttpd (can use FastCGI), or give Litespeed webserver a try.

-Setup MySQL with a query cache. It takes more RAM, but it saves the need for executing the same SELECT queries over and over when the dataset is still the same.

-Disable per-thread and per-forum "who's online". It's a neat feature, and I use it, but if you're squeezing for performance this can help.

-Plugin Based Template Cache. When used in "multiple files" mode, this works to great effect with APC.

I have some more I'll post later.

Zachery 05-09-2006 06:39 PM

Go to vBulletin.com and visit the server optmization forum.

APC cache is nice, so go with it.

PHP 5 with APC is a great optimization and I'd have to recomend it, altho PHP4 is just as fast overall.

Do not run php as CGI/FastCGI esp if you continue running apache.

Not everyone has the ability to dump apache, possibly cpanel in the way, however you can still make use of lighttpd by compiing it binding it to a free ip and moving your static images over to it on a subdomain like images.domain.com.

The plugin based template cache is not actually that much more of a preformance boost in a large real world enviroment.

Xorlev 05-09-2006 06:53 PM

Lightspeed webserver works with CPanel by importing current apache config and replaces it fine.

Zachery 05-09-2006 08:07 PM

What about adding new accounts, cpanel tryign to restart apache? etc?

dbembibre 05-09-2006 09:26 PM

Thanks for your responses, the server is mine but the problem is that i pay for plesk panel and plesk need apache.

WRT APC, i test APC a months ago and the load o f my server up and up. eAccelerator ever work well for me. I try use Lightspeed in another server for images only and update to PHP 5.1.

I remove the Raid1 of my server and move MySQL to the secondary disk, now the response is incredible :)

Thanks for your tips.

Xorlev 05-09-2006 10:22 PM

Quote:

Originally Posted by Zachery
What about adding new accounts, cpanel tryign to restart apache? etc?

Litespeed automatically reloads the apache config when it changes. As for the rebooting, I just replaced /etc/init.d/httpd with a custom wrapper for lswsctrl. Also, Litespeed when importing Apache config writes out the byte log like Apache would, so bandwidth is still shown. Suspending a site is just a rewrite rule, so that's no problem either. Also, in the latest release of Litespeed you can manually specify a byte log in vhosts you create so you can track bandwidth (either through CPanel or otherwise).


More tips:

-Set CSS to save to file.

-Set attachment and profile/avatar pictures to save to filesystem.

dbembibre 05-09-2006 10:47 PM

Quote:

Originally Posted by Xorlev

More tips:

-Set CSS to save to file.

-Set attachment and profile/avatar pictures to save to filesystem.

Yes, i make this 2 years ago, thanks again sir

ThorstenA 05-14-2006 10:32 PM

You can also do not show who's online for guests. If you have lots of guests, it will give your forum more speed ;)

Erwin 05-16-2006 12:23 AM

I totally disable it. :)


All times are GMT. The time now is 11:45 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.01104 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete