Skip to content

Commit

Permalink
feat: tune CPU resources
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Oct 7, 2021
1 parent d5259ea commit 3c45487
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha1/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var KeyKillCmd = func(x string) string {
// the standard resources used by the `init`, `sidecar` and built-in step containers.
var standardResources = corev1.ResourceRequirements{
Limits: corev1.ResourceList{
"cpu": resource.MustParse("500m"),
"cpu": resource.MustParse("200m"),
"memory": resource.MustParse("256Mi"),
},
Requests: corev1.ResourceList{
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/step_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestStep_GetPodSpec(t *testing.T) {
{Name: "ARGO_DATAFLOW_POD", ValueFrom: &corev1.EnvVarSource{FieldRef: &corev1.ObjectFieldSelector{FieldPath: "metadata.name"}}},
{Name: "ARGO_DATAFLOW_PIPELINE_NAME", Value: "my-pl"},
{Name: "ARGO_DATAFLOW_REPLICA", Value: fmt.Sprintf("%d", replica)},
{Name: "ARGO_DATAFLOW_STEP", Value: `{"metadata":{"creationTimestamp":null},"spec":{"name":"main","cat":{"resources":{"limits":{"cpu":"500m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"64Mi"}}},"scale":{},"sidecar":{"resources":{}}},"status":{"phase":"","replicas":0,"lastScaledAt":null}}`},
{Name: "ARGO_DATAFLOW_STEP", Value: `{"metadata":{"creationTimestamp":null},"spec":{"name":"main","cat":{"resources":{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"64Mi"}}},"scale":{},"sidecar":{"resources":{}}},"status":{"phase":"","replicas":0,"lastScaledAt":null}}`},
{Name: "ARGO_DATAFLOW_UPDATE_INTERVAL", Value: "1m0s"},
{Name: "GODEBUG"},
}
Expand Down

0 comments on commit 3c45487

Please sign in to comment.