Posted by gopichandmb on December 15, 2016 at 6:52am
We are exploring few options to setup a site for drupal 7 , we have few combinations like
Nginx + varnish + php7 + php-fpm + memcache + APCU + zend opcode
Apache + varnish + php5 + HHVM + memcache
we need some suggestions on this
This is a media publishing website has more content and it can have 300 - 600 page visits for an hour and has 25000 articles.
Comments
If we are talking about
If we are talking about anonymous users a properly configured varnish will take care of them and what you have behind will not matter that mush.
A straight forward Apache/Nginx + MariaDB + PHP-FPM (5.6.x or 7.x) + OPcache can handle a lot if set up correctly. See e.g this old 2bit article where they handle over 3 million page views a day on one Apache server!
https://2bits.com/drupal-performance/presentation-34-million-page-views-...
Thanks Frjo
Thanks for sharing this link
Make code better
-Madhav
We can implement different
We can implement different layers of caching in Drupal to boost the performance.
Despite caching techniques, below soft-wares mandatory to run the application.
Webserver (Apache/Nginx)
PHP - 5.4 or Above
Mysql/Mariadb Latest version.
Caching layers:
Varnish:
Works only for anonymous users.
It will sit in from of the web server, so request will come to Varnish and if it found cached copy of the page, it will serve it, Otherwise request will goto apache/nginx server and get the response and store it in the cache to server for next request. So using Varnish we can save web server requests.
Memcache:
Works for all users (anonymous and authenticated)
It will replace cache_* tables and store cached content in RAM and server very quickly. We can also set which cache bins can store in memcache ex: cache_views, cache_block etc., in settings.php. Remaining will be served from db cache_ table.
Drupal Core Caching:
Drupal core itself caches data in db in cache_* tables which save mysql requests to multiple tables.
APC:
The Alternative PHP Cache (APC) is a free and open opcode cache for PHP, Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.
High level,
Varnish will be used to save apache hits,
Memcache will save db hits.
APC will save PHP code execution.