07:27:33 GMT Guys check out Zsh plugin that binds redis keys to shell variables, it's a milestone step from redis-cli: https://github.com/zdharma/zredis 08:24:35 GMT whats the ideal number of hosts for redis ? 08:28:40 GMT 1 08:35:03 GMT done :) 08:35:08 GMT 3 im guesing 08:35:44 GMT There's no right answer for that. It highly depends on your needs and requirements 08:35:50 GMT what the recomended way to configure HA ? 08:36:17 GMT sentinel ? or do people place nodes behing a load balancer like haproxy. f5 ? 08:37:11 GMT Sentinel is the in-built solution for HA and automatic failover, indeed 08:37:20 GMT but it requires a smarter client lib 08:37:24 GMT yeah 08:37:48 GMT so clients need to be specified not only master but slaves ? 08:38:11 GMT or client determines nodes via sentinel ... 08:38:17 GMT ? 08:41:20 GMT clients determine nodes by asking sentinels 08:42:15 GMT aeo1ack: thanks, but i'd rather use python then. 08:43:46 GMT minus: yeah heard about this, that people use python to fully manipulate data without building command strings for redis-cli. Could you provide how to bind list with python, and remove 1st element? 08:44:36 GMT so does the sentinel way suffice or are other ha options prefered ? 08:44:43 GMT meh to binding, but there is a lib for that, never used it though 08:45:12 GMT aeo1ack: https://walrus.readthedocs.io/en/latest/containers.html#lists 08:47:00 GMT still it might be fun, for administrator, to bind string variable "visitors" to redis key "visitors", and invoke "echo $visitors" from time to time, instead of browsing history for redis-cli command 08:51:59 GMT "unset visitors" will remove the key "visitors", wonder if people will slip, to invoke unset instead of "zruntie visitors" 08:52:56 GMT if that is a useful metric, they should build themselves a dashboard exporting this information 08:53:14 GMT but nonetheless, I appreciate your contribution, even if I don't see a use case for myself 08:55:04 GMT thanks, I hope someone likes it, although Zsh might be an obstacle, also basic certanity about zsh types is needed, e.g. to do list[10,-20]=() to remove part of keys, it is simple but the certanity of Zsh knowledge is IMO needed to use that 08:56:26 GMT The use case I see is reqular daily work of a developer, if he has dev experimental redis database, and needs to fill it with fancy or large in number data many times a day 18:38:56 GMT Hey everyone i'm doing a bunch of lua scripts in redis and i realized I need access to ffi, but I can't seem to require ffi. What gives? Am I screwed? 18:40:15 GMT posi: FFI in Redis Lua scripts? no chance. Redis 4 will have loadable modules, those might fit your needs 18:42:27 GMT ahh nice 18:42:34 GMT kk 18:44:52 GMT minus: I want to expose murmur3 to the script instead of sha 18:44:56 GMT minus: any other routes? 18:45:40 GMT implement it in Lua 18:46:11 GMT no other ways that i know of, besides modifying redis itself 18:46:16 GMT it's very difficult without being able to pull in packages like bit or struct 18:46:28 GMT minus: I am actually ok with building a custom redis 18:47:23 GMT a module would be the preferrable solution, but Redis 4 hasn't been released yet, so you'd need to run unstable 18:49:11 GMT cool 18:49:13 GMT what's the timing there? 18:50:23 GMT oh, an RC was release 181 days ago 18:50:40 GMT http://antirez.com/news/110 19:15:19 GMT hi 19:15:25 GMT how i cal solve this error: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. ? 19:19:48 GMT Can magit "revert" single lines, i.e. I look at unstaged diff, select some lines, want to reset them to current HEAD 19:28:50 GMT how i cal solve this error: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. ? 19:31:58 GMT t0th_-_: check `CONFIG GET dir` for where it tries to save to and make sure that's the correct, writable location 19:32:35 GMT -rw-r--r-- 1 redis redis 71M Jun 1 16:31 dump.rdb 19:32:40 GMT how i can do it writable ? 19:34:26 GMT that should be writable by the redis user. if redis runs as that and the is the actually set dir (the config file does not necessarily reflect the current value, CONFIG GET does) and the disk is not full, it should work 19:37:22 GMT but it is writable to redis file 19:38:08 GMT redis user 19:42:21 GMT is that the actual location `CONFIG GET dir` returns? 19:42:32 GMT if you haven't checked, check it now 20:03:38 GMT how i can see if it worked? 20:04:17 GMT redis-cli should return the value then 20:06:12 GMT yes 20:06:17 GMT i setted the permission 20:06:23 GMT in the directory and file 20:06:35 GMT in directory returned by CONFIG GET dir 20:06:41 GMT 755 to dir and 644 do file 20:07:05 GMT /var/lib/redis? 20:07:18 GMT i see RDB: 53 MB of memory used by copy-on-write and Background saving terminated with success. It is work? 20:07:22 GMT it doesn't need to be world readable, but that doesn't prevent it from saving 20:07:32 GMT yes, that looks okay 20:07:38 GMT thanks, minus 20:07:57 GMT ./var/lib/redis yes this directory