Join the community today
Register Now

Install Upgrade Just a Query regarding server upgrade

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Subha Pal, Mar 10, 2020.

  1. Subha Pal

    Subha Pal New Member

    9
    2
    3
    Jul 9, 2018
    Ratings:
    +5
    Local Time:
    1:23 AM
    Hey everyone !!

    I have installed centminmod in one server (1vcpu, 1GB Ram, 40GB SSD)( Lightsail).

    I want to scale my server to (1vcpu, 2GB RAM, 60GBSSD).

    I take a snapshot and create a new server with (1vcpu, 2GB RAM, 60GBSSD) from snapshot.

    My question "is centminmod tweak new server created from snapshot? or I have to manually tweak "
     
  2. eva2000

    eva2000 Administrator Staff Member

    43,524
    9,875
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,251
    Local Time:
    5:53 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Generally auto optimized setups are initial install only so snapshots on upgraded servers won't have same auto optimized config settings. However, some can be done manually. But, going from 1GB to 2GB memory won't really change your optimized settings much at all, you'd need 4GB or 8+ GB memory to see some differences for auto optimized formulas to trigger more substantial changes.

    You can also spin up a 2nd test 2GB same spec VPS and install Centmin Mod and compare it's auto optimizations to see what is different and apply them manually.

    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
    
     
    • Like Like x 1
  3. Subha Pal

    Subha Pal New Member

    9
    2
    3
    Jul 9, 2018
    Ratings:
    +5
    Local Time:
    1:23 AM
    Thanks @eva2000 for clarifying the doubts
     
  4. Rake-GH

    Rake-GH Active Member

    101
    40
    28
    Jul 29, 2019
    USA
    Ratings:
    +67
    Local Time:
    3:53 PM
    default
    default
    I was wondering the same thing recently, I already recompiled php but I will run setio as well
     
  5. mayorjc

    mayorjc New Member

    5
    0
    1
    Jun 18, 2018
    Ratings:
    +2
    Local Time:
    2:53 PM
    I'm nearing a time to upsize a server on Upcloud. Was planning to just upsize and run setio. Trying to avoid a new server and site migrations. Is only way to update other PGO settings via parallel spec server?
     
  6. eva2000

    eva2000 Administrator Staff Member

    43,524
    9,875
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,251
    Local Time:
    5:53 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    What I posted above is correct still if you want to initial install auto optimize. But if you want to keep your existing settings and just enable PHP PGO, just set PHP_PGO='y' and recompile php via centmin.sh menu option 5