tune: backfill改500ms/批(CPU100%→平衡模式)
This commit is contained in:
parent
7b8a0f74f2
commit
a8e1e123ca
@ -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 ──────────────────────────────────────────────────
|
||||
|
||||
Loading…
Reference in New Issue
Block a user