Want more timely Centmin Mod News Updates?
Become a Member

Beta Branch Centmin Mod .09 beta branch Testing

Discussion in 'Beta release code' started by eva2000, Aug 12, 2015.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    Update MariaDB 10 my.cnf preset templates and specifically set a [client] section with socket defined https://community.centminmod.com/posts/24059/

    commit update MariaDB 10 my.cnf preset templates · centminmod/centminmod@8b107ca · GitHub

    Add PHP_MYSQLSOCKPATH variable in centmin.sh that can change the path which is set for php configuration option for mysql https://community.centminmod.com/posts/24063/. I'd set it via persistent config instead of centmin.sh as outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS

    so in /etc/centminmod/custom_config.inc add /custom/path for /custom/path/mysql.sock
    Code:
    PHP_MYSQLSOCKPATH=/custom/path
    commit update inc/php_configure.inc and centmin.sh · centminmod/centminmod@20008b3 · GitHub

    @Matt :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    Need for more speed :D Updated curl installer method to improve install times. All up for curl installer method, you're look at up to 30% faster install times compared to Centmin Mod's code yesterday :) Variance depends on number of cpu cores your server as and geographical location.

    Commit at update beta installers & inc/yuminstall.inc · centminmod/centminmod@da72405 · GitHub

    tests done on a 4 cpu core 1GB OpenVZ VPS from @Steve Tozer (theskyspace.com) :D

    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 82.6664 seconds
    Total YUM Time: 47.520051481 seconds
    Total YUM + Source Download Time: 66.7801
    Total Nginx First Time Install Time: 130.4317
    Total PHP First Time Install Time: 198.3389
    Download Zip From Github Time: 4.5602
    Total Time Other eg. source compiles: 219.4978
    Total Centmin Mod Install Time: 615.0486
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 702.2752 seconds
    ---------------------------------------------------------------------------
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    Just updated Centmin Mod 123.09beta01 to install ffmpeg with --disable-network out of the box update addons/ffmpeg.sh and centmin.sh menu option 19 · centminmod/centminmod@71282f2 · GitHub. Work around security vulnerability in FFMPEG https://community.centminmod.com/posts/24071/

    Compile ffmpeg binary with --disable-network by default when DISABLE_NETWORKFFMPEG='y' variable is set in ffmpeg.sh. If set to n it will re-enable network support in ffmpeg

     
  4. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    7:46 PM
    I just installed updated beta on a brand new 2GB Linode wioth Centos 7... I havn't been keeping a record of the previous installs, but here are my stats for reference.

    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 108.8948 seconds
    Total YUM Time: 184.486777158 seconds
    Total YUM + Source Download Time: 206.9208
    Total Nginx First Time Install Time: 236.4897
    Total PHP First Time Install Time: 475.0301
    Download Zip From Github Time: 1.4097
    Total Time Other eg. source compiles: 290.7654
    Total Centmin Mod Install Time: 1209.2060
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1319.5105 seconds
    ---------------------------------------------------------------------------
    
    
     
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    cheers @ethanpil which region was that Linode at, seems slightly longer than what I usually experience at Linode but could be region related as most downloads for Centmin Mod sources are located in USA.
     
  6. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    local virtualbox centos 7.2 guest OS tests from my laptop which are usually alot slower due to git/github and mariadb yum repo downloads from USA to Australia are slower 600-900KB/s slow !

    Differences between 123.08stable and 123.09beta01 are come down to what's installed and how it's installed as 123.09beta01 has additional php extensions installed and php itself is compiled with more optimized compiler tuned for intel processors if centmin mod detects an intel processor installed.

    Also 123.09beta01 installs PHP 5.5.31 by default instead of 123.08stable's PHP 5.4.45 default and PHP 5.5.31 is a larger package in terms of source compile time as is newer PHP 5.6 and 7.0 branches.

    centmin mod 123.08stable + centos 7.2 64bit
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 115.1559 seconds
    Total YUM Time: 132.986016867 seconds
    Total YUM + Source Download Time: 188.8446
    Total Nginx First Time Install Time: 202.3494
    Total PHP First Time Install Time: 240.6424
    Download Zip From Github Time: 14.4356
    Total Time Other eg. source compiles: 379.4857
    Total Centmin Mod Install Time: 1011.3222
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1140.9137 seconds
    ---------------------------------------------------------------------------
    
    centmin mod 123.09beta01 + centos 7.2 64bit
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 113.6366 seconds
    Total YUM Time: 142.585444839 seconds
    Total YUM + Source Download Time: 181.9276
    Total Nginx First Time Install Time: 207.4937
    Total PHP First Time Install Time: 357.0856
    Download Zip From Github Time: 89.4539
    Total Time Other eg. source compiles: 392.6908
    Total Centmin Mod Install Time: 1139.1977
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1342.2882 seconds
    ---------------------------------------------------------------------------
    
    Looks like difference comes down to slower github zip download time 14.4356 vs 89.4539 and the PHP source compile times 240.6424 vs 357.0856 and the other source compile times 378.4857 vs 392.6908 so pretty normal as newer PHP versions take longer to compile + using intel optimised compiler flags do add time.

    PHP has tarball's with better compressed size than gzip (tar.gz) with xz compression (tar.xz) which are about 1/2 the size so might switch to that to speed up slower geographical locations downloads or i can not use fixed php USA download urls and try to determine geo location to download closest to the server's location :)
     
    Last edited: Jan 15, 2016
  7. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
  8. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    retest 123.09beta01 with default php tar.xz compressed bundled slightly faster due to faster yum install and github zip download speeds

    Australia local virtualbox CentOS 7.2 64bit
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 100.2926 seconds
    Total YUM Time: 106.712329821 seconds
    Total YUM + Source Download Time: 148.6153
    Total Nginx First Time Install Time: 202.5150
    Total PHP First Time Install Time: 369.9259
    Download Zip From Github Time: 15.9568
    Total Time Other eg. source compiles: 400.4394
    Total Centmin Mod Install Time: 1121.4956
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1237.7450 seconds
    ---------------------------------------------------------------------------
     
  10. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    tested on 1GB OpenVZ Los Angeles based VPS and php didn't get installed hmm
    Code:
    *************************************************
    * Installing PHP
    *************************************************
    ./centmin.sh: line 1117: cd: php-5.5.31: No such file or directory
    ./centmin.sh: line 1119: ./buildconf: No such file or directory
      -m64                                  [enabled]
      -m80387                               [enabled]
      -m96bit-long-double                   [enabled]
      -maes                                 [enabled]
      -malign-stringops                     [enabled]
      -march=                               core2
      -mavx                                 [enabled]
      -mcx16                                [enabled]
      -mfancy-math-387                      [enabled]
      -mfp-ret-in-387                       [enabled]
      -mfpmath=               
      -mfused-madd                          [enabled]
      -mglibc                               [enabled]
      -mhard-float                          [enabled]
      -mieee-fp                             [enabled]
      -mpclmul                              [enabled]
      -mpopcnt                              [enabled]
      -mpush-args                           [enabled]
      -mred-zone                            [enabled]
      -msahf                                [enabled]
      -msse                                 [enabled]
      -msse2                                [enabled]
      -msse3                                [enabled]
      -msse4                                [enabled]
      -msse4.1                              [enabled]
      -msse4.2                              [enabled]
      -mssse3                               [enabled]
      -mstackrealign                        [enabled]
      -mtls-direct-seg-refs                 [enabled]
      -mtune=                               generic
    ../configure --enable-fpm --enable-intl --enable-pcntl --with-mcrypt --with-snmp --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar  --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-vpx-dir=/usr --with-t1lib=/usr --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-config-file-scan-dir=/etc/centminmod/php.d --with-xsl
    inc/php_configure.inc: line 315: ../configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.001s
    user    0m0.001s
    sys     0m0.000s
    make: *** No rule to make target `install'.  Stop.
    
    real    0m0.001s
    user    0m0.001s
    sys     0m0.000s
    
    strip PHP binary...
    ls: cannot access /usr/local/bin/php: No such file or directory
    ls: cannot access /usr/local/bin/php-cgi: No such file or directory
    strip: '/usr/local/bin/php': No such file
    strip: '/usr/local/bin/php-cgi': No such file
    ls: cannot access /usr/local/bin/php: No such file or directory
    ls: cannot access /usr/local/bin/php-cgi: No such file or directory
    
    ----------------------------------------------------------------------------------
    PHP was not installed properly
    ----------------------------------------------------------------------------------
    looks like it wasn't extracted for php tar.xz
    Code:
    ls -lah /svr-setup/ | grep php
    -rw-r--r--  1 root  root   974K Jun 18  2015 mongo-php-1.6.9.tgz
    -rw-r--r--  1 root  root    16M Sep 13 02:33 php-5.4.45.tar.gz
    -rw-r--r--  1 root  root    11M Jan 16  2016 php-5.5.31.tar.xz
    drwxrwxr-x  5 root  root   4.0K Jan 17  2015 phpredis-2.2.7
    -rw-r--r--  1 root  root   135K May 31  2015 phpredis-2.2.7.tgz
    fixed with commit at update inc/downloads.inc · centminmod/centminmod@283d6a7 · GitHub :)

    restest on 1GB openVZ VPS Los Angeles
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 153.9251 seconds
    Total YUM Time: 51.191310571 seconds
    Total YUM + Source Download Time: 71.1580
    Total Nginx First Time Install Time: 130.3320
    Total PHP First Time Install Time: 198.8627
    Download Zip From Github Time: 4.6452
    Total Time Other eg. source compiles: 222.3861
    Total Centmin Mod Install Time: 622.7389
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 781.3092 seconds
    ---------------------------------------------------------------------------
     
    Last edited: Jan 15, 2016
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    Testing php geo location matching for PHP upgrades. Had to add a few more commits to 123.09beta01 to fix this routine and got it working on local virtualbox CentOS 7.2 64bit OS

    with php geo location matching my AU = Australian location
    Code:
    *************************************************
    * Upgrading PHP
    *************************************************
    AU server detected
    Initializing download: http://au1.php.net/get/php-5.6.17.tar.xz/from/this/mirror
    File size: 11575424 bytes
    Opening output file php-5.6.17.tar.xz
    Starting download
    
    Connection 1 finished                                                          ]
    Connection 3 finished                                                          ]
    Connection 0 finished                                                          ]
    [100%] [..................................................] [   5.7MB/s] [00:00]
    
    Downloaded 11.0 Megabyte in 1 second. (5868.02 KB/s)
    without php geo location match it uses default USA php.net mirror and is much slower 1/10th speed to Australia 1s vs 20 seconds !
    Code:
    *************************************************
    * Upgrading PHP
    *************************************************
    Initializing download: http://php.net/get/php-5.6.17.tar.xz/from/this/mirror
    File size: 11575424 bytes
    Opening output file php-5.6.17.tar.xz
    Starting download
    
    Connection 2 finished                                                          ]
    Connection 0 finished                                                          ]
    Connection 1 finished                                                          ]
    [100%] [..................................................] [ 539.8KB/s] [00:00]
    
    Downloaded 11.0 Megabyte in 20 seconds. (539.83 KB/s)
    here's any idea of how long it takes just to download 123.09beta01.zip from Australia = yes ~46 seconds

    Code:
    time wget https://github.com/centminmod/centminmod/archive/123.09beta01.zip
    --2016-01-15 13:16:39--  https://github.com/centminmod/centminmod/archive/123.09beta01.zip
    Resolving github.com (github.com)... 192.30.252.129
    Connecting to github.com (github.com)|192.30.252.129|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://codeload.github.com/centminmod/centminmod/zip/123.09beta01 [following]
    --2016-01-15 13:16:40--  https://codeload.github.com/centminmod/centminmod/zip/123.09beta01
    Resolving codeload.github.com (codeload.github.com)... 192.30.252.163
    Connecting to codeload.github.com (codeload.github.com)|192.30.252.163|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 51565350 (49M) [application/zip]
    Saving to: ‘123.09beta01.zip’
    
    100%[================================================================================================================================================================================================================>] 51,565,350   576KB/s   in 44s
    
    2016-01-15 13:17:25 (1.12 MB/s) - ‘123.09beta01.zip’ saved [51565350/51565350]
    
    
    real 0m46.192s
    user 0m0.761s
    sys  0m1.934s
    unfortuantely axel breaks when too many 302 redirects are in a url
    Code:
    axel https://github.com/centminmod/centminmod/archive/123.09beta01.zip
    Initializing download: https://github.com/centminmod/centminmod/archive/123.09beta01.zip
    Too many redirects.
    
    Since php download is now geo locale mapped, i can probably remove it from the downloads/svr-setup.zip bundle in 123.09beta01.zip zip to reduce its size on slow github.com download in favour of fast php.net local country mirror url :)
     
    Last edited: Jan 15, 2016
    • Like Like x 1
  12. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    7:46 PM
    The first test I posted above was on a Dallas, TX linode.

    I did another test just now on a 2048 node in Newark, NJ

    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 125.8897 seconds
    Total YUM Time: 236.549713949 seconds
    Total YUM + Source Download Time: 260.6556
    Total Nginx First Time Install Time: 312.4568
    Total PHP First Time Install Time: 591.2247
    Download Zip From Github Time: 2.5738
    Total Time Other eg. source compiles: 364.1431
    Total Centmin Mod Install Time: 1528.4802
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1656.9437 seconds
    ---------------------------------------------------------------------------
    
     
    • Informative Informative x 1
  13. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    thanks for this info looks like it's slower due to just having 2 cpu cores as source compiles make use of parallel make and more cpu cores = faster compilation is done.

    also yum and source download is slower could just be the base CentOS OS image not having being updated as centmin mod install also does a yum update to ensure you're on latest packages so if base image starts out needing many yum updates, that can add to the time
     
  14. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    7:46 PM
    I agree, I also think install time is not much of a consideration for most people that use centminmod. While a faster install is nice, its not a critical decision factor, imho. Were here for the speed, security and stability that comes after install... :)
     
  15. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    Indeed although my goal is trying to get install speeds to between 600-900 seconds if possible for VPS installs and <600 seconds for dedicated servers :)
     
  16. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    11:46 AM
    1.9.9
    10.1.10
    Can't wait to test axel downloads out on the new dedi :)
    Unfortunately still not set up, been ~26hours so most likely will be soon though :)
     
    • Like Like x 1
  17. RoldanLT

    RoldanLT Well-Known Member

    3,875
    946
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,290
    Local Time:
    5:46 PM
    1.11
    10.2
    Ramnode 1GB plan Premium KVM

    Nginx Upgrade:
    Total Nginx Upgrade Time: 51.797795224 seconds

    PHP Upgrade:
    Total PHP Upgrade Time: 125.596824582 seconds
     
    • Informative Informative x 1
  18. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    Nice and fast :)
     
  19. RoldanLT

    RoldanLT Well-Known Member

    3,875
    946
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,290
    Local Time:
    5:46 PM
    1.11
    10.2
    That was using 09beta upgrade already :).
    Less extensions, modules :)
     
  20. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    Ah i see :D