-
Notifications
You must be signed in to change notification settings - Fork 77
Is it (already) possible to retrieve a list of all the peers for a cluster? #19
Comments
Hi Aaron, The
This is useful if you want to look for failures or log leadership changes, such as for cluster diagnostics. Even with a sane cluster with all nodes running 100%, there will occasionally be leadership changes. As long as your client connection follows the |
Thanks! I now appear to be bumping up against the "What is redigo actually returning..." problem similar to an issue I filed for Tile-38. I tried the https://github.com/thisisaaronland/go-artisanal-integers/compare/peers
|
That's an array of bulk strings. The |
Bingo, thanks! One day I will figure out redigo responses...
|
I agree. Redigo can take a little getting use to. |
I know you can get the current state of any one peer but I'd like to be able to keep a list of all the peers in case the initial host that a client connects to goes down and reconnect to one of the other hosts without having to know that list in advance.
The context is this: https://github.com/thisisaaronland/go-artisanal-integers#summitdb
Also: This project (
go-artisanal-integers
) is as a dumb and silly as it sounds except for the part where it's been a running gag for going on 5 years now...https://github.com/thisisaaronland/go-artisanal-integers#see-also
The text was updated successfully, but these errors were encountered: