This repo holds our group project for the SENG 468 Day Trading App
The easiest way to run our application is via docker-compose. In the root directory of our project run the following
docker-compose up --build -dVerfiy all services up and healthy by running
docker ps -aOnce all the services are up and running navigate to the cli_app directory. In that directory follow the instructions on the README file.
You will need latest docker version 23.0.3 or later and minikube version v1.29.0 or later.
All commands done from top level folder
Build Images
docker compose buildrun ./start_k8s.sh to initalize/start cluster
wait for a little while so services can start, and then portforward backend service so cli_app can access it
kubectl port-forward service/backend 8000:8000 -n seng-trade-app test workflow
./cli_app/app < ./cli_app/workflows/user10.txt play around; change auto scale for w/e deployments
kubectl autoscale deployment/backend-deploy --min=1 --max=3
minikube start --nodes=2 //or more? extra nodesTo test fault tolerance run chaos_test.sh
This will take down a pod every 30s by default