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
175753,217456.065,1.237,175753,8119814,0,"WITH chat AS ( SELECT c.id, GREATEST($5::timestamptz, c.last_message_at + interval '1 microsecond') 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"
44259,2439.214,0.055,2254584,2413896,0,"SELECT id, chat_id, sender_id, text, created_at FROM messages WHERE chat_id = $1 ORDER BY created_at, id LIMIT $2"
44259,1572.865,0.036,44259,379403,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 = "
264942,1127.802,0.004,0,0,0,RESET ALL
264942,432.183,0.002,264942,0,0,SELECT pg_advisory_unlock_all()
195,399.170,2.047,195,9220,1,"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 "
264942,58.052,0.000,0,0,0,CLOSE ALL
264942,40.928,0.000,0,0,0,UNLISTEN *
1,1.604,1.604,2,25,11,"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"
20,1.426,0.071,20,128,1,"INSERT INTO users (id, username, display_name, password_hash, created_at) VALUES ($1, $2, $3, $4, $5) ON CONFLICT (username) DO NOTHING RETURNING $6"
20,1.157,0.058,20,254,0,"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)"
5,0.752,0.150,10,161,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)"
5,0.610,0.122,10,120,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)"
384,0.479,0.001,384,0,0,SELECT 1
20,0.261,0.013,20,85,0,"SELECT id, username, display_name, password_hash, created_at FROM users WHERE username = $1"
23,0.206,0.009,23,69,0,"SELECT token_hash, user_id, created_at, expires_at FROM sessions WHERE token_hash = $1 AND expires_at > $2"
10,0.141,0.014,10,26,0,"INSERT INTO chats (id, title, created_at) VALUES ($1, $2, $3)"
50,0.012,0.000,0,0,0,BEGIN
50,0.009,0.000,0,0,0,COMMIT
1,0.004,0.004,1,0,0,"SELECT current_setting($1) AS cur, set_config($2, $3, $4) AS new"
1 calls total_ms mean_ms rows shared_blks_hit shared_blks_read query
2 175753 217456.065 1.237 175753 8119814 0 WITH chat AS ( SELECT c.id, GREATEST($5::timestamptz, c.last_message_at + interval '1 microsecond') 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
3 44259 2439.214 0.055 2254584 2413896 0 SELECT id, chat_id, sender_id, text, created_at FROM messages WHERE chat_id = $1 ORDER BY created_at, id LIMIT $2
4 44259 1572.865 0.036 44259 379403 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 264942 1127.802 0.004 0 0 0 RESET ALL
6 264942 432.183 0.002 264942 0 0 SELECT pg_advisory_unlock_all()
7 195 399.170 2.047 195 9220 1 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
8 264942 58.052 0.000 0 0 0 CLOSE ALL
9 264942 40.928 0.000 0 0 0 UNLISTEN *
10 1 1.604 1.604 2 25 11 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
11 20 1.426 0.071 20 128 1 INSERT INTO users (id, username, display_name, password_hash, created_at) VALUES ($1, $2, $3, $4, $5) ON CONFLICT (username) DO NOTHING RETURNING $6
12 20 1.157 0.058 20 254 0 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)
13 5 0.752 0.150 10 161 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 5 0.610 0.122 10 120 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)
15 384 0.479 0.001 384 0 0 SELECT 1
16 20 0.261 0.013 20 85 0 SELECT id, username, display_name, password_hash, created_at FROM users WHERE username = $1
17 23 0.206 0.009 23 69 0 SELECT token_hash, user_id, created_at, expires_at FROM sessions WHERE token_hash = $1 AND expires_at > $2
18 10 0.141 0.014 10 26 0 INSERT INTO chats (id, title, created_at) VALUES ($1, $2, $3)
19 50 0.012 0.000 0 0 0 BEGIN
20 50 0.009 0.000 0 0 0 COMMIT
21 1 0.004 0.004 1 0 0 SELECT current_setting($1) AS cur, set_config($2, $3, $4) AS new