Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insufficient cpu error when creating complex graphs #47

Closed
Maximophone opened this issue Jan 17, 2018 · 2 comments
Closed

Insufficient cpu error when creating complex graphs #47

Maximophone opened this issue Jan 17, 2018 · 2 comments
Assignees
Labels

Comments

@Maximophone
Copy link
Contributor

Maximophone commented Jan 17, 2018

When applying the seldon deployment below on a GCP cluster, the main pod status stays on pending (the canary works) and shows the following warning:

Warning FailedScheduling No nodes are available that match all of the predicates: Insufficient cpu (5).

The cluster has 5 nodes.

seldon deployment JSON:

{
"apiVersion": "machinelearning.seldon.io/v1alpha1",
"kind": "SeldonDeployment",
"metadata": {
"labels": {
"app": "seldon"
},
"name": "seldon-deployment-example"
},
"spec": {
"annotations": {
"project-name":"FX Market Prediction",
"deployment_version": "v1"
},
"name": "test-deployment-complex",
"oauth_key": "oauth-key",
"oauth_secret": "oauth-secret",
"predictors": [
{
"componentSpec": {
"spec": {
"containers": [
{
"image": "seldonio/mean_classifier:0.6",
"imagePullPolicy": "IfNotPresent",
"name": "mean-classifier-1",
"resources": {
"requests": {
"memory": "1Mi",
"cpu": "0.1"
}
}
},
{
"image": "seldonio/mean_classifier:0.6",
"imagePullPolicy": "IfNotPresent",
"name": "mean-classifier-2",
"resources": {
"requests": {
"memory": "1Mi",
"cpu": "0.1"
}
}
},
{
"image": "seldonio/mean_classifier:0.6",
"imagePullPolicy": "IfNotPresent",
"name": "mean-classifier-3",
"resources": {
"requests": {
"memory": "1Mi",
"cpu": "0.1"
}
}
},
{
"image": "seldonio/mock_outlier_detector:1.0",
"imagePullPolicy": "IfNotPresent",
"name": "outlier-detector",
"resources": {
"requests": {
"memory": "1Mi",
"cpu": "0.1"
}
}
},
{
"image": "seldonio/mock_transformer:1.0",
"imagePullPolicy": "IfNotPresent",
"name": "mean-transformer",
"resources": {
"requests": {
"memory": "1Mi",
"cpu": "0.1"
}
}
}
],
"terminationGracePeriodSeconds": 20
}
},
"name": "fx-market-predictor",
"replicas": 1,
"annotations": {
"predictor_version": "v1"
},
"graph": {
"name": "outlier-detector",
"type": "TRANSFORMER",
"endpoint": {
"type": "REST"
},
"children": [
{
"name": "random-abtest",
"implementation": "RANDOM_ABTEST",
"type": "UNKNOWN_TYPE",
"children": [
{
"name": "mean-transformer",
"type": "TRANSFORMER",
"endpoint": {
"type": "REST"
},
"children": [
{
"name": "mean-classifier-1",
"type": "MODEL",
"endpoint": {
"type": "REST"
}
}
]
},
{
"name": "ensemble",
"type": "UNKNOWN_TYPE",
"implementation": "AVERAGE_COMBINER",
"children": [
{
"name": "mean-classifier-2",
"type": "MODEL",
"endpoint": {
"type": "REST"
}
},
{
"name": "mean-classifier-3",
"type": "MODEL",
"endpoint": {
"type": "REST"
}
}
]
}
]
}
]
}
},
{
"componentSpec": {
"spec": {
"containers": [
{
"image": "seldonio/mean_classifier:0.6",
"imagePullPolicy": "IfNotPresent",
"name": "mean-classifier",
"resources": {
"requests": {
"memory": "1Mi",
"cpu": "0.1"
}
}
},
{
"image": "seldonio/mock_transformer:1.0",
"imagePullPolicy": "IfNotPresent",
"name": "mean-transformer",
"resources": {
"requests": {
"memory": "1Mi",
"cpu": "0.1"
}
}
}
],
"terminationGracePeriodSeconds": 20
}
},
"name": "fx-market-predictor-canary",
"replicas": 1,
"annotations": {
"predictor_version": "v1"
},
"graph": {
"name": "mean-transformer",
"type": "TRANSFORMER",
"endpoint": {
"type": "REST"
},
"children": [
{
"name": "mean-classifier",
"endpoint": {
"type": "REST"
},
"type": "MODEL"
}
]
}
}
]
}
}

@ukclivecox
Copy link
Contributor

We should change the Helm scripts to specify smaller initial CPU requests for the default components.

@ukclivecox
Copy link
Contributor

Close this as the initial problem is fixed by hard wiring resource request to engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants