Title
#fleet
k

Kun Nan

08/27/2021, 6:32 AM
Hi,when I use redis cluster,I encounter MOVED redis error,why does the fleet source code not use the redisc RetryConn?
9:39 AM
the error message
run query: set targets: MOVED 12849 172.17.205.39:7003
9:41 AM
and then I try to modify source code to use redis.RetryConn,another error message occurs
run query: set sql: redisc: unsupported call to Send
9:43 AM
I look up the redisc document to use RetryConnhttps://pkg.go.dev/github.com/mna/redisc#RetryConn
Tomas Touceda

Tomas Touceda

08/27/2021, 1:09 PM
hi Kun, that's a great question, we probably should use that
1:09 PM
could you show me the diff of what you changed?
k

Kun Nan

08/27/2021, 3:01 PM
https://github.com/fleetdm/fleet/blob/8b908f65069751d9a881826ece6160fade20a7e1/server/live_query/redis_live_query.go#L72 I encounter the MOVED error,so I replaced the conn with redisc.RetryConn like the example on redisc document
3:04 PM
But It only support Do,Close,Err not Send
Tomas Touceda

Tomas Touceda

08/27/2021, 3:14 PM
we might be able to use Do there too