-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
AWS 到腾讯云跨机房同步失败 #255
Comments
相同问题,请教有什么办法解决吗?查看slave的机器,rsync使用内网ip监听,看了master的log,也是往slave的内网ip发送,导致全量同步失败 |
试试看最新 master 分支,merge 了我修复这个问题的代码 |
同样遇到这个问题,master是3.0.4,slave是3.0.6 |
Closed
比这个晚的 issue 472 都已经被 close,现在 close 掉这个 issue。 |
AlexStocks
added a commit
that referenced
this issue
Dec 1, 2023
* add dependences * fix: add_ci (#229) add_ci Co-authored-by: wuxianrong <[email protected]> * formate code style && fix centos build bug * fix centos build bug * format code style * format * rename classname * format code * use cache define * upgrade rediscache version to v0.1.3 * change file name * using DEFER * fix github ci failure * add_string_cache【暂时不修改格式及代码风格,会在最后一个PR统一做修改】 (#237) add_string_cache * add_slave_cache (#243) Co-authored-by: wuxianrong <[email protected]> * fix:cache string (#247) fix_cache_string * add_bitmap_cache (#255) * add_bitmap_cache Co-authored-by: chejinge <[email protected]> * add string cache cmd (#252) add_string_cache_cmd Co-authored-by: wuxianrong <[email protected]> * add list cache cmd (#250) add_list_cache_cmd Co-authored-by: wuxianrong <[email protected]> * cache set command (#256) * set_cache Co-authored-by: chejinge <[email protected]> * add hash cache cmd (#251) add_hash_cache_cmd Co-authored-by: wuxianrong <[email protected]> * cache zset command (#257) * cache zset command Co-authored-by: chejinge <[email protected]> * Update pika_zset.h * add Pika Cache Status (#259) Add Pika-Cache-Status Co-authored-by: wuxianrong <[email protected]> * cache index * git revert * 【fix】cache Asynchronous transmission (#265) fix cache Asynchronous transmission Co-authored-by: wuxianrong <[email protected]> * add defer (#269) add_defer Co-authored-by: wuxianrong <[email protected]> * cache index (#260) * cache index Co-authored-by: chejinge <[email protected]> Co-authored-by: wuxianrong <[email protected]> * Support for multiple databases (#275) * delete_pika_cache_manager * Support for multiple databases --------- Co-authored-by: wuxianrong <[email protected]> * smart pointer and lock granularity && set don't update cache (#277) Co-authored-by: chejinge <[email protected]> * fix_lock (#278) Co-authored-by: wuxianrong <[email protected]> * fix_command_bug (#282) * fix_command_bug Co-authored-by: chejinge <[email protected]> * Fix del mget (#291) fix_del_command&&HMSET HMGET --------- Co-authored-by: chejinge <[email protected]> * bugfix:ttl&&exits command (#300) * fix_ttl_exits --------- Co-authored-by: chejinge <[email protected]> * fix: hash/list/set/zset test (#285) * fix hash/list test * fix set/zset test --------- Co-authored-by: wuxianrong <[email protected]> * fix bitpos strlen msetnx * fix bitpos strlen msetnx * Update pika_kv.cc * Update pika_command.cc * fix: hash/zset test cache (#302) * fix hash/list test Co-authored-by: wuxianrong <[email protected]> * fix Master-slave test * code format (#316) Co-authored-by: wuxianrong <[email protected]> * fix:cache code style * fix:cache code style * fix * Supports multi-DB asynchronous data transfer (#317) * code format * support dbs --------- Co-authored-by: wuxianrong <[email protected]> * fix conflict and change name * fix conflict and change name * fix conflict and change name * Update pika_admin.cc * Update pika_admin.cc * Initialization variable (#321) add_comment Co-authored-by: wuxianrong <[email protected]> * fix_flushdb * fix: Cache flushdb (#322) fix_flushdb Co-authored-by: wuxianrong <[email protected]> * Fix cache mget (#323) * fix_mget * fix_lock_and_multi_caches * fix_mem_leak * fix_mem_leak * fix * add cacheclean command * fix coreedump * Fix:mem leak (#329) fix:hdel Co-authored-by: chejinge <[email protected]> * Update pika_admin.cc * Update pika.conf * Update pika.conf * fix_license * remove nullpter --------- Co-authored-by: chejinge <[email protected]> Co-authored-by: Mixficsol <[email protected]> Co-authored-by: wuxianrong <[email protected]> Co-authored-by: Xin.Zh <[email protected]> Co-authored-by: alexstocks <[email protected]>
AlexStocks
added a commit
that referenced
this issue
Dec 1, 2023
* add dependences * fix: add_ci (#229) add_ci Co-authored-by: wuxianrong <[email protected]> * formate code style && fix centos build bug * fix centos build bug * format code style * format * rename classname * format code * use cache define * upgrade rediscache version to v0.1.3 * change file name * using DEFER * fix github ci failure * add_string_cache【暂时不修改格式及代码风格,会在最后一个PR统一做修改】 (#237) add_string_cache * add_slave_cache (#243) Co-authored-by: wuxianrong <[email protected]> * fix:cache string (#247) fix_cache_string * add_bitmap_cache (#255) * add_bitmap_cache Co-authored-by: chejinge <[email protected]> * add string cache cmd (#252) add_string_cache_cmd Co-authored-by: wuxianrong <[email protected]> * add list cache cmd (#250) add_list_cache_cmd Co-authored-by: wuxianrong <[email protected]> * cache set command (#256) * set_cache Co-authored-by: chejinge <[email protected]> * add hash cache cmd (#251) add_hash_cache_cmd Co-authored-by: wuxianrong <[email protected]> * cache zset command (#257) * cache zset command Co-authored-by: chejinge <[email protected]> * Update pika_zset.h * add Pika Cache Status (#259) Add Pika-Cache-Status Co-authored-by: wuxianrong <[email protected]> * cache index * git revert * 【fix】cache Asynchronous transmission (#265) fix cache Asynchronous transmission Co-authored-by: wuxianrong <[email protected]> * add defer (#269) add_defer Co-authored-by: wuxianrong <[email protected]> * cache index (#260) * cache index Co-authored-by: chejinge <[email protected]> Co-authored-by: wuxianrong <[email protected]> * Support for multiple databases (#275) * delete_pika_cache_manager * Support for multiple databases --------- Co-authored-by: wuxianrong <[email protected]> * smart pointer and lock granularity && set don't update cache (#277) Co-authored-by: chejinge <[email protected]> * fix_lock (#278) Co-authored-by: wuxianrong <[email protected]> * fix_command_bug (#282) * fix_command_bug Co-authored-by: chejinge <[email protected]> * Fix del mget (#291) fix_del_command&&HMSET HMGET --------- Co-authored-by: chejinge <[email protected]> * bugfix:ttl&&exits command (#300) * fix_ttl_exits --------- Co-authored-by: chejinge <[email protected]> * fix: hash/list/set/zset test (#285) * fix hash/list test * fix set/zset test --------- Co-authored-by: wuxianrong <[email protected]> * fix bitpos strlen msetnx * fix bitpos strlen msetnx * Update pika_kv.cc * Update pika_command.cc * fix: hash/zset test cache (#302) * fix hash/list test Co-authored-by: wuxianrong <[email protected]> * fix Master-slave test * code format (#316) Co-authored-by: wuxianrong <[email protected]> * fix:cache code style * fix:cache code style * fix * Supports multi-DB asynchronous data transfer (#317) * code format * support dbs --------- Co-authored-by: wuxianrong <[email protected]> * fix conflict and change name * fix conflict and change name * fix conflict and change name * Update pika_admin.cc * Update pika_admin.cc * Initialization variable (#321) add_comment Co-authored-by: wuxianrong <[email protected]> * fix_flushdb * fix: Cache flushdb (#322) fix_flushdb Co-authored-by: wuxianrong <[email protected]> * Fix cache mget (#323) * fix_mget * fix_lock_and_multi_caches * fix_mem_leak * fix_mem_leak * fix * add cacheclean command * fix coreedump * Fix:mem leak (#329) fix:hdel Co-authored-by: chejinge <[email protected]> * Update pika_admin.cc * Update pika.conf * Update pika.conf * fix_license * remove nullpter --------- Co-authored-by: chejinge <[email protected]> Co-authored-by: Mixficsol <[email protected]> Co-authored-by: wuxianrong <[email protected]> Co-authored-by: Xin.Zh <[email protected]> Co-authored-by: alexstocks <[email protected]>
bigdaronlee163
pushed a commit
to bigdaronlee163/pika
that referenced
this issue
Jun 8, 2024
* add dependences * fix: add_ci (OpenAtomFoundation#229) add_ci Co-authored-by: wuxianrong <[email protected]> * formate code style && fix centos build bug * fix centos build bug * format code style * format * rename classname * format code * use cache define * upgrade rediscache version to v0.1.3 * change file name * using DEFER * fix github ci failure * add_string_cache【暂时不修改格式及代码风格,会在最后一个PR统一做修改】 (OpenAtomFoundation#237) add_string_cache * add_slave_cache (OpenAtomFoundation#243) Co-authored-by: wuxianrong <[email protected]> * fix:cache string (OpenAtomFoundation#247) fix_cache_string * add_bitmap_cache (OpenAtomFoundation#255) * add_bitmap_cache Co-authored-by: chejinge <[email protected]> * add string cache cmd (OpenAtomFoundation#252) add_string_cache_cmd Co-authored-by: wuxianrong <[email protected]> * add list cache cmd (OpenAtomFoundation#250) add_list_cache_cmd Co-authored-by: wuxianrong <[email protected]> * cache set command (OpenAtomFoundation#256) * set_cache Co-authored-by: chejinge <[email protected]> * add hash cache cmd (OpenAtomFoundation#251) add_hash_cache_cmd Co-authored-by: wuxianrong <[email protected]> * cache zset command (OpenAtomFoundation#257) * cache zset command Co-authored-by: chejinge <[email protected]> * Update pika_zset.h * add Pika Cache Status (OpenAtomFoundation#259) Add Pika-Cache-Status Co-authored-by: wuxianrong <[email protected]> * cache index * git revert * 【fix】cache Asynchronous transmission (OpenAtomFoundation#265) fix cache Asynchronous transmission Co-authored-by: wuxianrong <[email protected]> * add defer (OpenAtomFoundation#269) add_defer Co-authored-by: wuxianrong <[email protected]> * cache index (OpenAtomFoundation#260) * cache index Co-authored-by: chejinge <[email protected]> Co-authored-by: wuxianrong <[email protected]> * Support for multiple databases (OpenAtomFoundation#275) * delete_pika_cache_manager * Support for multiple databases --------- Co-authored-by: wuxianrong <[email protected]> * smart pointer and lock granularity && set don't update cache (OpenAtomFoundation#277) Co-authored-by: chejinge <[email protected]> * fix_lock (OpenAtomFoundation#278) Co-authored-by: wuxianrong <[email protected]> * fix_command_bug (OpenAtomFoundation#282) * fix_command_bug Co-authored-by: chejinge <[email protected]> * Fix del mget (OpenAtomFoundation#291) fix_del_command&&HMSET HMGET --------- Co-authored-by: chejinge <[email protected]> * bugfix:ttl&&exits command (OpenAtomFoundation#300) * fix_ttl_exits --------- Co-authored-by: chejinge <[email protected]> * fix: hash/list/set/zset test (OpenAtomFoundation#285) * fix hash/list test * fix set/zset test --------- Co-authored-by: wuxianrong <[email protected]> * fix bitpos strlen msetnx * fix bitpos strlen msetnx * Update pika_kv.cc * Update pika_command.cc * fix: hash/zset test cache (OpenAtomFoundation#302) * fix hash/list test Co-authored-by: wuxianrong <[email protected]> * fix Master-slave test * code format (OpenAtomFoundation#316) Co-authored-by: wuxianrong <[email protected]> * fix:cache code style * fix:cache code style * fix * Supports multi-DB asynchronous data transfer (OpenAtomFoundation#317) * code format * support dbs --------- Co-authored-by: wuxianrong <[email protected]> * fix conflict and change name * fix conflict and change name * fix conflict and change name * Update pika_admin.cc * Update pika_admin.cc * Initialization variable (OpenAtomFoundation#321) add_comment Co-authored-by: wuxianrong <[email protected]> * fix_flushdb * fix: Cache flushdb (OpenAtomFoundation#322) fix_flushdb Co-authored-by: wuxianrong <[email protected]> * Fix cache mget (OpenAtomFoundation#323) * fix_mget * fix_lock_and_multi_caches * fix_mem_leak * fix_mem_leak * fix * add cacheclean command * fix coreedump * Fix:mem leak (OpenAtomFoundation#329) fix:hdel Co-authored-by: chejinge <[email protected]> * Update pika_admin.cc * Update pika.conf * Update pika.conf * fix_license * remove nullpter --------- Co-authored-by: chejinge <[email protected]> Co-authored-by: Mixficsol <[email protected]> Co-authored-by: wuxianrong <[email protected]> Co-authored-by: Xin.Zh <[email protected]> Co-authored-by: alexstocks <[email protected]>
cheniujh
pushed a commit
to cheniujh/pika
that referenced
this issue
Sep 24, 2024
* add dependences * fix: add_ci (OpenAtomFoundation#229) add_ci Co-authored-by: wuxianrong <[email protected]> * formate code style && fix centos build bug * fix centos build bug * format code style * format * rename classname * format code * use cache define * upgrade rediscache version to v0.1.3 * change file name * using DEFER * fix github ci failure * add_string_cache【暂时不修改格式及代码风格,会在最后一个PR统一做修改】 (OpenAtomFoundation#237) add_string_cache * add_slave_cache (OpenAtomFoundation#243) Co-authored-by: wuxianrong <[email protected]> * fix:cache string (OpenAtomFoundation#247) fix_cache_string * add_bitmap_cache (OpenAtomFoundation#255) * add_bitmap_cache Co-authored-by: chejinge <[email protected]> * add string cache cmd (OpenAtomFoundation#252) add_string_cache_cmd Co-authored-by: wuxianrong <[email protected]> * add list cache cmd (OpenAtomFoundation#250) add_list_cache_cmd Co-authored-by: wuxianrong <[email protected]> * cache set command (OpenAtomFoundation#256) * set_cache Co-authored-by: chejinge <[email protected]> * add hash cache cmd (OpenAtomFoundation#251) add_hash_cache_cmd Co-authored-by: wuxianrong <[email protected]> * cache zset command (OpenAtomFoundation#257) * cache zset command Co-authored-by: chejinge <[email protected]> * Update pika_zset.h * add Pika Cache Status (OpenAtomFoundation#259) Add Pika-Cache-Status Co-authored-by: wuxianrong <[email protected]> * cache index * git revert * 【fix】cache Asynchronous transmission (OpenAtomFoundation#265) fix cache Asynchronous transmission Co-authored-by: wuxianrong <[email protected]> * add defer (OpenAtomFoundation#269) add_defer Co-authored-by: wuxianrong <[email protected]> * cache index (OpenAtomFoundation#260) * cache index Co-authored-by: chejinge <[email protected]> Co-authored-by: wuxianrong <[email protected]> * Support for multiple databases (OpenAtomFoundation#275) * delete_pika_cache_manager * Support for multiple databases --------- Co-authored-by: wuxianrong <[email protected]> * smart pointer and lock granularity && set don't update cache (OpenAtomFoundation#277) Co-authored-by: chejinge <[email protected]> * fix_lock (OpenAtomFoundation#278) Co-authored-by: wuxianrong <[email protected]> * fix_command_bug (OpenAtomFoundation#282) * fix_command_bug Co-authored-by: chejinge <[email protected]> * Fix del mget (OpenAtomFoundation#291) fix_del_command&&HMSET HMGET --------- Co-authored-by: chejinge <[email protected]> * bugfix:ttl&&exits command (OpenAtomFoundation#300) * fix_ttl_exits --------- Co-authored-by: chejinge <[email protected]> * fix: hash/list/set/zset test (OpenAtomFoundation#285) * fix hash/list test * fix set/zset test --------- Co-authored-by: wuxianrong <[email protected]> * fix bitpos strlen msetnx * fix bitpos strlen msetnx * Update pika_kv.cc * Update pika_command.cc * fix: hash/zset test cache (OpenAtomFoundation#302) * fix hash/list test Co-authored-by: wuxianrong <[email protected]> * fix Master-slave test * code format (OpenAtomFoundation#316) Co-authored-by: wuxianrong <[email protected]> * fix:cache code style * fix:cache code style * fix * Supports multi-DB asynchronous data transfer (OpenAtomFoundation#317) * code format * support dbs --------- Co-authored-by: wuxianrong <[email protected]> * fix conflict and change name * fix conflict and change name * fix conflict and change name * Update pika_admin.cc * Update pika_admin.cc * Initialization variable (OpenAtomFoundation#321) add_comment Co-authored-by: wuxianrong <[email protected]> * fix_flushdb * fix: Cache flushdb (OpenAtomFoundation#322) fix_flushdb Co-authored-by: wuxianrong <[email protected]> * Fix cache mget (OpenAtomFoundation#323) * fix_mget * fix_lock_and_multi_caches * fix_mem_leak * fix_mem_leak * fix * add cacheclean command * fix coreedump * Fix:mem leak (OpenAtomFoundation#329) fix:hdel Co-authored-by: chejinge <[email protected]> * Update pika_admin.cc * Update pika.conf * Update pika.conf * fix_license * remove nullpter --------- Co-authored-by: chejinge <[email protected]> Co-authored-by: Mixficsol <[email protected]> Co-authored-by: wuxianrong <[email protected]> Co-authored-by: Xin.Zh <[email protected]> Co-authored-by: alexstocks <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AWS 机器网卡情况:
腾讯云机器网卡情况:
两台机器都有外网IP,且安全组允许所有流量互通;
AWS 机器为主,腾讯云机器为从;两台机器均未配置绑定的网卡,看源码应该是监听 0.0.0.0 ;
在 AWS 上 dump 了文件以后,打包传到腾讯云解压,然后用 info 文件里的日志节点信息设置同步;
两台机器 pika 版本均为 2.2.6,同步命令为腾讯云上执行
slaveof aws_remote_ip 9231 145190 4056595
;AWS 机器的 pika info:
腾讯云机器的 pika info:
AWS 机器的 pika 日志文件设置为 300,目前差值还远未达到;
腾讯云机器的日志提示不断重复:
觉得可能是 master 没有正确识别 slave 的外网 IP,因为 info 里看到 slave 信息里是从的内网 IP;
想把从实例绑定到外网 IP,但找了一下,pika 只能绑定网卡,不能绑定 IP,网卡信息上面有,没有办法实现目的;
现在需要怎么实现跨机房,各自有内网地址的同步呢?或者说这个问题有没有什么其他解决办法?
The text was updated successfully, but these errors were encountered: