Questions tagged [redis]

Redis is an open source, advanced key-value store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets and sorted sets.

Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

Hashes vs key scan in REDIS

My team is using Redis for caching and I want to cache the following structure: inbox --(1 to many)-> folders --(1 to many)-> messages It's just a simple tree with no nesting, and each inbox/...
ChocolateOverflow's user avatar
-1 votes
0 answers
8 views

Minimum CPU for Redis

I'm creating a Redis server to server as a session manager for PHP. During my study I saw that Redis is Single-threaded. Which theoretically says it will only use one of the vCPUs of a VM. Should I ...
Tom's user avatar
  • 406
0 votes
0 answers
10 views

why is Redis not using all three servers?

What should happen, is something like in the attached screenshot, where keys go to different servers. However, we have a situation where one node in our cluster 25000 keys and each of the other two ...
Doug Whitfield's user avatar
0 votes
1 answer
20 views

Advice on WooCommerce DB and really slow WC core admin queries

Thanks for reading! So I'm kind of banging my head against a wall but I firstly want to say that I think this is a DB setup problem rather than the code as even when stripped back to bare bones WC the ...
Devon Developer's user avatar
0 votes
1 answer
31 views

How to make Redis work from disk? Not about persistence

There are chances I selected the wrong tool for this task, feel free to suggest if you know a better one. The task: I need to store key-value pairs. Each pair is 60 bytes. The keys are IDs and values ...
Putnik's user avatar
  • 285
0 votes
1 answer
78 views

Is it correct to use 2 instances of Redis server one with persistence while the second with no persistence?

I'm starting a new project. In this project I'll use Redis to store some data which must be persistent. For these data I'll use Append Only File (AOF) persistence. In the project there are 2 ...
frankfalse's user avatar
0 votes
0 answers
347 views

In Redis, using "SLAVEOF NO ONE" command reverts back after a few seconds

I have a redis slave that I need to remove from replication and make a master. I've tried running both "SLAVEOF NO ONE" and "REPLICAOF NO ONE." Those commands work for a few ...
SomeGuy1989's user avatar
1 vote
0 answers
474 views

what is a reliable way to push data from postgres into redis queue's?

We need a way to process the records in a table asynchronously, we were processing the records in a AFTER INSERT trigger but that is affecting the insert performance and the back pressure is affecting ...
Adithya Sama's user avatar
2 votes
0 answers
250 views

Sensor data from Postgres to Redis

I have a Postgres database with a table that is updated with new data every 5 minutes from a weather station. Now, as soon as the table is updated with a new record from the sensor, I would like this ...
user17326436's user avatar
0 votes
2 answers
20 views

.NET updates on Postgresql Windows hosts

I Started managing postgresql and redis recently. I have a postgresql Db cluster and redis installed in windows server 2019. I would like to know if postgresql and redis has dependencies with .NET ...
udhayan dharmalingam's user avatar
1 vote
1 answer
235 views

is it possible to list all group in redis 6.0+

Now I am encount a problem in my app shows like this: Caused by: redis.clients.jedis.exceptions.JedisDataException: NOGROUP No such key 'pydolphin:stream:article' or consumer group 'pydolphin:stream:...
Dolphin's user avatar
  • 705
6 votes
1 answer
15k views

WRONGPASS invalid username-password pair or user is disabled when connect to redis 6.0+

I am tried to connect redis 6.0+, this is the Python celery redis broker url I am config now: broker_url = redis://:default:[email protected]:6379/5 ...
Dolphin's user avatar
  • 705
1 vote
1 answer
8k views

how to login redis 6.0+ use username and password

I found the redis 6.0+ add the acl, now I want to login use the default user like this: I have no name!@cruise-redis-master-0:/$ redis-cli -h 127.0.0.1 -a doGT233U7 -u default Invalid URI scheme I ...
Dolphin's user avatar
  • 705
0 votes
1 answer
102 views

Turning off Append only and snapshot on Redis

I want to turn off data persistence on my Redis master, by turning off appendonly and snapshots, I want to use the replica for persistence, will turning off these two have any affect on replication?
DB guy's user avatar
  • 69
0 votes
1 answer
4k views

How to Upgrade Redis Database from 5.x to 6.x

This instance was running Redis version 5.0.8 open source. The Redis packages have been updated to the current 6.0.3 and now the server reports Loading RDB produced by version 5.0.8 on startup. What ...
Utkonos's user avatar
  • 111
-1 votes
2 answers
662 views

Generating millions of sequences in Postgres (with Redis)

I am creating a chat application, and I will save chat messages for all conversations and users in one partitioned (on convo ids), BRIN indexed table. When my server wants to store new messages it has ...
Najib's user avatar
  • 221
0 votes
1 answer
671 views

Redis docker container not coming up with custom config file

I'm using the below command to run the Redis docker container docker run -tid -v /data1/REDIS_DOCKER_IMAGE/6379/redis.conf:/usr/local/etc/redis/6379/redis.conf -p 6379:6379 --name node_6379 redis:5....
Vishal Sharma's user avatar
0 votes
1 answer
116 views

"Cluster nodes" command showing different status on different Redis Cluster nodes

I had created a redis cluster of 6 instances running on 2 RHEL-7.4 servers some time ago. Today I found that 3 of those instances(on 10.32.129.79) were down. Since I've restarted those 3 instances, I'...
Vishal Sharma's user avatar
0 votes
1 answer
98 views

Redis has "commands" that mutate the various data types it can store. Why? Redis is primarily a cache

If you look at something like https://redis.io/commands#list, you will see that types that Redis stores and supports are fully mutable, atomically, within the data store's memory. This does not make ...
Neeraj Murarka's user avatar
1 vote
0 answers
459 views

Redis Performance Optimization - Does a slave's replication take as much compute resources as being a master?

I have the need for two desperate Redis Instances. One's job is mostly as a session store (currently deployed), the others role will be as an usage statistics depot. Assume my servers are single-...
TheCatWhisperer's user avatar
1 vote
1 answer
90 views

Read after transaction from secondary session not visible

We've got a database (MySQL ) that has a client 'per channel'. When a player changes channel from, say, 1 to 2, we have to save the state of the player to the database. Saving is done in multiple ...
Diamondo25's user avatar
5 votes
1 answer
2k views

What are 'Range' and 'Radius' queries and what is the difference between them?

While searching for easy and effective tools to improve performance of Data fetching for our application, we bumped into "Redis". In documentation of redis, there is following specific mention of ...
Karan Desai's user avatar
3 votes
0 answers
748 views

What's the best practice when deploying Redis replication cluster on 2 data centers connected by MPLS?

I deployed Redis replication cluster on 2 data centers (ping time between 2 DCs is around 1ms). I used Master (Node1 on DC 1) - Slave (Node2 in DC2) replication model and Sentinel to control ...
misamap's user avatar
  • 31
4 votes
1 answer
296 views

Lost persistance in long term in redis without TTL

Our keys are lost in some time and we cannot find the problem. We are using AOF and RDB at the sametime with configs below: RDB: save 900 1 save 300 10 save 60 10000 stop-writes-on-bgsave-error yes ...
Lupus's user avatar
  • 143
2 votes
1 answer
939 views

Are Delete operations written to AppendOnlyFile in Redis?

AppendOnlyFile in Redis logs every write operation done to the redis database. My Question is that when we delete data from the redis database, are those operations logged in the AppendOnlyFile ? And ...
luv.preet's user avatar
  • 135
0 votes
1 answer
622 views

What happens redis uses all allocated memory?

I am quite new to redis and try to learn and explore the structure and architecture of redis. Before version 2.4, there was Virtual Memory option available in redis by which one could swap the ...
luv.preet's user avatar
  • 135
1 vote
0 answers
106 views

Building Timeline Feature with Complex Post Object Via Mongo and Redis

So I have a scenario where I want to build a timeline for an app. I haven't done this particular thing before, but since I work mostly in mongo my first instinct was to query to get the user's ...
nmac's user avatar
  • 11
3 votes
2 answers
126 views

MySQL configure as ACI vs Redis

i have an use case in my application where i need real time communication between users based on their position. Basically one user will create an "event" and it will be sent to near users. On the ...
RenkoSmith's user avatar
1 vote
0 answers
413 views

is there a documented limit to the number of slaves you can have in redis?

I'm trying to find any documentation about the maximum number of slaves you can set up in a redis master / slave configuration. We can potentially have 200 slaves. If there is a limit, I might ...
Happydevdays's user avatar
2 votes
2 answers
2k views

After lowering maxmemory, redis still has high RSS memory

I would like Redis to return some memory. I lowered the maxmemory by 10GB but noticed Redis is still "holding onto it" in RSS based on "used_memory_rss". Based on http://redis.io/topics/memory-...
imagineerThat's user avatar
1 vote
0 answers
315 views

Redis INCR resetting

