You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/brokers/redisbroker.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@
2
2
3
3
The Redis Broker uses a backing Redis instance to store events, thereby providing durability that is suitable for production uses cases where event loss in not acceptable during crashes or restarts.
4
4
5
-
The management of the Redis instance is greatly simplified by TriggerMesh. It is also possible to point the Broker to any Redis instance, such as a managed instance from a cloud provider.
5
+
The management of the Redis instance is greatly simplified by TriggerMesh. It is also possible to point the Broker to any Redis instance, such as a managed instance from a cloud provider.
6
6
7
7
With `tmctl`:
8
8
9
9
!!! warning "Work in progress"
10
10
This component is not yet available with `tmctl`. By default, Brokers created with `tmctl` are [Memory Brokers](memorybroker.md). However, when you export your configuration to Kubernetes manifests using `tmctl dump`, TriggerMesh will export a `Redis Broker`, thereby providing message durability by default. You can switch to a Memory Broker if you prefer by updating the exported manifest.
11
11
12
-
TriggerMesh will add support for Redis Broker in `tmctl` in the future.
12
+
TriggerMesh will add support for Redis Broker in `tmctl` in the future.
13
13
14
14
On Kubernetes:
15
15
@@ -21,7 +21,9 @@ metadata:
21
21
spec:
22
22
redis:
23
23
connection: <Provides a connection to an external Redis instance. Optional>
24
-
url: <redis URL. Required>
24
+
url: <redis URL. Required if clusterURLs not informed>
25
+
clusterURLs:
26
+
- <an entry for each redis URL in the cluster. Required if url not informed>
25
27
username: <redis username, referenced using a Kubernetes secret>
26
28
secretKeyRef:
27
29
name: <Kubernetes secret name>
@@ -43,6 +45,8 @@ spec:
43
45
The only `RedisBroker` specific parameters are:
44
46
45
47
- `spec.redis.connection`. When not used the broker will spin up a managed Redis Deployment. However for production scenarios that require HA and hardened security it is recommended to provide the connection to a user managed Redis instance.
48
+
- `spec.redis.connection.url`. URL to the standalone Redis instance. This should not be informed for Redis clusters.
49
+
- `spec.redis.connection.clusterURLs`. Array of URLs to each node of a Redis cluster. This should not be informed for standalone Redis.
46
50
- `spec.stream`is the Redis stream name to be used by the broker. If it doesn't exists the Broker will create it.
47
51
- `spec.streamMaxLen`is the maximum number of elements that the stream will contain.
0 commit comments