-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync.example.toml
More file actions
40 lines (28 loc) · 1.32 KB
/
sync.example.toml
File metadata and controls
40 lines (28 loc) · 1.32 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
36
37
38
39
40
# Bitdex PG Sync Configuration
# Copy to sync.toml and adjust for your environment.
# Postgres connection string (read-write logical replica)
postgres_url = "postgres://user:pass@localhost:5432/civitai"
# ClickHouse HTTP URL for metrics (optional — omit to skip metrics polling)
clickhouse_url = "http://localhost:8123"
# ClickHouse auth (optional — can also use CLICKHOUSE_USERNAME/CLICKHOUSE_PASSWORD env vars)
# clickhouse_username = "default"
# clickhouse_password = "secret"
# Bitdex server URL (used by sync mode to push upserts/deletes)
bitdex_url = "http://localhost:3000"
# Path to the index definition directory (must contain config.yaml)
index_dir = "data/indexes/civitai"
# Data directory for engine storage (bitmaps + docstore)
data_dir = "data/civitai"
# Number of PG connections in the pool (default: 10)
pg_pool_size = 10
# Number of image IDs per batch during bulk loading (default: 100000)
batch_size = 100000
# Outbox poll interval in seconds (default: 2)
poll_interval_secs = 2
# Max outbox rows per poll cycle (default: 5000)
outbox_batch_limit = 5000
# ClickHouse metrics poll interval in seconds (default: 60)
metrics_poll_interval_secs = 60
# Replica identifier for cursor tracking (default: "default")
# In K8s, override via BITDEX_REPLICA_ID env var (e.g. from StatefulSet pod name)
# replica_id = "bitdex-0"