Offline profiling applications in Kubernetes cluster. Run more measurements and get efficient scaling information.
Will use Python kubernetes client and helm install instead deploy from manually created .yaml files. Hopefully we can use Prometheus offical python libary.
-
Get project
Clone the repo:
$ git clone [email protected]:Tutkovics/benchmarking.git
$ cd benchmarking
Install Python requirements:
$ python3 -m venv env
$ source env/bin/activate # on linux
$ pip3 install -r requirements.txt
Run the profiling:
$ python benchmarking/src/manin.py <config_file.yaml>
-
Requirements
- Has installed Helm.
- Has a kubeconfig file, to target cluster
- Environment
- Kubernetes 1.16 (Minikube: v1.4.0)
- Helm v3.2.0
- benchmark.py
- Was the previous project's main file
- Tasks
- Integrate Kubernetes client
- Integrate Helm client
- Integrate Prometheus client
- Integrate Locust (loadgenerator)