N
Novu10mo ago
madhu

I am facing below error at self hosting Novu on prod

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?
3 Replies
dmgarland
dmgarland10mo ago
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
dmgarland
dmgarland10mo ago
GitHub
feat(dal): Configure minimum connection pool size by env var by dmg...
Running Novu self-hosted on Mongo Atlas, we quickly hit problems with the 500 connection limit. The DAL service configures the connection pool based on MONGO_MAX_POOL_SIZE for the upper limit, and ...
madhu
madhu9mo ago
@dmgarland thanks it worked. API server is up. Through postman I am able to register, but from web pod it is showing as CORS error