View Single Post
  #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
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01316 seconds
  • Memory Usage 1,768KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete