Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dfaast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Santhosh Kumar
dfaast
Commits
e2f5823d
Commit
e2f5823d
authored
May 03, 2024
by
Santhosh Kumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
7aed7ce7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
18 deletions
+22
-18
README.md
README.md
+22
-18
No files found.
README.md
View file @
e2f5823d
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment