patch-operator icon indicating copy to clipboard operation
patch-operator copied to clipboard

Increase Memory Limit to 1Gi

Open X-dark opened this issue 3 years ago • 4 comments

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

X-dark avatar Jul 29 '22 12:07 X-dark

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

raffaelespazzoli avatar Jul 29 '22 13:07 raffaelespazzoli

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.

X-dark avatar Jul 29 '22 13:07 X-dark

source objects also count, do you have any?

On Fri, Jul 29, 2022 at 9:17 AM Cedric Girard @.***> wrote:

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.

— Reply to this email directly, view it on GitHub https://github.com/redhat-cop/patch-operator/pull/40#issuecomment-1199275416, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPERXDDXE2YQTDSWQ4YXLDVWPKXHANCNFSM55ATSE5Q . You are receiving this because you commented.Message ID: @.***>

-- ciao/bye Raffaele

raffaelespazzoli avatar Jul 29 '22 13:07 raffaelespazzoli

No, none

X-dark avatar Jul 29 '22 13:07 X-dark