public R execute() {try {return queue().get();} catch (Exception e) {throw decomposeException(e);}}
Also, for once I was able to see the actual size of the threadpool but as soon as the command got short-circuited, its size again started being displayed as 0 and so after. Can you think of any particular reason for this ?
When it is short-circuited there is no work being done on the thread-pool. It is all being short-circuited.
2. What is generating your load? Is there think time between requests? Given that each operation is only taking 3ms (based on the other details you provided) then it seems reasonable you could manage close to 400 qps with a thread or two. My guess is your client just isn't moving fast enough to keep your thread pool busy... otherwise I would expect your qps to be much higher.
Correct. The "active" count is a point-in-time snapshot, so with very low latency calls such as your use-case had, you'll rarely see high thread counts.
The "Max Active" count is more interesting as it shows the max number achieved during the past 10 seconds.
In both of these though, if you are doing work that only takes 1.5ms then there will be very little concurrent execution at 400qps since even distribution of those 400 queries requires 0.6threads (400 queries * 0.0015 seconds = 0.6 threads … or 400 queries * 1.5ms = 600ms). If you have bursts then you will see that concurrency shown in the "Max Active", but the snapshot "Active" counter will very rarely show the bursts since it is capturing a point in time.
The code for the pool is at:
The factory for creating the pool is at:
On October 7, 2013 at 11:23:30 AM, kumar ankit (k.an...@gmail.com) wrote:
Thanks a lot Ben.I was also thinking the same. But that still left me unclear on why when a circuit becomes OPEN , the PoolSize on the Dashboard becomes 0. I mean the underlying pool is still there. So, ideally this should not happen. Is this an issue with the dash board ? And even when the circuit gets CLOSED after sometimes, the PoolSize still gets displayed as 0 on the dash board.
--Kumar Ankit
Ph: +91 9663877355
--
You received this message because you are subscribed to the Google Groups "HystrixOSS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hystrixoss+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.