Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
8ceb7cfa
Commit
8ceb7cfa
authored
4 years ago
by
Simon Ehrenstein
Browse files
Options
Downloads
Patches
Plain Diff
Make zookeeper reset block until succeeded
parent
256f302f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!6
Add Distributed Workload Generator
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
execution/run_uc1-new.sh
+20
-1
20 additions, 1 deletion
execution/run_uc1-new.sh
execution/run_uc2-new.sh
+20
-1
20 additions, 1 deletion
execution/run_uc2-new.sh
execution/run_uc3-new.sh
+20
-1
20 additions, 1 deletion
execution/run_uc3-new.sh
execution/run_uc4-new.sh
+20
-1
20 additions, 1 deletion
execution/run_uc4-new.sh
with
80 additions
and
4 deletions
execution/run_uc1-new.sh
+
20
−
1
View file @
8ceb7cfa
...
...
@@ -83,7 +83,26 @@ echo "Finish topic deletion, print topics:"
echo
"Delete ZooKeeper configurations used for workload generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
echo
"Waiting for deletion"
sleep
5s
while
[
true
]
do
IFS
=
', '
read
-r
-a
array
<<<
$(
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 ls /"
|
tail
-n
1 |
awk
-F
[
\]\[
]
'{print $2}'
)
found
=
0
for
element
in
"
${
array
[@]
}
"
do
if
[
"
$element
"
==
"workload-generation"
]
;
then
found
=
1
break
fi
done
if
[
$found
-ne
1
]
;
then
echo
"ZooKeeper reset was successful."
break
else
echo
"ZooKeeper reset was not successful. Retrying in 5s."
sleep
5s
fi
done
echo
"Deletion finished"
echo
"Exiting script"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc2-new.sh
+
20
−
1
View file @
8ceb7cfa
...
...
@@ -76,7 +76,26 @@ echo "Finish topic deletion, print topics:"
echo
"Delete ZooKeeper configurations used for workload generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
echo
"Waiting for deletion"
sleep
5s
while
[
true
]
do
IFS
=
', '
read
-r
-a
array
<<<
$(
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 ls /"
|
tail
-n
1 |
awk
-F
[
\]\[
]
'{print $2}'
)
found
=
0
for
element
in
"
${
array
[@]
}
"
do
if
[
"
$element
"
==
"workload-generation"
]
;
then
found
=
1
break
fi
done
if
[
$found
-ne
1
]
;
then
echo
"ZooKeeper reset was successful."
break
else
echo
"ZooKeeper reset was not successful. Retrying in 5s."
sleep
5s
fi
done
echo
"Deletion finished"
echo
"Exiting script"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc3-new.sh
+
20
−
1
View file @
8ceb7cfa
...
...
@@ -84,7 +84,26 @@ echo "Finish topic deletion, print topics:"
echo
"Delete ZooKeeper configurations used for workload generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
echo
"Waiting for deletion"
sleep
5s
while
[
true
]
do
IFS
=
', '
read
-r
-a
array
<<<
$(
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 ls /"
|
tail
-n
1 |
awk
-F
[
\]\[
]
'{print $2}'
)
found
=
0
for
element
in
"
${
array
[@]
}
"
do
if
[
"
$element
"
==
"workload-generation"
]
;
then
found
=
1
break
fi
done
if
[
$found
-ne
1
]
;
then
echo
"ZooKeeper reset was successful."
break
else
echo
"ZooKeeper reset was not successful. Retrying in 5s."
sleep
5s
fi
done
echo
"Deletion finished"
echo
"Exiting script"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc4-new.sh
+
20
−
1
View file @
8ceb7cfa
...
...
@@ -79,7 +79,26 @@ echo "Finish topic deletion, print topics:"
echo
"Delete ZooKeeper configurations used for workload generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
echo
"Waiting for deletion"
sleep
5s
while
[
true
]
do
IFS
=
', '
read
-r
-a
array
<<<
$(
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 ls /"
|
tail
-n
1 |
awk
-F
[
\]\[
]
'{print $2}'
)
found
=
0
for
element
in
"
${
array
[@]
}
"
do
if
[
"
$element
"
==
"workload-generation"
]
;
then
found
=
1
break
fi
done
if
[
$found
-ne
1
]
;
then
echo
"ZooKeeper reset was successful."
break
else
echo
"ZooKeeper reset was not successful. Retrying in 5s."
sleep
5s
fi
done
echo
"Deletion finished"
echo
"Exiting script"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment