Skip to content
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

集群模式下无法获取地址 #839

Open
tianyangyang427 opened this issue Jul 10, 2024 · 4 comments
Open

集群模式下无法获取地址 #839

tianyangyang427 opened this issue Jul 10, 2024 · 4 comments
Labels
type: question Further information is requested

Comments

@tianyangyang427
Copy link

问题描述(Issue Description)

集群模式下无法获取地址

Please provide a brief description of the issue you encountered.

环境信息(Environment)

  • RedisShake 版本(RedisShake Version):4.1.1
  • Redis 源端版本(Redis Source Version):5.0.5
  • Redis 目的端版本(Redis Destination Version):5.0.5
  • Redis 部署方式(standalone/cluster/sentinel):cluster

###配置文件

[sync_reader]
cluster = true
address = "192.168.10.102:7701"
password ="123"
tls = false
sync_rdb = true
sync_aof = true
prefer_replica = true
try_diskless = true

[redis_writer]
cluster = true
address = "192.168.11.102:7702"
password ="123"
tls = false

[advanced]
dir = "/data/cmcc/redis-shake/account-shake"
ncpu = 1
pprof_port = 19410
status_port = 19420
#log config
log_file = "shake.log"
log_level = "info"
log_interval = 5

rdb_restore_command_behavior = "rewrite"
pipeline_count_limit = 1024
target_redis_client_max_querybuf_len = 1024_000_000
target_redis_proto_max_bulk_len = 512_000_000

日志信息(Logs)

image

@tianyangyang427 tianyangyang427 added the type: question Further information is requested label Jul 10, 2024
@suxb201
Copy link
Member

suxb201 commented Jul 10, 2024

prefer_replica = true
改成 false 试试

@ntuwang
Copy link
Contributor

ntuwang commented Jul 11, 2024

prefer_replica = true 改成 false 试试

如果设置prefer_replica为false的话就不能从从节点同步数据了

@qq649814002
Copy link

我也遇到这个问题,你是怎么解决的?

@suxb201
Copy link
Member

suxb201 commented Aug 22, 2024

@qq649814002 发一下完整的集群信息看看。通过 cluster nodes all 命令

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants