-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
35 lines (31 loc) · 1.74 KB
/
Copy path.env.example
File metadata and controls
35 lines (31 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# ─── Required (the only two you must set) ───
MONGO_URI=mongodb://localhost:27017
CLICKHOUSE_URL=http://localhost:8123
# ─── Common ───
#SERVICE_NAME=drill-migrator
SERVICE_PORT=8080
MONGO_DB=countly_drill # source database with drill_events* collections
MONGO_COUNTLY_DB=countly # for per-event collection-hash resolution
CLICKHOUSE_DB=countly_drill
CLICKHOUSE_TABLE=drill_events
MANIFEST_DB=countly_drill # where progress state lives: mig_ranges + mig_dlq_docs
# (recoverable if lost: dashboard → Help & Recovery → Rebuild ledger from data)
# Read preference is AUTO: on a replica set the engine picks
# secondaryPreferred by itself (source is frozen after cutover, so secondary
# reads are exact). Set explicitly only to override:
#MONGO_READ_PREFERENCE=primary
# ─── Run identity & scaling ───
LEDGER_RUN_ID=migration-1 # stable resume key — keep it the same across restarts
#POD_ID=pod-1 # unique per instance when running multiple pods
#EXIT_ON_COMPLETE=true # exit 0 when all chunks are done (one-shot orchestration)
#LEDGER_START_PAUSED=true # deploy now, start later: pods come up, serve the
# dashboard and wait (nothing read, mapped or indexed)
# until Start is pressed once for the whole run
# ─── Sizing (see the UI's Configuration card for guidance) ───
#LEDGER_CHUNK_DOCS_TARGET=2000000
#LEDGER_MAX_CHUNK_DAYS=7
#MONGO_PAGE_SIZE=10000
#LEDGER_INSERT_INFLIGHT=3
# ─── Rehearsal ───
#DRY_RUN=true # sampled rehearsal, nothing stored (or use the UI button)
#DRY_RUN_SAMPLE_PCT=2