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

Increase Memory Limit to 1Gi #40

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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