跳到內容
主控台

LB Server 請求分析

區間是 2025/12/13 上午 9:19:57 至 9:25:01(UTC+8),長度 5 分 4 秒。

總請求數

948,920

RPS

平均 3,121.45,峰值 3,183.02

總傳輸量

659.64 MB

成功率

97.16%(5xx 為 0)

這段期間處理了 948,920 個 HTTP 請求,峰值 RPS 比平均高約 2%。

平均請求大小 728.91 B(範圍 0 B ~ 94.12 KB),總傳輸量 659.64 MB。

狀態碼類別 數量 比例 評估
2xx(成功) 921,963 97.16% 高
3xx(重新導向) 1 0.00% 正常
4xx(客戶端錯誤) 26,956 2.84% 偏高
5xx(伺服器錯誤) 0 0.00% 無
狀態碼 數量 比例
200 921,702 97.13%
404 26,932 2.84%
204 261 0.03%
499 24 0.00%
302 1 0.00%

流量集中在兩個 API。前 8 個端點佔總流量的 73.48%,其中:

  • 地震預警(/api/v2/eq/…,轉發中央氣象署的強震即時警報,完整路徑不列出):36.86%
  • /api/v2/trem/rts(即時測站):36.62%

地震預警與即時測站在 4 台負載平衡器上各約 9%。

/api/v2/eq/…/api/v2/trem/rts/api/v1/trem/rts/ntp/websocket/api/v1/eq/…每台合計4 台均分 25%lb-1.exptech.devlb-2.exptech.devlb-3.exptech.devlb-4.exptech.devlb.exptech.devlb-1.exptech.dev × /api/v2/eq/…:9.22%9.22%lb-1.exptech.dev × /api/v2/trem/rts:9.16%9.16%lb-1.exptech.dev × /api/v1/trem/rts:6.34%6.34%lb-1.exptech.dev × /ntp:4.25%4.25%lb-1.exptech.dev × /websocket:0.89%0.89%lb-1.exptech.dev × /api/v1/eq/…:0.70%0.70%lb-2.exptech.dev × /api/v2/eq/…:9.29%9.29%lb-2.exptech.dev × /api/v2/trem/rts:9.17%9.17%lb-2.exptech.dev × /api/v1/trem/rts:2.64%2.64%lb-2.exptech.dev × /ntp:1.84%1.84%lb-2.exptech.dev × /websocket:0.08%0.08%lb-2.exptech.dev × /api/v1/eq/…:0.66%0.66%lb-3.exptech.dev × /api/v2/eq/…:9.18%9.18%lb-3.exptech.dev × /api/v2/trem/rts:9.13%9.13%lb-3.exptech.dev × /api/v1/trem/rts:0.66%0.66%lb-3.exptech.dev × /ntp:1.83%1.83%lb-3.exptech.dev × /websocket:0.90%0.90%lb-3.exptech.dev × /api/v1/eq/…:0.67%0.67%lb-4.exptech.dev × /api/v2/eq/…:9.18%9.18%lb-4.exptech.dev × /api/v2/trem/rts:9.16%9.16%lb-4.exptech.dev × /api/v1/trem/rts:0.63%0.63%lb-4.exptech.dev × /ntp:1.83%1.83%lb-4.exptech.dev × /websocket:0.90%0.90%lb-4.exptech.dev × /api/v1/eq/…:0.67%0.67%lb.exptech.dev × /api/v2/eq/…:無資料–lb.exptech.dev × /api/v2/trem/rts:0.04%0.04%lb.exptech.dev × /api/v1/trem/rts:0.61%0.61%lb.exptech.dev × /ntp:0.04%0.04%lb.exptech.dev × /websocket:無資料–lb.exptech.dev × /api/v1/eq/…:0.04%0.04%lb-1.exptech.dev:30.58%30.58%lb-2.exptech.dev:23.68%23.68%lb-3.exptech.dev:22.38%22.38%lb-4.exptech.dev:22.37%22.37%lb.exptech.dev:0.94%0.94%0.00%9.29%無資料

列是 5 個負載平衡器的網域,欄是 6 個主要端點,格子是佔全部請求的比例。地震預警(/api/v2/eq/…)與即時測站(/api/v2/trem/rts)在 lb-1 到 lb-4 各約 9%,差不多。lb-1 比較高的是 /api/v1/trem/rts(6.34%,其他三台 0.63% 到 2.64%)與 /ntp(4.25%,其他三台約 1.8%)。右邊是每台的合計:lb-1 30.58%,高於 4 台均分的 25%;lb-2 23.68%、lb-3 22.38%、lb-4 22.37%、lb.exptech.dev 0.94%。lb.exptech.dev 的 /api/v2/eq/… 與 /websocket 不在下面的排名表裡(排名表列到第 28 名,360 筆),標為無資料。

