Skip to content

Better support of resources settings #131

Closed
@sleshchenko

Description

@sleshchenko

Is your feature request related to a problem? Please describe.
Currently, container component has memoryLimit:

schemaVersion: 2.0.0
metadata:
  name: spring-boot-http-booster
components:
  - name: maven-tooling
    container:
      image: registry.redhat.io/codeready-workspaces/stacks-java-rhel8:2.1
      memoryLimit: 768Mi

But according to Che experience memory limit is not enough. It's also makes sense to have memoryRequest, cpuLimit, cpuRequest.
I suppose the same issue is actual for chePlugin component as well.

Describe the solution you'd like
Support request and limit for cpu and memory (selected proposal):

schemaVersion: 2.0.0
metadata:
  name: spring-boot-http-booster
components:
  - name: maven-tooling
    container:
      image: registry.redhat.io/codeready-workspaces/stacks-java-rhel8:2.1
      memoryLimit: 768Mi
      memoryRequest: 256Mi
      cpuLimit: 0.4
      cpuRequest: 0.2

Describe alternatives you've considered
It may make sense to go k8s style format

schemaVersion: 2.0.0
metadata:
  name: spring-boot-http-booster
components:
  - name: maven-tooling
    container:
      image: registry.redhat.io/codeready-workspaces/stacks-java-rhel8:2.1
      resources:
        request:
          memory: 256Mi
          cpu: 0.2
        limit:
          memory: 756Mi
          cpu: 0.4

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

area/apiEnhancement or issue related to the api/devfile specification

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions