The default limit for concurrent deployment jobs is two. Any deployment job request
for a batch deployment that already has two running jobs is placed in a queue for execution later.
You can change this limit if required.
About this task
Prerequisites:You must be a Kubernetes admin to change the default limit of concurrent
deployment job runs.
To change the default limit of concurrent deployment job runs:
Procedure
- Run this command to put the Watson
Machine Learning operator in maintenance mode:
oc patch
wmlbase wml-cr --type merge --patch '{"spec": {"ignoreForMaintenance": true}}'
- Update the
wmlruntimemanager configmap value:
- Run the following command:
oc project
<control_plane>.
- Take backup of the existing
wmlruntimemanager configmap:oc
get cm wmlruntimemanager -o yaml > wmlruntimemanager_org.yaml
- Update the number of parallel jobs from
2 to a larger
value:oc get cm wmlruntimemanager -o yaml | sed -e 's|private = 2|private = <new limit>|'
> wmlruntimemanager_new.yaml
- Apply the updated configmap:
oc apply -f
wmlruntimemanager_new.yaml
- Restart the
wml-deployment-manager pod and then wait for
wml-deployment-manager to be operational again: oc delete pod -l
app=wml-deployment-manager
- Run this command to put the operator back in the normal operation mode:
oc patch
wmlbase wml-cr --type merge --patch '{"spec": {"ignoreForMaintenance":
false}}'