Skip to content

Conversation

@lbarcziova
Copy link
Member

No description provided.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds memory limits to the OpenShift deployments for various agents, which is a good step towards better resource management. My review focuses on enhancing this by following Kubernetes best practices for resource allocation. I've suggested adding CPU limits (which were mentioned in the original TODO) and also setting CPU and memory requests. This will ensure the pods have a higher Quality of Service (QoS) class, are scheduled more reliably, and don't negatively impact other workloads on the same nodes. The specific CPU values in my suggestions are placeholders and should be tuned based on application profiling.

Comment on lines +48 to +50
resources:
limits:
memory: 4Gi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

While setting a memory limit is a good improvement, it's highly recommended to also set CPU limits as well as requests for both CPU and memory. This ensures predictable performance and resource allocation. The TODO that was removed also mentioned CPU limits.

Setting requests is important for Kubernetes to schedule the pod appropriately, and it provides a higher Quality of Service (QoS) class. Setting CPU limits prevents the container from consuming excessive CPU and impacting other applications.

Consider defining the full set of resource constraints. The CPU values here are placeholders and should be adjusted based on profiling.

        resources:
          requests:
            memory: 4Gi
            cpu: "1"
          limits:
            memory: 4Gi
            cpu: "2"

Comment on lines +48 to +50
resources:
limits:
memory: 4Gi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

While setting a memory limit is a good improvement, it's highly recommended to also set CPU limits as well as requests for both CPU and memory. This ensures predictable performance and resource allocation. The TODO that was removed also mentioned CPU limits.

Setting requests is important for Kubernetes to schedule the pod appropriately, and it provides a higher Quality of Service (QoS) class. Setting CPU limits prevents the container from consuming excessive CPU and impacting other applications.

Consider defining the full set of resource constraints. The CPU values here are placeholders and should be adjusted based on profiling.

        resources:
          requests:
            memory: 4Gi
            cpu: "1"
          limits:
            memory: 4Gi
            cpu: "2"

Comment on lines +49 to +51
resources:
limits:
memory: 1Gi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

While setting a memory limit is a good improvement, it's highly recommended to also set CPU limits as well as requests for both CPU and memory. This ensures predictable performance and resource allocation. The TODO that was removed also mentioned CPU limits.

Setting requests is important for Kubernetes to schedule the pod appropriately, and it provides a higher Quality of Service (QoS) class. Setting CPU limits prevents the container from consuming excessive CPU and impacting other applications.

Consider defining the full set of resource constraints. The CPU values here are placeholders and should be adjusted based on profiling.

        resources:
          requests:
            memory: 1Gi
            cpu: "500m"
          limits:
            memory: 1Gi
            cpu: "1"

Comment on lines +49 to +51
resources:
limits:
memory: 1Gi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

While setting a memory limit is a good improvement, it's highly recommended to also set CPU limits as well as requests for both CPU and memory. This ensures predictable performance and resource allocation. The TODO that was removed also mentioned CPU limits.

Setting requests is important for Kubernetes to schedule the pod appropriately, and it provides a higher Quality of Service (QoS) class. Setting CPU limits prevents the container from consuming excessive CPU and impacting other applications.

Consider defining the full set of resource constraints. The CPU values here are placeholders and should be adjusted based on profiling.

        resources:
          requests:
            memory: 1Gi
            cpu: "500m"
          limits:
            memory: 1Gi
            cpu: "1"

Comment on lines +47 to +49
resources:
limits:
memory: 1Gi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

While setting a memory limit is a good improvement, it's highly recommended to also set CPU limits as well as requests for both CPU and memory. This ensures predictable performance and resource allocation. The TODO that was removed also mentioned CPU limits.

Setting requests is important for Kubernetes to schedule the pod appropriately, and it provides a higher Quality of Service (QoS) class. Setting CPU limits prevents the container from consuming excessive CPU and impacting other applications.

Consider defining the full set of resource constraints. The CPU values here are placeholders and should be adjusted based on profiling.

        resources:
          requests:
            memory: 1Gi
            cpu: "500m"
          limits:
            memory: 1Gi
            cpu: "1"

@lbarcziova lbarcziova merged commit c57c681 into packit:main Nov 14, 2025
7 checks passed
@lbarcziova lbarcziova deleted the openshift-limits branch November 14, 2025 09:25
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