Twemproxy GEOADD command - redis

From what I understand the GEOADD command / data structure is very similar to using ZADD.
When I run GEOADD through my twemproxy server, I get an error:
Error: Server closed the connection
If I issue the command directly to the redis servers themselves, it works fine. Is there a way to run GEOADD / GEORADIUS through twemproxy?

Related

Redis GUI Redis-commander working on Docker - ERROR: Status: reconnecting

I have installed Redis GUI redis-commander by using https://github.com/joeferner/redis-commander
Redis running on localhost:6379 as a container at docker.
This says if I run redis on localhost:6379, all I need to get started is;
docker run --rm --name redis-commander -d -p 8081:8081 ghcr.io/joeferner/redis-commander:latest
But I encountered with this problem... Is there anyone who got this error and found a solution for this ??
There are some things you have to take into account.
Redis commander is running inside a container so localhost no longer points to your laptop/desktop/developing machine/server. It points to the container itself where no redis is running. So it will never connect. You need to point to the other container.
For this, you should be using some-redis (the name of the container) instead of localhost. In Redis Commander click more and add server to add a new connection
But this will not work unless both containers are running inside the same network.
You need to create first a new docker network
docker network create redis
And then run your containers using this parameter --network=redis
More about docker network here
More about docker run with networks here

How to access keys inside my Redis cloud database?

I've created a Redis database on the Redis cloud with AWS. Till now I've added 5 hashes(key-value pairs) to the database but I can't seem to find a way to view those hashes. Can anyone tell me how to do that?
You should be able to connect using the command line redis-cli and the host, port and password for your Redis instance, then use the command hgetall <keyname> to see the contents of the hash stored at <keyname>.
Alternatively, download a copy of the graphical RedisInsight tool, and connect that to the host, port and password you're running Redis on.

Redis - Mass insertion of data in cluster mode

I am trying to understand how one can perform mass insertion in Redis instances operating in the cluster mode. I came across this link:
https://redis.io/topics/mass-insert
It has a sample code one could use to generate data and populate Redis using the below command:
ruby proto.rb | redis-cli --pipe
While it works perfectly for one instance, how it can be modified to be used in cluster mode with multiple Redis instances?
I also tried setting up the cluster and use the below command to insert the data:
ruby proto.rb | redis-cli -c --pipe
I was hoping that it would insert data by following the redirection but it didn't work.

Redis-cli monitor command returns connection closed by server error

I have 6 nodes in a redis cluster - 3 master and 3 slaves. All the nodes are running just fine except for one master and it's slave.
On this troublesome master, when i run the command (on either master or slave), i get the following error:
Error: Server closed the connection
There is nothing in the redis error logs following this error. The redis error logs shows that everything is running smooth and this articular error does is not included in the logs.
However, the predis error logs show this error:
Error while reading line from the server [tcp: //192.168.2.100: 6379]
What can be causing this problem?

`INFO memory` doesn't work in Redis

I tried INFO memory in redis-cli
but empty result came back.
Am I missing any configuration for this?
Redis version is 2.8.17.
I did the command to the Sentinel instance.
It works fine with the Redis instance.