Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed_count: ability to spawn a specific number of users (as opposed to just using weights) #1964

Merged
merged 4 commits into from
Jan 21, 2022

Commits on Jan 19, 2022

  1. Added the ability to specify the exact number of users

    for spawning of each class with <fixed_count> class field.
    Fixed users spawn first. The weight parameter for them is ignored.
    Also added unit-tests for cases with fixed users.
    EzR1d3r committed Jan 19, 2022
    Configuration menu
    Copy the full SHA
    0848b81 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2022

  1. Changing the approach to calculation Ratio per User class and Total r…

    …atio,
    
    now it is considered based on the real number of users.
    On the Task tab (web ui) the data is updated every 1 second, so it is possible
    to see the actual ratio changing.
    For command-line arguments --show-task-ratio, --show-task-ratio-json,
    the behavior is also changed - the ratio pre-calculation based on passed num_users.
    If there is no fixed_count users and num_users argument is None,
    the old behaviour occurs.
    EzR1d3r committed Jan 20, 2022
    Configuration menu
    Copy the full SHA
    6eeb5b8 View commit details
    Browse the repository at this point in the history
  2. Changing realization of the fixed users spawning.

    Because in case then UserDispatcher._users_on_workers
    is not fills instantly (see UserDispatcher._distribute_users)
    we cant to monitore actual count of each user.
    Also added some additional tests, includes to check this behaviour.
    EzR1d3r committed Jan 20, 2022
    Configuration menu
    Copy the full SHA
    84d6f96 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5b4c673 View commit details
    Browse the repository at this point in the history