#I am facing below error at self hosting Novu on prod

1 messages · Page 1 of 1 (latest)

worldly spoke
#

Environment: production
Platform: Docker
Tenant: OS
Selected Log Transport None

[Nest] 239 - 08/30/2023, 3:24:48 PM LOG [InstanceLoader] JwtModule dependencies initialized +0ms
[Nest] 239 - 08/30/2023, 3:24:48 PM LOG [InstanceLoader] HttpModule dependencies initialized +0ms
[Nest] 239 - 08/30/2023, 3:24:48 PM ERROR [ExceptionHandler] Connection pool minimum size must not be greater than maximum pool size

Do I am missing any ENV variables conf?

cloud tendon
#

Yes I've spotted this as well. The production environment hard-codes the minimum mongodb pool size to be 200, so if you try setting MONGO_MAX_POOL_SIZE to a value less than 200 you'll see this error.

IMO this is a deficiency because ideally we'd want to run our dev instance in 'production' mode, so that we have optimisations, CORS etc but with a smaller queue size.

Right now that would be a code change. I'm thinking of opening a PR to address this

cloud tendon