perf(clients): batch client creation by destination node

Group compatible committed adds into the existing multi-inbound request. Keep lane ordering, preserve target-specific payloads, and bound remote delivery across the create so unavailable nodes can converge through reconciliation.
This commit is contained in:
Hamed Sanaei
2026-12-02 20:08:47 +03:30
parent 32e4b8bcfe
commit da015758c0
11 changed files with 610 additions and 45 deletions
+3 -3
View File
@@ -158,10 +158,10 @@ jobs:
- name: PostgreSQL node client push ordering
run: |
set -o pipefail
go test ./internal/web/service -run '^Test(NodeClientMutationsCommitWhileAnEarlierPushIsBlocked|NodeClientQueueTimeoutDefersCommittedDelta|NodeClientCapacityPreservesPermanentDelete|NodeWideDeleteSkipsReattachmentSentByQueuedReconcile|NodeWideDeleteRetriesAfterQueueExpiry|BulkDeleteStopsPushingToAHungNode|ReconcileDoesNotOvertakeCommittedClientState|TrafficDepletionWaitsForEarlierNodeClientPush)$' -count=1 -v | tee /tmp/postgres-node-client-order.log
go test ./internal/web/service -run '^Test(NodeClientMutationsCommitWhileAnEarlierPushIsBlocked|NodeClientQueueTimeoutDefersCommittedDelta|NodeClientCapacityPreservesPermanentDelete|NodeWideDeleteSkipsReattachmentSentByQueuedReconcile|NodeWideDeleteRetriesAfterQueueExpiry|BulkDeleteStopsPushingToAHungNode|ReconcileDoesNotOvertakeCommittedClientState|TrafficDepletionWaitsForEarlierNodeClientPush|Create(GroupsCompatibleInboundsOnOneRemote|SplitsFlowAndSendsResolvedInbounds|UsesEffectiveAllowedIPsOnRemote|DispatchesReadyLaneBeforeBlockedLane|CancellationStopsFurtherNodeWaves))$' -count=1 -v | tee /tmp/postgres-node-client-order.log
passed=$(grep -c -- '^--- PASS' /tmp/postgres-node-client-order.log || true)
if [ "$passed" -ne 8 ]; then
echo "expected 8 passing PostgreSQL node client ordering tests, got $passed" >&2
if [ "$passed" -ne 13 ]; then
echo "expected 13 passing PostgreSQL node client ordering tests, got $passed" >&2
exit 1
fi