1. A method comprising: dividing, by a processing device executing a client of a distributed system, a distribution pattern associated with the distributed system into a plurality of segments based on a quality of distribution for the distributed system, wherein the distribution pattern comprises a plurality of partitions, wherein the distributed system comprises a plurality of buckets, and wherein a bucket of the plurality of buckets is associated with a set of the plurality of partitions; for each partition of the plurality of partitions, calculating, by the processing device, a weight for the partition based on a number of segments in the plurality of segments and a capacity of a bucket associated with the partition; generating, by the processing device, a map of partitions based on the weight for each of the plurality of partitions, wherein the map of partitions comprises a mapping of each segment in the distribution pattern to a partition that comprises the segment; and distributing, by the processing device, a plurality of objects in the distributed system to the plurality of buckets based on the map of partitions.