nrk/predis — Issue #54: predis cluster problem when migrate server
Author: googleguy
Created: 2012-01-08 10:49:29+00:00
State: open

Hi, basically I have a redis cluster setup. For example:

$conn = array(
'0' => array('host' => localhost, 'port' => 6379),
'1' => array('host' => localhost, 'port' => 6378),
'2' => array('host' => localhost, 'port' => 6377),
);

I'm moving one of the node to a bigger server with a different IP. So i moved the data using redis replication, so in this example it would be 10.0.0.1 will be slaveof localhost. And the new config once replication completes becomes:

$conn = array(
'0' => array('host' => '10.0.0.1', 'port' => 6379),
'1' => array('host' => localhost, 'port' => 6378),
'2' => array('host' => localhost, 'port' => 6377),
);

However, the problem now is that predis doesn't seems to get the data it got previously from 10.0.0.1, but instead from other server. It seems like the whole cluster distribution got changed.

Any idea?