-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Performance monitoring #3658
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
Performance monitoring #3658
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
e39586d
to
896fd18
Compare
logger.info(f"Multiprocessing start method: {multiprocessing.get_start_method()}") | ||
|
||
SqlEngine.set_app_name(POSTGRES_CELERY_WORKER_MONITORING_APP_NAME) | ||
SqlEngine.init_engine(pool_size=sender.concurrency, max_overflow=8) |
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.
how many db connections do we think the monitoring worker is going to need? it looks like this was borrowed from the light worker which is a relatively large case.
SyncRecord.sync_type == sync_type, | ||
) | ||
) | ||
.order_by(desc(SyncRecord.sync_start_time)) |
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.
looks like we have an index here, which is good
backend/alembic/versions/fec3db967bf7_add_time_updated_to_usergroup_and_.py
Outdated
Show resolved
Hide resolved
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.
Add new thing to template launch.json
Description
Adds metrics for various background performance signals (e.g. latency between when a job should start vs when it does start).
How Has This Been Tested?
Tested manually with indexing, document sets, user groups, and deleting.
Backporting (check the box to trigger backport action)
Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.