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
9989f8ac
Commit
9989f8ac
authored
3 years ago
by
Sören Henning
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into benchmark-smoke-tests
parents
97b06358
944d47f4
No related branches found
No related tags found
1 merge request
!232
Add smoke tests for benchmark
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+26
-5
26 additions, 5 deletions
.gitlab-ci.yml
buildimages/docker-compose-jq/Dockerfile
+6
-0
6 additions, 0 deletions
buildimages/docker-compose-jq/Dockerfile
docs/creating-a-benchmark.md
+6
-8
6 additions, 8 deletions
docs/creating-a-benchmark.md
with
38 additions
and
13 deletions
.gitlab-ci.yml
+
26
−
5
View file @
9989f8ac
...
@@ -34,10 +34,16 @@ default:
...
@@ -34,10 +34,16 @@ default:
script
:
script
:
-
mkdir -p /kaniko/.docker
-
mkdir -p /kaniko/.docker
-
echo "{\"auths\":{\"${CR_HOST}\":{\"auth\":\"$(printf "%s:%s" "${CR_USER}" "${CR_PW}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
-
echo "{\"auths\":{\"${CR_HOST}\":{\"auth\":\"$(printf "%s:%s" "${CR_USER}" "${CR_PW}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
-
DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//')
-
>
-
"
[
!
$CI_COMMIT_TAG
]
&&
KANIKO_D=
\"
$KANIKO_D
-d
$CR_HOST/$CR_ORG/$IMAGE_NAME:${DOCKER_TAG_NAME}latest
\"
"
if [ $IMAGE_TAG ]; then
-
"
[
!
$CI_COMMIT_TAG
]
&&
KANIKO_D=
\"
$KANIKO_D
-d
$CR_HOST/$CR_ORG/$IMAGE_NAME:$DOCKER_TAG_NAME$CI_COMMIT_SHORT_SHA
\"
"
KANIKO_D="$KANIKO_D -d $CR_HOST/$CR_ORG/$IMAGE_NAME:$CI_COMMIT_TAG"
-
"
[
$CI_COMMIT_TAG
]
&&
KANIKO_D=
\"
$KANIKO_D
-d
$CR_HOST/$CR_ORG/$IMAGE_NAME:$CI_COMMIT_TAG
\"
"
elif [ $CI_COMMIT_TAG ]; then
KANIKO_D="$KANIKO_D -d $CR_HOST/$CR_ORG/$IMAGE_NAME:$IMAGE_TAG"
else
DOCKER_TAG_NAME=$(echo $CI_COMMIT_REF_SLUG- | sed 's/^master-$//')
KANIKO_D="$KANIKO_D -d $CR_HOST/$CR_ORG/$IMAGE_NAME:${DOCKER_TAG_NAME}latest"
KANIKO_D="$KANIKO_D -d $CR_HOST/$CR_ORG/$IMAGE_NAME:$DOCKER_TAG_NAME$CI_COMMIT_SHORT_SHA"
fi
-
"
[
$DOCKERFILE
]
&&
KANIKO_DOCKERFILE=
\"
--dockerfile
$DOCKERFILE
\"
"
-
"
[
$DOCKERFILE
]
&&
KANIKO_DOCKERFILE=
\"
--dockerfile
$DOCKERFILE
\"
"
-
/kaniko/executor --context `pwd`/$CONTEXT $KANIKO_DOCKERFILE $KANIKO_D
-
/kaniko/executor --context `pwd`/$CONTEXT $KANIKO_DOCKERFILE $KANIKO_D
-
echo "PUBLISHED_IMAGE_TAG=${CI_COMMIT_TAG-$CI_COMMIT_SHORT_SHA}" >> build.env
-
echo "PUBLISHED_IMAGE_TAG=${CI_COMMIT_TAG-$CI_COMMIT_SHORT_SHA}" >> build.env
...
@@ -609,4 +615,19 @@ deploy-random-scheduler:
...
@@ -609,4 +615,19 @@ deploy-random-scheduler:
-
if
:
"
$CR_HOST
&&
$CR_ORG
&&
$CR_USER
&&
$CR_PW"
-
if
:
"
$CR_HOST
&&
$CR_ORG
&&
$CR_USER
&&
$CR_PW"
when
:
manual
when
:
manual
allow_failure
:
true
allow_failure
:
true
\ No newline at end of file
deploy-buildimage-docker-compose-jq
:
stage
:
deploy
extends
:
-
.kaniko-push
needs
:
[]
variables
:
DOCKER_VERSION
:
20.10.12
IMAGE_TAG
:
$DOCKER_VERSION
rules
:
-
changes
:
-
buildimages/docker-compose-jq/Dockerfile
if
:
"
$CR_HOST
&&
$CR_ORG
&&
$CR_USER
&&
$CR_PW"
-
if
:
"
$CR_HOST
&&
$CR_ORG
&&
$CR_USER
&&
$CR_PW
&&
$CI_PIPELINE_SOURCE
==
'web'"
when
:
manual
allow_failure
:
true
This diff is collapsed.
Click to expand it.
buildimages/docker-compose-jq/Dockerfile
0 → 100644
+
6
−
0
View file @
9989f8ac
FROM
docker:${DOCKER_VERSION:-latest}
RUN
apk update
&&
\
apk add jq
&&
\
apk add py-pip python3-dev libffi-dev openssl-dev gcc libc-dev rust cargo make
&&
\
pip
install
docker-compose
This diff is collapsed.
Click to expand it.
docs/creating-a-benchmark.md
+
6
−
8
View file @
9989f8ac
...
@@ -115,15 +115,13 @@ If a benchmark is [executed by an Execution](running-benchmarks), these patchers
...
@@ -115,15 +115,13 @@ If a benchmark is [executed by an Execution](running-benchmarks), these patchers
## Kafka Configuration
## Kafka Configuration
Theodolite allows to automatically create and remove Kafka topics for each SLO experiment.
Theodolite allows to automatically create and remove Kafka topics for each SLO experiment
by setting a
`kafkaConfig`
.
Use the
`removeOnly: True`
property for topics which are created automatically by the SUT
.
It
`bootstrapServer`
needs to point your Kafka cluster and
`topics`
configures the list of Kafka topics to be created/removed
.
For
those
topic
s
,
also wildcards are allowed in the topic name
.
For
each
topic,
you configure its name, the number of partitions and the replication factor
.
If no Kafka topics should be created, simply set:
With the
`removeOnly: True`
property, you can also instruct Theodolite to only remove topics and not create them.
This is useful when benchmarking SUTs, which create topics on their own (e.g., Kafka Streams and Samza applications).
```
yaml
For those topics, also wildcards are allowed in the topic name and, of course, no partition count or replication factor must be provided.
kafkaConfig
:
[]
```
<!-- Further information: API Reference -->
<!-- Further information: API Reference -->
...
...
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