Skip to content

rate limit slow request warning queue#7434

Merged
generall merged 3 commits intodevfrom
rate-limit-slow-requests-queue-warns
Oct 21, 2025
Merged

rate limit slow request warning queue#7434
generall merged 3 commits intodevfrom
rate-limit-slow-requests-queue-warns

Conversation

@generall
Copy link
Member

I wasn't able to reproduce it even under 512 parallel search threads, but some users reported this message being spammy

@generall generall requested a review from timvisee October 21, 2025 09:46
coderabbitai[bot]

This comment was marked as resolved.

@qdrant qdrant deleted a comment from coderabbitai bot Oct 21, 2025
generall and others added 2 commits October 21, 2025 11:59
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@qdrant qdrant deleted a comment from coderabbitai bot Oct 21, 2025
const WARN_INTERVAL_SECS: u64 = 10;

/// Last time a send warning was emitted (unix seconds)
static LAST_SEND_WARN: AtomicU64 = AtomicU64::new(0);
Copy link
Member

Choose a reason for hiding this comment

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

Why not Instant::now() and last.elapse() > Duration::from_secs(10)?

Just to skip a lock, as we prefer not to lock at this stage?

Copy link
Member Author

Choose a reason for hiding this comment

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

last.elapse() would need to have Instannt type, which is not atomic

@generall generall merged commit fd75821 into dev Oct 21, 2025
15 checks passed
@generall generall deleted the rate-limit-slow-requests-queue-warns branch October 21, 2025 12:45
timvisee pushed a commit that referenced this pull request Nov 14, 2025
* rate limit slow request warning queue

* Update lib/collection/src/profiling/slow_requests_collector.rs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fmt

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@timvisee timvisee mentioned this pull request Nov 14, 2025
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