Menu

#69 Self tune, make binding services adaptable for highloads

open
nobody
4
2005-06-11
2005-05-24
Neil Avery
No

IIf the SwarmContainer.addPeer() method experiences
high loads then start rejecting incoming requests, by
throwing IlegalStateException()

Highloads can be detected by monitoring the concurrent
invocations on the container. When the container
reaches 10 concurrent requests throw an new
IOException("experiencing high load, reduce loading");

The binding service calling add peer - should throttle
down to 10 second intervals on failure to bind and
readjust to 2 seconds when sustainable

Need to add a ConcurrentThrottleAspect(int limit,
Throwable t){
atomic int load = 0;
}

and bind it to DefaultSwarmContainer.addPeer();

Discussion

  • Neil Avery

    Neil Avery - 2005-05-24

    Logged In: YES
    user_id=922728

    Possilby want to make the subsequent throttle speed much
    slower than 2 second,

     
  • Neil Avery

    Neil Avery - 2005-05-24
    • summary: Throttle binding services/Scalable --> Self tune, make binding services adaptable for highloads
     
  • Neil Avery

    Neil Avery - 2005-05-24

    Logged In: YES
    user_id=922728

    see the java 5 java.util.concurrent.atomic package

     
  • Neil Avery

    Neil Avery - 2005-06-11
    • priority: 8 --> 4
     

Log in to post a comment.