-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module type="WEB_MODULE" version="4"> | ||
<component name="NewModuleRootManager" inherit-compiler-output="true"> | ||
<exclude-output /> | ||
<content url="file://$MODULE_DIR$" /> | ||
<orderEntry type="inheritedJdk" /> | ||
<orderEntry type="sourceFolder" forTests="false" /> | ||
</component> | ||
</module> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: Production support commands | ||
weight: 54 | ||
last_reviewed_on: 2023-11-14 | ||
review_in: 1 year | ||
--- | ||
|
||
# When the DB cpu is 100 %, try restarting the pods first | ||
|
||
## commands restarting the pods, do it one by one | ||
|
||
``` | ||
kubectl rollout restart deployment hmpps-interventions-service-dashboard -n hmpps-interventions-prod | ||
kubectl rollout restart deployment hmpps-interventions-service-api -n hmpps-interventions-prod | ||
kubectl rollout restart deployment hmpps-interventions-ui -n hmpps-interventions-prod | ||
kubectl rollout restart deployment hmpps-interventions-service-performance-report -n hmpps-interventions-prod | ||
``` | ||
|
||
## If the above commands does not bring the db cpu down, trying scaling down and scale support up | ||
|
||
### commands for scaling down | ||
|
||
``` | ||
kubectl scale deployment hmpps-interventions-service-api -n hmpps-interventions-prod --replicas=0 | ||
kubectl scale deployment hmpps-interventions-service-dashboard -n hmpps-interventions-prod --replicas=0 | ||
kubectl scale deployment hmpps-interventions-service-performance-report -n hmpps-interventions-prod --replicas=0 | ||
kubectl scale deployment hmpps-interventions-ui -n hmpps-interventions-prod --replicas=0 | ||
``` | ||
### commands for scaling up | ||
|
||
``` | ||
kubectl scale deployment hmpps-interventions-service-api -n hmpps-interventions-prod --replicas=3 | ||
kubectl scale deployment hmpps-interventions-service-dashboard -n hmpps-interventions-prod --replicas=2 | ||
kubectl scale deployment hmpps-interventions-service-performance-report -n hmpps-interventions-prod --replicas=1 | ||
kubectl scale deployment hmpps-interventions-ui -n hmpps-interventions-prod --replicas=3 | ||
``` |