sergey-chugunov-1985 commented on code in PR #13494:
URL: https://github.com/apache/ignite/pull/13494#discussion_r3820555314
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/pool/PoolProcessor.java:
##########
@@ -144,6 +145,14 @@ public class PoolProcessor extends GridProcessorAdapter {
*/
public static final long DFLT_PERIODIC_STARVATION_CHECK_FREQ = 30 * 1000L;
+ /** */
+ @SystemProperty(value = "Idle verify utility thread pool size.", type =
Integer.class,
+ defaults = "Total visible CPUs - 2, minimum 4 threads.")
+ public static final String IDLE_VERIFY_POOL_SIZE_PROPERTY =
"IGNITE_IDLE_VERIFY_POOL_SIZE";
+
+ /** */
+ private static final int DFLT_IDLE_VERIFY_POOL_SIZE = Math.max(4,
Runtime.getRuntime().availableProcessors() - 2);
Review Comment:
```suggestion
private static final int DFLT_IDLE_VERIFY_POOL_SIZE = Math.max(4,
IgniteConfiguration.AVAILABLE_PROC_CNT - 2);
```
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/pool/PoolProcessor.java:
##########
@@ -144,6 +145,14 @@ public class PoolProcessor extends GridProcessorAdapter {
*/
public static final long DFLT_PERIODIC_STARVATION_CHECK_FREQ = 30 * 1000L;
+ /** */
+ @SystemProperty(value = "Idle verify utility thread pool size.", type =
Integer.class,
+ defaults = "Total visible CPUs - 2, minimum 4 threads.")
Review Comment:
```suggestion
defaults = "Total available CPUs minus 2, but at least 4 threads.")
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]