This file contains hidden or 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
| --- a/streamer/src/nonblocking/quic.rs | |
| +++ b/streamer/src/nonblocking/quic.rs | |
| @@ -76,10 +76,10 @@ | |
| /// Total new connection counts per second. Heuristically taken from | |
| /// the default staked and unstaked connection limits. Might be adjusted | |
| /// later. | |
| -const TOTAL_CONNECTIONS_PER_SECOND: f64 = 2500.0; | |
| +const TOTAL_CONNECTIONS_PER_SECOND: f64 = 25000.0; | |
| /// Max burst of connections above sustained rate to pass through |
This file contains hidden or 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
| #!/usr/bin/fish | |
| # Update this to what you need | |
| set repos /home/$USER/repo1 /home/$USER/repo2 | |
| for repo in $repos | |
| cd $repo | |
| git fetch upstream |
This file contains hidden or 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
| --- a/turbine/src/cluster_nodes.rs | |
| +++ b/turbine/src/cluster_nodes.rs | |
| @@ -444,6 +444,24 @@ fn get_nodes( | |
| Node { node, stake } | |
| }), | |
| ) | |
| + // Add a bunch of fake, unstaked nodes for testing. | |
| + .chain((0..5000).map(|i: u16| { | |
| + let addr_byte1 = (i / 256).min(255) as u8; | |
| + |
This file contains hidden or 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
| echo "This script should be run as root" | |
| DELAY_MS=100 | |
| DELAY_DISTRIBUTION=50 | |
| LOSS_PERCENT=2 | |
| CLI="ip netns exec client" | |
| SRV="ip netns exec server" | |
| echo "Cleanup, ignore errors if this is first run" | |
| ip netns del client | |
| ip netns del server |