Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2015, 09:06 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Vbulletin 4 with Nginx performance

Good day everyone,

I hope at first that everyone is doing great in his/her life!

well as you know this issue we have mostly among those who own their own dedicated server or VPS, and some hosting companies as well may provide such web server 'Nginx'.

what I want to discuss is vbulletin 4 on Nginx and far you got with both working together since vb board version 4 is somehow heavy compared to vb v.3

my question is how do you rate your vb4 on Nginx especially when it comes to browsing? how fast is it? if you measure your board speed on some online measuring tools such as tools.pingdom.com or www.webpagetest.org or even google insight... how bad or good is it?

I have been trying a lot of testing lately to see how fast and powerful it can go since I found some sites could achieve 1 sec page load speed using vb3 with Nginx when browsing any of their pages.

what about Time to first byte TTFB? how good is that?

As for me, I use vbulletin 4 on Nginx using php5-fpm with memcached enabled and the speed is at some level slow ranging between 1.5 sec to sec 2.3, and of course using Cloudflare to reduce latency and bandwidth as well as caching static files.

Still I have an issue with TTFB = 1.233 sec .... this is very bad for TTFB, not sure what causes that anyways!!

you are welcome to share your experience!! :up:
Reply With Quote
  #2  
Old 07-06-2015, 06:29 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My experience is that with nginx and with no addons at all, the forums almost loads instantly. But this also depends on the database size, the server and tons of options management with vB4 that changes the loading speed, eg:

http://www.vbulletin.com/forum/forum...ms-vbulletin-4

While from 2010, quite a few options are very helpful.

I've read on a lot of sites that memcached is only helpful when it is running with multiple servers, rather than one. With only one, xcache would be better. But in general I skip xcache/memcache and go with filecache when the server is running on SSD.

My 2 cents.
Reply With Quote
Благодарность от:
MarkFL
  #3  
Old 07-07-2015, 04:20 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks @Skyrider for your comments.

when checking vb4 major impact, it is limited to 2 things: first is the database since it takes a lot of RAM 'multiple queries', second is the resources used on the board such as css, js and images.

now when we compare using Nginx with Apache on vb, there is a big difference in performance when it comes to concurrent connections and in this case Apache wins. However, Nginx wins when it comes to static files that you will use once upon the time and then cache it forever 'max cache'.

Here is the major impact where I experienced so far:

1- web tools that are designed to cache queries:
a- memcache 'memcached' --> memory caching system "used mostly for websites that depend on dynamic database such as forum boards 'vBulletin for example'. mainly it will reduce the RAM used by caching database queries and that's why some mods such as vboptimise is there to reduce the database RAM use.

b- Redis --> another way how to cache database and it is in fact excellent tool more powerful than memcached except that I know no one to be able to set it up with vbulletin because of the complicated coding.

c- Varnish --> possibly the most powerful caching software as it is as well an http accelerator. This tool is truly amazing as it has many other pros such as improving server and pages performance in a very noticeable way. if installed properly a vb board or any kind of forum board will be running super fast. usually admins hire some Engineer to do this job. sadly I didn't find much info about how to set it up on vb boards.

2- web tools to cache PHP:

a- APC --> Alternative PHP Cache; very common PHP accelerator that many forum admins use to speed up PHP delivery to client side.

b- eAccelerator --> used to be a good PHP accelerator, but at some point it is out-dated 'no support or improvement made recently'.

c- XCache --> another powerful for PHP acceleration; caching php file and deliver them to client-side.

d- Zend Opcache --> possibly the most powerful tool, can cache PHP and deliver them very quickly. This tool includes Zend Optimizer if necessary to web admins to maintain Zend Opcache automatically without the need to modify from time to time.


3- Using a CDN 'A content delivery network' to make forum board even faster by reducing latency, bandwidth, content delivery and minifying most resources such as css, js and html.

This is basically where I noticed the major performance change comes from. I know for sure that there might be some modules to setup on Nginx to accelerate http request, but have't done any testing on this side so far.

any comment is welcome
Reply With Quote
  #4  
Old 07-07-2015, 08:06 AM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found this for Varnish:

http://www.vbulletin.com/forum/forum...in-share-yours

From 2011, but still might be helpful.

What about your server though? What kind of VPS / Dedicated server is it? What is your RAM / swap? CPU, cores? What kind of nginx configuration(s) are you running for nginx? And what is your main nginx configuration file? Eg, your worker_processes and worker_connections settings. And with FPM, are you using static, dynamic or on demand?

And are you using gzip?

There are so many variables with nginx/fpm that can make a huge difference on how fast your vBulletin setup will run.
Reply With Quote
  #5  
Old 07-10-2015, 06:09 AM
fxdigi-cash fxdigi-cash is offline
 
Join Date: Jul 2012
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Skyrider for the comments, I will answer your questions as soon as I have enough time because there is a lot to explain and write. :up:
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 04:13 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05549 seconds
  • Memory Usage 2,211KB
  • 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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (1)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete