Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > General Hosting/Server Discussions
Server loads and high volume sites Details »»
Server loads and high volume sites
Version: , by MPDev MPDev is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 09-20-2006 Last Update: Never Installs: 0
 
No support by the author.

I've been meaning to post this for a while; but some time back I was having some performance issues on my server. With 1,000+ users online at my forums I was getting some long page generation times; after doing some research I found a solution that has helped me greatly.

I am running two web servers on my server - one Apache server bound to my main IPs and one thttpd server bound to a single IP which I use for all image hosting. By changing my configuration to load all the style images from the lightweight thttpd server I was able to remove the need for Apache to handle all the image requests. Using Apache to host up all those images was a resource dog because of the need to have PHP, MySQL and all the other extensions loaded when all I want was to serve up images.

So, if you have a forum with a high load and are looking to find ways to make your forums a little snappier; you might consider trying this solution.

Cheers.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-20-2006, 09:18 PM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have a tutorial for something like this? I definately could use it! Thanks!!
Reply With Quote
  #3  
Old 09-21-2006, 11:38 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd be glad to post how I did it - it was a little daunting at first, but it pretty straight forward.
Reply With Quote
  #4  
Old 09-22-2006, 12:46 AM
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Location: Armyville
Posts: 1,074
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please!
Reply With Quote
  #5  
Old 09-22-2006, 01:27 AM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would the attachment images also be getting served from the thttpd server.

I'm serving up probably on average 15-50 attachments per thread and sometimes alot more, and i think its cuasing alot of my load issues.

Thanks
Reply With Quote
  #6  
Old 09-23-2006, 12:52 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know Erwin did something similar to this and it reduced his server load a lot! I have not gotten to the point where I need multiple servers yet, but I do plan on doing this is the need ever arises.
Reply With Quote
  #7  
Old 09-23-2006, 01:36 AM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Basically it works like this - you need to have multiple IPs assigned to your server. You'll need an IP you haven't used because you'll be running a web server that doesn't process PHP or anything else, just serves up html and images.

Make sure your apache doesn't bind to that IP; just the other IP(s) for your apache sites which have PHP, MySQL, etc.

Install thttpd and configure it to run on the new IP address , create the images directory and move all your skin images, etc into that tree and start it. Then change your skins to use either the new IP or a domain you assign to the new IP.

I can post my thttpd config file if that helps. I created a domain that I use only to host my images from and all that traffic is offloaded from my Apache server saving alot of processing time loading the fullblown Apache when only a lightweight image server is needed.

The only trick is making sure you have a free IP to use (or getting one) and then making sure that thttpd is bound to that IP and everything else to Apache.
Reply With Quote
  #8  
Old 09-23-2006, 03:49 PM
mikeclarke's Avatar
mikeclarke mikeclarke is offline
 
Join Date: Nov 2005
Location: South Jersey
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Page generated in 1.70361 seconds with 10 queries [Server Loads: 13.87 6.96 : 4.52]

Hostgator reseller plan.
Reply With Quote
  #9  
Old 09-23-2006, 04:16 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yikes! That's bad.... First you have a load over 3 - way over 3, over 10 means your server is struggling big time and possibly swapping.
Reply With Quote
  #10  
Old 09-23-2006, 04:20 PM
hotwheels hotwheels is offline
 
Join Date: May 2005
Location: Cheyenne, wy
Posts: 1,380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
[Page generated in 1.70361 seconds with 10 queries [Server Loads: 13.87 6.96 : 4.52]
Dang, that is bad.....Are you on a shared server? If so, contact them and have them look into that or move you to a less intense server.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:19 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.06575 seconds
  • Memory Usage 2,280KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete