Update dynamic network test with more nodes (#904)
- Check for correct OS params in test-large-network.sh
This commit is contained in:
parent
9783d47fd1
commit
75854cc234
|
@ -16,10 +16,20 @@ export LD_LIBRARY_PATH+=:$PWD
|
||||||
|
|
||||||
export RUST_LOG=multinode=info
|
export RUST_LOG=multinode=info
|
||||||
|
|
||||||
if [[ $(ulimit -n) -le 65000 ]]; then
|
if [[ $(ulimit -n) -lt 65000 ]]; then
|
||||||
echo 'Error: nofiles too small, run "ulimit -n 65000" to continue'
|
echo 'Error: nofiles too small, run "ulimit -n 65000" to continue'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $(sysctl -n net.core.rmem_default) -lt 1610612736 ]]; then
|
||||||
|
echo 'Error: rmem_default too small, run "sysctl -w net.core.rmem_default 1610612736" to continue'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $(sysctl -n net.core.rmem_max) -lt 1610612736 ]]; then
|
||||||
|
echo 'Error: rmem_max too small, run "sysctl -w net.core.rmem_max 1610612736" to continue'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
exec cargo test --release --features=erasure test_multi_node_dynamic_network -- --ignored
|
exec cargo test --release --features=erasure test_multi_node_dynamic_network -- --ignored
|
||||||
|
|
|
@ -523,7 +523,7 @@ fn test_multi_node_dynamic_network() {
|
||||||
Ok(val) => val
|
Ok(val) => val
|
||||||
.parse()
|
.parse()
|
||||||
.expect(&format!("env var {} is not parse-able as usize", key)),
|
.expect(&format!("env var {} is not parse-able as usize", key)),
|
||||||
Err(_) => 60,
|
Err(_) => 200,
|
||||||
};
|
};
|
||||||
|
|
||||||
let purge_key = "SOLANA_DYNAMIC_NODES_PURGE_LAG";
|
let purge_key = "SOLANA_DYNAMIC_NODES_PURGE_LAG";
|
||||||
|
|
Loading…
Reference in New Issue