Skip to content

Commit

Permalink
feat: adjust runner users default and comment about impl
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1do committed Jan 10, 2024
1 parent 367b938 commit 35867a6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions runner/src/simulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ pub struct Opts {
#[arg(long, env = "SIMULATE_PEERS_PATH")]
peers: PathBuf,

/// Number of users to simulate
#[arg(long, default_value_t = 100, env = "SIMULATE_USERS")]
/// Number of users to simulate on each node. The total number of users
/// running the test scenario will be this value * N nodes.
///
/// Implmentation details: A user corresponds to a tokio task responsible
/// for making requests. They should have low memory overhead, so you can
/// create many users and then use `throttle_requests` to constrain the overall
/// throughput on the node (specifically the HTTP requests made).
#[arg(long, default_value_t = 4, env = "SIMULATE_USERS")]
users: usize,

/// Duration of the simulation
Expand Down

0 comments on commit 35867a6

Please sign in to comment.