Welcome to Centmin Mod Community
Become a Member

Nginx How to limit UPLOAD Speed on Nginx?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by rdan, Jan 21, 2018.

  1. rdan

    rdan Premium Member Premium Member

    4,228
    1,029
    113
    May 25, 2014
    Ratings:
    +1,470
    Local Time:
    8:21 AM
    Mainline
    10.2
    limit_rate works fine with Download Speed (Server > Client).
    But doesn't work with Upload Speed (Client > Server).

    Only possible way is using this 4 years old module:
    Upload | NGINX
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,100
    7,750
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,951
    Local Time:
    10:21 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    what usage case you have that requires this ?
     
  3. rdan

    rdan Premium Member Premium Member

    4,228
    1,029
    113
    May 25, 2014
    Ratings:
    +1,470
    Local Time:
    8:21 AM
    Mainline
    10.2
    I have this Upload/File Sharing site.
    With Traditional HDD not SSD.
    So I want to limit upload speed/files written on the disk simultaneously to avoid stressing it.
     
  4. eva2000

    eva2000 Administrator Staff Member

    35,100
    7,750
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,951
    Local Time:
    10:21 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Actually that upload module you linked to is 9yrs old Branches · vkholodkov/nginx-upload-module · GitHub so definitely not an option. Don't know of one for nginx off the top of my head unfortunately. Maybe something you need to code at the script coding level i.e. PHP
     
    • Like Like x 1
..