Record the control runs of track 1

make track1-control on b1c80ee: 8x1 at 5400 rps with a pool of 4, 8 and
16 connections per worker and an LB maxconn of 16, 32 and 64 per
replica, then 4x1 against 8x0.5 on the same CPUs 7-10, three repeats
with the variants interleaved.

The first placement attempt is kept in aborted/ only as a summary: four
4x1 runs had the write command at 7-34 ms instead of 0.2-0.6 ms, waiting
on WalSync, which the CPU based rejection does not see. The rerun right
after it is the one in control-cpus. The full output of the two failed
compose up attempts names the cause of the flaky switch: all replicas
are recreated at once and lb turns unhealthy without a ready server.

Plots and capacity.md now include both control series.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
This commit is contained in:
Artyom
2026-10-30 04:45:55 +03:00
co-authored by Claude Opus 5.5
parent a67bc6526a
commit f4833c40c0
201 changed files with 29441 additions and 0 deletions
@@ -0,0 +1,21 @@
calls,total_ms,mean_ms,rows,shared_blks_hit,shared_blks_read,query
57519,2690596.542,46.778,57519,5456028,0,"WITH chat AS ( SELECT c.id, GREATEST($5::timestamptz, c.last_message_at + interval $9) AS stamp FROM chats c JOIN chat_members m ON m.chat_id = c.id AND m.user_id = $3 WHERE c.id = $2 FOR UPDATE OF c "
22575,1766106.642,78.233,22575,2087426,0,"WITH chat AS ( SELECT c.id, GREATEST($5::timestamptz, c.last_message_at + interval $9) AS stamp FROM chats c JOIN chat_members m ON m.chat_id = c.id AND m.user_id = $3 WHERE c.id = $2 FOR UPDATE OF c "
19932,1647.299,0.083,19932,261932,0,"SELECT c.id, c.title, c.created_at, ARRAY(SELECT user_id FROM chat_members WHERE chat_id = c.id ORDER BY position) AS member_ids FROM chat_members m JOIN chats c ON c.id = m.chat_id WHERE m.chat_id = "
19932,1621.389,0.081,1013657,890410,0,"SELECT id, chat_id, sender_id, text, created_at FROM messages WHERE chat_id = $1 ORDER BY created_at, id LIMIT $2"
120457,621.762,0.005,0,0,0,RESET ALL
120457,324.111,0.003,120457,0,0,SELECT pg_advisory_unlock_all()
120457,82.547,0.001,0,0,0,CLOSE ALL
120,24.409,0.203,240,4320,0,"WITH RECURSIVE typeinfo_tree( oid, ns, name, kind, basetype, elemtype, elemdelim, range_subtype, attrtypoids, attrnames, depth) AS ( SELECT ti.oid, ti.ns, ti.name, ti.kind, ti.basetype, ti.elemtype, t"
120457,21.163,0.000,0,0,0,UNLISTEN *
20,2.306,0.115,20,257,1,"WITH expired AS (DELETE FROM sessions WHERE user_id = $2 AND expires_at <= $3) INSERT INTO sessions (token_hash, user_id, created_at, expires_at) VALUES ($1, $2, $3, $4)"
20,1.819,0.091,20,132,0,"INSERT INTO users (id, username, display_name, password_hash, created_at) VALUES ($1, $2, $3, $4, $5) ON CONFLICT (username) DO NOTHING RETURNING $6"
10,1.698,0.170,20,372,0,"INSERT INTO chat_members (chat_id, user_id, position, chat_created_at) SELECT $1, member.user_id, member.position, $3 FROM unnest($2::uuid[]) WITH ORDINALITY AS member (user_id, position)"
36,0.640,0.018,36,108,0,"SELECT token_hash, user_id, created_at, expires_at FROM sessions WHERE token_hash = $1 AND expires_at > $2"
392,0.557,0.001,392,0,0,SELECT 1
120,0.457,0.004,120,0,0,"SELECT current_setting($1) AS cur, set_config($2, $3, $4) AS new"
120,0.330,0.003,120,0,0,"SELECT set_config($2, $1, $3)"
10,0.328,0.033,10,68,0,"INSERT INTO chats (id, title, created_at) VALUES ($1, $2, $3)"
20,0.314,0.016,20,40,0,"SELECT id, username, display_name, password_hash, created_at FROM users WHERE username = $1"
50,0.017,0.000,0,0,0,BEGIN
50,0.013,0.000,0,0,0,COMMIT
1 calls total_ms mean_ms rows shared_blks_hit shared_blks_read query
2 57519 2690596.542 46.778 57519 5456028 0 WITH chat AS ( SELECT c.id, GREATEST($5::timestamptz, c.last_message_at + interval $9) AS stamp FROM chats c JOIN chat_members m ON m.chat_id = c.id AND m.user_id = $3 WHERE c.id = $2 FOR UPDATE OF c
3 22575 1766106.642 78.233 22575 2087426 0 WITH chat AS ( SELECT c.id, GREATEST($5::timestamptz, c.last_message_at + interval $9) AS stamp FROM chats c JOIN chat_members m ON m.chat_id = c.id AND m.user_id = $3 WHERE c.id = $2 FOR UPDATE OF c
4 19932 1647.299 0.083 19932 261932 0 SELECT c.id, c.title, c.created_at, ARRAY(SELECT user_id FROM chat_members WHERE chat_id = c.id ORDER BY position) AS member_ids FROM chat_members m JOIN chats c ON c.id = m.chat_id WHERE m.chat_id =
5 19932 1621.389 0.081 1013657 890410 0 SELECT id, chat_id, sender_id, text, created_at FROM messages WHERE chat_id = $1 ORDER BY created_at, id LIMIT $2
6 120457 621.762 0.005 0 0 0 RESET ALL
7 120457 324.111 0.003 120457 0 0 SELECT pg_advisory_unlock_all()
8 120457 82.547 0.001 0 0 0 CLOSE ALL
9 120 24.409 0.203 240 4320 0 WITH RECURSIVE typeinfo_tree( oid, ns, name, kind, basetype, elemtype, elemdelim, range_subtype, attrtypoids, attrnames, depth) AS ( SELECT ti.oid, ti.ns, ti.name, ti.kind, ti.basetype, ti.elemtype, t
10 120457 21.163 0.000 0 0 0 UNLISTEN *
11 20 2.306 0.115 20 257 1 WITH expired AS (DELETE FROM sessions WHERE user_id = $2 AND expires_at <= $3) INSERT INTO sessions (token_hash, user_id, created_at, expires_at) VALUES ($1, $2, $3, $4)
12 20 1.819 0.091 20 132 0 INSERT INTO users (id, username, display_name, password_hash, created_at) VALUES ($1, $2, $3, $4, $5) ON CONFLICT (username) DO NOTHING RETURNING $6
13 10 1.698 0.170 20 372 0 INSERT INTO chat_members (chat_id, user_id, position, chat_created_at) SELECT $1, member.user_id, member.position, $3 FROM unnest($2::uuid[]) WITH ORDINALITY AS member (user_id, position)
14 36 0.640 0.018 36 108 0 SELECT token_hash, user_id, created_at, expires_at FROM sessions WHERE token_hash = $1 AND expires_at > $2
15 392 0.557 0.001 392 0 0 SELECT 1
16 120 0.457 0.004 120 0 0 SELECT current_setting($1) AS cur, set_config($2, $3, $4) AS new
17 120 0.330 0.003 120 0 0 SELECT set_config($2, $1, $3)
18 10 0.328 0.033 10 68 0 INSERT INTO chats (id, title, created_at) VALUES ($1, $2, $3)
19 20 0.314 0.016 20 40 0 SELECT id, username, display_name, password_hash, created_at FROM users WHERE username = $1
20 50 0.017 0.000 0 0 0 BEGIN
21 50 0.013 0.000 0 0 0 COMMIT