Commit e2f5823d authored by Santhosh Kumar's avatar Santhosh Kumar

Update README.md

parent 7aed7ce7
......@@ -17,24 +17,28 @@ Usage
To reproduce and test the FaaS implementation, follow these steps:
Build Example2 Image: Navigate to the examples/example2 directory and build the Docker image using the provided Dockerfile.
bash
cd examples/example2
docker build -t example2 .
Deploy Container: Deploy the Docker container containing Example2 function to the Kubernetes cluster.
bash
kubectl apply -f deployment.yaml
Setup Scaling: Use the provided setup script to configure autoscaling for the Example2 function.
bash
./setup_scaling.sh
On both the files, run
1. Docker-install.sh
2. setup.sh
3. setup2.sh
4. setup3.sh
On master node initialize Kubernetes cluster by running
1. setup-master.sh
On worker node, join the node to master/cluster with the instructions generated in above step.
Once the setup is done, confirm that the nodes are all up by running
bash kubectl get nodes
Then run faas platform using the below command
python faas.py
It would show an interactive menu. Follow the below sequence to reproduce the metrics.
1. Build example2
2. Deploy example2
3. Scale example2
4. Expose example2 as ClusterIP
5. Check logs and get metrics as and when required.
Now your function is deployed and ready for experiments.
Test Autoscaling: Use curl commands to trigger CPU and memory-intensive tasks and observe the scaling behavior.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment