08:49:31 GMT hello 08:49:36 GMT my name is prashanth raghu 08:49:44 GMT i had a doubt on the design of redis 08:49:49 GMT for the event loop 08:50:03 GMT could libuv have been an alternative 08:50:07 GMT to ae 08:50:12 GMT if no 08:50:17 GMT can someone explain to me 08:52:41 GMT i'm asking this question because i see ae and libuv as equivalents 09:01:50 GMT yes 09:02:11 GMT in theory every event loop implementation would have done 09:19:01 GMT can someone explain to me 09:19:05 GMT when this function is used 09:19:16 GMT clusterBroadcastMessage 09:19:17 GMT ?? 09:24:32 GMT when broadcasting a message for all cluster participants 13:09:14 GMT can i do a command, for example llen for each return key from lrange without external scripts ? 13:13:49 GMT battousai: take a look at EVAL 13:23:03 GMT minus: thank you very much 15:21:42 GMT hello good morning 15:21:45 GMT can i know 15:21:48 GMT what is a zipmap 15:21:49 GMT ?? 15:22:32 GMT how is it more memory efficient 15:22:44 GMT are operations on it as well O(1) 15:22:45 GMT ?? 15:23:20 GMT it's documented here: https://github.com/antirez/redis/blob/unstable/src/zipmap.c#L43-L76 15:25:21 GMT also: please refrain from using multiple successive punctuation marks, it is considered rude and doesn't add any additional information to your requests ;) 15:25:32 GMT okay sure 15:25:45 GMT kind of a habit here in India 15:27:29 GMT did not know it's rude 15:28:05 GMT Don't worry 15:28:31 GMT to me it seems immature and impatient, and i'll more likely just ignore you because of it, dunno if that's the same for other people, but i guess so 15:29:16 GMT minus: As i said it is not intentional 15:29:24 GMT more so like a habit in india 15:29:43 GMT but I am sure it will not happen again 16:56:51 GMT anyone around? 17:08:01 GMT maybe. maybe not. 17:12:18 GMT badboy_ since you are here... sorry for disturbing, but I would be happy if you'll find time to merge this https://github.com/antirez/redis-doc/pull/791 thank you! 17:13:54 GMT done 17:25:22 GMT badboy_ thank you again! 17:56:44 GMT badboy_ seems that something went wrong :) I don;t see any changes 17:59:36 GMT not sure when it will appear 17:59:41 GMT I have no control over the deployment ;) 18:00:26 GMT badboy_ I mean PR is still open. Is it ok? 18:00:34 GMT is it? 18:00:41 GMT oh well 18:00:44 GMT github... 18:01:04 GMT now it's merged 18:01:37 GMT awesome, thanks you :) 18:26:16 GMT i wanted to ask a question to someone who knows the answer but i already asked it 2 days ago so i'm going to quote it here. if anybody knows then pleace respond that would be great 18:26:19 GMT please* 18:26:42 GMT ah the question is lost in my logs. guess i'll have to ask it again 18:27:52 GMT to someone who is familiar with the *-lru policy. how does lru manage memory in the case of when say the entered value is say 2kb and the least recently used is say 1kb. the last last one is say 2kb. does that mean that both of those get removed? how does redis handle this situation? 18:30:50 GMT sorry if my question is not clear. basically, how does redis handle the situation where the eviction candidate space is not enough for the next big object to be inserted? 18:32:44 GMT badboy_, do you know the answer to this one? :p 18:33:32 GMT 1. lru is approximately 18:36:25 GMT afaik in your case if it deletes the 1kb it sees that used memory < maxmemory and would insert the new value 18:36:37 GMT thus over-allocating by ~1kb over your maxmemory setting 18:49:19 GMT badboy_, ah i see. so in the case of where the last 2 objects dont even make up space for the new object then those 2 obects would be removed too yeah? 18:51:22 GMT https://github.com/antirez/redis/blob/unstable/src/evict.c#L376 18:51:29 GMT it only tries to free enough to go below the limit 18:51:52 GMT ah cool! that solves my problem 18:53:04 GMT thanks badboy_ 20:03:03 GMT I'm getting this error intermittently: Failed to connect to redis: php_network_getaddresses: getaddrinfo failed: System error 20:03:27 GMT if it wasn't intermittent i'd think there was an issue with my hostname or ip address setup, but it's not consistent so i'm not sure what could be causing it 20:32:00 GMT steeze, flaky dns 20:32:06 GMT persistent connection times out right as you query 20:32:40 GMT which happens quite often in practice, which is why retries and idempotence are important in network requests 20:33:44 GMT retries? what is that =D 20:34:00 GMT rfer odd. i dont think ive ever had this issue before. any idea of the root cause? 20:34:11 GMT just my servers being whacky for a bit? 20:34:16 GMT your sysadmin sucks at setting up dns 20:34:38 GMT or the connection expires between the time between a thread checking if a connection is still valid and using the connection 20:34:51 GMT LOL 20:35:08 GMT one of the two is fixable 20:35:39 GMT im leaning towards the latter just because ive never had this issue before and we've been running on this infrastructure for months 20:35:52 GMT your sysadmin sucks? i know that feeling 20:35:56 GMT lol 20:36:08 GMT it's an amazon EC2 instance 20:43:08 GMT rfer is there a way for me to debug a dns issue like this/ 20:44:33 GMT i have no idea. there's also other possible error cases. 20:44:48 GMT e.g. you managed to eat up all your file descriptors so a new socket can't be opened 20:44:51 GMT word, i mean *a possible dns issue like this 20:45:02 GMT which would be the developer's fault 20:45:44 GMT how would that happen? 20:45:58 GMT idk, you could just spam nslookup in a command line and see if you get errors sometimes 20:46:34 GMT idk how php works because i've been told it's cancer, but if for example you closed a connection but the underlying library relies on garbage collection to clean up old sockets 20:46:45 GMT and somehow you closed a ton of connections before the last GC run 20:47:10 GMT interesting 20:47:13 GMT or you're getting dropped connections because of a bad network or something, and your application keeps reopening those connections 20:47:19 GMT okay thanks ill keep that in mind 20:47:23 GMT and the old connections keep sitting in CLOSE/TIME_WAIT 20:47:51 GMT hmm like from a super intensive data report that a team member might close out because it's taking too long? 20:48:29 GMT dunno how your data report is generated so i can't say 21:41:49 GMT i restarted my server and it seems to have resolved itself. worried this might happen again though 21:41:57 GMT ¯\_(ツ)_/¯