We're running a Redis 2.8.4 instance on a Ubuntu 14.04 server where we're experiencing problems with a key that's being reset to 0. It's a key we're only running INCR commands on, but every few ...
Simon Fredsted's user avatar
2 votes
1 answer
1k views

How to get old and new values on Redis notification?

I need to implement a feature like: once any specific key in Redis is updated, call a C function with the old and new values as arguments. Currently, I know Redis notification and I could use ...
Qiu Yangfan's user avatar
2 votes
0 answers
714 views

Redis along with Mysql

I'm currently working on a mobile app alike Google Maps or Wave, but also including parking. The application its running with MySQL primarily. With at this stage most of our data is loaded by python ...
Jose's user avatar
  • 21
2 votes
1 answer
924 views

Replicating redis foreign table via postgresql synchronous replication

I have synchronous replication between db server, DB1 and DB2. Tested, working. I have a redis server (RD1), integrated with DB1 (master) via redis_fdw, no issues here. I was expecting foreign redis ...
Alpay Ozturk's user avatar
5 votes
1 answer
11k views

Redis remove slave from replication along with sentinel

I have a 3-nodes Redis replication and a 3-nodes Sentinel. I want to remove one slave. I tried stop slave and remove slaveof 10.128.130.139 6379 from configuration. But it became slave again after I ...
gzc's user avatar
  • 293
2 votes
1 answer
800 views

Redis master and slave use different memory

I deployed a redis replica set which consist of one master and one slave. From top command output, I figure out each memory usage. master: 8176352Byte * 8.5% = 678MB slave: 2050116Byte * 75.6% = ...
gzc's user avatar
  • 293
2 votes
0 answers
660 views

Redis Cluster monitoring

In some limited testing with Redis Cluster I've identified the following conditions where a failed master would be unable to failover: The obvious, all the slaves have failed All of a master's slaves ...
Garrett Greer's user avatar
2 votes
1 answer
483 views

REDIS Bulk RPUSH set values to a list

Is there an optimized way to RPUSH all the values of a set to a list without SPOP-ing them one by one (or SMEMBERS)? (I need to perform bulk RPUSH of huge set each T time to a list) ? Thank you,
Nelson's user avatar
  • 21
2 votes
1 answer
68 views

Distributing a semi-large key/value list

I have a semi-large (around 30 million records) key/value list which I want to load into redis. The data is stored in PostgreSQL (as master data) and we want to distribute this to clients for faster (...
Gert's user avatar
  • 121
4 votes
1 answer
2k views

How to correctly use PostgreSQL to limit multiple and/or concurrent executions of a task

Let's assume you have a task FOO that can be queued once every minute, and a pool of 50 workers that can be paused. The queue is paused for 10 minutes, and 10 FOO tasks are queued. When the queue is ...
Simone Carletti's user avatar
17 votes
2 answers
23k views

redis newbie - how to create hash within a hash?

I want to create this type of a structure in redis: (its basically json data) { "id": "0001", "name":"widget ABC", "model": "model123", "service":"standard", "admin_password": ...
Happydevdays's user avatar
0 votes
1 answer
221 views

About schema design of NoSQL DB.(How to query multiple data?)

I just got a requirement, to build a web only with Redis. Data of the web is something like this(I write as RDBMS): User Info: user_id,first_name,last_name,age,..... Address: address_id,city,state,...
Brishen's user avatar
18 votes
2 answers
42k views

Redis takes up all the Memory and Crashes

A redis server v2.8.4 is running on a Ubuntu 14.04 VPS with 8 GB RAM and 16 GB swap space (on SSDs). However htop shows that redis alone is taking up 22.4 G of memory! redis-server eventually crashed ...
Nyxynyx's user avatar
  • 1,111
0 votes
1 answer
68 views

Continuous jobs on Redis [closed]

I want to setup a script that sums up a bunch of values in a list and then puts down the result in total-count and then removes the entire list, And this all should be repeated once a minute or as ...
John T's user avatar
  • 103
1 vote
1 answer
369 views

Master-master database replication on 5 servers

My current project requires immediate replication between 5 databases. Servers are physically distributed across the globe. Currently we use Redis with one master server installed on another 6th ...
Cmyker's user avatar
  • 113
5 votes
1 answer
2k views

Search a Redis Database

Imagine having a tun of hashes in a Redis Database, each representing a user object. How would you get the user with for example the lowest registration date? The user where ts_registered is the ...
Jeroen's user avatar
  • 163