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

[WIP] re-implement Gaggle removing compile-time feature #509

Closed
wants to merge 13 commits into from
457 changes: 10 additions & 447 deletions src/config.rs

Large diffs are not rendered by default.

550 changes: 476 additions & 74 deletions src/controller.rs

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions src/gaggle/common.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
pub struct GaggleEcho {
_sequence: u32,
_acknowledge: Option<u32>,
}

/// Commands sent to/from Works and Managers to control a Gaggle.
pub enum GaggleCommand {
ManagerShuttingDown,
Shutdown,
WorkerShuttingDown,
/// Notification that a Worker is standing by and ready to start the load test.
WorkerIsReady,
}

pub enum GagglePhase {
WaitingForWorkers,
}

pub enum GaggleCommands {
Control(GaggleCommand),
Echo(GaggleEcho),
// Not Gaggle-specific
//Error(GooseErrorMetrics),
//Request(GooseRequestMetrics),
//Scenario(ScenarioMetrics),
//Transaction(TransactionMetrics),
}

/// Constant defining Goose's default port when running a Gaggle.
pub(crate) const DEFAULT_GAGGLE_PORT: &str = "5115";

/// Constant defining Goose's default manager_host when running a Gaggle.
pub(crate) const DEFAULT_GAGGLE_HOST: &str = "127.0.0.1";
410 changes: 410 additions & 0 deletions src/gaggle/manager.rs

Large diffs are not rendered by default.

536 changes: 536 additions & 0 deletions src/gaggle/worker.rs

Large diffs are not rendered by default.

Loading