Join the community today
Become a Member

Upgrade Resizing VMs

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Nik, Jul 4, 2018.

  1. Nik

    Nik Member

    31
    1
    8
    Dec 7, 2015
    Ratings:
    +4
    Local Time:
    8:44 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    Apologies if this has been asked or if it's in the wrong forum but what guidance is there regarding adjustments to Cent after an existing centminmod VM is resized and capacity is increased for example double RAM and an extra CPU core or two.

    Should I be rerunning the install script or manually making adjustments to various config ie PHP, Maria, OS etc.

    Appreciate insights.

    This is for beta of course
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,896
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,176
    Local Time:
    10:44 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Nothing is needed to be done really but if you must you can recompile PHP via centmin.sh menu option 5 so auto redetects memory and server resources and manually re-run /usr/local/src/centminmod/tools/setio.sh as follows
    Code (Text):
    /usr/local/src/centminmod/tools/setio.sh set
    

    which will recalculate MariaDB MySQL innodb I/O variable values to set

    i.e.
    Code (Text):
    /usr/local/src/centminmod/tools/setio.sh set
    Full Reads: 24975
    Full Writes: 59362
    
    set innodb_flush_neighbors = 0
    
    innodb_io_capacity = 2900
    
    +------------------------+-------+
    /etc/my.cnf adjustment
    +------------------------+-------+
    existing value: 
    Variable_name   Value
    innodb_io_capacity      2700
    innodb_io_capacity_max  5400
    new value: 
    Variable_name   Value
    innodb_io_capacity      2900
    innodb_io_capacity_max  5800
    
    +------------------------+-------+
    innodb io threads adjustment
    +------------------------+-------+
    existing value:
    +------------------------+-------+
    innodb_read_io_threads = 2
    innodb_write_io_threads = 2
    +------------------------+-------+
    new value:
    +------------------------+-------+
    innodb_read_io_threads = 2
    innodb_write_io_threads = 2
    +------------------------+-------+
    
    Restart MySQL server for io thread changes
    
     
    • Like Like x 1
    • Informative Informative x 1
  3. Nik

    Nik Member

    31
    1
    8
    Dec 7, 2015
    Ratings:
    +4
    Local Time:
    8:44 AM
    Great thanks for the quick reply.
     
..