You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: