Commit e2f5823d authored by Santhosh Kumar's avatar Santhosh Kumar

Update README.md

parent 7aed7ce7
...@@ -17,24 +17,28 @@ Usage ...@@ -17,24 +17,28 @@ Usage
To reproduce and test the FaaS implementation, follow these steps: 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. On both the files, run
1. Docker-install.sh
bash 2. setup.sh
3. setup2.sh
cd examples/example2 4. setup3.sh
docker build -t example2 . On master node initialize Kubernetes cluster by running
1. setup-master.sh
Deploy Container: Deploy the Docker container containing Example2 function to the Kubernetes cluster. On worker node, join the node to master/cluster with the instructions generated in above step.
bash Once the setup is done, confirm that the nodes are all up by running
bash kubectl get nodes
kubectl apply -f deployment.yaml
Then run faas platform using the below command
Setup Scaling: Use the provided setup script to configure autoscaling for the Example2 function. python faas.py
It would show an interactive menu. Follow the below sequence to reproduce the metrics.
bash 1. Build example2
2. Deploy example2
./setup_scaling.sh 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. 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