Want to subscribe to topics you're interested in?
Become a Member

If I upgrade my VPS????

Discussion in 'Install & Upgrades or Pre-Install Questions' started by cloud9, Mar 30, 2022.

  1. cloud9

    cloud9 Premium Member Premium Member

    435
    118
    43
    Oct 6, 2015
    England
    Ratings:
    +218
    Local Time:
    2:18 PM
    1.25.3
    10.6.x
    VPS at Hetzner, 2GB 1VCPU

    CMM installed

    If I upscale the VPS to a 4GB 2VCPU


    Im guessing as CMM customised the install to the VPS spec I need to alter a few things in the configs ?

    Any pointers ? Or should I spin one up - install CMM and take a look at the relevant files and then copy these to the other VPS once upscaled ?
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,807
    12,272
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,858
    Local Time:
    11:18 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yes Centmin Mod initial install auto optimizes the server configuration for detected server specs cpu/cpu model, memory, disk performance etc.

    If you upgrade your VPS, you can do some of the auto optimizations again

    For PHP-FPM, 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
    
     
  3. cloud9

    cloud9 Premium Member Premium Member

    435
    118
    43
    Oct 6, 2015
    England
    Ratings:
    +218
    Local Time:
    2:18 PM
    1.25.3
    10.6.x
    Thanks, what about nginx workers etc ?