perf(stats): use compressed incremental snapshot transfers

- Prefer checksum-based fuzzy rsync with compressed scp fallback
- Preserve bidirectional snapshot bases during transfers
This commit is contained in:
2026-09-07 23:27:11 -07:00
parent 1e5d7747b4
commit e7e4a62504
4 changed files with 82 additions and 9 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ import {
assertSafeSshHost,
detectRemoteShellFlavor,
resolveRemoteSubminerCommand,
runScp,
runSsh,
} from '../core/services/stats-sync/ssh';
import { createSnapshotTransfer } from '../core/services/stats-sync/snapshot-transfer';
import {
ensureTrackerQuiescentFlow,
runSyncFlow,
@@ -63,7 +63,7 @@ function buildSyncCliDeps(): SyncFlowDeps {
assertSafeSshHost,
detectRemoteShellFlavor,
resolveRemoteSubminerCommand,
runScp,
createSnapshotTransfer,
runSsh,
canConnectUnixSocket: canConnectSocket,
realpathSync: (candidate) => fs.realpathSync(candidate),