Skip to content

Commit 582ac7e

Browse files
sophia-chen-ttdRelease Workflow
andauthored
sch-UID2-6632 updated defaultWorkerPoolSize to vCPU count (#2431)
* updated defaultWorkerPoolSize to vCPU count * [CI Pipeline] Released Snapshot version: 5.67.13-alpha-693-SNAPSHOT * clean up --------- Co-authored-by: Release Workflow <unifiedid-admin+release@thetradedesk.com>
1 parent 31a0d37 commit 582ac7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/uid2/operator/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ private static Vertx createVertx() {
503503
? 60 * 1000
504504
: 3600 * 1000;
505505

506-
final int defaultWorkerPoolSize = Math.max(2, (Runtime.getRuntime().availableProcessors() - 2) / 2 + 1);
506+
final int defaultWorkerPoolSize = Math.max(2, Runtime.getRuntime().availableProcessors());
507507
final int workerPoolSize = getEnvInt(Const.Config.DefaultWorkerPoolThreadCountProp, defaultWorkerPoolSize);
508508
LOGGER.info("Creating Vertx with default worker pool size: {}", workerPoolSize);
509509

0 commit comments

Comments
 (0)