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
f842a32b
Commit
f842a32b
authored
4 years ago
by
Björn Vonheiden
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'upstream/master' into feature/runUcPython
parents
58352693
bb51cad7
No related branches found
No related tags found
2 merge requests
!42
Integerate theodolite and run uc python scripts
,
!24
run UC as python implementation
Changes
4
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 @
f842a32b
...
...
@@ -111,25 +111,10 @@ 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"
while
[
true
]
while
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 get /workload-generation"
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
echo
"Wait for ZooKeeper state deletion."
sleep
5s
done
echo
"Deletion finished"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc2.sh
+
3
−
18
View file @
f842a32b
...
...
@@ -116,25 +116,10 @@ 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"
while
[
true
]
while
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 get /workload-generation"
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
echo
"Wait for ZooKeeper state deletion."
sleep
5s
done
echo
"Deletion finished"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc3.sh
+
3
−
18
View file @
f842a32b
...
...
@@ -112,25 +112,10 @@ 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"
while
[
true
]
while
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 get /workload-generation"
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
echo
"Wait for ZooKeeper state deletion."
sleep
5s
done
echo
"Deletion finished"
...
...
This diff is collapsed.
Click to expand it.
execution/run_uc4.sh
+
3
−
18
View file @
f842a32b
...
...
@@ -111,25 +111,10 @@ 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"
while
[
true
]
while
kubectl
exec
zookeeper-client
--
bash
-c
"zookeeper-shell my-confluent-cp-zookeeper:2181 get /workload-generation"
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
echo
"Wait for ZooKeeper state deletion."
sleep
5s
done
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