Incorporate batch-timeout variable and do not try select a random peer when no peers exist in the replica.
Incorporate batch-timeout variable and do not try
select a random peer when no peers exist in the replica.

onyx-platform/onyx,tomasu82/onyx,iperdomo/onyx,dignati/onyx,ideal-knee/onyx,KevinGreene/onyx,mccraigmccraig/onyx,intfrr/onyx,Deraen/onyx,vijaykiran/onyx