Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

All env vars and config file options.

Environment Variables

Server

VariableDefaultDescription
FUNGI_PORT50051gRPC/API port
FUNGI_HTTP_PORT8080HTTP port
FUNGI_LOG_LEVELinfotrace / debug / info / warn / error
FUNGI_DATA_DIR/dataData directory

Auth

VariableDefaultDescription
FUNGI_AUTH_ENABLEDfalseEnable auth
FUNGI_JWT_SECRET(random)JWT signing secret
FUNGI_ADMIN_USERNAME""Bootstrap admin
FUNGI_ADMIN_PASSWORD""Bootstrap admin

Cluster

VariableDefaultDescription
FUNGI_CLUSTER_MODEfalseEnable distributed mode
FUNGI_JOB_MANAGER_HOST0.0.0.0JobManager address
FUNGI_JOB_MANAGER_PORT50052JobManager port
FUNGI_TASK_MANAGER_SLOTS4Slots per TaskManager

Kafka

VariableDefaultDescription
KAFKA_BOOTSTRAP_SERVERSlocalhost:9092Kafka brokers

Enterprise

VariableDefaultDescription
FUNGI_LICENSE_KEY(none)Enterprise license key (Ed25519-signed JWT)

License modes:

ModeKeyBehavior
Personal(none)Enterprise features disabled, info log at startup
EnterpriseValid keyAll features enabled
EnterpriseExpiredWarn for 7 days, then disable
EnterpriseInvalidFail fast

Generate test license (dev only):

cargo run -p fungi-enterprise --example generate_test_license

Config File

fungi.toml:

[server]
host = "0.0.0.0"
port = 50051

[checkpoint]
interval_ms = 60000
timeout_ms = 600000
max_concurrent = 1

[state_backend]
type = "memory"               # or "rocksdb"

[state_backend.rocksdb]
path = "/var/lib/fungi/state"

[kafka]
bootstrap_servers = "localhost:9092"
group_id = "fungi-default"

[logging]
level = "info"
format = "pretty"             # or "json"

[cluster]
mode = false
[cluster.job_manager]
host = "0.0.0.0"
port = 50052
[cluster.task_manager]
slots = 4
memory_mb = 4096

Logging

export RUST_LOG=fungi=debug
export RUST_LOG=fungi_server=info,fungi_sql=debug   # per-crate

Performance Tuning

SettingWhereNotes
Parallelismenv.set_parallelism(4)per-job
Channel capacityexecutor.create_channels(1000)backpressure
Checkpoint intervalfungi.toml [checkpoint]trade latency vs durability
Kafka batchproducer/consumer configthroughput vs latency