设为首页 收藏本站
查看: 558|回复: 0

[经验分享] 更新redis到2.2.1版本

[复制链接]
累计签到:11 天
连续签到:1 天
发表于 2015-7-21 11:48:19 | 显示全部楼层 |阅读模式
  今天把redis从2.0.4升级到2.2.1的了,服务器和开发环境都进行了升级了。先来看看redis的update notes.
  Redis 2.2 release notes
Migrating from 2.0 to 2.2   从2.0迁移到2.2版本
Redis 2.0 is mostly a strict subset of 2.2.  
  Some return value changed in edgecases, basicaly it is very unlikely that you will experience any problemupgrading your 2.0 instances to 2.2, as 2.2 can work as a drop in replacementfor 2.0.
---------CHANGELOG---------
What's new in Redis 2.2.1=========================
Redis 2.2.1 is a bugfix release. Changelog:
* Fixed an SPOP crash. When using SPOP in a MULTI/EXEC block there was a problem  introduced in the latest release when fixing an SPOP replication/AOF related  bug.
What's new in Redis 2.2.0 final===============================
Redis 2.2.0 final is both a bug fix and minor enhancement release:
* SPOP is now replicated correctly in AOF and across slaves.* CONFIG SET/GET for all the special encoding parameters of sets, lists, hashes.* Now BRPOPLPUSH will reply with single null bulk on timeout.* Specifying port 0 in redis.conf will tell Redis to don't listen on TCP socket.* Propagate key eviction to slaves and AOF, similarly to expires.
What's new in Redis 2.1.10 (2.2 Release Candidate 4)====================================================
Redis 2.2 RC4 is a bug fix and minor enhancement release:
* Fixed timeout error in replication where master took a big time to BGSAVE.* Introduced explicit PING between master and slave, to reliably detect when  the link is down, even if the socket remains apparently connected.* Fixed compilation on FreeBSD.* Removed a small portability issue in redis-benchmark.
What's new in Redis 2.1.10 (2.2 Release Candidate 3)====================================================
Redis 2.2 RC3 is a bug fix and minor enhancements release:
* Solaris fixes* Fixes and improvements for redis-benchmark* New INFO field with memory allocation details* New INFO fields with info about clients max input/output buffer* Replication: KEYS fixed in slaves* Different default thresholds for Hash type memory saving encodings
What's new in Redis 2.1.10 (2.2 Release Candidate 2)====================================================
Redis 2.2 RC2 is exactly like RC1 with the following minor changes:
* Added evicted keys counter separated from expired keys.* Overflow detection in INCR family functions.
Enjoy,Salvatore
What's new in Redis 2.1.9 (2.2 Release Candidate 1)===================================================
This is the first Release Candidate of Redis 2.2, in our experience theserver is very stable, but in the latest weeks we rewrote part of the internalsin order to use a lot less memory while the saving child process is performinga BGREWRITEAOF or a BGSAVE, so handle with care for a couple of weeks.
Oh, and I've some very good news: the majority of apps can work if you simply replace 2.2 in your old 2.0 environment. I can't think of any breakage.
WHAT'S NEW IN REDIS 2.2 compared to the 2.0 version?====================================================
* Specially encoded data types, small lists and sets can now use up to an order of magnitude less memory.* VM partial rewrite for code cleaness and memory usage.* Change to the implementation of the top level dictionary for better memory efficienty.* redis-cli is hugely improved: tab completion, inline help (Thanks to TJ Holowaychuk), raw output, rewritten using the new hiredis C library.* Networking internals rewritten for efficiency. You can expect LRANGE and similar commands to be at least 10 times faster.* Most read only commands are now copy-on-write friendly, this means that Redis will use little memory when a saving child is active and the parent process is mostly stressed by read queries.* Non blocking replication even from the point of view of the slave, with configurable behavior about what to do when the link is disconnected. You can select if serving old data or replying with an error.* Check-and-set (CAS) transactions with the new WATCH command.* Now write operations work against keys with an EXPIRE set! Imagine the possibilities.* New maxmemory eviction policies. It is possible to select among LRU, farest TTL expire, and other algorithms, and if when the memory limit is reached only keys with an expire set or all the keys should be expired.* SETBIT / GETBIT / SETRANGE / GETRANGE / STRLEN. Now your strings are your arrays!* Syslog support (Thanks to Jonah H. Harris)* Unix domain socket support.* New List related functions LINSERT, LPUSHX, RPUSHX (Thanks to Robey Pointer)* BRPOPLPUSH (Thanks to Michel Martens and Damian Janowski)* Much more interesting informations in the INFO output.* Sorted sets are now less memory hungry.* Non blocking loading of .rdb / AOF file on startup, with progress information in the INFO output.* Now Redis has a clean, powerful, supported C library: hiredis.* Code layout completely new, the 2.0.x huge redis.c file is now splitted in many parts.* Redis-benchmark rewritten to be faster and in order to use hiredis as well.* Ability to rename or disable commands from the config file.* Endless other CPU optimizations and bugs fixed.
Credits: Where not specified the implementation and design are done by Salvatore Sanfilippo and Pieter Noordhuis. Thanks to VMware for making all this possible. Also many thanks to all the other contributors and the amazing community we have.
Cheers,Salvatore
  当前的使用感受:
  1.编译安装变得不一样了
  make && make install 自动进行了复制和原来的make很不一样
  2.加强了redis-cli

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-89046-1-1.html 上篇帖子: Redis分布式部署,一致性hash;分布式与缓存队列 下篇帖子: Redis windows 2.6版本并发出错解决方法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表