The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Best way to host attachments remotely?
[edit] Nevermind, I think I'll just use the vB Image Hosting mod instead. [/edit]
I'm running vBulletin on a tri-server setup -- one webserver and one database server in one colo and a hosted box elsewhere for static stuff like images and such. I need to conserve as much bandwidth as possible on the webserver and instead use the low power, but huge bandwidth static box. I'm currently using phpBB and hosting the avatars remotely. I do this by running a cron that syncs the avatars folder on the static box with the one on the webserver and then redirecting to the static box via a .htaccess file. Works quite well (except for the couple minutes after a user uploads an avatar and before the cron has had a chance to sync their image over, but that's handled by a pretty "coming soon" image). See it in action here. Anyway, now that we're switching to vB, I'd like to do something like that for the attachment system. I've told vB to store the attachments as files on the webserver rather than in the database, but of course attachment.php still reads the file and then outputs the file contents in order to mask the URL/path of the attachment file. I have come up with two ideas for serving the attachments off of the static box. Both start with creating a sync of the attachments folder on the static box (very easy to do). Then...
|
#2
|
|||
|
|||
If you need strong control attachments with vb, you can use webserver nginx to produce special header which point accelerator to file. (some other accelerators also can do it). It's works for me vb3.5. ( without download resume code)
No content trasfer between php, only headers and still not so fast like static files. |
#3
|
|||
|
|||
Yes, you need to get all your boxes in one data center, then have them put all on one subnet/switch to communicate privately between two servers.
Most private/backend bandwidth is provided free of charge at reputable datacenters. You'll see a huge increase in speed and a drop in bandwidth usage |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|