RedisLabs / redis-cluster-proxy

A proxy for Redis clusters.
GNU Affero General Public License v3.0
990 stars 129 forks source link

PROXY commands are not recognized #33

Closed JanBerktold closed 4 years ago

JanBerktold commented 4 years ago

> echo "PROXY SHUTDOWN" | nc 10.126.3.84 26288 -ERR Unsupported subcommand 'SHUTDOWN' for command PROXY

> echo "PROXY CLUSTER UPDATE" | nc 10.126.3.84 26288 -ERR Unsupported subcommand 'CLUSTER' for command PROXY

> echo "PROXY CLUSTER INFO" | nc 10.126.3.84 26288 -ERR Unsupported subcommand 'CLUSTER' for command PROXY

The one that I found which works:

echo "PROXY INFO" | nc 10.126.3.84 26288
$308
#Proxy
proxy_version:0.0.1
os:Linux 5.3.0-26-generic x86_64
gcc_version:7.4.0
process_id:1
threads:1
tcp_port:26288
uptime_in_seconds:18006
uptime_in_days:0
config_file:/usr/local/etc/redis/proxy.conf

#Clients
connected_clients:1

#Cluster
address:10.128.29.145
entry_node:10.128.29.145:20477

The README describes a family of commands under the PROXY top-level, not all of which appear to work with the latest unstable build. https://github.com/artix75/redis-cluster-proxy#the-proxy-command

artix75 commented 4 years ago

@JanBerktold Which version/branch? It seems to be a very old version, please use an updated version from unstable branch or the beta release for 1.0

JanBerktold commented 4 years ago

@artix75 This is a build which should be using the 08dba3c commit which looks pretty recent. What makes you think that it's older?

artix75 commented 4 years ago

@JanBerktold This: proxy_version:0.0.1

JanBerktold commented 4 years ago

My apologies for this, I found a bug in my build workflow. It was indeed an old version.