dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Failed to write provider heartbeat to redis registry. registry: 10.20.13.162:7001, cause: MOVED 6819 10.20.13.162:7000

Open li362692680 opened this issue 8 years ago • 4 comments

使用redis 3.2集群作为注册中心时报 Failed to write provider heartbeat to redis registry. registry: 10.20.13.162:7001, cause: MOVED 6819 10.20.13.162:7000

li362692680 avatar Dec 15 '17 13:12 li362692680

Do you use redis cluster? MOVED 6819 is a typical error on redis cluster, please check if you have proper configuration on your redis cluster.

Also, redis registry based on a really old redis version that do not support cluster, so redis cluster has not been tested yet.

chickenlj avatar Feb 22 '18 02:02 chickenlj

@li362692680 how do you configure redis cluster in your dubbo application?

beiwei30 avatar May 25 '18 03:05 beiwei30

I guess the root cause is your redis cluster is configured as a real redis cluster, but this mode doesn't support in dubbo, that is, replication is not controlled by redis cluster, but controlled by dubbo.

Instead, you should setup your redis nodes as individual instances, and configure like this:

<dubbo:registry address="redis://10.20.153.10:6379?backup=10.20.153.11:6379,10.20.153.12:6379" />

or

<dubbo:registry protocol="redis" address="10.20.153.10:6379,10.20.153.11:6379,10.20.153.12:6379" />

Here's one good article to explain the different redis deployments: https://greatestrabit.github.io/2016/04/17/firstjedis/

beiwei30 avatar May 25 '18 03:05 beiwei30

I think the problem should no longer exist once you setup redis instances as I suggest.

beiwei30 avatar May 25 '18 03:05 beiwei30