Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Add benchmark-Script #10

Merged
merged 11 commits into from
Sep 29, 2019
Merged

Add benchmark-Script #10

merged 11 commits into from
Sep 29, 2019

Conversation

l0nax
Copy link
Contributor

@l0nax l0nax commented Sep 27, 2019

Implements a Benchmark-Script to compare the speed of the Application after changes made to the Code.

Closes #9

Add a new Configuration Variable 'REPLACE_REGISTRY_URL'.
This this Variable a User can decide if he want that the the "Target"
Docker Registry Domain (eg. 'quay.io') will be replaced with this own
Domain, or if this Registry Domain will be simply pre-pendeted.

Example:
  Kubelet pulls Image:            'docker.io/library/nginx:latest'
  With 'REPLACE_..' Enabled:      'jfrog.local/library/nginx:latest'
  With 'REPLACE_..' Disabled:     'jfrog.local/docker.io/library/nginx:latest'

This is because we at FABMation are "sorting" the Images from 3rd-Party
Registries (and sign them). So having the possibility to decide if the
original Registry Domain should be replaced or not is a nice Feature.

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
Add a Function that checks if all required Flags are set and in a
Correct Format (eg. bool).

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
Implement the Functionality of the 'REPLACE_REGISTRY_URL' Configuration/
Environment Variable to let the User decide if he wants to pre-pend this
Docker Registry Domain or replace the "old" one.

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
Add the new 'REPLACE_REGISTRY_URL' Configration Environment Variable to
the Kubernetes Deployment.

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
Add a new Helm Value 'docker.replaceRegistryUrl' to use/ configure the
'REPLACE_REGISTRY_URL' Environment Variable.

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
Add in-line Documentation in _values.yaml_ about the the
'docker.replaceRegistryUrl' Value does.

Close #7

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
Fix the wrong usage of a String.
Convert string to Bool and ignoring returing Errors because this is
already checked at the begining of the Application.

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
In the 'benchmark/' Directory is a Script called `benchmark.sh`, this
Script uses _docker_ and bombardier[^1] to "simulate" a K8s-Cluster
on which a hug amount of new Pods/ Containers are getting created.

The `*_body` are containing the Request Body of a "Real-World"
K8s-Cluster.

[^1]: https://github.com/codesenberg/bombardier

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
Add Benchmark Results generated on an Laptop with the following Specs:
- Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz || 2/4 Cores/Threads
- 8 RAM
- Swapping off
- Linux kernel: `4.18.0-25-generic`

 Closes #9

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
@rimusz
Copy link
Contributor

rimusz commented Sep 29, 2019

thanks for this PR as well 👍

@rimusz rimusz merged commit 3c2b15b into jfrog:master Sep 29, 2019
@l0nax l0nax deleted the feature/9_benchmark branch October 15, 2019 15:18
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Benchmark Script
2 participants