Skip to content

feat: add connection waiting statistics#2804

Merged
ofekshenawa merged 4 commits into
redis:masterfrom
lzakharov:add-conn-pool-wait-stats
May 7, 2025
Merged

feat: add connection waiting statistics#2804
ofekshenawa merged 4 commits into
redis:masterfrom
lzakharov:add-conn-pool-wait-stats

Conversation

@lzakharov

@lzakharov lzakharov commented Nov 17, 2023

Copy link
Copy Markdown
Contributor

Hi! This PR adds connection waiting statistics. These statistics are useful for tuning pool parameters. Inspired by redigo stats.

I removed doctests with Go 1.18 due to atomic.Int64 usage.

@lzakharov lzakharov force-pushed the add-conn-pool-wait-stats branch 2 times, most recently from 97ce6b9 to 588a71f Compare November 20, 2023 09:24
@lzakharov

Copy link
Copy Markdown
Contributor Author

Tests fixed in #2808.

@lzakharov

Copy link
Copy Markdown
Contributor Author

@ofekshenawa sorry for disturbing, can you review please? This PR can help a lot. Thanks in advance!

@ofekshenawa

Copy link
Copy Markdown
Collaborator

Hey @lzakharov, sorry for the delay:)
Can you please resolve the conflicts if it still relevant?

@lzakharov lzakharov force-pushed the add-conn-pool-wait-stats branch from f9b11c5 to ee7a48e Compare April 24, 2025 16:07
@lzakharov

Copy link
Copy Markdown
Contributor Author

@ofekshenawa hi!) Conflicts are resolved.

@ofekshenawa ofekshenawa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@lzakharov Thank you!

@ofekshenawa ofekshenawa merged commit 8ba559c into redis:master May 7, 2025
16 checks passed
@philipfoulkes

Copy link
Copy Markdown

I see that WaitCount and WaitDurationNs are not populated in ClusterClient and Ring.

Are they expected to be populated there?

ofekshenawa added a commit to ofekshenawa/go-redis that referenced this pull request Jun 30, 2025
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
ofekshenawa added a commit that referenced this pull request Aug 10, 2025
Co-authored-by: ofekshenawa <104765379+ofekshenawa@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants