Configuration Reference¶
All settings can be provided via the builder, environment variables, or YAML config files. See the Pynenc configuration guide for the general mechanism.
Connection Settings — ConfigMongo¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Full MongoDB URL, e.g. |
|
|
|
MongoDB server hostname |
|
|
|
MongoDB server port |
|
|
|
Database name |
|
|
|
Authentication username |
|
|
|
Authentication password |
|
|
|
Authentication source database |
Connection Pool Settings¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Maximum connections in the pool |
|
|
|
Socket timeout for operations (seconds) |
|
|
|
Connection establishment timeout (seconds) |
Retry Settings¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Maximum retry attempts for transient failures |
|
|
|
Initial delay between retries (seconds) |
|
|
|
Maximum delay cap between retries (seconds) |
|
|
|
Total maximum time spent retrying (seconds) |
|
|
|
Retry forever — ignores |
Data Chunking Settings¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Document size threshold (15 MB) above which data is compressed and chunked |
Orchestrator Settings — ConfigOrchestratorMongo¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Auto-purge completed invocations after this many hours |
Environment Variables¶
Every setting maps to PYNENC_{SETTING_UPPERCASE}:
export PYNENC_MONGO_URL="mongodb://localhost:27017/pynenc"
export PYNENC_MONGO_PASSWORD="mysecret"
export PYNENC_MONGO_POOL_MAX_CONNECTIONS=50
export PYNENC_MAX_RETRIES=5
YAML Configuration¶
# pynenc.yaml
mongo_url: "mongodb://localhost:27017/pynenc"
mongo_pool_max_connections: 50
max_retries: 5