Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions openstack/hermes/templates/etc/_hermes.conf.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,11 @@ password = "{{.Values.hermes.password | default "default"}}"
user_domain_name = "Default"
project_domain_name = "Default"
project_name = "service"

[API.RateLimit]
RequestsPerSecond = {{.Values.hermes.rateLimit.requestsPerSecond | default 0}}
Burst = {{.Values.hermes.rateLimit.burst | default 0}}
DownloadRequestsPerSecond = {{.Values.hermes.rateLimit.downloadRequestsPerSecond | default 0}}
DownloadBurst = {{.Values.hermes.rateLimit.downloadBurst | default 0}}
EvictionInterval = "{{.Values.hermes.rateLimit.evictionInterval | default "5m"}}"
MaxIdlePeriod = "{{.Values.hermes.rateLimit.maxIdlePeriod | default "10m"}}"
12 changes: 12 additions & 0 deletions openstack/hermes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ hermes:
# hostnames are derived from this template using the key of the targets entry
host_template: "%s-rabbitmq-notifications.monsoon3"

# Per-token rate limiting for the Hermes API.
# 0 (default) disables rate limiting. Enable per region as needed.
# Typical values: requestsPerSecond=2, burst=10 for the default endpoints;
# downloadRequestsPerSecond=0.2, downloadBurst=3 for the heavier /download endpoint.
rateLimit:
requestsPerSecond: 0
burst: 0
downloadRequestsPerSecond: 0
downloadBurst: 0
evictionInterval: "5m"
maxIdlePeriod: "10m"

# Audit-event publisher for hermes-api PUT/DELETE dataplane-config operations.
# Reuses the rabbitmq_notifications subchart; events land on the
# notifications.info queue alongside other OpenStack control-plane audit events.
Expand Down
Loading