Alternatively, the following script can be used to generate DB pressure:
#!/bin/bash
for i in {1..5000}
do
ovn-nbctl ls-add sw$i
if [[ $? -ne 0 ]] ; then
echo "Failed on ls-add i: $i"
exit 1
fi
for j in {1..2000}
do echo "Iteration i: $i and j:$j" ovn-nbctl lsp-add sw$i sw$i$j
if [[ $? -ne 0 ]] ; then echo "Failed on lsp-add i: $i and j: $j" exit 1
fi
done
done
for i in {1..5000}
do
echo "Delete iteration i: $i"
ovn-nbctl ls-del sw$i
if [[ $? -ne 0 ]] ; then
echo "Failed on ls-del i: $i"
exit 1
fi
done
Alternatively, the following script can be used to generate DB pressure:
#!/bin/bash
echo "Iteration i: $i and j:$j"
ovn-nbctl lsp-add sw$i sw$i$j
echo "Failed on lsp-add i: $i and j: $j"
exit 1
for i in {1..5000}
do
ovn-nbctl ls-add sw$i
if [[ $? -ne 0 ]] ; then
echo "Failed on ls-add i: $i"
exit 1
fi
for j in {1..2000}
do
if [[ $? -ne 0 ]] ; then
fi
done
done
for i in {1..5000}
do
echo "Delete iteration i: $i"
ovn-nbctl ls-del sw$i
if [[ $? -ne 0 ]] ; then
echo "Failed on ls-del i: $i"
exit 1
fi
done