Skip to content

Disable TCP_NODELAY#2809

Closed
gefjon wants to merge 17 commits into
masterfrom
phoebe/no-nodelay
Closed

Disable TCP_NODELAY#2809
gefjon wants to merge 17 commits into
masterfrom
phoebe/no-nodelay

Conversation

@gefjon
Copy link
Copy Markdown
Contributor

@gefjon gefjon commented May 28, 2025

Description of Changes

API and ABI breaking changes

Expected complexity level and risk

Testing

gefjon and others added 17 commits May 19, 2025 10:55
It's a metric that tracks the size of the incoming per-client `message_queue`.
We've been concerned about not having visibility into this queue's length,
as currently we only have the length of the per-database reducer queue,
but each client can only have a single reducer in that queue,
and may have additional messages waiting in its per-client queue.

The new metric, `spacetime_client_connection_incoming_queue_length`,
is an `IntGaugeVec` with the labels:
`db: Identity, client_identity: Identity, connection_id: ConnectionId`.
My theory is that in our viewer we can inspect the average and the sum per database,
and it also may be interesting to be able to look at individual clients,
as e.g. the BitCraft mob monitor may be a notable outlier.
This is not the same pattern as most of our other metrics, though,
which tend to only offer per-database granularity.
It's possible that this new metric should also have the last two labels removed,
and be labeled only on `db: Identity`.
Like the previous metric added in this branch, it's per-client,
so we'll use it for testing, but likely not merge it into master.
I'll follow up in a separate PR with a version that's per-database instead.
Included resolving merge conflicts in client_connection.rs,
moving the sendtx queue length metric into the `ClientConnectionMetrics`.
@gefjon gefjon force-pushed the phoebe/no-nodelay branch from 798ebd3 to fdf7823 Compare May 28, 2025 21:51
@cloutiertyler
Copy link
Copy Markdown
Contributor

Closing as this is not intended to merge.

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.

5 participants