mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 22:49:25 +08:00
Live: Updated note on Live redis sentinel support (#103834)
* Update note on Live redis sentinel support * Add ha_engine_password and update address parameters * style admonition * add code inside admonition * run prettier --------- Co-authored-by: Irene Rodríguez <irene.rodriguez@grafana.com>
This commit is contained in:
@ -2536,7 +2536,8 @@ Address string of selected the high availability (HA) Live engine. For Redis, it
|
||||
```ini
|
||||
[live]
|
||||
ha_engine = redis
|
||||
ha_engine_address = 127.0.0.1:6379
|
||||
ha_engine_address: redis-headless.grafana.svc.cluster.local:6379
|
||||
ha_engine_password: $__file{/your/redis/password/secret/mount}
|
||||
```
|
||||
|
||||
<hr>
|
||||
|
@ -223,26 +223,14 @@ After running:
|
||||
- Streaming from Telegraf delivers messages to all subscribers.
|
||||
- A separate unidirectional stream between Grafana and backend data source opens on different Grafana servers. Publishing data to a channel delivers messages to instance subscribers, as a result, publications from different instances on different machines do not produce duplicate data on panels.
|
||||
|
||||
At the moment we only support single Redis node.
|
||||
{{< admonition type="note" >}}
|
||||
Live currently does not support Redis Sentinel. We recommend using a Redis Cluster for high-availability via a k8s helm chart such as the Bitnami Redis chart which has values to provision a Redis Cluster. Grafana Live can then be pointed to the `redis-headless` service.
|
||||
|
||||
> **Note:** It's possible to use Redis Sentinel and Haproxy to achieve a highly available Redis setup. Redis nodes should be managed by [Redis Sentinel](https://redis.io/topics/sentinel) to achieve automatic failover. Haproxy configuration example:
|
||||
>
|
||||
> ```
|
||||
> listen redis
|
||||
> server redis-01 127.0.0.1:6380 check port 6380 check inter 2s weight 1 inter 2s downinter 5s rise 10 fall 2 on-marked-down shutdown-sessions on-marked-up shutdown-backup-sessions
|
||||
> server redis-02 127.0.0.1:6381 check port 6381 check inter 2s weight 1 inter 2s downinter 5s rise 10 fall 2 backup
|
||||
> bind *:6379
|
||||
> mode tcp
|
||||
> option tcpka
|
||||
> option tcplog
|
||||
> option tcp-check
|
||||
> tcp-check send PING\r\n
|
||||
> tcp-check expect string +PONG
|
||||
> tcp-check send info\ replication\r\n
|
||||
> tcp-check expect string role:master
|
||||
> tcp-check send QUIT\r\n
|
||||
> tcp-check expect string +OK
|
||||
> balance roundrobin
|
||||
> ```
|
||||
>
|
||||
> Next, point Grafana Live to Haproxy address:port.
|
||||
```
|
||||
live:
|
||||
ha_engine: redis
|
||||
ha_engine_address: redis-headless.grafana.svc.cluster.local:6379
|
||||
ha_engine_password: $__file{/your/redis/password/secret/mount}
|
||||
```
|
||||
|
||||
{{< /admonition >}}
|
||||
|
Reference in New Issue
Block a user