2023-10-07 05:53:10 +00:00
|
|
|
set -e
|
|
|
|
|
2023-10-07 05:47:54 +00:00
|
|
|
replication=10
|
|
|
|
|
|
|
|
echo "Deploying..."
|
|
|
|
cd ../../Tools/CodexNetDeployer
|
2023-10-07 06:04:11 +00:00
|
|
|
for i in $( seq 0 $replication)
|
2023-10-07 05:47:54 +00:00
|
|
|
do
|
|
|
|
dotnet run \
|
|
|
|
--kube-config=/opt/kubeconfig.yaml \
|
|
|
|
--kube-namespace=codex-continuous-tests-$i \
|
|
|
|
--deploy-file=codex-deployment-$i.json \
|
|
|
|
--nodes=5 \
|
|
|
|
--validators=3 \
|
|
|
|
--log-level=Trace \
|
|
|
|
--storage-quota=2048 \
|
|
|
|
--storage-sell=1024 \
|
|
|
|
--min-price=1024 \
|
|
|
|
--max-collateral=1024 \
|
|
|
|
--max-duration=3600000 \
|
|
|
|
--block-ttl=180 \
|
|
|
|
--block-mi=120 \
|
|
|
|
--block-mn=10000 \
|
|
|
|
--metrics=1 \
|
2023-10-07 06:04:11 +00:00
|
|
|
--check-connect=1 \
|
|
|
|
-y
|
2023-10-07 08:29:09 +00:00
|
|
|
|
|
|
|
cp codex-deployment-$i.json ../../Tests/CodexContinuousTests
|
2023-10-07 05:47:54 +00:00
|
|
|
done
|
|
|
|
echo "Starting tests..."
|
2023-10-07 05:53:10 +00:00
|
|
|
cd ../../Tests/CodexContinuousTests
|
2023-10-07 06:04:11 +00:00
|
|
|
for i in $( seq 0 $replication)
|
2023-10-07 05:47:54 +00:00
|
|
|
do
|
|
|
|
screen -d -m dotnet run \
|
|
|
|
--kube-config=/opt/kubeconfig.yaml \
|
|
|
|
--codex-deployment=codex-deployment-$i.json \
|
2023-10-07 05:49:55 +00:00
|
|
|
--log-path=logs-$i \
|
|
|
|
--data-path=data-$i \
|
2023-10-07 05:47:54 +00:00
|
|
|
--keep=1 \
|
|
|
|
--stop=1 \
|
|
|
|
--target-duration=172800 # 48 hours
|
|
|
|
done
|