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: #21804 update che server config to use .spec.properties.server.properties for cheLogLevel and customCheProperties.CHE_LOGS_APPENDERS_IMPL, as CHE_WORKSPACE_DEFAULT__MEMORY__LIMIT__MB is obsolete #2494

Merged

Conversation

nickboldt
Copy link
Contributor

@nickboldt nickboldt commented Nov 15, 2022

What does this PR do?

chore: #21804 update che server config to use .spec.properties.server.properties for cheLogLevel and customCheProperties.CHE_LOGS_APPENDERS_IMPL, as CHE_WORKSPACE_DEFAULT__MEMORY__LIMIT__MB is obsolete

Signed-off-by: Nick Boldt nboldt@redhat.com

fixes eclipse-che/che#21804

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

eclipse-che/che#21804

How to test this PR?

N/A

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.

@github-actions
Copy link

Click here to review and test in web IDE: Contribute

@github-actions
Copy link

Click here to review and test in web IDE: Contribute

@che-bot che-bot added this to Triage in Reviews Nov 15, 2022
@github-actions
Copy link

github-actions bot commented Nov 15, 2022

🎊 Navigate the preview: https://6373db9f143ca0008d591c9b--eclipse-che-docs-pr.netlify.app 🎊

@nickboldt nickboldt changed the title chore: #21804 update che server config to... chore: #21804 update che server config to use .spec.properties.server.properties for cheLogLevel and customCheProperties.CHE_LOGS_APPENDERS_IMPL, as CHE_WORKSPACE_DEFAULT__MEMORY__LIMIT__MB is obsolete Nov 15, 2022
@nickboldt
Copy link
Contributor Author

hmm. so that didn't work... I was able to change

spec:
  components:
    cheServer:
      logLevel: INFO

to

spec:
  components:
    cheServer:
      logLevel: ERROR

and get less console logging in the devspaces (che-server) pod
but adding

      customCheProperties:
        CHE_LOGS_APPENDERS_IMPL: 'json'

to my CheCluster yaml ... kept being removed by the editor.

So... not sure how to apply this env var.

extraProperties:
pass:[CHE_WORKSPACE_DEFAULT__MEMORY__LIMIT__MB]: "2048"
logLevel: INFO
customCheProperties:
Copy link
Contributor

Choose a reason for hiding this comment

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

I dont know why we need these changes since there is no customCheProperties anymore.
It is all about extraProperties

Copy link
Member

Choose a reason for hiding this comment

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

spec:
  components:
    cheServer:
      extraProperties:
        CHE_LOGS_APPENDERS_IMPL: json

This is the correct setup, basically, the docs should say that this way one can add any env var to the che server pod

Copy link
Contributor Author

@nickboldt nickboldt Nov 15, 2022

Choose a reason for hiding this comment

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

ok, changed. thanks! I assume that's the correct yaml ?

….properties for cheLogLevel and customCheProperties.CHE_LOGS_APPENDERS_IMPL, as CHE_WORKSPACE_DEFAULT__MEMORY__LIMIT__MB is obsolete

Signed-off-by: Nick Boldt <nboldt@redhat.com>

update sample - still need to verify this works

Signed-off-by: Nick Boldt <nboldt@redhat.com>

Update con_understanding-che-server-advanced-configuration.adoc
@nickboldt nickboldt force-pushed the 21804_better_example_customCheProperties_and_cheLogLevel branch from cc52dce to aa9e053 Compare November 15, 2022 18:28
spec:
components:
cheServer:
extraProperties:
pass:[CHE_WORKSPACE_DEFAULT__MEMORY__LIMIT__MB]: "2048"
CHE_LOGS_APPENDERS_IMPL: json
----
Copy link
Contributor

Choose a reason for hiding this comment

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

sounds good

Reviews automation moved this from Triage to Approved Nov 16, 2022
@themr0c themr0c self-assigned this Nov 16, 2022
@che-bot che-bot moved this from Approved to In progress in Reviews Nov 16, 2022
Reviews automation moved this from In progress to Approved Nov 16, 2022
@themr0c themr0c added this to the 7.56 milestone Nov 16, 2022
@themr0c themr0c merged commit b2a1abb into main Nov 16, 2022
Reviews automation moved this from Approved to Done Nov 16, 2022
@themr0c themr0c deleted the 21804_better_example_customCheProperties_and_cheLogLevel branch November 16, 2022 09:19
themr0c pushed a commit that referenced this pull request Nov 16, 2022
….properties for cheLogLevel and customCheProperties.CHE_LOGS_APPENDERS_IMPL, as CHE_WORKSPACE_DEFAULT__MEMORY__LIMIT__MB is obsolete (#2494)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Reviews
  
Done
5 participants