Self tune, make binding services adaptable for highloads
Brought to you by:
neil_g_avery
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();
Logged In: YES
user_id=922728
Possilby want to make the subsequent throttle speed much
slower than 2 second,
Logged In: YES
user_id=922728
see the java 5 java.util.concurrent.atomic package