forked from Azure-Samples/cosmos-aks-keda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDemo Script
23 lines (14 loc) · 825 Bytes
/
Demo Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## Show all the deployments running in the cluster
kubectl get deployments -A
## scale up the multi-partition order genertor deployment to 100 replicas.
kubectl scale --replicas=100 deployment/multi-partition-order-generator -n cosmosdb-order-processor
## show that the deployment is scaling up
kubectl get deployments -A
## pull the pod id for the scaler
kubectl get pods -n cosmosdb-order-processor --field-selector=status.phase=Running
## pull the logs for the scaler pod
kubectl logs <podname> -n cosmosdb-order-processor
## Switch to Grafana
- SHow the generator deployment pod count going up
- How the no. of processor pods should match up to the Count of Partitions with lag in the scaler logs.
## Move over to cosmosDB to show some of the insights and the cool partitioning Stuff