You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Properties for instances of {@link HystrixThreadPool}.
33
31
* <p>
34
32
* Default implementation of methods uses Archaius (https://github.com/Netflix/archaius)
33
+
*
34
+
* Note a change in behavior in 1.5.7. Prior to that version, the configuration for 'coreSize' was used to control
35
+
* both coreSize and maximumSize. This is a fixed-size threadpool that can never give up an unused thread. In 1.5.7+,
36
+
* the values can diverge, and if you set coreSize < maximumSize, threads can be given up (subject to the keep-alive
37
+
* time)
38
+
*
39
+
* It is OK to leave maximumSize unset using any version of Hystrix. If you do, then maximum size will default to
40
+
* core size and you'll have a fixed-size threadpool.
35
41
*/
36
42
publicabstractclassHystrixThreadPoolProperties {
37
43
38
44
/* defaults */
39
-
privateIntegerdefault_coreSize = 10; // size of thread pool
45
+
privateIntegerdefault_coreSize = 10; // core size of thread pool
40
46
privateIntegerdefault_keepAliveTimeMinutes = 1; // minutes to keep a thread alive (though in practice this doesn't get used as by default we set a fixed size)
41
47
privateIntegerdefault_maxQueueSize = -1; // size of queue (this can't be dynamically changed so we use 'queueSizeRejectionThreshold' to artificially limit and reject)
42
48
// -1 turns if off and makes us use SynchronousQueue
@@ -45,6 +51,7 @@ public abstract class HystrixThreadPoolProperties {
45
51
privateIntegerdefault_threadPoolRollingNumberStatisticalWindowBuckets = 10; // number of buckets in rolling number (10 1-second buckets)
.withMaximumSize(15) //maximum size of thread pool
241
270
.withKeepAliveTimeMinutes(1)// minutes to keep a thread alive (though in practice this doesn't get used as by default we set a fixed size)
242
271
.withMaxQueueSize(100)// size of queue (but we never allow it to grow this big ... this can't be dynamically changed so we use 'queueSizeRejectionThreshold' to artificially limit and reject)
243
272
.withQueueSizeRejectionThreshold(10)// number of items in queue at which point we reject (this can be dyamically changed)
@@ -260,6 +289,11 @@ public HystrixProperty<Integer> coreSize() {
0 commit comments