X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerConstants.ts;h=dcbe2ca43caa3faec645c6e693dc04f1cb8b93f2;hb=ec4a242aa5f1a9d4201d0ec9988f9dd931978589;hp=36b23fb15a76a009141bbfe64cde7f224771a503;hpb=2bb7a73e94db7533c1ba47db677d709e6f07dfdb;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerConstants.ts b/src/worker/WorkerConstants.ts index 36b23fb1..dcbe2ca4 100644 --- a/src/worker/WorkerConstants.ts +++ b/src/worker/WorkerConstants.ts @@ -9,7 +9,7 @@ export class WorkerConstants { public static readonly DEFAULT_WORKER_START_DELAY = 500; public static readonly POOL_MAX_INACTIVE_TIME = 60000; public static readonly DEFAULT_POOL_MIN_SIZE = Math.floor(availableParallelism() / 2); - public static readonly DEFAULT_POOL_MAX_SIZE = availableParallelism(); + public static readonly DEFAULT_POOL_MAX_SIZE = Math.round(availableParallelism() * 1.5); public static readonly DEFAULT_ELEMENTS_PER_WORKER = 1; public static readonly version = '1.0.1';