Optimize resource allocation
You can override the default resource requirements for specific watsonx Orchestrate components by applying a patch to the watsonx Orchestrate custom resource. This customization is useful for reducing cluster footprint in constrained environments.
By default, watsonx Orchestrate deploys workloads with predefined CPU and memory allocations.
Use the following oc-cli patch command to configure the
sizeMapping specification in the WatsonxOrchestrate custom
resource to optimize resource requests and limits for selected components.
Note: Apply this patch after the watsonx Orchestrate instance is created.
oc patch wo wo \
-n cpd-instance-1 \
--type=merge \
-p '{
"spec":{
"sizeMapping":{
"skill-server":{
"replicas":1,
"resources":{
"requests":{
"cpu":"200m",
"memory":"1Gi"
},
"limits":{
"cpu":"2",
"memory":"4Gi"
}
}
},
"tools-runtime-manager":{
"resources":{
"requests":{
"cpu":"200m",
"memory":"1Gi"
},
"limits":{
"cpu":"1",
"memory":"3Gi"
}
}
},
"archer-server":{
"resources":{
"requests":{
"cpu":"500m",
"memory":"3Gi"
},
"limits":{
"cpu":"1.5",
"memory":"5Gi"
}
}
},
"builder-ui":{
"resources":{
"requests":{
"cpu":"200m"
}
}
},
"conversation_controller_mapper":{
"resources":{
"requests":{
"cpu":"500m",
"memory":"500Mi"
},
"limits":{
"cpu":"1",
"memory":"2Gi"
}
}
},
"socket_handler":{
"resources":{
"requests":{
"cpu":"500m"
},
"limits":{
"cpu":"1"
}
}
},
"voice-controller":{
"resources":{
"requests":{
"cpu":"200m"
},
"limits":{
"cpu":"1",
"memory":"2Gi"
}
}
},
"wxo-connections":{
"resources":{
"requests":{
"cpu":"200m"
}
}
},
"wxo-connections-ui":{
"resources":{
"requests":{
"cpu":"200m"
}
}
},
"ai-gateway":{
"resources":{
"requests":{
"cpu":"300m"
}
}
},
"platform-ui":{
"resources":{
"requests":{
"cpu":"200m"
}
}
},
"postgres":{
"resources":{
"requests":{
"cpu":"200m"
}
}
}
}
}
}'