Skip to content

Commit

Permalink
Revert "feat(default-memory-limits): set default memory limits " (#4979)
Browse files Browse the repository at this point in the history
Revert "feat(default-memory-limits): set default memory limits  (#4960)"

This reverts commit fddcf9b.

Signed-off-by: zirain <[email protected]>
  • Loading branch information
zirain authored Dec 30, 2024
1 parent fddcf9b commit c6d5a54
Show file tree
Hide file tree
Showing 51 changed files with 0 additions and 520 deletions.
3 changes: 0 additions & 3 deletions api/v1alpha1/envoyproxy_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@ func DefaultShutdownManagerContainerResourceRequirements() *corev1.ResourceRequi
corev1.ResourceCPU: resource.MustParse(DefaultShutdownManagerCPUResourceRequests),
corev1.ResourceMemory: resource.MustParse(DefaultShutdownManagerMemoryResourceRequests),
},
Limits: corev1.ResourceList{
corev1.ResourceMemory: resource.MustParse(DefaultShutdownManagerMemoryResourceLimits),
},
}
}

Expand Down
3 changes: 0 additions & 3 deletions api/v1alpha1/kubernetes_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ func DefaultResourceRequirements() *corev1.ResourceRequirements {
corev1.ResourceCPU: resource.MustParse(DefaultDeploymentCPUResourceRequests),
corev1.ResourceMemory: resource.MustParse(DefaultDeploymentMemoryResourceRequests),
},
Limits: corev1.ResourceList{
corev1.ResourceMemory: resource.MustParse(DefaultDeploymentMemoryResourceLimits),
},
}
}

Expand Down
4 changes: 0 additions & 4 deletions api/v1alpha1/shared_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@ const (
DefaultDeploymentCPUResourceRequests = "100m"
// DefaultDeploymentMemoryResourceRequests for deployment memory resource
DefaultDeploymentMemoryResourceRequests = "512Mi"
// DefaultDeploymentMemoryResourceLimits for deployment memory resource limits
DefaultDeploymentMemoryResourceLimits = "512Mi"
// DefaultEnvoyProxyImage is the default image used by envoyproxy
DefaultEnvoyProxyImage = "docker.io/envoyproxy/envoy:distroless-dev"
// DefaultShutdownManagerCPUResourceRequests for shutdown manager cpu resource
DefaultShutdownManagerCPUResourceRequests = "10m"
// DefaultShutdownManagerMemoryResourceRequests for shutdown manager memory resource
DefaultShutdownManagerMemoryResourceRequests = "32Mi"
// DefaultShutdownManagerMemoryResourceLimits for shutdown manager memory resource limits
DefaultShutdownManagerMemoryResourceLimits = "32Mi"
// DefaultShutdownManagerImage is the default image used for the shutdown manager.
DefaultShutdownManagerImage = "docker.io/envoyproxy/gateway-dev:latest"
// DefaultRateLimitImage is the default image used by ratelimit.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
Expand Down Expand Up @@ -157,8 +155,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,21 +206,6 @@ spec:
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.downstream_connections.v3.DownstreamConnectionsConfig
max_active_downstream_connections: 50000
- name: "envoy.resource_monitors.fixed_heap"
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.fixed_heap.v3.FixedHeapConfig
max_heap_size_bytes: 429496729
actions:
- name: "envoy.overload_actions.shrink_heap"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.95
- name: "envoy.overload_actions.stop_accepting_requests"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.98
- --log-level warn
- --cpuset-threads
- --drain-strategy immediate
Expand Down Expand Up @@ -261,8 +246,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
Expand Down Expand Up @@ -339,8 +322,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,6 @@ spec:
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.downstream_connections.v3.DownstreamConnectionsConfig
max_active_downstream_connections: 50000
- name: "envoy.resource_monitors.fixed_heap"
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.fixed_heap.v3.FixedHeapConfig
max_heap_size_bytes: 429496729
actions:
- name: "envoy.overload_actions.shrink_heap"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.95
- name: "envoy.overload_actions.stop_accepting_requests"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.98
- --log-level warn
- --cpuset-threads
- --drain-strategy immediate
Expand Down Expand Up @@ -231,8 +216,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
Expand Down Expand Up @@ -309,8 +292,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,21 +215,6 @@ spec:
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.downstream_connections.v3.DownstreamConnectionsConfig
max_active_downstream_connections: 50000
- name: "envoy.resource_monitors.fixed_heap"
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.fixed_heap.v3.FixedHeapConfig
max_heap_size_bytes: 429496729
actions:
- name: "envoy.overload_actions.shrink_heap"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.95
- name: "envoy.overload_actions.stop_accepting_requests"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.98
- --log-level warn
- --cpuset-threads
- --drain-strategy immediate
Expand Down Expand Up @@ -270,8 +255,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
Expand Down Expand Up @@ -348,8 +331,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,21 +206,6 @@ spec:
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.downstream_connections.v3.DownstreamConnectionsConfig
max_active_downstream_connections: 50000
- name: "envoy.resource_monitors.fixed_heap"
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.fixed_heap.v3.FixedHeapConfig
max_heap_size_bytes: 429496729
actions:
- name: "envoy.overload_actions.shrink_heap"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.95
- name: "envoy.overload_actions.stop_accepting_requests"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.98
- --log-level warn
- --cpuset-threads
- --drain-strategy immediate
Expand Down Expand Up @@ -261,8 +246,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
Expand Down Expand Up @@ -339,8 +322,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,21 +206,6 @@ spec:
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.downstream_connections.v3.DownstreamConnectionsConfig
max_active_downstream_connections: 50000
- name: "envoy.resource_monitors.fixed_heap"
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.fixed_heap.v3.FixedHeapConfig
max_heap_size_bytes: 429496729
actions:
- name: "envoy.overload_actions.shrink_heap"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.95
- name: "envoy.overload_actions.stop_accepting_requests"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.98
- --log-level warn
- --cpuset-threads
- --drain-strategy immediate
Expand Down Expand Up @@ -261,8 +246,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,21 +211,6 @@ spec:
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.downstream_connections.v3.DownstreamConnectionsConfig
max_active_downstream_connections: 50000
- name: "envoy.resource_monitors.fixed_heap"
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.fixed_heap.v3.FixedHeapConfig
max_heap_size_bytes: 429496729
actions:
- name: "envoy.overload_actions.shrink_heap"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.95
- name: "envoy.overload_actions.stop_accepting_requests"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.98
- --log-level warn
- --cpuset-threads
- --drain-strategy immediate
Expand Down Expand Up @@ -266,8 +251,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
Expand Down Expand Up @@ -344,8 +327,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
Expand Down Expand Up @@ -157,8 +155,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,21 +206,6 @@ spec:
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.downstream_connections.v3.DownstreamConnectionsConfig
max_active_downstream_connections: 50000
- name: "envoy.resource_monitors.fixed_heap"
typed_config:
"@type": type.googleapis.com/envoy.extensions.resource_monitors.fixed_heap.v3.FixedHeapConfig
max_heap_size_bytes: 429496729
actions:
- name: "envoy.overload_actions.shrink_heap"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.95
- name: "envoy.overload_actions.stop_accepting_requests"
triggers:
- name: "envoy.resource_monitors.fixed_heap"
threshold:
value: 0.98
- --log-level warn
- --cpuset-threads
- --drain-strategy immediate
Expand Down Expand Up @@ -263,8 +248,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 512Mi
requests:
cpu: 100m
memory: 512Mi
Expand Down Expand Up @@ -341,8 +324,6 @@ spec:
successThreshold: 1
timeoutSeconds: 1
resources:
limits:
memory: 32Mi
requests:
cpu: 10m
memory: 32Mi
Expand Down
Loading

0 comments on commit c6d5a54

Please sign in to comment.