Skip to main content

Configuration

Metadata connection​

VariableMeaning
LAKESOUL_PG_URLJDBC-style PostgreSQL URL, e.g. jdbc:postgresql://127.0.0.1:5432/lakesoul_test?stringtype=unspecified
LAKESOUL_PG_SECONDARY_URLOptional read-only standby for metadata queries
LAKESOUL_PG_USERNAMEMetadata user
LAKESOUL_PG_PASSWORDMetadata password
LAKESOUL_PG_POOL_SIZEMetadata connection pool size
LAKESOUL_PG_POOL_TIMEOUT_SECSPool checkout timeout
LAKESOUL_PG_POOL_IDLE_SECSIdle connection timeout

The endpoint and the Python SDK read the same variables.

Object storage​

Variable / flagMeaning
LAKESOUL_WAREHOUSE / --warehouse-prefixBase location for new table data
AWS_ENDPOINT / --endpointS3-compatible endpoint
AWS_BUCKET / --s3-bucketDefault bucket
AWS_ACCESS_KEY_ID / --s3-access-keyAccess key
AWS_SECRET_ACCESS_KEY / --s3-secret-keySecret key
AWS_S3_VIRTUAL_HOST_STYLE / --s3-virtual-host-styleVirtual-hosted requests

The Python SDK reads LAKESOUL_OBJECT_STORE_* for index builds; see Vector search API and vector search configuration.

Endpoint​

VariableMeaning
LAKESOUL_PG_BINDBind address (default 127.0.0.1)
LAKESOUL_PG_PORTListen port (default 5432)
LAKESOUL_PG_METRICS_ADDRPrometheus listener (default 127.0.0.1:19090)
LAKESOUL_PG_MAX_CONNECTIONSConnection limit
LAKESOUL_PG_MAX_QUERIES_PER_USERConcurrent statements per user
LAKESOUL_PG_MAX_RESULT_ROWSRow limit per statement
LAKESOUL_PG_MAX_RESULT_BYTESResult size limit per statement
LAKESOUL_PG_IVM_DEFAULTStart new sessions with lakesoul.ivm.enabled = on
LAKESOUL_PG_JWT_AUTHRequire a LakeSoul JWT as the connection password
LAKESOUL_PG_RBACConfine each connection to the token's domain (requires LAKESOUL_PG_JWT_AUTH)
LAKESOUL_PG_SUBSCRIPTION_EXECUTORlocal or external subscriber ownership
LAKESOUL_PG_SUBSCRIPTION_RUNNERRun only the subscription supervisor
LAKESOUL_PG_RUNNER_IDLease owner for the subscription runner
LAKESOUL_PG_RUNNER_POLL_MSSubscription runner reconcile interval
LAKESOUL_WORKER_THREADSTokio worker threads

The full flag table is in PostgreSQL operations.

Distributed execution​

VariableMeaning
LAKESOUL_DISTRIBUTED_DISCOVERYnone, static or kubernetes
LAKESOUL_DISTRIBUTED_WORKERSComma-separated worker endpoints
LAKESOUL_K8S_WORKER_SERVICEWorker Service name for EndpointSlice discovery
LAKESOUL_K8S_NAMESPACENamespace holding the Service
LAKESOUL_DISCOVERY_POLL_INTERVAL_SECONDSDiscovery refresh interval
LAKESOUL_DISCOVERY_MAX_STALENESS_SECONDSStaleness limit for a discovery snapshot
LAKESOUL_DISTRIBUTED_FALLBACK_LOCALFall back to local execution when distributed planning fails

Logging​

VariableMeaning
RUST_LOGLog filter, e.g. info or lakesoul_io=debug
LAKESOUL_LOG_DIRDirectory that receives a copy of the logs
LAKESOUL_LOG_FILTER_FILEFile read on SIGHUP to reload the filter

Example​

export LAKESOUL_PG_URL='jdbc:postgresql://127.0.0.1:5432/lakesoul_test?stringtype=unspecified'
export LAKESOUL_PG_USERNAME=lakesoul_test
export LAKESOUL_PG_PASSWORD=lakesoul_test

cargo run -p postgres-lakesoul -- --port 5433 \
--warehouse-prefix s3://my-bucket/warehouse \
--endpoint http://127.0.0.1:9000 \
--s3-bucket my-bucket \
--s3-access-key rustfsadmin \
--s3-secret-key rustfsadmin

Next​