-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
backport update indexing and slack bot to use stdout options (#2752) #2755
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
PR Summary
This PR updates the supervisord.conf file to improve log management in a Docker environment, focusing on directing logs to stdout for better containerized application practices.
- Removed LOG_FILE_NAME environment variable from document_indexing program
- Added stdout_logfile and stdout_logfile_maxbytes options for each program (document_indexing, celery_worker, celery_beat, slack_bot)
- Updated log-redirect-handler to tail the new log files, ensuring all logs are properly captured and redirected to stdout
- These changes enhance logging setup for improved performance monitoring and Docker compatibility
1 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings
@@ -31,15 +32,17 @@ command=celery -A danswer.background.celery.celery_run:celery_app worker | |||
--loglevel=INFO | |||
--logfile=/var/log/celery_worker_supervisor.log |
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.
logic: The --logfile option for celery_worker is still present, which may conflict with the new stdout_logfile configuration.
@@ -31,15 +32,17 @@ command=celery -A danswer.background.celery.celery_run:celery_app worker | |||
--loglevel=INFO | |||
--logfile=/var/log/celery_worker_supervisor.log | |||
-Q celery,vespa_metadata_sync,connector_deletion | |||
environment=LOG_FILE_NAME=celery_worker | |||
stdout_logfile=/var/log/celery_worker.log | |||
stdout_logfile_maxbytes=16MB | |||
redirect_stderr=true | |||
autorestart=true | |||
|
|||
# Job scheduler for periodic tasks | |||
[program:celery_beat] | |||
command=celery -A danswer.background.celery.celery_run:celery_app beat | |||
--logfile=/var/log/celery_beat_supervisor.log |
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.
logic: The --logfile option for celery_beat is still present, which may conflict with the new stdout_logfile configuration.
Description
[Provide a brief description of the changes in this PR]
How Has This Been Tested?
[Describe the tests you ran to verify your changes]
Accepted Risk
[Any know risks or failure modes to point out to reviewers]
Related Issue(s)
[If applicable, link to the issue(s) this PR addresses]
Checklist: