Skip to content

Add module Rage::Telemetry::Capacity - #396

Open
Abishekcs wants to merge 4 commits into
rage-rb:mainfrom
Abishekcs:Add/Telemetry-queued_connections
Open

Add module Rage::Telemetry::Capacity#396
Abishekcs wants to merge 4 commits into
rage-rb:mainfrom
Abishekcs:Add/Telemetry-queued_connections

Conversation

@Abishekcs

@Abishekcs Abishekcs commented Sep 3, 2026

Copy link
Copy Markdown
Member

#379

What this PR does?

Exposes the number of connections currently waiting in the kernel's accept queue for the server's listening sockets how many clients have connected but haven't been picked up by the app yet. Backed by Iodine.queued_connections, which walks Iodine's own listeners and reads each one's queue depth from the kernel.

Adds two specs: one confirms the reported count matches the number of connections actually parked in the queue, the other confirms the method works correctly when called from inside a .every block.

Screen Recording

Tele.Rage.mp4

Exposes the number of connections currently waiting in the kernel's accept queue for the server's listening sockets how many clients have connected but haven't been picked up by the app yet. Backed by Iodine.queued_connections, which walks Iodine's own listeners and reads each one's queue depth from the kernel.

Meant to be sampled on a timer via Rage::Telemetry.every, the same way GC stats are, so it can be reported alongside other reactor health metrics.

Adds two specs: one confirms the reported count matches the number of connections actually parked in the queue, the other confirms the method works correctly when called from inside a .every block.
@Abishekcs
Abishekcs marked this pull request as draft September 3, 2026 14:48
@Abishekcs Abishekcs changed the title Add Rage::Telemetry.queued_connections [WIP]: Add Rage::Telemetry.queued_connections Sep 3, 2026
Comment thread spec/telemetry/telemetry_spec.rb Outdated
Comment thread lib/rage/telemetry/telemetry.rb Outdated
Comment thread lib/rage/telemetry/telemetry.rb Outdated
Comment thread lib/rage/telemetry/telemetry.rb Outdated
- Rename Iodine.queued_connections to Iodine::Perf.queued_connections as `queued_connections` has been moved  into the `Perf` module in iodine codebase.
@Abishekcs Abishekcs changed the title [WIP]: Add Rage::Telemetry.queued_connections Add Rage::Telemetry.queued_connections Sep 7, 2026
@Abishekcs
Abishekcs marked this pull request as ready for review September 7, 2026 15:17
@Abishekcs

Copy link
Copy Markdown
Member Author

@rsamoilov PR is ready for review.

@Abishekcs Abishekcs changed the title Add Rage::Telemetry.queued_connections Add module Rage::Telemetry::Capacity Sep 8, 2026
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