lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anil <anilk...@gmail.com>
Subject Custom shard key
Date Tue, 22 Mar 2016 07:12:25 GMT
HI,

i am using explicit shading by creating custom shard key for my application
using hbase util mumurhash (added snippet below).

int hash = MurmurHash.getInstance().hash(sharekey.getBytes());
hash = Math.abs(hash);
int routingValue = hash % shards;

I noticed only 5 out of 8 shards used and 3 shards are empty.

Please let me know if you see any issues or suggest any new shard key
generation mechanism.

Thanks.

Regards,
Anil

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message