Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/i18n/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,6 @@
"부터 복구 가능": "から復旧可能",
"부하 생성기 기준": "負荷生成器基準",
"분": "分",
"분 이내, 실패 0, 누락 0": "分以内、失敗 0、欠落 0",
"분 전": "分前",
"분류되지 않은 테이블 (새로 생긴 테이블일 수 있음)": "分類されていないテーブル (新しく作成されたテーブルの可能性あり)",
"분류표에는 있지만 원본에서 찾지 못한 테이블": "分類表にはあるが、移行元で見つからなかったテーブル",
Expand Down Expand Up @@ -3310,5 +3309,7 @@
"차단됨: {0} (RBAC: Pod 생성 권한 없음)": "ブロック: {0} (RBAC: Pod の作成権限なし)",
"차단됨: {0} (Pod Security: 노드 네트워크·파일시스템을 쓰는 Pod 금지)": "ブロック: {0} (Pod Security: ノードのネットワークとファイルシステムを使う Pod は禁止)",
"차단됨: {0} (NetworkPolicy: 샌드박스 밖으로 나가는 연결 차단)": "ブロック: {0} (NetworkPolicy: サンドボックス外への接続をブロック)",
"영상을 불러오지 못했습니다.": "動画を読み込めませんでした。"
"영상을 불러오지 못했습니다.": "動画を読み込めませんでした。",
"시작부터 끝까지": "開始から終了まで",
"목표: 실패 0, 누락 0": "目標: 失敗 0、欠落 0"
}
8 changes: 3 additions & 5 deletions src/pages/Migrate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type { CheckStatus, PreflightView } from "../data/preflight";
import { hiddenSteps } from "../data/migrationMap";
import { SAMPLE } from "../sim/data";
import { dur, fmt, mmss, type StepState } from "../sim/format";
import { CANARY, CANARY_PRESET_ORDER, CANARY_PRESETS, ENGINE_STEPS, statusText, targetReadShare, TARGET_SEC, type CanaryPreset } from "../sim/mig";
import { CANARY, CANARY_PRESET_ORDER, CANARY_PRESETS, ENGINE_STEPS, statusText, targetReadShare, type CanaryPreset } from "../sim/mig";

const STATUS_KIND: Record<RunStatus, ChipKind> = {
running: "run",
Expand Down Expand Up @@ -1112,8 +1112,6 @@ function goSec(d: string): number | undefined {
return parts.reduce((t, [, n, u]) => t + Number(n) * unit[u], 0);
}

const TARGET_TEXT = TARGET_SEC % 60 ? dur(TARGET_SEC) : TARGET_SEC / 60 + "분";

/**
* When the run crossed from one part to the next, from its events (complete in both modes, see useRun):
* sync done, waiting for the switch (or the switch itself when nothing waited), switch, cutover done, observe.
Expand Down Expand Up @@ -1490,7 +1488,7 @@ function ObserveBox({ r }: { r: Run }) {
);
}

// The ended run's numbers, each checked against its target.
// The ended run's numbers, each checked against its target where it has one.
function ResultBox({ r, v }: { r: Run; v: MigrationView }) {
const x = r.result;
const verification = writeVerificationOf(x);
Expand All @@ -1509,7 +1507,7 @@ function ResultBox({ r, v }: { r: Run; v: MigrationView }) {
<span className="hint">목표와 비교</span>
</div>
<div className="mg-report">
<Num label="전체 시간" value={x.durationMillis !== undefined ? dur(x.durationMillis / 1000) : "-"} note={"목표 " + TARGET_TEXT + " 이내"} ok={x.durationMillis === undefined || r.status !== "succeeded" ? undefined : x.durationMillis <= TARGET_SEC * 1000} />
<Num label="전체 시간" value={x.durationMillis !== undefined ? dur(x.durationMillis / 1000) : "-"} note="시작부터 끝까지" />
{!res.postgres ? none("쓰기 보류", "DB 없음") : <Num
label="쓰기 보류"
value={down !== undefined ? (down / 1000).toFixed(1) + "초" : "-"}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { isPrioritySeverity, type SecurityFindingRow } from "../data/security";
import { PRIORITY_FINDINGS } from "../router";
import { SAMPLE } from "../sim/data";
import { dur, fmt } from "../sim/format";
import { iso, statusText, TARGET_SEC } from "../sim/mig";
import { iso, statusText } from "../sim/mig";
import { DEMO_SECURITY_FINDINGS } from "../sim/securityWorkspace";
import { ONB_STATE_LABEL } from "../sim/onboard";
import { migLabel, type SimState } from "../sim/state";
Expand Down Expand Up @@ -58,7 +58,7 @@ function OverviewView({ now, apps, activity, runs }: { now: ReactNode; apps: App
<section className="box ov-routes">
<div className="bh">
<h2 className="icon-label"><Icon name="route" /><span>경로별 결과</span></h2>
<span className="hint">목표: {TARGET_SEC / 60}분 이내, 실패 0, 누락 0</span>
<span className="hint">목표: 실패 0, 누락 0</span>
</div>
<div className="bb">
<RouteMatrix active={runs?.filter(isActive)} />
Expand Down
2 changes: 0 additions & 2 deletions src/sim/mig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ export const POST_END = 13.6;
const HOLD_START = 0.4;
const HOLD_END = 6.8;
const PROMOTE_AT = 1.2;
/** Whole-run target the topic commits to (seconds). */
export const TARGET_SEC = 180;
/** k6 successful writes per simulated second */
export const RATE = 20;

Expand Down