Currently in distribute the range is same as number of subvolumes. We need a way to control this range, that way, we can control the range of hash per subvolume.
Need to have more discussion.. There will be some documentation required after the feature is implemented, and also we should come up with some tests to make sure this feature is working fine. Moving this out of 3.2.0 as this is a feature and is not blocking anything required for 3.2.0 release.
PATCH: http://patches.gluster.com/patch/7710 in master (cluster/distribute: bring in directory-spread-count option)
1)create a 4 brick dht volume ,mount it & create dir1. 2)check getfattr of dir1 on all backend 3)setfattr -n distribute.directory-spread-count -v 2 dir1 now range should be reduced to 2. 4)Create 1000 files on mount pt , these files should be distributed to two bricks but not all four.