Skip to content

AntiEntropyConfig

Defined in: packages/core/src/anti-entropy.ts:33

Tuning for automatic catch-up. Every field is optional in PeerborneConfig.

enabled: boolean

Defined in: packages/core/src/anti-entropy.ts:35

Run automatic catch-up for default documents. Default: true.


intervalMs: number

Defined in: packages/core/src/anti-entropy.ts:40

Mean delay between periodic requests. Each delay is drawn uniformly from two thirds to four thirds of this value. Default: 45 000 ms (30-60 s).


loadAfterMs: number

Defined in: packages/core/src/anti-entropy.ts:55

Load once a detected gap outlives a request by this long. Default: 15 000 ms.


loadIntervalMs: number

Defined in: packages/core/src/anti-entropy.ts:64

Minimum delay between this document’s loads. It doubles after each load that leaves the gap open, up to 64 times, and is reset only by a repair. After the third load of a gap that a responder answered without corroboration it is 64 times. A member’s verified advertisement or notice undoes the doublings of loads that reached no responder, at most once per member every 5 minutes, doubling to 2 hours. Default: 60 000 ms.


minRequestIntervalMs: number

Defined in: packages/core/src/anti-entropy.ts:47

Minimum delay between this document’s requests. It doubles while a detected gap persists, up to intervalMs. A request that acknowledges an applied change waits only the 2000 ms sync-request rate limit. Default: 5000 ms; at least that rate limit.


peerCooldownMs: number

Defined in: packages/core/src/anti-entropy.ts:53

One member, or one peer seen as a member, triggers at most one request per kind of signal within this window; all other peers share one window. Default: 30 000 ms.