adrienmo / eredis_cluster

eredis_cluster is an erlang wrapper for eredis to support cluster mode of redis 3.0.0+
MIT License
79 stars 83 forks source link

Not Support Amazon ElastiCache Redis in cluster mod. #15

Closed lv12312 closed 6 years ago

lv12312 commented 6 years ago

I use ElasticCache Redis cluster mod.

Config like this

image

{eredis_cluster,
    [
        {init_nodes,[
            {"mycachecluster.eaogs8.0001.usw2.cache.amazonaws.com",6379}
        ]},
        {pool_size, 5},
        {pool_max_overflow, 0}
    ]
}

Some servers can't get value. When I use partition node config, it works very well, like:

{eredis_cluster,
    [
        {init_nodes,[
            {"10.1.1.1",6379},
            {"10.1.1.2",6379},
            {"10.1.1.3",6379}
        ]},
        {pool_size, 5},
        {pool_max_overflow, 0}
    ]
}

What's wrong with this config or bug ? Thanks !

adrienmo commented 6 years ago

Hello @lv12312, I don't have experience with ElasticCache, can you try to run the command:

CLUSTER SLOTS

against this server: mycachecluster.eaogs8.0001.usw2.cache.amazonaws.com and this server: 10.1.1.1

This is the command executed at init phase to retrieve the cluster servers, maybe it can help to debug the situation.

adrienmo commented 6 years ago

I am closing this issue as no more information has been provided