Skip to content

Commit

Permalink
Merge pull request #72 from vishnuchalla/vchalla
Browse files Browse the repository at this point in the history
Adding queries for quay performance testing and containerizing touchstone for easy installation
  • Loading branch information
vishnuchalla authored Sep 11, 2023
2 parents 481f275 + a5fb8c3 commit 9d38edd
Show file tree
Hide file tree
Showing 5 changed files with 260 additions and 1 deletion.
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM ubuntu

WORKDIR /tmp
ARG DEBIAN_FRONTEND=noninteractive

# Install necessary libraries for subsequent commands
RUN apt-get update && apt-get install -y podman wget git dumb-init python3.6 python3-distutils python3-pip python3-apt

# Install and setup snafu for storing vegeta results into ES
RUN mkdir -p /opt/touchstone/ \
&& git clone https://github.com/cloud-bulldozer/benchmark-comparison \
&& cd benchmark-comparison \
&& cp -R . /opt/touchstone/ \
&& pip3 install --upgrade pip \
&& pip3 install -e /opt/touchstone/

# Cleanup the installation remainings
RUN apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log}/

# Start the command
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
# Keeping this command as sleep infinity for now.
# Can be changed according to the development requirements.
CMD ["sleep", "infinity"]
103 changes: 103 additions & 0 deletions config/clair-vegeta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"elasticsearch": {
"metadata": {
"cpuinfo-metadata": {
"additional_fields": [
"pod_name"
],
"fields": [
"value.Model name",
"value.Architecture",
"value.CPU(s)"
]
},
"meminfo-metadata": {
"additional_fields": [
"pod_name"
],
"fields": [
"value.MemTotal"
]
}
},
"clair-test-index": [
{
"filter": {},
"buckets": [
"targets.keyword"
],
"aggregations": {
"rps": [
"avg"
],
"throughput": [
"avg"
],
"requests": [
"avg"
],
"req_latency": [
"avg"
],
"p95_latency": [
"avg"
],
"p99_latency": [
"avg"
],
"max_latency": [
"avg"
],
"min_latency": [
"avg"
],
"bytes_in": [
"avg"
],
"bytes_out": [
"avg"
],
"status_codes.0": [
"sum"
],
"status_codes.200": [
"sum"
],
"status_codes.201": [
"sum"
],
"status_codes.204": [
"sum"
],
"status_codes.400": [
"sum"
],
"status_codes.401": [
"sum"
],
"status_codes.403": [
"sum"
],
"status_codes.404": [
"sum"
],
"status_codes.408": [
"sum"
],
"status_codes.500": [
"sum"
],
"status_codes.502": [
"sum"
],
"status_codes.503": [
"sum"
],
"status_codes.504": [
"sum"
]
}
}
]
}
}
26 changes: 26 additions & 0 deletions config/quay-push-pull-index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"elasticsearch": {
"quay-push-pull-index": [
{
"filter": {},
"buckets": [
"targets.keyword"
],
"aggregations": {
"elapsed_time": [
"avg",
"max",
"min"
],
"failures": [
"sum"
],
"successes": [
"sum"
]
}
}
]
}
}

104 changes: 104 additions & 0 deletions config/quay-vegeta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"elasticsearch": {
"metadata": {
"cpuinfo-metadata": {
"additional_fields": [
"pod_name"
],
"fields": [
"value.Model name",
"value.Architecture",
"value.CPU(s)"
]
},
"meminfo-metadata": {
"additional_fields": [
"pod_name"
],
"fields": [
"value.MemTotal"
]
}
},
"quay-vegeta-results": [
{
"filter": {},
"buckets": [
"targets.keyword"
],
"aggregations": {
"rps": [
"avg"
],
"throughput": [
"avg"
],
"requests": [
"avg"
],
"req_latency": [
"avg"
],
"p95_latency": [
"avg"
],
"p99_latency": [
"avg"
],
"max_latency": [
"avg"
],
"min_latency": [
"avg"
],
"bytes_in": [
"avg"
],
"bytes_out": [
"avg"
],
"status_codes.0": [
"sum"
],
"status_codes.200": [
"sum"
],
"status_codes.201": [
"sum"
],
"status_codes.204": [
"sum"
],
"status_codes.400": [
"sum"
],
"status_codes.401": [
"sum"
],
"status_codes.403": [
"sum"
],
"status_codes.404": [
"sum"
],
"status_codes.408": [
"sum"
],
"status_codes.500": [
"sum"
],
"status_codes.502": [
"sum"
],
"status_codes.503": [
"sum"
],
"status_codes.504": [
"sum"
]
}
}
]
}
}

2 changes: 1 addition & 1 deletion config/vegeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@
]
}
}
}
}

0 comments on commit 9d38edd

Please sign in to comment.