Forum Moderators: phranque
So the issue isn't server load, but the amount of open Apache connections.
What do you think my best option for this is? I tried installing mod_throttle but not too much luck there (still new to apache configurations). This could be the same issue an image hosting type site will see. The users who are pinging the server from other locations are killing the site for users actually trying to get there, many times even impossible to reach.
Has anyone worked with this issue or know a good resolution? Is there a way to allocate X amount of Apache connections for outside usage, so the people trying to access the site will always be able to connect. I don't mind user having to wait a little longer for their hosted images to load, but I do mind having my users on the site have to wait.
Any help would be a TREMENDIOUS help!
Thanks,
Jason
Jim
As far as Apache is concerned, *all* usage is "outside usage." There is no way to determine an image loaded by a client due to being included on one of your own pages from one being loaded by client loading an outside page, except for the (unreliable) HTTP_REFERER request header. It's unreliable because many users, user-agents, and caching proxies block the HTTP referrer header. I also don't know if you can throttle based on that header.
If you want to provide images without greatly impacting your own site, consider hosting the images on a "fat-pipe" distributed hosting service such as akamai, or setting up a separate image server.
Jim