Discover Centmin Mod today
Register Now

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,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    8:26 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

    36,073
    7,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,198
    Local Time:
    10:26 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,256
    1,035
    113
    May 25, 2014
    Ratings:
    +1,487
    Local Time:
    8:26 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

    36,073
    7,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,198
    Local Time:
    10:26 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
..