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

chore: add memoryRequest for plugins sidecars #1020

Merged
merged 5 commits into from
Aug 16, 2021
Merged

Conversation

vitaliy-guliy
Copy link
Contributor

@vitaliy-guliy vitaliy-guliy commented Aug 5, 2021

Signed-off-by: Vitaliy Gulyy [email protected]

What does this PR do?

Adds memory request in 20 megabytes for the plugin sidecars.

PR with pull-request check for memory and cpu limitations #1022

Screenshot/screencast of this PR

What issues does this PR fix or reference?

eclipse-che/che#16685

How to test this PR?

A plugin registry with memory requests is temporary published to https://vgulyy-plugin-registry.surge.sh/v3/

  1. create any workspace, install recommended plugins
  2. stop the workspace, go to devfile on the dashboard
  3. add registry URL to all the plugins to load them from temporary plugin registry
registryUrl: 'https://vgulyy-plugin-registry.surge.sh/v3'
  1. start workspace, check how plugin works

Tested on:

  • local minikube
  • workspaces.openshift.com
  • openshift 4.7 cluster on RHPDS

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

@openshift-ci
Copy link

openshift-ci bot commented Aug 5, 2021

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@vitaliy-guliy vitaliy-guliy marked this pull request as ready for review August 7, 2021 20:01
@vitaliy-guliy
Copy link
Contributor Author

/test all

@vitaliy-guliy vitaliy-guliy changed the title chore: add memory request for the plugins chore: add memory request for plugins Aug 7, 2021
@vitaliy-guliy vitaliy-guliy changed the title chore: add memory request for plugins chore: add memoryRequest for plugins sidecars Aug 8, 2021
@svor svor requested a review from ibuziuk August 9, 2021 11:40
@svor
Copy link
Contributor

svor commented Aug 11, 2021

@vitaliy-guliy one question, I see che-machine-exec and remote-runtime-injector have memoryRequest: 32Mi, shouldn't we use the same value for sidecars or you think 20Mi is enough?

@vitaliy-guliy
Copy link
Contributor Author

@vitaliy-guliy one question, I see che-machine-exec and remote-runtime-injector have memoryRequest: 32Mi, shouldn't we use the same value for sidecars or you think 20Mi is enough?

I have tested it with 20Mb and can say, that it works nicely.
memoryRequest is used when initializing the container (as I understand). A process, that running inside the container, can always ask for the required amount of memory when it's needed.

@openshift-ci
Copy link

openshift-ci bot commented Aug 16, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: svor, vitaliy-guliy

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the lgtm label Aug 16, 2021
@svor
Copy link
Contributor

svor commented Aug 16, 2021

/retest

@openshift-ci
Copy link

openshift-ci bot commented Aug 16, 2021

New changes are detected. LGTM label has been removed.

@openshift-ci openshift-ci bot removed the lgtm label Aug 16, 2021
@codecov
Copy link

codecov bot commented Aug 16, 2021

Codecov Report

Merging #1020 (bcd3bea) into main (47b9d43) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1020   +/-   ##
=======================================
  Coverage   94.11%   94.11%           
=======================================
  Files          44       44           
  Lines        1342     1342           
  Branches      197      197           
=======================================
  Hits         1263     1263           
  Misses         79       79           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 47b9d43...bcd3bea. Read the comment docs.

@vitaliy-guliy vitaliy-guliy merged commit 19e28d7 into main Aug 16, 2021
@che-bot che-bot added this to the 7.35 milestone Aug 16, 2021
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.

3 participants