Skip to content
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

[v24.2.x] Add rate-rejected connection metric #22816

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #22803

Adjust the existing metric text to clarify that is connections
rejected for hitting the connection count cap, not the connection
rate limit cap (as we are shortly introducing a metric for the
latter).

Ref CORE-6827.

(cherry picked from commit daf4917)
We can reject connections because we hit two types of limits: the
open connection limit or the rate limit (in the rate limit case
we do try to wait a short period to see if accepting the connection
after the wait would meet the rate, but if not we reject).

Existing naming of variables, log lines etc was inconsistent using
"declined" for the second case and generally not being clear about
the two cases.

Bring this into line by using "rejected" as the standard terminology
and then "open limit" and "rate limit" being the two reasons.

Log the addr in the same way too, including the port, in either case.

(cherry picked from commit e55a2be)
Add connections_rejected_rate_limit which counts connections rejected
due to the rate limit, analogously to the existing metric which counts
rejected connections due to the hitting the open connection limit.

Fixes CORE-6827.

(cherry picked from commit b1f3372)
@vbotbuildovich vbotbuildovich added this to the v24.2.x-next milestone Aug 9, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Aug 9, 2024
@piyushredpanda piyushredpanda merged commit 40edff5 into redpanda-data:v24.2.x Aug 10, 2024
19 checks passed
@piyushredpanda piyushredpanda modified the milestones: v24.2.x-next, v24.2.3 Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants