Centmin Mod Nginx CLI Install Mode Benchmarks

Centmin Mod v1.2.3-eva2000.07 next release is coming soon. It’s currently being beta tested within the Centmin Mod Google+ Community. This .07 release will have the largest amount of improvements, additions and changes since v1.2.3-eva2000.01.

Centmin Mod .06 and below used a shell based menu to install Centmin Mod Nginx web stack. However, with .07 release there will be two additional methods of installation available. The .07 release will bring back two forms of CLI command line unattended installation to complement the normal shell based menu install method currently outlined here.

CLI Install Method #1

If you run the normal centmin.sh, it will give you the usual menu options. Selecting and typing menu option #1 will install Centmin Mod.

If you run and pass the install option within SSH, you will trigger the CLI install method which will automatically just install Centmin Mod and bypass the menu completely and is same equivalent as running menu option #1 on menu mode.

CLI Install Method #2

The second CLI install method builds on the first method and wraps everything within a shell based wrapper script for one liner installation which also bypasses the menu as well. Below is for .07 beta version install, the installer.sh url will be different for stable .07 release.

Centmin Mod CLI Install Benchmarks on DigitalOcean VPSes

I decided to benchmark the new Centmin Mod CLI install method #2 by spinning up three DigitalOcean VPSes of different sizes 512MB, 2048MB and 8192MB and see how fast the respective VPSes install Centmin Mod Nginx web stack. Centmin Mod install logs all install steps as well as the total time it took to install Centmin Mod. The logs are at /root/centminlogs.

Centmin Mod installer is based on the 9th .07 beta listed in Google+ Community thread and will install the following web stack majority of which is done via source compilation (read FAQ #18 for reasons why):

  • Nginx 1.5.12 via source compile
  • PHP 5.4.26 then upgrade to PHP 5.5.10 (php-fpm) via source compile
  • MariaDB 5.5.36 MySQL performance fork via official YUM repository
  • PHP opcode cache: APC Cache 3.13 + igbinary 1.12-dev via source compile
  • Memcached Server 1.4.17 + Memcache 3.0.8 PHP Extension via source compile
  • Libmemcached 1.0.18 + Memcached 2.1.0 PHP Extension via source compile
  • ImageMagick 3.1.2 PHP Extension via source compile
  • NSD for DNS via source compile
  • Siege Benchmark Tool via source compile
  • CSF Firewall via source compile

3 DigitalOcean VPS configurations:

VPS 1

  • 512MB Memory
  • 1 Processor(s)
  • 20GB SSD Disk
  • 1TB Transfer
  • CentOS 6.5 32bit
  • SFO region

VPS 2

  • 2GB Memory
  • 2 Processor(s)
  • 40GB SSD Disk
  • 3TB Transfer
  • CentOS 6.5 64bit
  • SFO region

VPS 3

  • 8GB Memory
  • 4 Processor(s)
  • 80GB SSD Disk
  • 5TB Transfer
  • CentOS 6.5 64bit
  • SFO region

Notes for Centmin Mod v1.2.3-eva2000.07:

  1. .07 includes a feature where by if your VPS or server has more than >2.8GB of memory installed, the initial install source directory at /svr-setup is mounted now as a tmpfs ramdisk which is auto unmounted at end of initial installation. If you have less than <2.8GB of memory installed then the usual method of on disk /svr-setup directory is used. As such the 8192MB VPS will have /svr-setup mounted as tmpfs ramdisk for initial installation.
  2. .07 has increased the PHP version used as default for out of box installs. Prior to .07, default installed PHP version 5.3.28 is installed with APC Cache 3.1.13 + igbinary 1.12-dev. Now with .07 release default installed PHP version is 5.4.26 installed with APC Cache 3.1.13 + igbinary 1.12-dev.
  3. .07 release can now also allow users to override the default installed PHP Opcode cacher – APC Cache with Zend OpCache by editing centmin.sh and changing ZOPCACHEDFT=’n’ to ZOPCACHEDFT=’y’ prior to initial install or after install (for PHP upgrades).
  4. Centmin Mod since first v1.2.3 release uses CCACHE compiler caching which can reduce source recompile times by as much as 60%. However, CCACHE shouldn’t affect the initial install times much as there’s not much to pull from cache the first time round.
  5. For below CLI install mode benchmarks, will be using the default PHP 5.4.26 with APC Cache 3.1.13 + igbinary 1.12-dev

CLI install benchmark results

Seems the fastest CLI install time came from 2048MB VPS for CLI installation, followed by 8192MB VPS and 512MB VPS coming last.

Install times can vary many reasons including:

  • How noisy and busy the VPS neighbours are on the VPS node
  • VPS hardware, specs
  • Internet and network connectivity and speed to respective VPS servers
  • The 8192MB VPS might had additional delays for setting up ramdisk tmpfs and mounting it and at end of install unmounting and copying the ramdisk tmpfs files to ondisk directory.

512MB VPS CLI install

2048MB VPS CLI install

8192MB VPS CLI install

Nginx Re-Install times

While I still have the three VPSes running, I also ran centmin.sh menu option #4 to reinstall Nginx 1.5.12 and then ran menu option #5 to upgrade PHP from 5.4.26 to 5.5.10 with Zend Opcache. These menu options also are fully logged at /root/centminlogs.

Seems the fastest Nginx re-install time came from 2048MB VPS, followed by 512MB VPS and 8192MB VPS coming last.

512MB VPS Nginx 1.5.12 re-install

2048MB VPS Nginx 1.5.12 re-install

8192MB VPS Nginx 1.5.12 re-install

512MB VPS PHP 5.4.26 to 5.5.10 upgrade + Zend OpCache

Seems the fastest PHP upgrade time came from 8192MB VPS, followed by 2048MB VPS and 512MB VPS was very slow coming last (don’t think I have ever seen PHP upgrade than ran so slowly as on this 512MB VPS test).

Total time includes recompiling the following PHP extensions:

  • igbinary 1.12-dev PHP Extension
  • Memcached Server 1.4.17 + Memcache 3.0.8 PHP Extension
  • Libmemcached 1.0.18 + Memcached 2.1.0 PHP Extension
  • ImageMagick 3.1.2 PHP Extension

2048MB VPS

Total time includes recompiling the following PHP extensions:

  • igbinary 1.12-dev PHP Extension
  • Memcached Server 1.4.17 + Memcache 3.0.8 PHP Extension
  • Libmemcached 1.0.18 + Memcached 2.1.0 PHP Extension
  • ImageMagick 3.1.2 PHP Extension

8192MB VPS

Total time includes recompiling the following PHP extensions:

  • igbinary 1.12-dev PHP Extension
  • Memcached Server 1.4.17 + Memcache 3.0.8 PHP Extension
  • Libmemcached 1.0.18 + Memcached 2.1.0 PHP Extension
  • ImageMagick 3.1.2 PHP Extension

 Screenshots 3-way compare

512MB VPS vs 2048MB VPS vs 8192MB VPS

Centmin Mod CLI install benchmark comparison

 

 

Posted in Centmin Mod Tagged with: , , , , , ,
× -