<    April 2017    >
Su Mo Tu We Th Fr Sa  
                   1  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
30
00:04 daxelrod joined
00:07 svm_invictvs joined
00:45 MrXXIV joined
00:51 steeze joined
00:55 edvorg joined
00:56 soveran joined
01:01 edvorg joined
01:09 last1 joined
01:15 edrocks joined
01:26 ogres joined
01:51 bannakaffalatta joined
01:51 GreenJello joined
01:56 last1 joined
02:03 SkyRocknRoll joined
02:04 last1 joined
02:43 enigma_raz joined
02:53 rchavik joined
02:58 soveran joined
03:01 edvorg joined
03:17 edrocks joined
03:47 steeze joined
03:49 SkyRocknRoll joined
03:56 enigma_raz joined
04:00 soveran joined
04:00 soveran joined
04:03 MrXXIV joined
04:10 fakenerd joined
04:26 iamchrisf joined
04:29 xiaomiao joined
04:32 EyePulp joined
04:44 felixjet joined
04:48 enigma_raz joined
04:53 RemiFedora joined
05:02 fakenerd joined
05:04 ppang joined
05:12 felixjet joined
05:19 edrocks joined
05:24 jud joined
05:24 jud joined
05:26 jgt2 joined
05:30 AustinMatherne joined
05:33 sanyo joined
05:35 steeze joined
05:50 Guest96 joined
05:59 rendar joined
06:07 xep joined
06:08 atrius joined
06:13 timg__ joined
06:17 xep joined
06:28 felixjet joined
06:29 ccovey joined
06:30 jgornick joined
06:30 MrXXIV joined
06:34 Specialist joined
06:47 soveran joined
06:47 soveran joined
07:07 <freddo> Hi. I'm looking for advice on a 2 server hot standby setup. I'm implementing it by hand because Sentinel and Cluster don't seem to support a 2 server - and I've only got 2 CPUs . Any good example client code/doc for thIs scenario, to handle detection and switchover to standby server? Thx.
07:14 enigma_raz joined
07:38 JohnnyRun joined
07:38 <minus> freddo: sentinel works with 2 redises, but needs at least 3 sentinels (so at least one would have to be external)
07:39 <minus> you can't really do failover with two servers because if the connection between them fails both think they should be master
07:42 <freddo> minus: thanks, that's what I understood, but this is an isolated system and I don't have a 3rd CPU to run sentinel on. I'm familiar with split brain problem, but I have a hardware line between the two servers to reduce probability of that occurring.
07:43 freddo left
07:43 Guest96 joined
07:43 freddo joined
07:45 <minus> freddo: in principle you just have to CONFIG SET SLAVEOF NO ONE on the salve when the master goes away
07:47 Dave_R joined
07:58 <freddo> minus: Thanks. Do you know if ping is a sufficiently reliable way of detecting the failure?
07:58 ppang_ joined
07:59 <minus> assuming you're not running out of memory: yeah
07:59 xep joined
07:59 xep joined
08:00 <freddo> minus: great - thanks.
08:00 <minus> and if the instance is just starting it'll return an error (LOADING Redis is loading the dataset into memory) if you're trying to read something from it
08:02 mikecmpbll joined
08:03 fakenerd joined
08:14 enigma_raz joined
08:16 Specialist joined
08:17 Guest96 joined
08:19 JohnnyRun joined
08:21 edrocks joined
08:30 efphe joined
08:38 lbovet joined
08:59 drbobbeaty joined
09:04 EyePulp joined
09:07 drbobbeaty joined
09:15 enigma_raz joined
09:17 Guest96 joined
09:25 Mr__Anderson joined
09:50 ogres joined
10:16 enigma_raz joined
10:23 edrocks joined
10:26 bf_ joined
10:40 soveran joined
10:40 soveran joined
10:47 rchavik joined
10:49 shinnya joined
11:02 Guest96 joined
11:03 freddo_ joined
11:14 naquad joined
11:17 drbobbeaty joined
11:19 naquad left
11:20 EyePulp joined
11:22 Guest96 joined
11:32 dh1tw joined
11:33 indi_ joined
11:38 GreenJello joined
11:43 sppadic_ joined
12:07 tavish joined
12:10 drbobbeaty joined
12:17 Guest96 joined
12:19 enigma_raz joined
12:21 ppang joined
12:54 edrocks joined
13:05 EyePulp joined
13:13 fakenerd joined
13:20 enigma_raz joined
13:20 ppang joined
13:21 drbobbeaty joined
13:48 bannakaffalatta joined
13:51 SkyRocknRoll joined
13:54 wlightning-fuel joined
14:00 bannakaffalatta joined
14:02 daxelrod joined
14:05 hndk joined
14:05 pid1 joined
14:07 adac joined
14:08 <adac> Hi there!
14:08 <adac> I was wondering if redis has some kind of transaction log somewhere?
14:14 <badboy_> no
14:14 <badboy_> what are you trying to do?
14:21 enigma_raz joined
14:30 soveran joined
14:30 soveran joined
14:32 fireglow joined
14:38 hos7ein joined
14:43 ogres joined
14:49 iamchrisf joined
14:50 programmingcool joined
14:57 rendar joined
14:57 rendar joined
14:57 pid1 joined
14:58 SkyRocknRoll joined
15:01 felixjet joined
15:04 wlightning-fuel joined
15:09 cyborg-one joined
15:11 <adac> badboy_, soemthing mysteriously went wrong on our staging server, some stuff got deleted and I thought I could maybe reproduce it
15:11 mikecmpbll joined
15:12 <adac> not reproduce it but of look up some transaction logs to find out what and if somehting happened
15:12 <badboy_> if you have AOF enabled, you could^^
15:12 <adac> badboy_, how would that work with AOF?
15:13 <adac> for now I only have rdb
15:13 <adac> but soon this needs to change anyways
15:13 <badboy_> the AOF is an appendonly log of all write commands
15:13 <badboy_> (sort of a "transaction log"
15:13 <adac> badboy_, ok I see so all would be there yes
15:13 <badboy_> unless rewritten, yes
15:13 wlightning-fuel joined
15:13 <adac> would be handy. we should really use that for this redis instance where we have crucial data
15:14 <adac> rdb to AOF can be done with no problems or?
15:15 <badboy_> you can actually enable both ;)
15:16 <badboy_> see https://redis.io/topics/persistence
15:17 <badboy_> CONFIG SET appendonly yes
15:17 <adac> badboy_, oh thats nice so I just have to enable it
15:17 <adac> thanks man
15:17 aah joined
15:29 totemrob joined
15:33 soveran joined
15:45 steeze joined
15:45 brodolfo joined
16:00 pid1 joined
16:11 FunnyLookinHat joined
16:11 Guest96 joined
16:22 enigma_raz joined
16:24 soveran joined
16:24 soveran joined
16:27 Fiber^ joined
16:29 tavish joined
16:32 wlightning-fuel joined
16:34 svm_invictvs joined
16:45 nathans joined
16:54 Guest96 joined
16:57 al-damiri joined
17:06 wlightning-fuel joined
17:06 MrXXIV joined
17:10 crayon joined
17:10 <crayon> I'm trying to resolve a redis connection issue. U've determined the cert is being rejected because of name validation. To correct it, I need to regenerate with either: CN changed, SAN entry for the VIP, or wildcard.
17:10 <crayon> any suggestions?
17:11 <badboy_> crayon: what cert?
17:14 <crayon> it's internally generated, signed by the CA we use for the redis db
17:14 <crayon> for redis clients
17:14 <crayon> (auth)
17:27 aah joined
17:29 hahuang65 joined
17:31 edrocks joined
17:33 <minus> Redis doesn't support cert auth nor encryption though
17:39 drbobbeaty joined
17:42 soveran joined
17:42 soveran joined
17:50 wlightning-fuel joined
17:53 <crayon> redis.clients.jedis.exceptions.JedisConnectionException: The connection to 'project21.zelda.io' failed ssl/tls hostname verification.
17:53 <crayon> it's not needed for "public" TLS, but is used to provide trusted TLS (through possession of the CA, which is preshared), and client certs for authorization (again, signed by CA).
17:53 wlightning-fuel joined
18:00 <badboy_> well, fix your cert then ;)
18:00 <badboy_> or (DONT DO THIS AT HOME) disable hostname verification (DONT DO THIS)
18:08 alex88 joined
18:10 <alex88> hello everyone, I've this lua script and the logs of `monitor` https://gist.github.com/alex88/4ad4f73977332d3341d05f99e71c8a9d
18:11 <alex88> as you can see the only operations done on foo are a RPUSH, LPOP and then LINDEX which is the script on line 14
18:11 <alex88> however, I see `attempt to concatenate local 'next_message' (a boolean value)`
18:11 <alex88> how can it be a boolean?
18:12 <alex88> if I first rpush and then lpop, the list should be empty right? so it should return nil
18:12 <minus> have you tried redis-cli --ldb?
18:13 <alex88> `Options --ldb and --ldb-sync-mode require --eval.` ?
18:14 <alex88> oh ok, well, I was calling that function from our unit tests of our app, not directly via cmdline
18:14 <alex88> let me move the script and run the debugger
18:15 <alex88> yeah next_message = false
18:16 mikecmpbll joined
18:17 <alex88> I don't see why though
18:17 <alex88> I pushed only strings
18:18 wlightning-fuel joined
18:19 <minus> maybe you found a bug
18:19 <badboy_> a nil response is converted to a bool, isn't it?
18:19 <badboy_> > Redis Nil bulk reply and Nil multi bulk reply -> Lua false boolean type
18:20 <alex88> oh, that could be the reason
18:20 <alex88> bulk reply?
18:20 <alex88> anyway yes, redis.call("LRANGE", "bar", 0, 1000) shows {} but LINDEX is false
18:21 <badboy_> bulk reply is just the Redis Protocol's name for a byte array
18:21 <alex88> ok gotcha
18:22 <alex88> I was just doing LINDEX on redis-cli and wondering what that was nil and lua was false
18:22 <alex88> as I've switched from LRANGE + next(next_message) to LINDEX and got into that, thanks a lot anyone
18:22 <minus> why doesn't it return nil for a nil bulk reply and an empty table for nil multibulk :|
18:22 <badboy_> leegacy :D
18:26 <alex88> :D
18:27 <minus> time to make a redis.call2
18:30 adac joined
18:30 GreenJello joined
18:31 rendar joined
18:37 <alex88> or just move to redis 4 :D
18:38 <minus> does redis 4 fix it?
18:38 <minus> i doubt it
18:38 <minus> because compatibility
18:39 fakenerd joined
18:44 <alex88> I don't know, I just said that since a major version could change these things
18:53 wlightning-fuel joined
18:59 cyborg-one joined
19:03 timg__ joined
19:07 ogres joined
19:09 edrocks joined
19:09 soveran joined
19:09 soveran joined
20:17 bannakaffalatta joined
20:21 Mr__Anderson joined
20:42 enigma_raz joined
20:45 enigma_raz joined
20:46 edrocks joined
20:54 zachsnow joined
20:58 dh1tw joined
21:02 timg__ joined
21:06 minimalism joined
21:25 zachsnow joined
21:43 fakenerd joined
22:12 hahuang65 joined
22:28 aah joined
22:29 raspado joined
22:41 timg__ joined
23:06 edrocks joined
23:21 timg___ joined
23:32 Majiir joined
23:34 soveran joined
23:34 soveran joined
23:46 aah joined
23:47 indi_ joined
23:48 Majiir joined
23:56 MrXXIV joined