Skip to content

Commit

Permalink
Experimental work around occasional E2E test failures
Browse files Browse the repository at this point in the history
Perhaps due to etcd failing due to mismatch between the CPU limits and the
apparent available CPUs according to GOMAXPROCS

See golang/go#33803
  • Loading branch information
wallrj committed Jan 3, 2020
1 parent e4e50d6 commit 3ac6e35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions controllers/etcdpeer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ func defineReplicaSet(peer etcdv1alpha1.EtcdPeer, log logr.Logger) appsv1.Replic
Name: etcdenvvar.DataDir,
Value: etcdDataMountPath,
},
// GOMAXPROCS defaults to the number of CPUs on the Kubelet host
// which may be much higher than the requests and limits defined for the pod,
// See https://github.com/golang/go/issues/33803
{
Name: "GOMAXPROCS",
Value: "1",
},
},
Ports: []corev1.ContainerPort{
{
Expand Down

0 comments on commit 3ac6e35

Please sign in to comment.