Deploy Knative service:
kubectl apply -f app.yaml
Use fortio
fortio load -t 1m -c 20 -qps 3 https://scale.demo.knative.tech/v1/prime/9876543
In other terminal window
For best results run this from different network (cloud VM?)
watch kubectl get pods -n demo -l serving.knative.dev/service=scale
Knative provides containerConcurrency
which is the maximum number of concurrent requests being handled by a single instance of container. The default value is 0, which means that the system decides.
spec:
containerConcurrency: 1
To delete the demo app, enter the following commands:
kubectl delete -f app.yaml