器量大者,福泽必厚
全部博文(587)
发布时间:2016-12-13 19:47:45
1:在redis实例上执行bgsave报错MASTER aborted replication with an error: ERR Unable to perform background save解决方法:添加vm.overcommit_memory = 1到/etc/sysctl.conf或者sysctl vm.overcommit_memory=1临时生效.问题即可解决2:config set client-output-buffer-limit 'slave 2036870912 1534217728 300'.........【阅读全文】
发布时间:2016-10-11 16:54:08
在做codis 测试的时候发现问题:Could not connect to Redis at 127.0.0.1:19000: Cannot assign requested address......【阅读全文】
发布时间:2016-06-02 15:22:18
查看redis日志发现有大量的附件信息:The message indicates that there's a fsync operation on the AOF file and it has been last for a little while, to protect your data from lose, redis will slow down to wait for that fsync. This often happens when:1. you have a slow disk, or2. you write too many.........【阅读全文】
发布时间:2016-03-22 09:53:23
1:将redis0库 中的key转移到redis1库中很遗憾,redis只有MOVE命令,模式: MOVE KEY(需要移动的key) DB(到目标库中),只能单个键值移动,无法批量移动, 实现需要shell脚本redis-cli -n 1 keys '*' | xargs -I '{}' redis-cli -n 1 move&n.........【阅读全文】