Skip to content

Conversation

X-dark
Copy link

@X-dark X-dark commented Jul 29, 2022

On a big cluster, with several patches, I get an average memory usage of
800Mi. With a limit at 500Mi, the manager get OOMKilled.

On a big cluster, with several patches, I get an average memory usage of
800Mi. With a limit at 500Mi, the manager get OOMKilled.
@raffaelespazzoli
Copy link
Collaborator

please use this to configure the resources needed by your deployment:
https://github.com/operator-framework/operator-lifecycle-manager/blob/master/doc/design/subscription-config.md#resources
also please read this to help mitigate the memory resource consumption issue
https://github.com/redhat-cop/patch-operator#patch-controller-performance-considerations

@X-dark
Copy link
Author

X-dark commented Jul 29, 2022

I have only 9 patches which all targets different resources (except one):

{
  "apiVersion": "config.openshift.io/v1",
  "kind": "OAuth",
  "name": "cluster"
}
{
  "apiVersion": "config.openshift.io/v1",
  "kind": "ClusterVersion",
  "name": "version"
}
{
  "apiVersion": "config.openshift.io/v1",
  "kind": "APIServer",
  "name": "cluster"
}
{
  "apiVersion": "pipelines.openshift.io/v1alpha1",
  "kind": "GitopsService",
  "name": "cluster"
}
{
  "apiVersion": "imageregistry.operator.openshift.io/v1",
  "kind": "Config",
  "name": "cluster"
}
{
  "apiVersion": "operator.openshift.io/v1",
  "kind": "IngressController",
  "name": "default",
  "namespace": "openshift-ingress-operator"
}
{
  "apiVersion": "operator.openshift.io/v1",
  "kind": "IngressController",
  "name": "default",
  "namespace": "openshift-ingress-operator"
}
{
  "apiVersion": "machineconfiguration.openshift.io/v1",
  "kind": "MachineConfigPool",
  "name": "worker"
}
{
  "apiVersion": "image.openshift.io/v1",
  "kind": "ImageStreamTag",
  "namespace": "openshift"
}

The only one that target a lot of resources is the last one targeting 511 objects.

@raffaelespazzoli
Copy link
Collaborator

raffaelespazzoli commented Jul 29, 2022 via email

@X-dark
Copy link
Author

X-dark commented Jul 29, 2022

No, none

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

Successfully merging this pull request may close these issues.

2 participants