05:33:19 GMT Hi 10:20:58 GMT Hello. I have key-value pairs k:v with TTL 100 and a set S to store keys k's. When one of the key expire, I'd like to remove it from the set S also. How can I do that? 10:22:46 GMT Sorry what i meant was, when one of the key expire, I'd like to retrieve its value for further processing. How can I do that? 10:31:28 GMT hphuoc25: there's keyspace notifications (have to be enabled) that tell you when a key expires. but at that moment the key is already gone 10:31:41 GMT and you'd need a client listening for that 10:34:31 GMT minus: yes I know. When the client receives the key, the value is gone, and I'm not sure how to get the value 10:36:31 GMT if you want to use redis as timer: create a second key as timer key that expires and don't have the other one expire automatically 10:37:53 GMT or put timestamps + key names into a sorted set and have a client poll those and expire the keys that are due. this is safer because it also works if the client wasn't connected while a key expired 10:50:59 GMT minus: thanks for suggestions :) 12:09:07 GMT maxmemory 12:09:13 GMT =1 12:09:15 GMT exit 12:10:02 GMT Hello 13:02:57 GMT test 16:46:00 GMT Question for folks—we've got a cluster set up and are trying to run a script on the slave node, but the slave responds with a redirect back to the master. I've verified that the slot is served by that node, and that the key passed to the script is on the slave. I haven't been able to find similar issues mentioned online. Is this a better fit for the mailing list or a GitHub issue? 17:13:29 GMT Guest10483: if you want to read from a slave in cluster mode you need http://redis.io/commands/readonly 17:26:47 GMT Hi, we want to use redis clustered over 3 nodes 17:27:13 GMT what should be the configuration 17:27:45 GMT our IT is saying that we need to have master node on each node and then 2 slaves to each master 17:28:11 GMT Is that true or can we just have standard cluster configuration with Master on one node and slaves on other two? 17:28:30 GMT that's not a Redis Cluster then 17:28:36 GMT that's standard replicated Redis 17:29:24 GMT whcih one? config with One master and two slaves? 17:29:37 GMT yes, that's just replicated Redis 17:30:53 GMT Guest22041: cluster means to have data partitioned between multiple master instances 17:31:12 GMT also, long time no see, badboy_ 17:31:23 GMT heho 17:31:28 GMT yeah, busy with other stuff 17:31:47 GMT hi all 17:35:20 GMT thank you bad boy. I think we misuderstood difference between replicated and clustered and that your suggestion can solve the issue we see. 17:35:27 GMT We are trying new configuration as we speak 18:16:38 GMT need some help with master-slave configuration and failover 18:17:01 GMT so i have 3 instances of sentinel and 2 instances of redis in the following layout 18:17:18 GMT (r1, s1) (r2, s2) (s3) 18:17:43 GMT () - means vm/host where service is running from 18:17:59 GMT r2 is configured as slave of r1 18:18:33 GMT when bot redis are up - everything is ok 18:18:57 GMT r1 is master, r2 slave, haproxy detect it and sends traffic to proper instance 18:19:36 GMT when im turning off r1, sentinel detects that situation and promotes r2 to master 18:20:42 GMT but approx 5 seconds later it demotes r2 to slave and point master to ip of r2 18:20:48 GMT that is confusing me 18:21:09 GMT eventually both nodes has role:slave and all traffic stopped 18:21:30 GMT apperantly im missing something simple, but can't find 18:22:53 GMT any ideas ? 18:41:09 GMT why is it that a scan with a pattern that matches nothign would take 5 seconds whereas the same pattern with keys only takes <100 ms? 18:43:30 GMT nevermind, i'm an idiot 18:52:24 GMT anybody ? 19:09:58 GMT via: what was the issue? 19:11:07 GMT i was timing python's scan_iter, which was including all the round trips at a default coutn of 10 19:11:58 GMT it was doing multiple calls to scan until it was through the entire keyspace because it didn't find any keys? 19:12:31 GMT yes, and in my head i thought scan's count applied to results, not the search itself 19:12:34 GMT was wrong, and it works now 19:14:50 GMT anybody can help with master-slave configuration ? 19:17:36 GMT sorry, borei, no idea what could be going wrong there 19:18:05 GMT any known bugs ? im on 3.0.6 version 19:18:43 GMT so to use redis as a drop in replacement for memcached... each node needs to talk to the other on a second port? are there other things I am overlooking? 19:20:23 GMT what's "each node"? 19:21:16 GMT instance? 19:22:56 GMT let me rephrase this, to use redis as a drop in replacement for memcached what all do I need to do? i.e. think I need to configure it to not use persistence 19:23:27 GMT I have multiple frontend web servers I would like to run redis on as I did memcached to get a distributed cache 19:24:06 GMT memcached uses a consistent hashing approach - seems redis does not... 19:24:25 GMT I am trying to understand what is entailed. thanks 19:25:19 GMT Hi my rediskey is deleting automatically 19:26:04 GMT i have records to set and read the value set next iteration 19:26:20 GMT but strange HEXIST returning me 19:26:25 GMT error 19:26:33 GMT no key exists 19:29:25 GMT any help 19:29:29 GMT tgodar: if you want partitioning you need redis cluster; it does use consistent hashing (or something similar at least) 19:30:03 GMT no 19:30:13 GMT mandy: your key expires? then obviously you can't query it afterwards 19:30:31 GMT minus: is redis cluster something different or just how redis happens to be configured? 19:30:32 GMT i have not put any expiry options 19:30:54 GMT tgodar: different configuration 19:30:59 GMT tgodar: 19:31:02 GMT http://redis.io/topics/cluster-tutorial 19:32:38 GMT ok, so my cache size is what is alloted on a single server, and it replicates everything across instances :( 19:33:23 GMT or, wait, I'm reading the wrong thing 19:33:37 GMT yes, don't confuse cluster with sentinel 19:33:46 GMT sentinel is HA-only 19:34:15 GMT there's also plain master/slave replication 19:34:39 GMT yeah, ok, this might work then, thanks minus. lot to gleen here... do you happen to know if the redis configuraiton needs to be aware of other servers or does the client (phpredis or what not) configuration only need to know that? 19:35:06 GMT sorry, haven't used cluster yet 19:35:18 GMT that second port being open makes me thing the redis (server) config needs to be made aware... 19:36:02 GMT the servers need to be aware of each other of course 19:36:47 GMT for the client i don't know how you get the list of servers 19:37:39 GMT ah, you just need one server of the cluster, then the client can discover the rest, nice 19:38:00 GMT i should spin up one of those some time 19:40:24 GMT seems like it's getting crayzy if bind option is not explicit 19:41:02 GMT what do you mean, no bind at all? 19:41:40 GMT by default bind is commented out, it means that redis is listening *:6379 19:41:56 GMT including 127.0.0.1 19:42:18 GMT oh, maybe your redis is running in protected mode and that fucks shit up? 19:42:40 GMT what does it mean protected mode ? 19:43:59 GMT minus thanks, was thinking about implications for automation when adding dropping servers instnaces 19:45:44 GMT borei: https://www.reddit.com/r/redis/comments/3zv85m/new_security_feature_redis_protected_mode/ 19:47:19 GMT ic 19:58:55 GMT We have a group project at school where we "Reverse Engineer" an open-source project. We look through it and the final paper is an explanation of how oyu would build it, an explanation of the software architecture. We just decided on Redis. I was wondering, is there some part of the docs that you wish could be improved? 19:59:02 GMT (let me know if my message cut off please) 19:59:31 GMT minus: thanks for heads-up ! 20:00:14 GMT nothing in doc about sentinel is saying about protected mode 21:41:37 GMT Is it the time the cmd was received? the time is was processed? some meaningless timestamp? 22:44:51 GMT What is the source of the timestamp for `redis monitor`? Running the command I'll see multiple lines appear all at once with timestamps ranging from 30 seconds ago to now 22:45:01 GMT Is it the time the cmd was received? the time is was processed? some meaningless timestamp? 23:25:34 GMT Anybody? 23:25:47 GMT Anybody at all know what that timestamp is?