Spring Data Redis
  1. Spring Data Redis
  2. DATAREDIS-71

upgrade jedis to 2.0.0 and support redis.clients.jedis.ShardedJedisPool for sharding

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0.M3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      currenttly JedisConnectionFactory doesn't support sharding actually,sharding need a list of JedisShardInfo not a single JedisShardInfo.

      add:
      public void setShards(List<JedisShardInfo> shards);
      public void setHashingAlgo(Hashing hashingAlgo);

      jedisPool = new ShardedJedisPool(poolConfig,shards,hashingAlgo);
      jedis = new ShardedJedis(shards,hashingAlgo);

      remove:
      public void setShardInfo(JedisShardInfo shardInfo);

        Activity

        Show
        zhouyanming added a comment - FYI: https://github.com/xetorthio/jedis/issues/152
        Hide
        Leon Li added a comment -

        Hi Costin,

        May I know when will the issue be implemented?
        And will the spring 3.1 annotation abstraction API supports the Jedis sharing tag? If so, how? can u please list some examples? Thx.

        Regards,

        Leon

        Show
        Leon Li added a comment - Hi Costin, May I know when will the issue be implemented? And will the spring 3.1 annotation abstraction API supports the Jedis sharing tag? If so, how? can u please list some examples? Thx. Regards, Leon
        Hide
        Costin Leau added a comment -

        Unfortunately only one client/driver supports sharding which by itself is a work in-progress (as it ties into clustering). That's why we haven't started working on it and why we don't have an ETA.

        P.S. Ideally, sharding should really happen inside redis - there's no reason why not doing it plus it would be more transparent and fast then if it's done on the client side.

        Show
        Costin Leau added a comment - Unfortunately only one client/driver supports sharding which by itself is a work in-progress (as it ties into clustering). That's why we haven't started working on it and why we don't have an ETA. P.S. Ideally, sharding should really happen inside redis - there's no reason why not doing it plus it would be more transparent and fast then if it's done on the client side.
        Hide
        Adrian Hass added a comment -

        I second that, since it is where redis is going (and also similarly mongos as well):
        http://redis.io/topics/partitioning
        and Twemproxy seems good enough to do the job...

        Show
        Adrian Hass added a comment - I second that, since it is where redis is going (and also similarly mongos as well): http://redis.io/topics/partitioning and Twemproxy seems good enough to do the job...

          People

          • Assignee:
            Thomas Darimont
            Reporter:
            zhouyanming
          • Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated: