kstyrc / embedded-redis

Redis embedded server for Java integration testing
840 stars 368 forks source link

RedisServerBuilder reset in RedisClusterBuilder #54

Closed dmytroDragan closed 9 years ago

dmytroDragan commented 9 years ago

Hi, buildMaster() and buildSlaves() run serverBuilder.reset() which absolutely clean any config setting form provided RedisServerBuilder and make it useless.

dmytroDragan commented 9 years ago

The simplest use case is enabling cluster mode in redis config.

dmytroDragan commented 9 years ago

As far as I figure out (and continue talking with myself), Redis Cluster and "Redis master slave model (made by slaveof replication) with sentinel" are two different things. So we can not enable cluster mode on second one. Two make a real Redis Cluster, we need "create" n nodes and "start"(configure) it.