forked from wangziqi/gongxue-base
chore: gate production postgres tuning and taro handoff
This commit is contained in:
@@ -124,8 +124,8 @@ STORAGE_REQUIRE_TENANT_PREFIX=true
|
||||
|
||||
1. `npm run perf:postgres:evidence` 采集默认 PostgreSQL 参数。
|
||||
2. 按 `docs/refactor/postgresql-4c16g-tuning.md` 应用 shared-host 起步值。
|
||||
3. 重启 PostgreSQL 后再次 `npm run perf:postgres:evidence`。
|
||||
3. 重启 PostgreSQL 后执行 `PG_TUNING_PROFILE=shared-host npm run perf:postgres:evidence -- --strict --json`,确认 profile 达标、`pending_restart=0`、`pg_stat_statements` 可用。
|
||||
4. 跑 `npm run perf:api:local` 的 6/30/50/100 阶梯,只读和少量写入各一组。
|
||||
5. 把摘要写入本地 `production-launch-evidence.json`,执行 `npm run launch:gate`。
|
||||
5. 把 `postgres.tuning-evidence` 和 API 压测摘要写入本地 `production-launch-evidence.json`,执行 `npm run launch:gate`。
|
||||
|
||||
容量折算不要直接把压测 worker 当在线人数。真实学生有读题和思考时间,应结合 H5 埋点估算单人平均 RPS,再按成功 RPS 折算在线容量。
|
||||
|
||||
Reference in New Issue
Block a user