feat(report): 처리량(TPS) 지표 추가
- /admin/report에 throughput(초당 버킷): 접수/완결 최대 TPS, 완결 평균 TPS(활성구간), 활성 초수 - 보고서 화면에 🚀 처리량(TPS) 섹션(지연시간 아래) + 드라이버 부하 기준 주의 문구 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,7 @@ function ReportInner() {
|
||||
const rec = rep.reconciliation ?? {}
|
||||
const amt = rep.amount ?? {}
|
||||
const lat = rep.latency ?? {}
|
||||
const tp = rep.throughput ?? {}
|
||||
const cnt = (st: string) => n((t.byStatus ?? []).find((b: any) => b.status === st)?.cnt)
|
||||
const total = n(t.transfers)
|
||||
const accc = cnt('ACCC'), rjct = cnt('RJCT')
|
||||
@@ -106,6 +107,18 @@ function ReportInner() {
|
||||
</table>
|
||||
</section>
|
||||
|
||||
{/* 처리량(TPS) */}
|
||||
<section style={box}>
|
||||
<h3 style={{ marginTop: 0 }}>🚀 처리량 (TPS) <span style={{ fontSize: 12, color: '#888' }}>(초당 건수 관측치 · 테스트 드라이버 부하 기준, 시스템 한계 아님)</span></h3>
|
||||
<div style={{ display: 'flex', gap: 12, flexWrap: 'wrap' }}>
|
||||
<div style={{ ...card, background: '#f7fbff' }}><div style={lbl}>완결 최대 TPS</div><div style={{ ...big, color: '#1a7f37' }}>{num(tp.settled_peak)}<span style={{ fontSize: 13, color: '#777' }}> /s</span></div></div>
|
||||
<div style={card}><div style={lbl}>완결 평균 TPS <span style={{ fontSize: 11 }}>(활성구간)</span></div><div style={big}>{num(tp.settled_avg)}<span style={{ fontSize: 13, color: '#777' }}> /s</span></div></div>
|
||||
<div style={card}><div style={lbl}>접수 최대 TPS</div><div style={big}>{num(tp.received_peak)}<span style={{ fontSize: 13, color: '#777' }}> /s</span></div></div>
|
||||
<div style={card}><div style={lbl}>활성 구간</div><div style={big}>{num(tp.active_secs)}<span style={{ fontSize: 13, color: '#777' }}> s</span></div></div>
|
||||
</div>
|
||||
<p style={{ color: '#888', fontSize: 12, margin: '10px 0 0' }}>※ 접수·완결 최대 TPS가 비슷하면 파이프라인이 부하를 따라온 것(=드라이버 한계). 진짜 최대 용량은 k6 부하시험으로 측정.</p>
|
||||
</section>
|
||||
|
||||
{/* 기관별 */}
|
||||
<section style={box}>
|
||||
<h3 style={{ marginTop: 0 }}>🏛 기관별 송·수신 <span style={{ fontSize: 12, color: '#888' }}>(완결 ACCC 기준)</span></h3>
|
||||
|
||||
Reference in New Issue
Block a user