![]() |
quick question for server gurus
i think this issue was discussed before on GFY but i can't find the thread.
here's the problem. let's say you have a dedicated box which has tons of video galleries on it. and you have guys with very high speed connections clicking on like 20 of the vids all for simultaneous dowload, then they go have breakfast. and maybe you have 5 guys at the same time do this stuff. this degrades the server performance. what is the fix in apache to limit concurrent downloads from a single IP# to like maybe 4 or 5 files? anyone know, or anyone know of a good fix for this scenario? this is getting more common as surfers get ultra high speed connections. |
I'd recommend mod_throttle for apache:
http://freshmeat.net/projects/mod_throttle/ here's more info on it: http://www.snert.com/Software/mod_throttle/index.shtml |
nice try but he would need concurrent which is not supported via clientIP or Remote User
Concurrent Impose a limit on the number of concurrent requests at any one time. The period specifies how long data is accumulated before the counters are reset. This policy cannot be used with either ThrottleClientIP or ThrottleRemoteUser. fact of the matter is, they are downloading 2 files at a time max, if they are bypassing this rule, then they are breaking the RFC specs what you need is RAMMAGE |
I recommend placing all Your content to thttpd server. Apache is too slow.
|
dont think you can secure videos on a thttpd server...
|
If mod_throttle won't work for your needs then try mod_choke:
Quote:
http://os.cyberheatinc.com/mod_choke.php teksonline, mind letting know where I can find some info about 'rammage' ? |
may want to look into mod_limitipconn.c
|
We have a custom mod that limits the megs per user per day.
Other then that your server shouldn't slow down unless it can't handle the load. You may just need to upgrade your server load handling ability. Also make sure and block download bots from stealing your content. http://www.dwhs.com/hostingforum/viewtopic.php?t=1114 And password sharing obviously will drain your server as well so blocking that and hotlinking will make a big difference. |
freebsd has the nice feature of doing this directly from firewall
Code:
ipfw add 100 allow tcp from any to any 80 in limit src-addr 5iptables has also a patch that can do this. |
Quote:
tip of the hat to "darksoul" this tweak is now working, the guy throws a download utility on a movie page and can only get 5 at a time. NICE big BW saver! |
| All times are GMT -7. The time now is 11:56 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123