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 — ConfigRabbitMq¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
RabbitMQ server hostname |
|
|
|
AMQP port |
|
|
|
Authentication username |
|
|
|
Authentication password |
|
|
|
Virtual host partition |
|
|
|
Maximum connection retry attempts |
|
|
|
Delay between connection retries (seconds) |
|
|
|
AMQP heartbeat interval in seconds; |
Queue & Exchange Settings¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Prefix for all queue names |
|
|
|
Exchange name for message routing |
|
|
|
Exchange type: |
Consumer & Delivery Settings¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Max unacknowledged messages per consumer |
|
|
|
Message TTL in milliseconds (default: 24 hours) |
|
|
|
Enable publisher confirms for reliable delivery |
Retry Settings¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Max operation retry attempts ( |
|
|
|
Initial retry delay (seconds) |
|
|
|
Maximum retry delay (seconds) |
|
|
|
Exponential backoff multiplier |
Logging Settings¶
Setting |
Type |
Default |
Description |
|---|---|---|---|
|
|
|
Log level for the pika library: |
Environment Variables¶
Every setting maps to PYNENC_{SETTING_UPPERCASE}:
export PYNENC_RABBITMQ_HOST="rabbitmq.example.com"
export PYNENC_RABBITMQ_PASSWORD="mysecret"
export PYNENC_RABBITMQ_PREFETCH_COUNT=5
export PYNENC_RABBITMQ_PIKA_LOG_LEVEL=INFO
YAML Configuration¶
# pynenc.yaml
rabbitmq_host: "rabbitmq.example.com"
rabbitmq_virtual_host: "/staging"
rabbitmq_prefetch_count: 5
rabbitmq_retry_max_attempts: 10
rabbitmq_pika_log_level: "INFO"