03:41:48 GMT when i run redis nodejs library, using createClient() makes the script never end, why? 06:11:06 GMT what happens if I delete a big set in the middle of a SSCAN? 07:19:44 GMT hello 07:21:29 GMT hi 07:21:38 GMT I want to install redis sentinel structure. I've two machine for this. But It's writing "just to sentinels, don't do this" in document of sentinel 07:22:17 GMT I installed master - slave with sentinel for two machine. I guess It's not true approach. 07:22:37 GMT Can you any advice. Should I install 4 sentinel to distribute to two machines 07:22:42 GMT can any one please tell me that why redis doesn't support json nested object? and when will it support? 07:32:26 GMT can any one please tell me that why redis doesn't support json nested object? and when will it support? 07:37:03 GMT temhaa: do not use only two 07:37:18 GMT you can run in to split brain situation where both thinks that "i am master" 07:37:56 GMT it does not work with 4 sentinels either, if your quorum is 2 then you can run to split brains 07:38:18 GMT if your quorum is 3 it works - but you have 50% probability that whole service goes down if correct servers goes down 07:39:08 GMT Sparrow_: well at least i am writing json to redis and reading it from redis 07:39:23 GMT why it should be supported more than that? i do not understand 07:41:49 GMT zetab: thank you for answer. so what is quorum? is it number of sentinel? 07:44:50 GMT zetab: what is your advice to setup high avaliability. If we have three machine I can install cluster with 3 node 07:45:04 GMT zetab: by the wat I am not good in redis :( 07:50:03 GMT quorum is the number of sentinels, how much you should have in order to elect master 07:50:17 GMT like if quorum is 1 - only one sentinel is needed to say which redis is master 07:50:26 GMT if quorum is 3 - three sentinels is needed to say which is master 07:50:29 GMT it needs 3 votes 07:50:53 GMT now if you have 4 sentinels (with quorum 2) you can run to situation that both machines are thinking i am the master 07:54:02 GMT quorum size is depends on sentinel size (I shouldnt select big number for quorum because sentinels can be down) 07:58:32 GMT zetab: I have one more question, how they connecting R2 and R3 in Example 2 basic setup with three boxes part of http://redis.io/topics/sentinel 07:58:55 GMT zetab: what can be redis sentinel configuration file. It's not cluster right? 08:24:07 GMT Hello what happen if I will ran redis server using : redis-server -f /path/to/my/conf.file --requirepass some_pass_other_than_in_conf . I'm assuming CLI parrameter will take priority but everything else will be like in .conf file yes ? 08:57:54 GMT Hetman: correct 08:58:00 GMT though there's no -f 09:06:11 GMT are sentinels related to slaves. another way, should I same sentinel file to setup two sentinel(just change port number) 10:22:35 GMT I can add "daemonize yes" to sentinel.conf? 11:09:31 GMT additionaly : what is sentinel auth-pass 11:09:41 GMT what does do actually 11:27:33 GMT badboy_: thanks a lot 17:45:53 GMT I have two distinct operations that are run very frequently. is there a possibility for deadlocks? https://gist.github.com/dbkaplun/e62822636e42bc0d0b20029f88354774 17:47:03 GMT if we have retry logic for publishing posts and there's two machines trying and retrying to publish posts at the same time, is there any way to guarantee one will succeed? 18:35:05 GMT nvm 21:06:33 GMT does redis only store json strings? 21:07:31 GMT redis does not understand json, it only understands binary data 21:08:07 GMT well deals with input as binary data, it doesn't understand it 21:08:31 GMT minus: so if I have a python float, how do I store it? 21:09:10 GMT you convert it into a string (or rather your client library will) 21:10:26 GMT minus: so if I say rdb[key] = 12.00 - does it store 4 bytes or does it store a string "12.00" 21:11:34 GMT it will be "12.00" in the protocol, redis may internall convert it again i think, since it has commands like incr, but not sure how that works 21:12:21 GMT http://redis.io/commands/incrbyfloat 21:12:41 GMT seems like it parses the key content before incrementing, so it's stored as string 21:15:23 GMT minus: seems like its storing both "4.0" and 4.0 as b'4.0'? 21:15:43 GMT yep 21:16:06 GMT as i said, it's converted to a string for the network protocol 21:16:39 GMT minus: so I can't ever store a float or a comact data structure in redis? Everything gets converted to strings? Why convert float to strings? 21:17:15 GMT redis-py will try to parse the key content as integer when get'ting it i think 21:18:16 GMT minus: but why expand a 4 byte or 8 byte value to a 100 byte value? 21:18:17 GMT you don't have to store floats as strings, you can encode them however you want, strings are just the default encoding (and required for incr* to work) 21:18:34 GMT well, 100 bytes is exaggerating 21:18:57 GMT you can use struct.pack and store it as 4 byte value in redis 21:19:00 GMT '4.0' = 36 bytes on this machine 21:19:25 GMT where do you get that number? 21:19:36 GMT getsizeof(rs.get("mykey")) 21:19:39 GMT = 36 21:19:52 GMT "4.0" is obviously 3 bytes of data 21:19:59 GMT never heard of getsizeof 21:20:44 GMT that's sys.getsizeof from python 21:21:09 GMT well, that doesn't have anything to do with redis though