Configuration Properties
Configure MARZ behavior in your application.yml:
marz:
enabled: true # Master switch
safety-net-interval-ms: 60000 # CRC32 insurance check (WatchService is primary)
default-source: file://config/app.yml # Fallback source when @Marz doesn't specify one
# Optional: connect to MARZ Platform for dashboard + RBAC
platform:
api-key: marz_pk_your_key_here # Activates the platform agent
endpoint: wss://api.mymarz.com/agent
environment: production
heartbeat-interval-ms: 30000
reconnect-max-delay-ms: 60000
Property Reference
| Property | Default | Description |
|---|---|---|
marz.enabled | true | Enable/disable all MARZ processing |
marz.safety-net-interval-ms | 60000 | Safety-net CRC32 check interval. WatchService is event-driven; this is insurance. |
marz.default-source | null | Default source URI for fields that don’t specify one |
marz.platform.api-key | null | Platform API key. Agent only activates when set. |
marz.platform.endpoint | wss://api.mymarz.com/agent | Platform WebSocket endpoint |
marz.platform.environment | null | Environment label. Falls back to spring.profiles.active. |
marz.platform.heartbeat-interval-ms | 30000 | Heartbeat frequency. Minimum: 5000ms. |
marz.platform.reconnect-max-delay-ms | 60000 | Max exponential backoff for reconnect (5s → 10s → 20s → cap) |
Note: The platform agent only activates when
marz.platform.api-keyis set. Without it, MARZ operates standalone with file-based config sources. The MARZ Platform dashboard is coming soon.