Learn about Centmin Mod LEMP Stack today
Register Now

Upgrading RAM, SSD server with centminmod?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Venucci, Oct 28, 2019.

  1. Venucci

    Venucci Member

    75
    8
    8
    Sep 25, 2018
    Ratings:
    +8
    Local Time:
    3:20 PM
    currentyl
    10
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.17.5
    • PHP Version Installed: i.e. 7.3.11
    • MariaDB MySQL Version Installed: i.e. 10.3.16
    • When was last time updated Centmin Mod code base ? : yesterday
    • Persistent Config:
    • letsencrypt y
    What i must do after upgrading my server ? I mean upgrading from 1 gb ram 20 ssd to 2gb ram 40 ssd ? thanks


    Would be possible to provide us with a full guide of steps ? I think that the vast majority of the people are interested in this option because we usually start from a small servers and we are going upgrading when possible so it would be beneficial for all of us . PLEASE :(, (make it for people like me noobs in centminmod and centos7 )

    pd: Would the free space ( additional 20gb ssd ) be recognised directly from the centminmod like free space ? I am using wordpress website
     
    Last edited: Oct 28, 2019
  2. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:20 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    check your disk partition size/free space with command
    Code (Text):
    df -hT

    If the upgraded disk size and available free space is reflected in that output, then nothing needed to be done. If it doesn't reflect in output after upgrade, then depending on how the partitions were created, you'd have to manually extend the partitions (if possible) and the method to do so will differ depending on your partition/disk config and setup. So best to contact your web host.

    If it's a VPS provider like DigitalOcean, Linode, Vultr etc. You can easily spin up a 1GB VPS and do test runs for upgrading to 2GB plans and then do tests for various guides online as to how to extend your disk partitions if they aren't automatically reflected in VPS upgrades. Once you've perfected it on test VPS, you can do it on your live production VPS/server.
     
  3. Venucci

    Venucci Member

    75
    8
    8
    Sep 25, 2018
    Ratings:
    +8
    Local Time:
    3:20 PM
    currentyl
    10
    So if the space is 40gb (20 more than the initial 20 ) the server would be working fine and using the new 2 RAM ( 1 more ram than the initial 1 ram) and centmin is going to be optimized to the new setup ? without running any number of the centmin menu ? Thanks
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:20 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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
    
     
  5. Venucci

    Venucci Member

    75
    8
    8
    Sep 25, 2018
    Ratings:
    +8
    Local Time:
    3:20 PM
    currentyl
    10
    Great thank you !!! You are the very best !
     
  6. tininho

    tininho Active Member

    182
    44
    28
    May 22, 2019
    eu
    Ratings:
    +135
    Local Time:
    4:20 PM
    Around 20% fluctuation (capacity) for a Upcloud 2CPU4Gb test server, when you run this several times. I guess it's normal variance.
     
  7. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    11:20 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    You're welcome @Venucci

    yeah setio.sh measures disk I/O performance in 16K page blocks at time of running so disk activity will affect it's results and what it sets