各端點在每台負載平衡器的請求比例(佔全部請求)
排名 請求 請求數 比例 累積比例 RPS
1 GET /api/v2/eq/… [lb-2.exptech.dev] 88,110 9.29% 9.29% 289.84
2 GET /api/v2/eq/… [lb-1.exptech.dev] 87,496 9.22% 18.51% 287.82
3 GET /api/v2/eq/… [lb-3.exptech.dev] 87,108 9.18% 27.69% 286.54
4 GET /api/v2/eq/… [lb-4.exptech.dev] 87,065 9.18% 36.86% 286.40
5 GET /api/v2/trem/rts [lb-2.exptech.dev] 86,989 9.17% 46.03% 286.15
6 GET /api/v2/trem/rts [lb-4.exptech.dev] 86,966 9.16% 55.19% 286.07
7 GET /api/v2/trem/rts [lb-1.exptech.dev] 86,954 9.16% 64.36% 286.03
8 GET /api/v2/trem/rts [lb-3.exptech.dev] 86,615 9.13% 73.48% 284.92
9 GET /api/v1/trem/rts [lb-1.exptech.dev] 60,190 6.34% 79.83% 197.99
10 GET /ntp [lb-1.exptech.dev] 40,335 4.25% 84.08% 132.68
11 GET /api/v1/trem/rts [lb-2.exptech.dev] 25,096 2.64% 86.72% 82.55
12 GET /ntp [lb-2.exptech.dev] 17,428 1.84% 88.56% 57.33
13 GET /ntp [lb-3.exptech.dev] 17,332 1.83% 90.39% 57.01
14 GET /ntp [lb-4.exptech.dev] 17,321 1.83% 92.21% 56.98
15 GET /websocket [lb-4.exptech.dev] 8,575 0.90% 93.11% 28.21
16 GET /websocket [lb-3.exptech.dev] 8,544 0.90% 94.01% 28.11
17 GET /websocket [lb-1.exptech.dev] 8,475 0.89% 94.91% 27.88
18 GET /api/v1/eq/… [lb-1.exptech.dev] 6,633 0.70% 95.61% 21.82
19 GET /api/v1/eq/… [lb-3.exptech.dev] 6,351 0.67% 96.28% 20.89
20 GET /api/v1/eq/… [lb-4.exptech.dev] 6,346 0.67% 96.94% 20.88
21 GET /api/v1/trem/rts [lb-3.exptech.dev] 6,305 0.66% 97.61% 20.74
22 GET /api/v1/eq/… [lb-2.exptech.dev] 6,287 0.66% 98.27% 20.68
23 GET /api/v1/trem/rts [lb-4.exptech.dev] 5,934 0.63% 98.90% 19.52
24 GET /api/v1/trem/rts [lb.exptech.dev] 5,750 0.61% 99.50% 18.91
25 GET /websocket [lb-2.exptech.dev] 769 0.08% 99.58% 2.53
26 GET /ntp [lb.exptech.dev] 365 0.04% 99.62% 1.20
27 GET /api/v2/trem/rts [lb.exptech.dev] 360 0.04% 99.66% 1.18
28 GET /api/v1/eq/… [lb.exptech.dev] 360 0.04% 99.70% 1.18
API 端點 總請求數 比例 平均 RPS
/api/v2/eq/… 349,779 36.86% ~1,151
/api/v2/trem/rts 347,884 36.66% ~1,144
/api/v1/trem/rts 103,275 10.88% ~340
/ntp 92,781 9.78% ~305
/websocket 26,363 2.78% ~87
/api/v1/eq/… 25,977 2.74% ~85

這張表是上表 28 列依端點加總(含 lb.exptech.dev),前 28 名以外的組合合計不到 0.3%,沒有算進來。2026-11-18 更正:/api/v2/trem/rts、/api/v1/trem/rts、/ntp 與 /websocket 原本的數字跟上表對不起來,已改為加總值。

地震預警佔 36.86%,平均 RPS 約 1,151。即時測站(/api/v2/trem/rts)佔 36.66%。兩個在 4 台上的量都差不多,加起來 73.5%。

v2 API 使用率 73.5%,大部分使用者已遷移至 v2 API。

/ntp 佔 9.78%,用來對時。/websocket 佔 2.78%,用來推即時資料。

共 5 個不同的 Host。

排名 Host 請求數 比例
1 lb-1.exptech.dev 290,151 30.58%
2 lb-2.exptech.dev 224,730 23.68%
3 lb-3.exptech.dev 212,328 22.38%
4 lb-4.exptech.dev 212,276 22.37%
5 lb.exptech.dev 8,886 0.94%

4 台負載平衡器與理想值(25%)的差異:

伺服器 請求數 比例 與理想值差異
lb-1 290,151 30.58% +5.58%
lb-2 224,730 23.68% -1.32%
lb-3 212,328 22.38% -2.62%
lb-4 212,276 22.37% -2.63%

4 台都在正常運作,沒有單點故障。各台佔比在 22% 到 31% 之間,核心 API 在 4 台上的量差不多。

通用網域 lb.exptech.dev 只處理 0.94%,大部分客戶端直接指定某一台。

這些是 2025 年 12 月的入口。lb-1~lb-4 現在已不是 API 的入口,目前的 host 見伺服器與 Base URL。

共 14 個不同的平台。

排名 平台 請求數 比例
1 trem_lite 375,765 39.60%
2 Dart/Flutter 264,753 27.90%
3 tremv 165,834 17.48%
4 ZeroQuake 72,434 7.63%
5 Unknown 27,754 2.92%
6 Node.js 25,429 2.68%
7 Other 6,962 0.73%
8 Chrome 3,948 0.42%
9 Python 2,104 0.22%
10 Axios 2,081 0.22%
11 curl 1,080 0.11%
12 dpip 585 0.06%
13 Safari 183 0.02%
14 Firefox 8 0.00%

trem_lite、Dart/Flutter、tremv 合計 84.98%。trem_lite 39.60%,Dart/Flutter 27.90%(行動應用程式),tremv 17.48%。

指標 數值 評估
平均請求大小 728.91 bytes 輕量
最小請求大小 0 B 健康檢查
最大請求大小 94.12 KB WebSocket
指標 數值 評估
總傳輸量 659.64 MB 5 分鐘內
平均傳輸速度 約 2.2 MB/s 這段的平均
平均每個請求大小 729 bytes 輕量