# infrastructure/rabbitmq/rabbitmq.conf
# RabbitMQ configuration file

# Network settings
listeners.tcp.default = 5672
management.tcp.port = 15672

# Heartbeat settings - increase to prevent timeout disconnections
heartbeat = 600
# Set the heartbeat timeout multiplier (server will close connection after 2 missed heartbeats)
heartbeat_timeout_threshold_multiplier = 2

# Memory and disk thresholds
vm_memory_high_watermark.relative = 0.6
disk_free_limit.relative = 2.0

# Default user (will be overridden by environment variables)
default_user = bakery
default_pass = forecast123
default_vhost = /

# Management plugin
management.load_definitions = /etc/rabbitmq/definitions.json

# Logging
log.console = true
log.console.level = info
log.file = false

# Queue settings
queue_master_locator = min-masters

# Connection settings
connection.max_channels_per_connection = 100
