Skip to content

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Jan 10, 2025

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.

  • This PR should be backported (make sure to check that the backport attempt succeeds)

Copy link

vercel bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 13, 2025 7:57pm

@Weves Weves force-pushed the performance-monitoring branch from e39586d to 896fd18 Compare January 13, 2025 00:22
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)
Copy link
Contributor

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))
Copy link
Contributor

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

Copy link
Contributor Author

@Weves Weves left a 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

@Weves Weves merged commit 9ea2ae2 into main Jan 13, 2025
12 of 13 checks passed
@Weves Weves deleted the performance-monitoring branch January 13, 2025 20:36
@rkuo-danswer rkuo-danswer mentioned this pull request Jan 13, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants