|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Oct 2003
Posts: 3,191
|
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. |
|
|
|
|
|
#2 |
|
Confirmed User
Industry Role:
Join Date: Apr 2006
Posts: 647
|
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 |
|
|
|
|
|
#3 |
|
So Fucking Banned
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
|
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 |
|
|
|
|
|
#4 |
|
Confirmed User
Industry Role:
Join Date: May 2005
Location: EU - Czech republic
Posts: 3,025
|
I recommend placing all Your content to thttpd server. Apache is too slow.
|
|
|
|
|
|
#5 |
|
So Fucking Banned
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
|
dont think you can secure videos on a thttpd server...
|
|
|
|
|
|
#6 | |
|
Confirmed User
Industry Role:
Join Date: Apr 2006
Posts: 647
|
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' ? |
|
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Apr 2004
Location: NEW YORK CITY
Posts: 2,274
|
may want to look into mod_limitipconn.c
__________________
Make Real Green with ORGANIC SEO | Blog post exchange | Non-index page trades | A-B C-D Trades [icq: 194-215-962] [mail: [email protected]] |
|
|
|
|
|
#8 |
|
Confirmed User
Industry Role:
Join Date: Aug 2002
Posts: 9,752
|
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. |
|
|
|
|
|
#9 |
|
Confirmed User
Join Date: Apr 2002
Location: /root/
Posts: 4,997
|
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 5 iptables has also a patch that can do this. |
|
|
|
|
|
#10 | |
|
Confirmed User
Join Date: Oct 2003
Posts: 3,191
|
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! |
|
|
|
|