-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e9a36b9
commit 7643d72
Showing
14 changed files
with
451 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
use std::num::NonZeroU32; | ||
use std::time::Duration; | ||
|
||
pub const BASELINE_TPS: NonZeroU32 = unsafe { NonZeroU32::new_unchecked(256) }; | ||
pub const BASE_TPS: NonZeroU32 = unsafe { NonZeroU32::new_unchecked(256) }; | ||
pub const BASE_CONCURRENCY: usize = 4; | ||
pub const BASE_INTERVAL: Duration = Duration::from_millis(200); | ||
|
||
pub const MIN_SAMPLE_COUNT: u64 = 256; | ||
pub const ADJUSTABLE_SAMPLE_COUNT: u64 = 5_000; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
mod config; | ||
mod constants; | ||
mod data; | ||
mod metrics; | ||
mod stats; | ||
|
||
pub use config::*; | ||
pub use constants::*; | ||
pub use data::*; | ||
pub use metrics::*; | ||
pub use stats::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// User provided hints for setting autoscaling parameters. | ||
/// | ||
/// Balter attempts to find the optimal values for all parameters, however sometimes the control | ||
/// loops can take a while to stabalize. These are user-provided hints (see [crate::Scenario#method.hint]) | ||
pub enum Hint { | ||
/// Provide the starting concurrency value. Useful for Scenarios with low TPS (which Balter can | ||
/// take a long time to stablize on). | ||
Concurrency(usize), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.