tune: backfill改500ms/批(CPU100%→平衡模式)

This commit is contained in:
root 2026-02-27 17:59:20 +00:00
parent 7b8a0f74f2
commit a8e1e123ca

View File

@ -27,7 +27,7 @@ logger = logging.getLogger("backfill")
BINANCE_FAPI = "https://fapi.binance.com/fapi/v1"
HEADERS = {"User-Agent": "Mozilla/5.0 ArbitrageEngine/backfill"}
BATCH_SIZE = 1000
SLEEP_MS = 200 # PG并发无锁全速拉取
SLEEP_MS = 500 # 平衡速度与CPU负载
# ─── DB helpers ──────────────────────────────────────────────────