summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorTim Beale <timbeale@catalyst.net.nz>2018-11-27 13:50:32 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-12-04 12:22:50 +0100
commit5517d60653b0aa25a354c3a35cbfb2aa89afb41a (patch)
tree8c6c73ac13abfa03a33a8221e22b71c6479ec44a /third_party
parent13f57a7f80ea49830509e16b6fb8776962eba74f (diff)
downloadsamba-5517d60653b0aa25a354c3a35cbfb2aa89afb41a.tar.gz
traffic_replay: Add a max-members option to cap group size
traffic_replay tries to distribute the users among the groups in a realistic manner - some groups will have almost all users in them. However, this becomes a problem when testing a really large database, e.g. we may want 100K users, but no more than 5K users in each group. This patch adds a max-member option so we can limit how big the groups actually get. If we detect that a group exceeds the max-members, we reset the group's probability (of getting selected) to zero, and then recalculate the cumulative distribution. The means that the group should no longer get selected by generate_random_membership(). (Note we can't completely remove the group from the list because that changes the list-index-to-group-ID mapping). Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Dec 4 12:22:50 CET 2018 on sn-devel-144
Diffstat (limited to 'third_party')
0 files changed, 0 insertions, 0 deletions