Backward compatibilty for master/slave consistency sharding
In a previous commit I changed the code so if you use sharding and master/slave architecture jedis would distriibute keys in the same way in masters and slaves keeping consistency. In our case We had a lot of data already loaded and to use the new version as is We would have needed to reshard all the keys. We came up with a middle solution adding a "shard name" to the sharded jedis (JedisShardInfo) and when it is set in a particular way it would result in the same sharding logic as in previous versions of jedis, allowing us to keep keys as they are now and obteining slave consistency with masters. I have to tweak some minor issues to validate that no two shards have the same name and other validations. Xetorthio: Do you think it's a pullable feature?
Sure! I just closed that pull request and I am now waiting for a new one with only the needed changes as the previous one had lots of unrelated changes that made the merge really hard to follow.
Thanks!
fair enogh
2011/5/11 xetorthio < [email protected]>
Sure! I just closed that pull request and I am now waiting for a new one with only the needed changes as the previous one had lots of unrelated changes that made the merge really hard to follow.
Thanks!
Reply to this email directly or view it on GitHub: https://github.com/xetorthio/jedis/issues/126#comment_1144327