Skip to content

Commit

Permalink
Merge branch 'rashmi/global-ext' of https://github.com/Azure/promethe…
Browse files Browse the repository at this point in the history
…us-collector into rashmi/global-ext
  • Loading branch information
rashmichandrashekar committed Nov 8, 2024
2 parents 5885636 + a0c0833 commit d443dd5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/docs/HPA.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,14 @@ You could also edit the min and max replicas by doing a **kubectl edit** and upd
kubectl edit hpa ama-metrics-hpa -n kube-system
```

### Update min and max shards to disable HPA scaling
HPA should be able to handle the load automatically for varying customer needs. But, it it doesnt fit the needs you can set min shards = max shards so that HPA doesnt scale the replicas based on the varying loads.

Ex - If the customer wants to set the shards to 8 and not have the HPA update the shards, update the min and max shards to 8.

**Update Min and Max replicas**
```bash
kubectl patch hpa ama-metrics-hpa -n kube-system --type merge --patch '{"spec": {"minReplicas": 8, "maxReplicas": 8}}'
```


0 comments on commit d443dd5

Please sign in to comment.