Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vB Accelerator Details »»
vB Accelerator
Mod Version: 0.4, by Vitaly (Coder/Designer) Vitaly is offline
Developer Last Online: Mar 2013 I like it Show Printable Version Email this Page

vB Version: 3.8.x Rating: (14 votes - 4.07 average) Installs: 81
Released: 07 Mar 2009 Last Update: 10 Mar 2009 Downloads: 500
Not Supported Uses Plugins Auto-Template Re-usable Code  

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

Only licensed members can download files, Click Here for more information.

Supporters / CoAuthors

Screenshots

Click image for larger version

Name:	vbaccelerator.gif
Views:	1643
Size:	42.9 KB
ID:	96054

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Plugin Accelerator Trigunflame vBulletin 3.5 Add-ons 259 27 Sep 2011 21:11

  #46  
Old 21 May 2009, 19:12
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
Oh, by the way, vitaly I was able to still use vbseo on attachments as well =)
Reply With Quote
  #47  
Old 21 May 2009, 20:26
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
You mean, "attachments rewrite" vbseo options? I din't checked it at all, because don't use it (that option is off in my vbseo config).

Anyway, check twice, that your nginx config has separate "location" for thumbnails, and that this location stays before vbseo location. For example, you can temporary add deny rule for thumbnails location, to check that it's really catched.

vbseo php code should NOT be called for direct thumbnail links. Or you'll get no benefits from this mod.

Mod idea is:
- minimise php calls (no calls for thumbnails at all)
- minimise useless data transfer (can make sense for big attachments)
Reply With Quote
  #48  
Old 21 May 2009, 20:51
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
It strange, I have rewrites enabled for attachments, yet everything works. My headers are showing that they are coming through as direct links like


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I must be doing something wrong then lol,
Reply With Quote
  #49  
Old 21 May 2009, 22:28
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
vitaly,

can you think of a good way to tell if this is working? I disabled vbseo attachment rewrites, and it still appears to be working, thumbnails are showing up, but is there a way to test if it's actually doing what it's superposed to?
Reply With Quote
  #50  
Old 21 May 2009, 22:49
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
If you turned on "nginx acceleration option", then it's ok.

If you wish to check thumbnails - add "deny all" to thumbnails location from nginx config (see sample from first post). If thumbnails disappears - then all is ok, roll back your nginx config. If thumbnails still shown - then they goes via vbseo rewrite rules and you have to fix nginx config. See my previous recommendation.

The last way to check - turn mod off when server is loaded and check load difference. ~20% in my case. Of cause, if you have few attachments, there will be no difference at all.

VBSEO itself doesn't affect bebefits of this mod, if you've managed to get direct links to thumbnails and proper nginx config. But I've not checked combination with "attachments rewrite" option, so, can't comment if it conflicts with this mod or not.
Reply With Quote
  #51  
Old 21 May 2009, 23:14
MmS1 MmS1 is offline
 
Join Date: Nov 2008
Thanks i have two problem
1 when i active this mod i can't download any files "attachments"

2 It's only for thumbs i mean is there any option to make it with other attachments i have a big Problem with attachments server load i have more then 60 user download attachments each One 20 mb and up to 40
Thats will help me alot
Reply With Quote
  #52  
Old 21 May 2009, 23:43
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
MmS1,

Do you use nginx webserver? I have no problems with full attachments (not thumbs), but this option work ONLY with nginx. With other webserver "nginx acceleration" must be disabled, see FAQ. Don't enable all mod options "just for fun", if you don't have nginx webserver.

If you use nginx, but full attaches can't be downloaded, check twice absolute path to directory (see config samples in FAQ)

Try to re-read FAQ and my explanations on previous page.

Last edited by Vitaly : 21 May 2009 at 23:52.
Reply With Quote
  #53  
Old 21 May 2009, 23:58
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
This is the config I used when I had your mod working AND vBSEO attachment rewrites going. Now from the site, everything worked. In fact, load even when down. Yet I'm not sure if it's correctly working or not.

Notice I did not add your config options as this seemed to work.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #54  
Old 22 May 2009, 00:29
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
At first glance, that can work

IMHO, there are no reasons to add "expires max". Very cheap economy, but potential problems with browser cache, if you upload new CSS for some mod and so on.
Reply With Quote
  #55  
Old 22 May 2009, 00:54
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
ok, set at 30d; ??
Reply With Quote
  #56  
Old 22 May 2009, 01:04
Vitaly's Avatar
Vitaly Vitaly is offline
 
Join Date: Apr 2004
No. Remove it at all.
Reply With Quote
  #57  
Old 22 May 2009, 02:52
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
ok,

For those who want to test this mod with vBSEO still handling your attachments this is my working conf file nginx. This one is updated from the last one I posted and has some fixes. Keep in mind a few things.

1) In my conf where it says /thumbnails is not attachment thumbnails, I embed flv video on my site and this is where the flv thumbs go. You will not need this.

2) I placed this in the mod config area, and have both options set to YES.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3) My server was running between 2.00 and 3.00 at all times before this mod, it now runs at 1.0 or less. I could probably get it even lower then that if I disabled the handling of attachments through vBSEO all together, but I get a lot of google image traffic and don't want to risk loss of ranks.

4) My forum gets about 50,000 unique per day, 90% of all threads contain pictures and video with picture thumbnails at 400px.




Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #58  
Old 22 May 2009, 12:09
MmS1 MmS1 is offline
 
Join Date: Nov 2008
Originally Posted by Vitaly View Post
MmS1,

Do you use nginx webserver? I have no problems with full attachments (not thumbs), but this option work ONLY with nginx. With other webserver "nginx acceleration" must be disabled, see FAQ. Don't enable all mod options "just for fun", if you don't have nginx webserver.

If you use nginx, but full attaches can't be downloaded, check twice absolute path to directory (see config samples in FAQ)

Try to re-read FAQ and my explanations on previous page.
Thanks alot but iam not running with nginx
I have hostshare is that oky i mean they can install nginx 4 me or not

My attachments path out forum path how can mange this

mydomain.com/vb this is my forum path
mydomain.com/vbatttatn this is my attachments path
Reply With Quote
  #59  
Old 22 May 2009, 17:41
mindhunter77 mindhunter77 is offline
 
Join Date: Jan 2006
nginx is a webserver, for this to work 100% you need to be using nginx as your webserver, your host may not just switch that for you, you will have to ask them
Reply With Quote
  #60  
Old 22 May 2009, 20:51
MmS1 MmS1 is offline
 
Join Date: Nov 2008
thanks i'll ask them
and about the path

My attachments path out side forum path how can mange this

mydomain.com/vb this is my forum path
mydomain.com/vbatttatn this is my attachments path
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 00:21.

Layout Options | Width: Wide Color: