05:27:26 GMT xrated: how many keys are in your hashes? 09:09:01 GMT hi guys, could someone help me or point me to a link which explains how to setup a 2 node redis db cluster? 09:09:23 GMT I haven't been able to find good documentation 09:32:35 GMT Does Redis Sentinel handle fault tolerance? 10:29:20 GMT dknight87: you don't. 10:29:30 GMT dknight87: (well, depending on what you mean by cluster) 10:29:49 GMT badboy_: master, slave 10:29:58 GMT karthikeayan: Redis Sentinel handles automatic failover in case a node dies 10:30:05 GMT dknight87: SLAVEOF master-ip master-port 10:30:18 GMT yup, I've set it up 10:30:23 GMT badboy_: thanks a lot! 10:30:57 GMT dknight87: https://redis.io/topics/replication 10:31:21 GMT that's one of the simplest mode Redis can run in. Keep in mind there's absolutely no handling if any node dies 10:31:28 GMT does it mean, it doesn't lose state of the redis node? 10:32:30 GMT karthikeayan: Sentinel is just the monitoring. Data must be replicated from master nodes to slave nodes, so that those slaves can become a new master if their master node dies 10:34:28 GMT ok 11:54:14 GMT i'm setting up sentinels for the first time and this sentinel is reporting S_DOWN 11:54:30 GMT although I don't know why. i'd like to test the ping mechanism that it uses to determine if master is down, how can I do that? 11:56:29 GMT dealing with disk space issues. can I get rid of temp-* files, in order to free up space for a bgsave? 12:05:04 GMT mikecmpbll: connect to the node via TCP and send PING 12:05:11 GMT aah: yes, those are temporary files 12:05:27 GMT normally Redis should rename to the configured filename if all goes correctly 12:05:50 GMT @badboy_ : thanks! i'll bear that in mind. literally just sorted the issue anyways, i hadn't provided the password of the master correctly to the sentinel. 12:05:57 GMT ;) 12:06:53 GMT this section should mention the `sentinel auth-pass ` config option :p 12:06:55 GMT https://redis.io/topics/sentinel#sentinel-and-redis-authentication 12:07:21 GMT add it and I merge it ;) 12:07:29 GMT 👍🏼 12:16:24 GMT minus: sorry just saw message this morning, I did a debug object on one of the hashes and this is the result 12:16:26 GMT refcount:1 encoding:hashtable serializedlength:433741 lru:14565491 lru_seconds_idle:1351 12:16:43 GMT ive no experience with hashes so idk if that value is large or not 12:28:22 GMT i'm curious how the sentinel config rewrite works. seems to rewrite random portions of my config haha 12:28:51 GMT i had things like `sentinel failover-timeout mymaster 180000` which appear to have been removed 12:29:23 GMT xrated: HLEN is what i was asking 12:29:38 GMT mikecmpbll: it will remove defaults 12:30:17 GMT minus: 4 on avg it looks like 12:30:32 GMT @badboy_ : ahhh. 12:31:26 GMT xrated: give the redis performance tooling a try then 12:31:34 GMT latency doctor and what not 12:31:36 GMT slow log 12:31:40 GMT will do 12:31:42 GMT ty 12:31:53 GMT (never used those myself) 12:40:48 GMT the config rewrite stuff makes it kinda tricky to manage redis with configuration automation like saltstack 😓 12:43:52 GMT iirc cluster fixed that by writing runtime stuff to separate file 12:47:56 GMT okay, i see what's going on. i have sentinels on different vLANs, each connects to the master on a different local IP address. the sentinels keep trying to update eachother with the other master address. 12:48:14 GMT is there a way around this? 12:48:41 GMT put them on the same VLAN? 12:49:28 GMT :/ i don't want to do that, the whole point i'm setting this up is for resiliency across datacentres 12:49:40 GMT vlan on each datacentre. 12:49:59 GMT ah maybe there's some networking fu i can do. i suck at that stuff. 12:50:05 GMT you set up sentinels cross-datacenter? 12:50:14 GMT minus : aye. 12:50:22 GMT sounds questionable 12:50:25 GMT why? 12:50:49 GMT just does 12:50:57 GMT i guess it depends on what you use it for 12:51:26 GMT a netsplit with that is gonna be annoying as fuck 12:51:38 GMT assuming both sides write 12:53:27 GMT all our infrastructure is replicated across these two datacentres. load balancers, databases, everything 12:57:04 GMT no, Redis doesn't really deal easily with different IPs for the same instance 12:57:25 GMT @badboy_ : thanks 13:00:49 GMT eh i'm an idiot anyway i just need to add the sentinel hosts to the redis vlan. 13:04:10 GMT mikecmpbll: so, how does this work, does only stuff in one DC do actual work and the other is on standby or do both work and only work with the redis master and thus are blocked from working while a netsplit is occurring? 13:05:12 GMT not sure if i understand the question necessarily, but i'm just going for a master/slave scenario with failover 13:05:27 GMT so yeah, one server will be doing all the work at any one point. 13:05:46 GMT if it goes down, it switches to the other one at the other DC. 13:05:55 GMT ah okay then 13:06:15 GMT so pure failover 13:06:29 GMT aye, no sharding or load balancing or anything like that 13:06:47 GMT we could, but we don't need that. 14:46:17 GMT hi all. Is it possible to disable persistence at all on redis? I'm using 2.8.19 on centos. here is my conf dump: https://gist.github.com/johnnyrun/af63ddb91385abdff269c7c4b023b0fd 14:46:47 GMT I have 'save ""' in the conf but I find dump.rdb on filesystem. 14:55:29 GMT do you have slaves attached? 14:55:44 GMT oh it is a slave 14:57:31 GMT Then no, on initial sync a dump will be saved 14:58:13 GMT ok badboy. so it is slave-related? 14:58:29 GMT yes 14:58:53 GMT Do you know if it is the same on newer versions? 14:59:43 GMT yes, it is on all versions 14:59:48 GMT there's a diskless mode for the master 14:59:57 GMT but the diskless-mode for slaves is not merged 15:00:17 GMT ok. Thanks a lot badboy_ 15:22:19 GMT .qrand album:largo 15:22:24 GMT whoops 16:10:31 GMT Hi,We are facing redis connection timeout even after upgrading to aws m4.xlarge 16:12:37 GMT you have to lower the frequency of saves