Skip to content
Snippets Groups Projects
Verified Commit 53bac30d authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Add redis configuration to storage replayer configmap

Refs. swh/infra/sysadm-environment#4809
parent 3858d97e
No related branches found
No related tags found
No related merge requests found
{{ if .Values.storage_replayer.enabled -}}
{{- $error_reporter := .Values.storage_replayer.error_reporter }}
{{- range $deployment, $deployment_config := .Values.storage_replayer.deployments -}}
---
apiVersion: v1
......@@ -43,5 +44,12 @@ data:
{{- range $object := get $deployment_config "objects" }}
- {{ $object }}
{{- end }}
{{- if $error_reporter }}
replayer:
error_reporter:
{{- range $option, $value := $error_reporter }}
{{ $option }}: {{ $value }}
{{- end }}
{{- end }}
{{ end }}
{{- end -}}
......@@ -83,6 +83,13 @@ storage_replayer:
- seed2
keySpace: swh
consistencyLevel: LOCAL_QUORUM
# optional 'replayer' configuration may be specified with a 'error_reporter' config
# entry allowing to specify redis connection parameters. It will be used to report
# non-recoverable replaying issues
# error_reporter:
# host: redis.redis
# port: 6379
# db: 1
deployments:
# Example of deployments
# origins:
......
......@@ -25,6 +25,10 @@ storage_replayer:
- cassandra1.internal.staging.swh.network
- cassandra2.internal.staging.swh.network
- cassandra3.internal.staging.swh.network
error_reporter:
host: redis.redis
port: 6379
db: 1
deployments:
content:
objects:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment