https://github.com/tgaff/k8s-puma-experiment
learning about k8s and scaling
https://github.com/tgaff/k8s-puma-experiment
Last synced: 16 days ago
JSON representation
learning about k8s and scaling
- Host: GitHub
- URL: https://github.com/tgaff/k8s-puma-experiment
- Owner: tgaff
- Created: 2023-11-06T07:19:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T06:49:13.000Z (over 2 years ago)
- Last Synced: 2023-12-19T10:18:27.093Z (over 2 years ago)
- Language: Ruby
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# general run
```sh
kubectl apply -f puma-deployment.yaml
kubectl expose deployment puma --port 8000 --target-port=9292 --name puma --type=LoadBalancer
curl http://localhost:8000/
```
To harass the server:
```
while true; do curl http://localhost:8000 &>/dev/null ; done
```
To get stats:
```
curl "http://localhost:9293/stats?token=12345" | jsonpp
```