-
Notifications
You must be signed in to change notification settings - Fork 4k
fix(root): remove healthcheck option in docker-compose.yml #7929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for dashboard-v2-novu-staging canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
✅ Deploy Preview for dashboard-v2-novu-staging canceled.
|
I just set this up for my current project dev environment and wrote a simple health check that uses a node expression which would integrate without the Should I open an additional PR or make the adjustment here? |
cc: @merrcury |
In addition to the comment for the pool size changes. Why are health checks removed from the configuration? These have nothing to do with monitoring in the sense of New Relic but more in relationship to container dependency. e.g.
If implemented correctly could even improve this dependency with a health condition https://github.com/novuhq/novu/blob/next/docker%2Fcommunity%2Fdocker-compose.yml#L144-L148 In addition to that the expectation that New Relic is used everywhere is surprising to me, especially in a community config. I will create a PR on how to properly disable New Relic as not everyone in the community uses or even knows it: .env.example
compose.yml sections
|
From my side this would be much appreciated and in my opinion a better solution to #7478. @jainpawan21 @merrcury |
@jainpawan21 @merrcury I've created a PR and related issue for a better handling of New Relic #7943 |
Sure, Please go ahead. We'll integrate if we found it useful |
That looks like a good idea, Thanks |
There are in theory multiple ways to go about that. Proposal OneFor reusability and maintainability, I would recommend a This would allow writing any form of Possible issuesAfter a quick look at the Dockerfile and build stages, I think there will be missing executable permissions on the mounted files. EditBased on the structure, I would place the Same for the other Proposal TwoTry to make it an onliner, executed via the available node runtime |
@zettlrobert In my opinion, healtcheck endpoints (Scripts/Commands) should always be part of the container image. A few good examples which have very stable health endpoints are:
|
#7953 just a draft of the approach i would take, let me know if I should continue. |
@jainpawan21 @merrcury I'd appreciate your insights on the significant reduction - a factor of 15-20 - in MongoDB's PoolSize. |
@Aaron-Ritter Regarding the reduction in MongoDB pool size: For a small setup and initial usage, you likely don’t need hundreds of connections, especially since most operations are fairly quick. Maintaining a large number of connections increases RAM and CPU usage on MongoDB, which can be inefficient. |
@merrcury thanks a lot for the clarification, do you have any sizing guidelines documented? |
What changed? Why was the change needed?
closes #7478
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer