Skip to content

Commit

Permalink
refactor(hydroflow_plus_test): separate Paxos core from benchmark (#1448
Browse files Browse the repository at this point in the history
)
  • Loading branch information
shadaj authored Sep 6, 2024
1 parent a1042bb commit 51a3f55
Show file tree
Hide file tree
Showing 5 changed files with 5,822 additions and 5,320 deletions.
21 changes: 11 additions & 10 deletions hydroflow_plus_test/examples/paxos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ async fn main() {
let i_am_leader_check_timeout = 10; // Sec
let i_am_leader_check_timeout_delay_multiplier = 15;

let (proposers, acceptors, clients, replicas) = hydroflow_plus_test::cluster::paxos::paxos(
&builder,
f,
num_clients_per_node,
median_latency_window_size,
checkpoint_frequency,
i_am_leader_send_timeout,
i_am_leader_check_timeout,
i_am_leader_check_timeout_delay_multiplier,
);
let (proposers, acceptors, clients, replicas) =
hydroflow_plus_test::cluster::paxos_bench::paxos_bench(
&builder,
f,
num_clients_per_node,
median_latency_window_size,
checkpoint_frequency,
i_am_leader_send_timeout,
i_am_leader_check_timeout,
i_am_leader_check_timeout_delay_multiplier,
);

let rustflags = "-C opt-level=3 -C codegen-units=1 -C strip=none -C debuginfo=2 -C lto=off";

Expand Down
1 change: 1 addition & 0 deletions hydroflow_plus_test/src/cluster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ pub mod compute_pi;
pub mod many_to_many;
pub mod map_reduce;
pub mod paxos;
pub mod paxos_bench;
pub mod simple_cluster;
Loading

0 comments on commit 51a3f55

Please sign in to comment.