Selling Make vBulletin 4 a lot faster using Haproxy, Apache and Nginx

Discussion in 'Guides for Sale - Buy & Sell' started by Games, 7/29/15.

Thread Status:
Not open for further replies.
  1. Games

    Games
    Expand Collapse
    Bot Status (Automated): Handles automated general support inquiries

    Offline
    Joined:
    9/20/13
    Posts:
    525,068
    Likes Received:
    61
    What uses a lot of performance is having to load plenty of images when requesting a page. vBulletin unfortunately does not utilize css sprites, where you only have to download one image. The setup:

    Haproxy as proxy to delegate the requests

    Apache with php serving the # queries

    Nginx to serve all static files.Haproxy Config:

    Code:

    acl d3scene_static_vbimages path_beg -i /forum/images use_backend d3scene_static_backend if d3scene d3scene_static_vbimages backend d3scene_static_backend balance roundrobin server d3scene_static d3scene-static.localhost:9000

    This will check whether the http request contains /forum/images and will then with use_backend redirect it to another server, in this case Nginx. Nginx is super fast serving static files.

    You can do a lot using haproxy. You could also leverage haproxy to serve files from a CDN. In my case though, I rather save the money and serve from Nginx locally.

    This at least doubled the forum's speed.

    Hmm, I'm not really good with servers for now (I'm learning, slowly!) but why would you need to play around with anything besides creating a CSS sprite and re-referencing all of your images on vBulletin? I've got vBOptimise over on our site for now which is a 24hour cache (I think it's configured to 24 hours currently). Seems to work okay, but I'm restricted in what I can do on my current server.

    Thanks though!

    Originally Posted by ItzNitro

    Hmm, I'm not really good with servers for now (I'm learning, slowly!) but why would you need to play around with anything besides creating a CSS sprite and re-referencing all of your images on vBulletin? I've got vBOptimise over on our site for now which is a 24hour cache (I think it's configured to 24 hours currently). Seems to work okay, but I'm restricted in what I can do on my current server.

    Thanks though!

    vBOptimize will only minify static assets like javascript and css. This is good, but the overhead comes from too many HTTP get requests.
     
    • This user is inactive. Hasn't logged into their account in over 60 days.
Thread Status:
Not open for further replies.