Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2006, 06:36 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default External Attachment Storage

I know this has been asked before and generally points to a specific release here at vBulletin.org, however I am looking for a simple modification that will allow me to do the same without having to integrate a different download/attachment system.

Has anyone been able to successfully have their attachments ported to a seperate server that would mind sharing the code or Ext/Plugin to do so?
Reply With Quote
  #2  
Old 05-27-2006, 06:50 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know that erwin had done it in the past, there are possibly several ways of doing this. Either ftping files to a remote server during the upload, or rysyncing the attachments folder to the remote server. Then uploading nessary files to the remote server to process things, like attachment.php global.php config.php etc.
Reply With Quote
  #3  
Old 05-27-2006, 07:16 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I knew that Erwin had accomplished this, however I wasn't sure if anyone had made such coding public as of yet. It'd be a great feature to have as a side option or even in future versions of vBulletin.

I may have to take a look at those files and see what I can come up with, though if anyone else has already completed this task, I'd be very interested to speak with them and see how they accomplished this.
Reply With Quote
  #4  
Old 05-27-2006, 07:30 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any reason you want to store files externally?
Reply With Quote
  #5  
Old 05-27-2006, 07:43 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
Any reason you want to store files externally?
Specifically, to lessen the load on a single server and off-load it to another. While on new communities, it wouldn't mean much, though on more active communities it could drop the load. The less activity specifically placed to a single server, the more speed available for other comsuming resources and queries.

Overall, to save CPU cycles, save memory and drop the load altogether. Why strain the server any more than it needs to be when you could simply offset the load to another if you have it available?
Reply With Quote
  #6  
Old 05-27-2006, 08:16 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You would probally notice a better preformance increasae by offlodaing all of your static files to an external server, or even another services. lighttpd is a great server, I've moved 95% of the static content on one of the sites i help run to an lighttpd server and the server was able to survive the E3 barrage, both the apache machine and the image/content servers.
Reply With Quote
  #7  
Old 05-27-2006, 08:24 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seperating the images & attachments from the static PHP files to an external server would be doing just that, however, remaining on an Apache based system.

The static files themselves do not force a load on the server, however utilizing and storing the attachments to the database or by using the file system does when there is such high usage to these areas of the community.

Offsetting the load of the attachments and images specifically to another server will reduce the load since a great deal of the activity is there.

This is not so much for your average community with posts, threads and users online, it's for an approach using vBulletin more as a CMS and download-specific tool.
Reply With Quote
  #8  
Old 05-27-2006, 08:27 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You'd be suprised how big of a difference offloading the other static content (not attachments) makes. We went from loads of 5,10,20, duruing preE3 week to 1~ the entire week of E3 while our servers were hammered. (we had more traifc after E3 as well). Apache is not the greatest static file server when you've got 4000 people trying to download large files.
Reply With Quote
  #9  
Old 05-27-2006, 08:37 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With the current setup, everything resides on the same server and while the loads are not high by any means, there's room for improvement and seperating that which gains the most traffic is the best starting point. In this case, it's the images and attachments.

The other static files simply aren't hit enough, or even used as much to warrant moving them to their own server. It's kind of the opposite end of the spectrum.

Most people use vBulletin as a community software, in this case, more of a download and image manager.
Reply With Quote
  #10  
Old 05-27-2006, 11:10 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But you are ignoreing the fact of how often images are called, even if cached. Theres quite a few images here that apache would not have to deal with serving. Since i left your hosting I've moved from my own hosting company to consulting for lots of bigboards now and have been doing fieldtests of differnt methods to improve website preformance under high usage loads. I'm currently looking into not only clustering but also in general spacing systems to do specific tasks and working on finding programs that better accomplish tasks. Apache is a decent program for processing php, but lighttpd is doing a much much better job serving static content (images etc) and I'll be testing how it does with php in the naer future. However there are already a few very large boards who've made this transition and its been wonderful.
Reply With Quote
Reply


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 06:03 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.04159 seconds
  • Memory Usage 2,253KB
  • Queries Executed 13 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete