Skip to main content

Benchmark application

Run the application

You can run the application in docker compose or native

Local:

Virtualenv

you can activate the virtualenv with the following command:

source bin/activate
# in one window
iperf3 -s
# in another window (make sure to activate the virtualenv)
python client localhost

Docker:

docker-compose up

Run iperf 3 benchmark on kubernetes

There are two files in the folder bandwidth:

  • the server iperf3-server.yaml
  • the client iperf3-client.yaml

Right now i have nodes specified in both deployments. To change the hostname in them:

  • change line 36 in bandwidth/iperf3-server.yaml
  • change line 16 in bandwidth/iperf3-client.yaml

Running benchmark

First open two terminals. In the first deploy the server, and attach is logs. The server have to de deployed before the client by running the following command:

kubectl apply -f bandwidth/iperf3-server.yaml

Then attach the logs

kubectl logs -f -l io.kompose.service=server

In the second terminal, deploy the client by running the following command:

kubectl apply -f bandwidth/iperf3-client.yaml

Now you should see something in the first terminal.

To rerun the benchmark first delete the job, and then create it again. You do this by running:

kubectl delete -f bandwidth/iperf3-client.yaml
kubectl apply -f bandwidth/iperf3-client.yaml

Metadata

Release files for k8-perf-888aaen 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for k8-perf-888aaen 0.2.8
File Size Uploaded
k8-perf-888aaen-0.2.8.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for k8-perf-888aaen 0.2.8
File Interpreter ABI Platform
k8_perf_888aaen-0.2.8-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / k8-perf-888aaen-0.2.8.tar.gz

Download URL k8-perf-888aaen-0.2.8.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6b56f50640c772b987610651c173a66657e77b4062c7f9d27d2eea9d01244931
BLAKE2b-256 checksum
How to use checksums
c0e5a84033b1523c311f7403fa3bf6eddc95d9ecb49b6f77a04360df01f37795
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release files / k8_perf_888aaen-0.2.8-py3-none-any.whl

Download URL k8_perf_888aaen-0.2.8-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
beb25426be862529e31d0bf191d65ec53e878ac648252c5c666befa8bdc11023
BLAKE2b-256 checksum
How to use checksums
b215e3270f654b146acd45bbe334263c6bc60f97a7e10cf938ade14689b635f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files

0.2.7

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page