Skip to content
Snippets Groups Projects
Commit 18016210 authored by Julien Leduc's avatar Julien Leduc
Browse files

Performing 100 rm in parallel for rados, this should not be painful as those...

Performing 100 rm in parallel for rados, this should not be painful as those synchronous rm are mostly waiting
parent bdacae77
Branches
Tags
No related merge requests found
......@@ -29,7 +29,7 @@ if [ "$KEEP_OBJECTSTORE" == "0" ]; then
else
if [[ $(rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE ls | wc -l) -gt 0 ]]; then
echo "Rados objectstore ${OBJECTSTOREURL} is not empty: deleting content"
rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE ls | xargs -itoto rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE rm toto
rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE ls | xargs -itoto -P 100 rados -p $OBJECTSTOREPOOL --id $OBJECTSTOREID --namespace $OBJECTSTORENAMESPACE rm toto
fi
cta-objectstore-initialize $OBJECTSTOREURL
echo "Rados objectstore ${OBJECTSTOREURL} content:"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment