Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
import { dirname, extname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import Fastify from 'fastify'
import { dirname, extname, join } from 'node:path'
import { fileURLToPath } from 'node:url'
import Fastify from 'fastify'
-import { availableParallelism } from 'poolifier'
import { fastifyPoolifier } from './fastify-poolifier.js'
/**
import { fastifyPoolifier } from './fastify-poolifier.js'
/**
await fastify.register(fastifyPoolifier, {
workerFile,
await fastify.register(fastifyPoolifier, {
workerFile,
- minWorkers: 1,
- maxWorkers: availableParallelism(),
enableTasksQueue: true,
tasksQueueOptions: {
concurrency: 8
enableTasksQueue: true,
tasksQueueOptions: {
concurrency: 8