Skip to main content

Configuration

Under otoroshi.admin-extensions.configurations.cloud-apim_extensions_eventbrokers:

KeyDefaultEnvironment variable
enabledtrueCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_ENABLEDthe extension itself
connections.connect-timeout10sCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_CONNECT_TIMEOUThow long one connection attempt may take
connections.retry.min-backoff1sCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_RETRY_MIN_BACKOFFthe first wait before trying again
connections.retry.max-backoff30sCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_RETRY_MAX_BACKOFFthe longest wait (twice as long each time, 20% jitter)
connections.healthcheck.interval10sCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_HEALTHCHECK_INTERVALhow often a connected client is checked
connections.healthcheck.timeout5sCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_HEALTHCHECK_TIMEOUThow long a check may take
connections.healthcheck.max-failures3CLOUD_APIM_EXTENSIONS_EVENT_BROKERS_HEALTHCHECK_MAX_FAILURESfailed checks in a row before the client is built again
connections.retire-grace-period30sCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_RETIRE_GRACE_PERIODhow long the streams open on a replaced client may go on
connections.close-timeout10sCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_CLOSE_TIMEOUThow long closing a client may take
webhooks.enabledtrueCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_WEBHOOKS_ENABLEDwhether this node delivers webhooks
webhooks.redis.urinoneCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_WEBHOOKS_REDIS_URIthe redis the nodes of a cluster share: required in a cluster
webhooks.lock-ttl15sCLOUD_APIM_EXTENSIONS_EVENT_BROKERS_WEBHOOKS_LOCK_TTLhow long a node keeps a webhook without renewing it
webhooks.node-kinds["leader", "worker"]the kinds of nodes that deliver webhooks, in a cluster
otoroshi.admin-extensions.configurations.cloud-apim_extensions_eventbrokers {
enabled = true
connections {
connect-timeout = 10s
retry.min-backoff = 1s
retry.max-backoff = 30s
healthcheck.interval = 10s
healthcheck.timeout = 5s
healthcheck.max-failures = 3
retire-grace-period = 30s
close-timeout = 10s
}
webhooks {
enabled = true
redis.uri = "redis://shared-redis:6379"
lock-ttl = 15s
node-kinds = ["leader", "worker"]
}
}