logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in  RSS Apache Lounge  


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.


Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Optimizing Apache for Downloads
Author
dprutean



Joined: 29 Sep 2021
Posts: 1
Location: Germany, Munich

PostPosted: Thu 30 Sep '21 12:42    Post subject: Optimizing Apache for Downloads Reply with quote

I have a server on Hetzner, where I run Apache. There are some web pages and software kits to download, about 150Mb each. Sometimes in the evening, the download speed gets very slow.
I wanted to ask about your recommendation about how to limit the traffic per client ( not that somebody clicks the same download link multiple times ) or any other suggestions you have.
Back to top
tangent



Joined: 16 Aug 2020
Posts: 131
Location: UK

PostPosted: Sat 02 Oct '21 12:19    Post subject: Reply with quote

There have been a number of bandwidth limiting modules for Apache over the years, but at best they limit traffic per connection, not per client IP.

The standard module mod_ratelimit is pretty basic, whilst development of the more configurable mod_bw stalled over a decade ago. Nonetheless, Steffen has previously compiled up mod_bw-0.92, made available on the download page; see https://www.apachelounge.com/viewtopic.php?p=20951

Traffic management is big business for service providers these days. Nonetheless, this module should help you put some restrictions on your download kits.
Back to top
maba



Joined: 05 Feb 2012
Posts: 64
Location: Germany, Heilbronn

PostPosted: Tue 05 Oct '21 18:59    Post subject: Reply with quote

The other option is to do that at the OS firewall level (assuming you are using a Linux box, quite likely at Hetzner). Iptables / Nftables can throttle bandwidth for you. However this needs to be balanced with the Apache config. If you throttle bandwidth, the individual download will take longer and therefore the overall number of connections, needed on the Apache side, might grow.
Back to top


Reply to topic   Topic: Optimizing Apache for Downloads View previous topic :: View next topic
Post new topic   Forum Index -> Apache