Skip to content

feat(cluster): add latency-aware CPA rebalance and swaps - #167

Merged
hkfires merged 2 commits into
devfrom
cluster
Oct 23, 2026
Merged

hkfires merged 2 commits into
devfrom
cluster

Conversation

@hkfires

@hkfires hkfires commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Ingest CPA latency reports over CLUSTER BALANCE LATENCY without holding the cluster election gate, and return communication-only probe targets. Use latency gains to break ties during load balancing and plan reciprocal CPA swaps when sustained bidirectional improvements are confirmed.

Bypass subscription liveness database writes on home-rtt/ PING echoes to keep RTT measurements free of database contention, and add background cleanup for expired latency summaries and swap confirmations.

Ingest CPA latency reports over CLUSTER BALANCE LATENCY without holding
the cluster election gate, and return communication-only probe targets.
Use latency gains to break ties during load balancing and plan
reciprocal CPA swaps when sustained bidirectional improvements are
confirmed.

Bypass subscription liveness database writes on home-rtt/ PING echoes
to keep RTT measurements free of database contention, and add background
cleanup for expired latency summaries and swap confirmations.
Cleanup clock reads run inside transactions with a context deadline,
whereas snapshot clock reads run outside transactions. Check whether the
statement runs in a transaction so the test callback only intercepts
snapshot clock queries.
@hkfires
hkfires merged commit d89afa2 into dev Oct 23, 2026
2 checks passed
@hkfires
hkfires deleted the cluster branch October 23, 2026 03:36
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.

1 participant