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
bb51cad7
Commit
bb51cad7
authored
4 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Simplify deletion of ZooKeeper state
parent
86b66cb1
No related branches found
No related tags found
1 merge request
!38
Simplify deletion of Workload Generator's ZooKeeper state
Pipeline
#972
passed with warnings
4 years ago
Stage: build
Stage: test
Stage: check
Changes
4
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
execution/run_uc1.sh
+3
-18
3 additions, 18 deletions
execution/run_uc1.sh
execution/run_uc2.sh
+3
-18
3 additions, 18 deletions
execution/run_uc2.sh
execution/run_uc3.sh
+3
-18
3 additions, 18 deletions
execution/run_uc3.sh
execution/run_uc4.sh
+3
-18
3 additions, 18 deletions
execution/run_uc4.sh
with
12 additions
and
72 deletions
execution/run_uc1.sh
+
3
−
18
View file @
bb51cad7
...
@@ -90,25 +90,10 @@ echo "Finish topic deletion, print topics:"
...
@@ -90,25 +90,10 @@ echo "Finish topic deletion, print topics:"
echo
"Delete ZooKeeper configurations used for workload generation"
echo
"Delete ZooKeeper configurations used for workload generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
echo
"Waiting for deletion"
echo
"Waiting for deletion"
while
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 get /workload-generation"
while
[
true
]
do
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}'
)
echo
"Wait for ZooKeeper state deletion."
found
=
0
sleep
5s
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
done
echo
"Deletion finished"
echo
"Deletion finished"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc2.sh
+
3
−
18
View file @
bb51cad7
...
@@ -89,25 +89,10 @@ echo "Finish topic deletion, print topics:"
...
@@ -89,25 +89,10 @@ echo "Finish topic deletion, print topics:"
echo
"Delete ZooKeeper configurations used for workload generation"
echo
"Delete ZooKeeper configurations used for workload generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
echo
"Waiting for deletion"
echo
"Waiting for deletion"
while
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 get /workload-generation"
while
[
true
]
do
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}'
)
echo
"Wait for ZooKeeper state deletion."
found
=
0
sleep
5s
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
done
echo
"Deletion finished"
echo
"Deletion finished"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc3.sh
+
3
−
18
View file @
bb51cad7
...
@@ -91,25 +91,10 @@ echo "Finish topic deletion, print topics:"
...
@@ -91,25 +91,10 @@ echo "Finish topic deletion, print topics:"
echo
"Delete ZooKeeper configurations used for workload generation"
echo
"Delete ZooKeeper configurations used for workload generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
echo
"Waiting for deletion"
echo
"Waiting for deletion"
while
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 get /workload-generation"
while
[
true
]
do
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}'
)
echo
"Wait for ZooKeeper state deletion."
found
=
0
sleep
5s
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
done
echo
"Deletion finished"
echo
"Deletion finished"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc4.sh
+
3
−
18
View file @
bb51cad7
...
@@ -90,25 +90,10 @@ echo "Finish topic deletion, print topics:"
...
@@ -90,25 +90,10 @@ echo "Finish topic deletion, print topics:"
echo
"Delete ZooKeeper configurations used for workload generation"
echo
"Delete ZooKeeper configurations used for workload generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 deleteall /workload-generation"
echo
"Waiting for deletion"
echo
"Waiting for deletion"
while
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 get /workload-generation"
while
[
true
]
do
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}'
)
echo
"Wait for ZooKeeper state deletion."
found
=
0
sleep
5s
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
done
echo
"Deletion finished"
echo
"Deletion finished"
...
...
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