This commit adds util functions related to read affinity and unit testcases for the same. Signed-off-by: Praveen M <m.praveen@ibm.com>