Skip to content

Commit d55d4fa

Browse files
committed
docs(mothership): quote the final copy latency behind the fork attempt timeout
1 parent fc33334 commit d55d4fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎apps/sim/lib/mothership/chat/fork-worker.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const logger = createLogger('ForkWorker')
1111

1212
/**
1313
* How long one attempt waits for the copy. The worker refuses a cut above 50,000 events
14-
* with 413, and measured locally it copies 15,000 events in about 2 s and 50,000 in about
15-
* 9 s; production databases are slower by an estimated factor of up to eight, which puts
16-
* the ceiling near 70 s. 120 s leaves headroom above that, and the load balancers on both
14+
* with 413, and measured locally it copies 15,000 events in 1.5–2 s and 50,000 in 5–9 s;
15+
* production databases are slower by an estimated factor of up to eight, which puts the
16+
* ceiling at 40–70 s. 120 s leaves headroom above that, and the load balancers on both
1717
* sides keep idle connections far longer. A legitimate fork therefore finishes inside one
1818
* attempt, and one that does not is abandoned: the worker rolls a copy back once its
1919
* caller's connection closes, so a timed-out attempt is never retried and never published.

0 commit comments

Comments
 (0)