8000 fix: even less more slow for persistence task by pauldambra · Pull Request #31657 · PostHog/posthog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: even less more slow for persistence task #31657

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

pauldambra
Copy link
Member

we just can't get through the persistence task now it has rate limiting applied.

there are still 55k tasks to process from the weekend

@pauldambra pauldambra requested review from a team, sortafreel and veryayskiy and removed request for a team April 28, 2025 14:06
@pauldambra pauldambra enabled auto-merge (squash) April 28, 2025 14:06
Copy link
Contributor
@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Increased rate limit for session recording persistence tasks from 15/min to 30/min to help process a large backlog of 55k tasks accumulated over the weekend.

  • Modified ee/session_recordings/persistence_tasks.py to double the rate limit for both persist_single_recording and persist_single_recording_v2 tasks
  • Tasks are monitored via Prometheus counters REPLAY_NEEDS_PERSISTENCE_COUNTER and REPLAY_NEEDS_PERSISTENCE_V2_COUNTER
  • Tasks run in dedicated SESSION_REPLAY_PERSISTENCE Celery queue for isolation

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@pauldambra pauldambra merged commit f372ef9 into master Apr 28, 2025
79 checks passed
@pauldambra pauldambra deleted the fix/even-less-more-slow branch April 28, 2025 15:40
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
0