WEB apache limit connections

Discussion in 'OT Technology' started by maxxpower, Apr 20, 2009.

  1. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    Is there an easy method to limit the amount of connections to an apache server?
    I am working on an automatic update component for my software, but, need to ensure I can throttle bandwidth to the server when a large upgrade is pushed out?
     
  2. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    :crickets:
     
  3. seadub

    seadub New Member

    Joined:
    Nov 20, 2008
    Messages:
    11
    Likes Received:
    0
    The apache.conf file has a "MaxClients" option. That's the easiest way to limit the number of clients on your server.
     
  4. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    thanks bro, you can return to lurking and delete this post accordingly :)
    :bowdown:
    :bowdown:
     
  5. PocoDiablo

    PocoDiablo New Member

    Joined:
    Jul 11, 2004
    Messages:
    4,413
    Likes Received:
    0
    Location:
    NOVA
    You may also want to look at mod bandwidth (Google it). It simply throttles connections so your server doesn't get slammed, but doesn't block people out. You may decide a slow site is better than a "Connection denied" message (which may lose visitors).
     
  6. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    its for a software update so the connection denied is preferred since the software will get the denied message and continue in last known state until another slot opens up.
    The idea is, those who do get connected, get all the bandwidth for a speedy update, those who dont, the software wont think there is an update available and continue on.
     
  7. PocoDiablo

    PocoDiablo New Member

    Joined:
    Jul 11, 2004
    Messages:
    4,413
    Likes Received:
    0
    Location:
    NOVA
    Ah, that makes sense. I hate when Windows Update takes hours to download an update.
     
  8. maxxpower

    maxxpower OG Lauren Crew - Observer OT Supporter

    Joined:
    May 27, 2007
    Messages:
    26,348
    Likes Received:
    0
    :)
    i updated 5000 clients using this method, but, it only worked because the server wasnt configured beyond 255 connections or something LOL.
    We deploy servers outside our environment so if a client needs to update a few thousand machines but doesnt have the bandwidth, need to replicate this screwup :)
     

Share This Page