-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
feat: Standardize log patterns across all services for consistency. #38285
base: release
Are you sure you want to change the base?
Conversation
WalkthroughThis pull request standardizes and enhances logging configurations across multiple Supervisord configuration files for various services in the Appsmith deployment. The changes include updating log file paths to incorporate the hostname, increasing log file sizes from 10MB to 30MB, removing log file backups, and adding event logging capabilities. These modifications aim to improve log management and traceability across different application components. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (6)
🚧 Files skipped from review as they are similar to previous changes (6)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
d70b34d
to
c94f52f
Compare
c94f52f
to
1d56a86
Compare
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.
Actionable comments posted: 4
🧹 Nitpick comments (4)
deploy/docker/fs/opt/appsmith/templates/supervisord/postgres.conf (2)
12-13
: Reconsider log size limits for database serviceThe 30MB log size limit might be insufficient for a database service, which typically generates more logs than application services.
Consider:
- Increasing
*_logfile_maxbytes
for database services- Implementing log rotation based on time rather than size
- Setting up database-specific logging configurations
Also applies to: 15-16
9-16
: Consider implementing a comprehensive logging strategyWhile standardizing log patterns is good, consider implementing:
- Centralized log aggregation (e.g., ELK stack, Splunk)
- Service-specific log retention policies
- Structured logging format for better searchability
- Monitoring and alerts for log storage usage
Would you like assistance in designing a comprehensive logging architecture?
deploy/docker/fs/opt/appsmith/templates/supervisord/mongodb.conf (1)
3-3
: Review MongoDB logging strategyMongoDB is configured with both native logging (
--logpath
) and supervisord logging. This could lead to:
- Duplicate logs consuming extra disk space
- Confusion when debugging issues
Consider using only MongoDB's native logging mechanism and monitoring it through supervisord.Also applies to: 11-17
deploy/docker/fs/opt/appsmith/templates/supervisord/redis.conf (1)
14-15
: Implement a log retention strategy for Redis logsWhile directing Redis logs to stdout is correct, consider:
- Implementing log rotation with a reasonable number of backups
- Setting up external log aggregation for persistent storage
This ensures no critical information is lost during debugging or auditing.Also applies to: 18-19
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/backend.conf
(1 hunks)deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/editor.conf
(1 hunks)deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/rts.conf
(1 hunks)deploy/docker/fs/opt/appsmith/templates/supervisord/mongodb.conf
(1 hunks)deploy/docker/fs/opt/appsmith/templates/supervisord/postgres.conf
(1 hunks)deploy/docker/fs/opt/appsmith/templates/supervisord/redis.conf
(1 hunks)
deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/editor.conf
Show resolved
Hide resolved
deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/backend.conf
Outdated
Show resolved
Hide resolved
deploy/docker/fs/opt/appsmith/templates/supervisord/application_process/rts.conf
Show resolved
Hide resolved
1d56a86
to
1c48cae
Compare
Description
Tip
Add a TL;DR when the description is longer than 500 words or extremely technical (helps the content, marketing, and DevRel team).
Please also include relevant motivation and context. List any dependencies that are required for this change. Add links to Notion, Figma or any other documents that might be relevant to the PR.
Fixes #
Issue Number
or
Fixes
Issue URL
Warning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.Sanity"
🔍 Cypress test results
Caution
🔴 🔴 🔴 Some tests have failed.
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/12438439560
Commit: 1c48cae
Cypress dashboard.
Tags: @tag.Sanity
Spec:
The following are new failures, please fix them before merging the PR:
Fri, 20 Dec 2024 21:38:49 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
New Features
Bug Fixes
Chores