SQL pods fail to start
Db2
Data Management Console
runsql pods fail to start after you restart the pods.
Resolving the problem
To resolve the problem, complete the following steps:
- Check the status of the
runsqlpod. Run the following command:oc get pods -n ${PROJECT_CPD_INST_OPERANDS} | grep -i dmc | grep -i runsql - If the
runsqlpod is not running, then use one of the following workarounds:Workaround 1
Add more resources to therunsqlpod. Run the following command:oc patch -n ${PROJECT_CPD_INST_OPERANDS} dmc/data-management-console --type=merge --patch '{"spec":{"custom_resources":{"runsql": {"limits":{"cpu": "400m", "memory": "768Mi", "ephemeral-storage": "275Mi"}, "requests":{"cpu": "300m", "memory": "656Mi", "ephemeral-storage": "25Mi"} }}}}'Workaround 2
Change thescaleConfigfrom small to medium. Run the following command:oc patch dmc data-management-console \ --namespace ${PROJECT_CPD_INST_OPERANDS} \ --patch '{"spec":{"scaleConfig":"medium"}}' \ --type=merge - Wait for all the pods to restart and check the status of the
dmcinstance in the console.