Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
vB Accelerator Details »»
vB Accelerator
Version: 0.4, by Vitaly Vitaly is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.8.x Rating:
Released: 03-06-2009 Last Update: 03-09-2009 Installs: 87
Uses Plugins Auto-Templates
Re-useable Code  
No support by the author.

vb 4.0 version here

This mod is suited for medium and big boards. It reduces server load, caused by thumnails and big attachments.

what's the problem with?
  1. In original vB all thumbnails a downloaded via php. So, if you page contains 10-20 attached images, then each page php request will be followed by 10-20 thumbnails php requests. That's very bad.
  2. When attachments body transfered via php, that's much more waisteful, than direct transfer of static file. Especially for big files.
what this mod does:
  1. All thumbnails will have DIRECT links (served as static files). Much lower reply latency and server load.
  2. If you have nginx webserver, you php-fcgi will not participate in file transfer any more. It will reply with X-Accel-Redirect header. Then nginx will proceed attachment as static file.
    • No more problems with multiple downloads of 10-mb files.
    • No needs to restrict attachments and full-size images for guests and search bots.
  3. That works for forum posts, blogs, albums. Everywhere!
how to install:
  1. Make sure, this files are stored on disk, NOT in database:
    • post attachments & thumbnails
    • blog attachments & thumbnails
    • album images & thumbnails
  2. Make sure, that thumbnails are in web-accessible area. If not - reconfigure your web-server first. If you own big board - then you know how to do that .
  3. Check manually, that you can download any .thumb file via browser.
  4. Import this product, and set options for you configuration.
  5. Be happy to reduce server count in your cluster
PS. It's tested and works fine at my production site for 1 week. But I'll be happy to know server load statistics from big boards owners.

This mod is developped here: http://github.com/rcdesign/vb-accelerator . Patches are welcome.

History

0.4
- fixed bug with PHP wagnings in server logs.

0.3
- first public release

Download Now

File Type: xml product-vb_accelerator.xml (12.8 KB, 535 views)

Screenshots

File Type: gif vbaccelerator.gif (42.9 KB, 0 views)

Supporters / CoAuthors

    Show Your Support

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

    Comments
      #32  
    Old 05-10-2009, 08:00 PM
    vktechnology vktechnology is offline
     
    Join Date: Jul 2004
    Location: London, England
    Posts: 70
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Quote:
    Originally Posted by mindhunter77 View Post
    How do I make the thumbs web accessible? They are located in a web accessible DIR as well as 777 chmod but I still can not bring them up in a browser.

    I have same problem
    my path is "/home/palungjit/board/attachments"
    When i put this path it doesnt show thumbnail

    after i t put "attachments" then it work
    Reply With Quote
      #33  
    Old 05-10-2009, 08:11 PM
    vktechnology vktechnology is offline
     
    Join Date: Jul 2004
    Location: London, England
    Posts: 70
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    My board just in stall this plugin

    Posts: 1,773,284
    Members: 254,310

    Attachments : 255.61 GB
    Attachments : 495,833 reccords

    I thinks this plugin will help to reduce server load.
    Reply With Quote
      #34  
    Old 05-13-2009, 10:06 PM
    mindhunter77 mindhunter77 is offline
     
    Join Date: Jan 2006
    Posts: 194
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    how did you make the .thumb web accessible?
    Reply With Quote
      #35  
    Old 05-16-2009, 09:34 PM
    mindhunter77 mindhunter77 is offline
     
    Join Date: Jan 2006
    Posts: 194
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    is there a way to verify this is working, I think I finally got it all figured out but wanted to verify.
    Reply With Quote
      #36  
    Old 05-17-2009, 08:48 PM
    mindhunter77 mindhunter77 is offline
     
    Join Date: Jan 2006
    Posts: 194
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Finally got this going I think, only one drawback from my site, it seems that this conflicts with this mod,

    WATERMARK ATTACHMENTS
    https://vborg.vbsupport.ru/showthread.php?t=201972

    If I turn off Enable large downloads acceleration, the watermarking works again.
    Reply With Quote
      #37  
    Old 05-17-2009, 10:17 PM
    MmS1 MmS1 is offline
     
    Join Date: Nov 2008
    Posts: 51
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Not working
    the attachments still /attachment.php?attachmentid=2403
    plz help me am having big problem with attachments
    Reply With Quote
      #38  
    Old 05-18-2009, 02:24 PM
    mindhunter77 mindhunter77 is offline
     
    Join Date: Jan 2006
    Posts: 194
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Yea, mine look this
    Code:
    http://www.xxxxxxxxx.com/uploadedimages/1/20016.thumb?d=1222135419
    So I guess it's not working
    Reply With Quote
      #39  
    Old 05-18-2009, 08:40 PM
    MmS1 MmS1 is offline
     
    Join Date: Nov 2008
    Posts: 51
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    It's oky working fine with me
    But i can't download files pic's oky i can but files i can't

    even the attachments convert them into direct link or just thumb only
    Reply With Quote
      #40  
    Old 05-18-2009, 09:18 PM
    mindhunter77 mindhunter77 is offline
     
    Join Date: Jan 2006
    Posts: 194
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    could someone who has this working post their nginx.conf so I can see what I'm doing wrong, this still isn't working.
    Reply With Quote
      #41  
    Old 05-20-2009, 03:47 PM
    Vitaly's Avatar
    Vitaly Vitaly is offline
     
    Join Date: Apr 2004
    Location: Russia, St.Petersburg
    Posts: 428
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    For all, who think, that mod is not working:

    1. Check that thumbnails are accessible via www (type URL to any thumbnail in browres path). Browser should offer to download file or to show thumbnail (if youcared about mime type)

    2. Look into page source, and check "direct" path to any thumbnail. If pattern is different - fix appropriate mod settings.

    3. Split your job in 2 parts:
    - try to do direct thumbnails working first
    - try to make work nginx accelerated download. DONT turn it ON with another web-server.

    4. If you have VBSEO - don't enаble attachments rewrite.


    Sorry, but can't consult everyone about each particular configuration . I hope, that general recommendations will help.
    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 04:04 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.14093 seconds
    • Memory Usage 2,326KB
    • Queries Executed 27 (?)
    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_code
    • (1)bbcode_quote
    • (1)footer
    • (1)forumjump
    • (1)forumrules
    • (1)gobutton
    • (1)header
    • (1)headinclude
    • (1)modsystem_post
    • (1)navbar
    • (4)navbar_link
    • (120)option
    • (1)pagenav
    • (1)pagenav_curpage
    • (4)pagenav_pagelink
    • (11)post_thanks_box
    • (11)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (11)post_thanks_postbit_info
    • (10)postbit
    • (2)postbit_attachment
    • (11)postbit_onlinestatus
    • (11)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_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_attachment
    • postbit_display_complete
    • post_thanks_function_can_thank_this_post_start
    • pagenav_page
    • pagenav_complete
    • tag_fetchbit_complete
    • forumrules
    • navbits
    • navbits_complete
    • showthread_complete