6 ms·
Redis 2.6.0 Released
- jimktrains2 14y agoCongratulations to antirez and all the other commiters! It's been a long awaited release and there are still a lot of good things to come!
- pjscott 14y agoJoy to all! This means that the Lua scripting is now available in a stable release! Want to use Redis as a very fast bloom filter server? A couple of short Lua scripts can make it happen. Want to do some operation which would require a lot of round-trips to Redis? Turn it into a Lua script and get rid of those network round-trips. Once you get used to having this capability, it starts to feel indespensible, an essential feature that Redis would be incomplete without. Oh, and I guess there are a bunch of other improvements in 2.6 -- reduced memory usage, more convenient command-line options for redis-server, some handy new commands, and a lot more -- but really, the Lua scripting is so good that it outshines everything else.
- aaronblohowiak 14y agoA little "self" promo: evalsha.com, a F/OSS repo of public domain Lua scripts for redis scripting. Please contribute your own scripts and pull requests are accepted for the site itself.
- jws 14y ago14 entries so far, two of which are Viagra spam. The scum of the internet certainly are industrious.
- recuter 14y agoIndeed, and the next big thing I can't wait for is cluster which is coming in 3.0 I believe? Combined with the Lua support it makes possible some insanely great things.
- bsg75 14y ago> Want to use Redis as a very fast bloom filter server? Yes! You should blog about this.
- pjungwir 14y agoThe Lua scripting is also great if you need two commands to run atomically. I wrote a blog post about this just the other day: http://illuminatedcomputing.com/posts/2012/10/redis-eval/ http://illuminatedcomputing.com/posts/2012/10/redis-eval/
- ecoffey 14y agoThat's a great post! Thanks for sharing. Not criticizing, but just curious: couldn't you have done this with "watch" and multi exec?
- pjungwir 14y agoHonestly I barely knew about WATCH! But after reading through the docs, I don't think it would have worked in my case. I only had two keys: a list of pages to crawl, and a set of pages already crawled. WATCHing either key would have been too restrictive. Perhaps I could have approached it differently using lots of keys and GET/SET, but I like the simplicity of combining fewer keys with Redis's nice data structures.
- aaronblohowiak 14y agoWME-style is optimistic, so you might have to retry over and over again to succeed. Lua scripts are queued up so you will make progress in the order you get in line. (Think spin lock vs queue)
- burke 14y agoThat sounded like fun, so: Bloom filters in redis: https://gist.github.com/3936629 https://gist.github.com/3936629 Turns out it's kinda hard to get a decent hashing algorithm working in redis-lua-land, but I'm sure an implementation of murmurhash wouldn't be so hard if one had a few hours. EDIT: It's worth mentioning, too, that we've been using a collection of lua scripts to manage inventory reservations at Shopify since March, and the tech has worked very well for us.
- pjscott 14y agoI was thinking that you could have the client pass in a couple of hash values, and then use linear combinations of them to get a bunch of independent-enough hashes. This is mathematically fine, and hash functions are a dime a dozen when you're not in redis-lua-land. Paper justifying this technique: http://www.eecs.harvard.edu/~michaelm/postscripts/tr-02-05.pdf http://www.eecs.harvard.edu/~michaelm/postscripts/tr-02-05.p...
- aaronblohowiak 14y agoMy (pretty exhaustive) notes from RedisConf today, in five parts: https://gist.github.com/3932768 https://gist.github.com/3932768 https://gist.github.com/3933451 https://gist.github.com/3933451 https://gist.github.com/3934073 https://gist.github.com/3934073 https://gist.github.com/3935007 https://gist.github.com/3935007 https://gist.github.com/3935671 https://gist.github.com/3935671
- jimktrains2 14y agoWould you mind putting them into a single gist or git repo or would you mind if I do?
- aaronblohowiak 14y agoPlease do.
- blutonium 14y agoOne file: http://pastebin.com/tASCpVMH http://pastebin.com/tASCpVMH
- plasma 14y agoI can't tell, does 2.6 include Sentinel / failover support?
- aaronblohowiak 14y agoYes. Sentinel is a mode of redis, and it will continue to improve in each 2.6 point-release.
- antirez 14y agoBoth Redis 2.6 and latest 2.4 patch release are ready to be monitored by Sentinel as targets of the monitoring. Redis 2.6 includes an experimental implementation of Sentinel considered in beta stage, that will be upgraded with every new release of 2.8. The development of Redis Sentinel continues in the unstable branch in the meantime. Basically at some point when Sentinel will be declared stable, 2.6 will ship with a stable version of Sentinel, however 2.8 may implement additional support for Sentinel features that may not be available for 2.6.
- anotherbadlogin 14y agoIt's a key/value store, not a "key-value" store. Why is this such a problem: http://goldmanosi.blogspot.com/2012/04/when-did-slash-become-too-hard.html http://goldmanosi.blogspot.com/2012/04/when-did-slash-become...
- antirez 14y agoRelated -> http://antirez.com/news/21 http://antirez.com/news/21
- didip 14y agoCan one simply upgrade from 2.4 -> 2.6? No data migration involved? Side topic: It's pretty cool that you guys have dedicated pages for administration. http://redis.io/topics/admin http://redis.io/topics/admin
- agildehaus 14y agoRead the release notes. There's an entire section about migration from 2.4 to 2.6. Short answer: You can simply upgrade.