Join the community today
Register Now

Sysadmin Centmin Performance On Storage Servers

Discussion in 'System Administration' started by skringjer, May 16, 2019.

  1. skringjer

    skringjer NoobMaster69 Premium Member

    199
    23
    18
    Apr 21, 2019
    Ratings:
    +39
    Local Time:
    5:59 AM
    Nginx 1.21.6
    MariaDB 10.3.x
    Greetings everyone, so i have 3 servers right now on Centmin,

    One being the application server and the other 2 being the file servers which serves uploads and downloads for the main application server.

    As said earlier, i am amazed by Centminmod on the main application server, however on the storage servers when high downloads starts and the uplink starts hitting 800 - 900 Mbps, the server load increases and becomes very slow to response. And hence the uploads starts failing, however the downloads works.

    When the download speeds are around 800 on the server i can not upload anymore files, the uploads speeds at this stage are relatively low like 150 - 200 Mbps so then i change my users to the other server,


    I have the exact same server hardware configuration on VestaCP and that performs really well, like 800+ Mbps downloads and 800+ Mbps uploads at the same time,

    I know there is some configuration issue with my Centmin configuration may be, if someone knows anything please let me know.

    Server Configuration:
    1 x Dedicated Root Server SB51
    * Intel Core i7-3770
    * 4x HDD SATA 6,0 TB Enterprise
    * 4x RAM 8192 MB DDR3
     
  2. eva2000

    eva2000 Administrator Staff Member

    49,879
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:59 AM
    Nginx 1.21.x
    MariaDB 10.x
    Without know about specific configurations and setup of your app and file storage servers and how you have modified Centmin Mod LEMP stack configuration, it would be hard to know why i.e. how are files actually served downloaded/uploaded which what scripts and what script language and configuration etc. If it's served via php-fpm, then you need to tune your php-fpm settings outlined at PHP-FPM - How to troubleshoot & optimize PHP-FPM server?

    Are they same servers you reloaded CentOS 7 OS on for Centmin Mod install ? Or newly ordered servers os same specs but not exactly the same servers as VestaCP ? If the latter then they can not be exactly the same as even changes in what particular network card /model are used can change the way network capabilities perform.

    Centmin Mod is provided as is, so troubleshooting load issues is left to end user to do. However, there's many linux tools and scripts that can help you figure out what was causing the issues, when and why.

    If you're providing info on this forum, more info might be helpful
    1. What version of Centmin Mod ? .08 stable or .09 beta ? If .09 beta when was it installed and when was last time you updated ?
    2. What's your VPS/Server hardware specifications ? cpu type ? memory available ? disk space ?
    3. Who's your web host ? Different hosts have different limits for server resource usage and some are more restrictive that others so it could just be their resource usage policy you tripped which may or may not be restrictive. If restrictive, then real solution would be finding a better web host. If not restrictive, then it's finding out what caused high cpu load.
    4. If running Centmin Mod 123.09beta01 or higher, you will have access to a cminfo top command which can also provide a summary of statistics - some of which are explained in info and linked articles below.
    Tools and commands you will want to read up on and learn for basic system admin tasks and troubleshooting.
    For example what's output for these commands
    Code (Text):
    top -bn1
    

    Code (Text):
    ps aufxw
    

    Code (Text):
    sar -q
    

    Code (Text):
    sar -r
    

    Code (Text):
    sar -q -f /var/log/sa/sa$(date +%d -d yesterday)
    

    Code (Text):
    sar -r -f /var/log/sa/sa$(date +%d -d yesterday)
    

    If you want to look at per process usage stats use pidstat run pidstat every 1 sec for 5 runs and sed is just to replace your main hostname with word hostname so mask your domain for posting on public places
    Code (Text):
    pidstat -durh 1 5 | sed -e "s|$(hostname)|hostname|g"
    

    for posting code you might want to use CODE tags for code How to use forum BBCODE code tags :)
     
  3. skringjer

    skringjer NoobMaster69 Premium Member

    199
    23
    18
    Apr 21, 2019
    Ratings:
    +39
    Local Time:
    5:59 AM
    Nginx 1.21.6
    MariaDB 10.3.x
    I have been looking into the forum and other threads, will update you on the progress, i have 1 question in mind

    Why cant i get more than 40 Mbps download speed from webservers? http://prntscr.com/nrykyy

    As you can see in the above image, i am not getting past 40 Mbps eventhough both the computer and server have 1 Gbits uplinks, on FTP from the same server i get 90+ download speeds,

    I have tested this on VestaCP too but that also does not allow more than 40, is it an OS config or web-server related?
     
  4. eva2000

    eva2000 Administrator Staff Member

    49,879
    11,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,839
    Local Time:
    10:59 AM
    Nginx 1.21.x
    MariaDB 10.x
    exact same server as Centmin Mod or different VPS with same web host ? if it's same web host then it could be the web host and/or OS/nginx/TCP settings which you may need to tune for your needs. Or it could be limited by your web app/php app which serves those downloads.
     
  5. skringjer

    skringjer NoobMaster69 Premium Member

    199
    23
    18
    Apr 21, 2019
    Ratings:
    +39
    Local Time:
    5:59 AM
    Nginx 1.21.6
    MariaDB 10.3.x
    Could be PHP that servers the downloads, Have you ever tested a speed test of your files?
     
  6. skringjer

    skringjer NoobMaster69 Premium Member

    199
    23
    18
    Apr 21, 2019
    Ratings:
    +39
    Local Time:
    5:59 AM
    Nginx 1.21.6
    MariaDB 10.3.x