-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
迁移大list问题 #33
Comments
@beyondblog 这个我想过,需要改代码。现在的策略是直接 RDB restore 给 slave,单数据太大的话,肯定失败 (>512MB),这种时候,看来需要手动的切成小的指令,比如 RPUSH 来操作。 |
@beyondblog 不过从你的 log 上,你并不是这个问题。出错在于命令解析错误,不合法。 |
@beyondblog 现在应该可以了,pull 最新的代码试试看。 |
@spinlock 非常感谢! 稍后我试下! 😄 |
@spinlock 我也越到了一样的问题 |
@luweijie007 这个很奇怪。。。 先说你已经完成 rdb 同步了,错误出现在追 log 的过程。但是 log 应该都是 BulkBytes Array 才对的。我不确定是不是 redis 某个版本改了协议还是我处理的有问题。 |
redis的版本和同步时候的日志如下,很正常,还有有用的信息我能查看的? |
不确定 如果怀疑的话 redis port 支持本地文件缓存功能可以加速 rdb 的获取。具体的你看一下 readme
…On Thu, Mar 16, 2017 at 12:24 luweijie007 ***@***.***> wrote:
redis的版本和同步时候的日志如下,很正常,还有有用的信息我能查看的?
redis_version:3.0.6
3310:S 16 Mar 11:20:37.271 * Slave 10.15.107.143: asks for synchronization
3310:S 16 Mar 11:20:37.272 * Full resync requested by slave 10.15.107.143:
3310:S 16 Mar 11:20:37.272 * Starting BGSAVE for SYNC with target: disk
3310:S 16 Mar 11:20:37.279 * Background saving started by pid 6412
6412:C 16 Mar 11:21:24.306 * DB saved on disk
6412:C 16 Mar 11:21:24.307 * RDB: 6374 MB of memory used by copy-on-write
3310:S 16 Mar 11:21:24.415 * Background saving terminated with success
3310:S 16 Mar 11:30:00.668 * Synchronization with slave 10.15.107.143:
succeeded
3310:S 16 Mar 11:30:08.991 # Connection with slave client id #20
<#20> lost.
是不是同步不的数据太大6374 MB?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAsHpdYFnH6G2ojoVlSYURZANsWVH8f_ks5rmLlzgaJpZM4MBjWF>
.
|
--sockfile=FILE [--filesize=SIZE,这2个参数吗?具体怎么设值,能贴下吗? |
大神们好! ,在迁移过程中出现了一个错误 如下:
猜测可能是某个key的的value太大导致的
目前有个list 类型的key value 大约有几千万条 - - ...
我该如何解决这个问题呢?
The text was updated successfully, but these errors were encountered: