Replies: 2 comments
-
|
Ok, I think I found the culprit. When connecting from Go, I use So hostname in connection parameters does not match the one returned by |
Beta Was this translation helpful? Give feedback.
-
|
Hi @jfk9w , thank you for reaching out! Not an expert of Kubernetes myself, but may I ask: what is the nature of the host names "host" and "host2" you mentioned here? Is it supposed to be resolve by a DNS server, presumably an internal one in the k8s network/system? Or is it any kind of non-DNS name like NetBIOS or anything else? Also, anywhere in the system did you configured the "host.k8s" and "host2.k8s" name yourself, or they just appear in the response of the Valkey-GLIDE do have some TBD improvement in the scenarios when host name used for client creation doesn't align with what is returned from CLUSTER NODES command, like when nodes only have internal addresses/names, and some type of proxy is needed for connection. We need to learn more about all these scenarios to dish out a comprehensive solution in upcoming releases. It'll be great if you could share a bit more on your configuration, including Valkey cluster creation method, Much appreciated! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm trying to use github.com/valkey-io/valkey-glide/go/v2 to connect to a Valkey Cluster with TLS.
I'm using the following snippet to initiate connection:
I'm getting a
connection attempt timed outerror on client creation.What's weird is that the code fails exactly after 10 seconds despite both request and connection timeouts set to one minute.
Using
redis-cliis fine:At the same time using
glide.NewClientinstead ofglide.NewClusterClientis OK. In this case when I try to doresult, err := client.Get(ctx, "x"), I get aAn error was signalled by the server: - Moved: 16287. This is to be expected an corresponds to redis-cli:So how do I go about creating cluster client from Go?
Beta Was this translation helpful? Give feedback.
All reactions