Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there a way to limit download bandwidth (or download speed) for my web site in Windows Server 2008?

I do not want any limitations for viewing my web site and loading pages, just for downloads.

Sometimes I get 503 errors because of downloads and number of users, which I would like to prevent.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

One way to do it is to use a proxy server between your users and web server. A proxy server like squid uses delay_pools to limit the download speed from your server.

The download limit can be applied to certain IPs and certain URLs. The appropriate acls should be defined to apply the limit only to the download URLs. The best scenario is to have all big downloads under a specific set of directories.

share|improve this answer
    
really thanks for answer / what exactly limits (in configure area - right side of iis) does ? are those limits useful for my purpose? –  MoonLight Nov 27 '11 at 10:45
    
Sorry, I don't have experience in iis. My idea is based on using a proxy server like squid. There are many resources/docs available about squid config. –  Khaled Nov 27 '11 at 12:02
add comment

You can limit FTP bandwidth and number of connections in IIS but this will not cure your problem. IIS6 and IIS7 have different ways of doing this but if you search for 'bandwidth throttling' or 'bit rate throttling' you'll find loads of info.

If you're not using IIS then the solution will depend on the web server. For finer grained throttling you will need an external box between your server and the internet. Many firewalls do this reasonably well... the more you pay the better they get.

If you have X bandwidth then you need to make a decision on how you are going to limit your download bandwidth so that you will leave enough for your http users but not cut ftp connections. If you have, say, 100Mb of bandwidth and 1000 people ftp'ing files at once then limiting downloads to 50mb/sec and allowing unlimited downloads will mean people are downloading at approx (50*1000*1000)/1000 = 50kbs. (About 5-6KB/sec). You need to do the approx math to work out how you can limit things.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.