Implement shard allocation settings

Change-Id: Id521d0b6efe7c6be215fa9c457b56752189bef9a