Open
Description
Hi all,
I would like to use the node address for metrics. That helps to identify which commands are sent to a node in the cluster.
However, I don't sure the way to get it.
I intend to get the node address of the executed command as follows:
Step 1: Get the key slot by calling cmd.Slot()
.
Step 2: Use reflection to call clusterClient._pick(...)
.
However, after executing the command, there may be a hash slot change caused by Redis failover.
Could you point out the correct way?
Activity