Files
mtusi2026lab2/evidence/track2/backup.json
T
Alexey BodanyukandClaude Opus 5.5 eb92e8e91e bench: трек 2 — планы запросов, стоимость записи, backup/restore со сверкой
plans.py: 121 120 сообщений (60k/15k/2k/80), 3 индекса x keyset/OFFSET x 3 размера
чата, pgbench в отдельном контейнере; WAL на вставку детерминированно.
backup_restore.py: pg_dump живой БД во время записи через API, восстановление в
новый контейнер и volume, сверка MD5 по чатам, API на восстановленной БД.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 20:08:13 +03:00

156 lines
4.4 KiB
JSON

{
"image": "postgres:18.6-bookworm@sha256:afc7e2d441324c0388fa80c3d24f733b4194a4eb7f47dd8ee2b08eb1a24a647c",
"rounds": [
{
"round": 1,
"backup_started_utc": "2026-10-12T17:06:57+00:00",
"dump_seconds": 1.47,
"dump_bytes": 5349383,
"restore_seconds": 2.21,
"analyze_seconds": 0.57,
"rto_seconds_restore_plus_analyze": 2.79,
"source_counts_after_writer_stopped": {
"chat_members": 330,
"chats": 290,
"messages": 171546,
"schema_migrations": 1,
"users": 117
},
"restored_counts": {
"chat_members": 330,
"chats": 290,
"messages": 171410,
"schema_migrations": 1,
"users": 117
},
"messages_in_restored": 171410,
"per_chat_md5_equal": true,
"chats_compared": 257,
"big_chat_first_last_50_equal": true,
"schema_migrations_equal": true,
"indexes_equal": true,
"other_table_counts_equal": {
"chat_members": true,
"chats": true,
"schema_migrations": true,
"users": true
},
"writer": {
"confirmed": 237,
"errors": 0,
"in_backup": 101,
"restored_is_exact_prefix": true,
"lost_confirmed_after_snapshot": 136,
"last_message_in_backup_at": "2026-10-12T17:06:57.831240Z",
"first_lost_message_at": "2026-10-12T17:06:57.856678Z"
},
"app_on_restored_db": {
"login_ok": true,
"history_via_api_equals_restored": true,
"messages_read": 101
},
"reconciled": true
},
{
"round": 2,
"backup_started_utc": "2026-10-12T17:07:13+00:00",
"dump_seconds": 1.7,
"dump_bytes": 5362829,
"restore_seconds": 1.9,
"analyze_seconds": 0.49,
"rto_seconds_restore_plus_analyze": 2.39,
"source_counts_after_writer_stopped": {
"chat_members": 331,
"chats": 291,
"messages": 171788,
"schema_migrations": 1,
"users": 118
},
"restored_counts": {
"chat_members": 331,
"chats": 291,
"messages": 171655,
"schema_migrations": 1,
"users": 118
},
"messages_in_restored": 171655,
"per_chat_md5_equal": true,
"chats_compared": 258,
"big_chat_first_last_50_equal": true,
"schema_migrations_equal": true,
"indexes_equal": true,
"other_table_counts_equal": {
"chat_members": true,
"chats": true,
"schema_migrations": true,
"users": true
},
"writer": {
"confirmed": 242,
"errors": 0,
"in_backup": 109,
"restored_is_exact_prefix": true,
"lost_confirmed_after_snapshot": 133,
"last_message_in_backup_at": "2026-10-12T17:07:14.212768Z",
"first_lost_message_at": "2026-10-12T17:07:14.237207Z"
},
"app_on_restored_db": {
"login_ok": true,
"history_via_api_equals_restored": true,
"messages_read": 109
},
"reconciled": true
},
{
"round": 3,
"backup_started_utc": "2026-10-12T17:07:30+00:00",
"dump_seconds": 1.4,
"dump_bytes": 5371057,
"restore_seconds": 1.76,
"analyze_seconds": 0.49,
"rto_seconds_restore_plus_analyze": 2.25,
"source_counts_after_writer_stopped": {
"chat_members": 332,
"chats": 292,
"messages": 172038,
"schema_migrations": 1,
"users": 119
},
"restored_counts": {
"chat_members": 332,
"chats": 292,
"messages": 171898,
"schema_migrations": 1,
"users": 119
},
"messages_in_restored": 171898,
"per_chat_md5_equal": true,
"chats_compared": 259,
"big_chat_first_last_50_equal": true,
"schema_migrations_equal": true,
"indexes_equal": true,
"other_table_counts_equal": {
"chat_members": true,
"chats": true,
"schema_migrations": true,
"users": true
},
"writer": {
"confirmed": 250,
"errors": 0,
"in_backup": 110,
"restored_is_exact_prefix": true,
"lost_confirmed_after_snapshot": 140,
"last_message_in_backup_at": "2026-10-12T17:07:31.075846Z",
"first_lost_message_at": "2026-10-12T17:07:31.095982Z"
},
"app_on_restored_db": {
"login_ok": true,
"history_via_api_equals_restored": true,
"messages_read": 110
},
"reconciled": true
}
]
}