65 lines
1.9 KiB
Plaintext
65 lines
1.9 KiB
Plaintext
# ==========================================
|
|
# Ingestion API Configuration
|
|
# ==========================================
|
|
API_HOST=0.0.0.0
|
|
API_PORT=8000
|
|
API_QUEUE_MAX_SIZE=10000
|
|
# Optional override; Compose otherwise derives this from WORKER_STATS_PORT.
|
|
# WORKER_STATS_URL=http://worker:8001/internal/stats
|
|
|
|
# ==========================================
|
|
# Processing Worker Configuration
|
|
# ==========================================
|
|
WORKER_INSTANCE=worker-1
|
|
WORKER_STATS_HOST=0.0.0.0
|
|
WORKER_STATS_PORT=8001
|
|
|
|
# ==========================================
|
|
# Kafka / Redpanda Broker Configuration
|
|
# ==========================================
|
|
KAFKA_BOOTSTRAP_SERVERS=redpanda:29092
|
|
KAFKA_RAW_TOPIC=cdr.raw
|
|
KAFKA_DLQ_TOPIC=cdr.raw.dlq
|
|
KAFKA_CONSUMER_GROUP=cdr-processing-group
|
|
KAFKA_AUTO_OFFSET_RESET=earliest
|
|
|
|
# ==========================================
|
|
# ClickHouse Database Configuration
|
|
# ==========================================
|
|
CLICKHOUSE_HOST=clickhouse
|
|
# Published host HTTP port. Compose services always use clickhouse:8123.
|
|
CLICKHOUSE_PORT=8123
|
|
CLICKHOUSE_USER=default
|
|
CLICKHOUSE_PASSWORD=
|
|
CLICKHOUSE_DATABASE=telecom
|
|
CLICKHOUSE_TABLE=cdr_records
|
|
|
|
# ==========================================
|
|
# Micro-Batching Settings
|
|
# ==========================================
|
|
BATCH_SIZE=1000
|
|
BATCH_FLUSH_INTERVAL_SECONDS=2
|
|
|
|
# ==========================================
|
|
# ClickHouse Timeout Retry Policy
|
|
# ==========================================
|
|
CH_RETRY_MAX_ATTEMPTS=3
|
|
CH_RETRY_INITIAL_DELAY_MS=500
|
|
CH_RETRY_BACKOFF_FACTOR=2.0
|
|
|
|
# ==========================================
|
|
# Observability & Logging
|
|
# ==========================================
|
|
LOG_LEVEL=INFO
|
|
|
|
# Delivery and HTTP limits
|
|
KAFKA_DELIVERY_TIMEOUT_SECONDS=10
|
|
API_MAX_BODY_BYTES=65536
|
|
API_READ_TIMEOUT_SECONDS=10
|
|
SHUTDOWN_TIMEOUT_SECONDS=45
|
|
# Published infrastructure ports
|
|
KAFKA_PORT=9092
|
|
KAFKA_ADVERTISED_HOST=localhost
|
|
REDPANDA_ADMIN_PORT=9644
|
|
CLICKHOUSE_NATIVE_PORT=9000
|