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

Use properties che.api.{external,internal} if exist. #13774

Closed
wants to merge 1 commit into from
Closed

Use properties che.api.{external,internal} if exist. #13774

wants to merge 1 commit into from

Conversation

monaka
Copy link
Member

@monaka monaka commented Jul 5, 2019

Signed-off-by: Masaki Muranaka [email protected]

What does this PR do?

Uses properties che.api.external instead of che.api. che.api.internal also.

Che-Theia uses the environment variable CHE_API_INTERNAL to avoid authentication issues reduce network traffic on the multi-user envs.
But che-host doesn't care che.api.internal.

What issues does this PR fix or reference?

None.

@che-bot
Copy link
Contributor

che-bot commented Jul 5, 2019

Can one of the admins verify this patch?

1 similar comment
@che-bot
Copy link
Contributor

che-bot commented Jul 5, 2019

Can one of the admins verify this patch?

@musienko-maxim
Copy link
Contributor

Can one of the admins verify this PR?

@l0rd
Copy link
Contributor

l0rd commented Jul 5, 2019

@monaka can you provide more information about what problem you are trying to solve with this PR?

As you should know we are currently limiting the PRs that get merged to master branch to stabilize the code base for the release of 7.0.0 #13637.

@monaka
Copy link
Member Author

monaka commented Jul 6, 2019

@l0rd I noticed when I tracking the another issue on Che-Theia.
And after sending this PR, I rethink this is not the root cause of the issue.

I believe this PR is effective to reduce the workload of Ingress.
So it should be applied to the master. But not urgent. Enough even if after 7.0.0 released.

@monaka monaka added the kind/enhancement A feature request - must adhere to the feature request template. label Jul 6, 2019
@monaka monaka requested review from l0rd, nickboldt and rhopp as code owners July 7, 2019 03:36
@skabashnyuk
Copy link
Contributor

che.api.{external,internal} was used mainly in docker. Especially on mac, there was a no chance to use external URL from inside of containers. I'm not sure the in k8s world right now external, internal urls are different.

@monaka
Copy link
Member Author

monaka commented Jul 8, 2019

@skabashnyuk In strict, it should be decided by metrics. But roughly, always accessing ingress gateway is redundant and will cause heavy load to the ingress. I think it's better to access by internal address if we can get the address with low cost.

@l0rd
Copy link
Contributor

l0rd commented Aug 22, 2019

Removing label do-not-merge/hold. @monaka can you rebase please?

@che-bot che-bot added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Aug 22, 2019
Copy link
Contributor

@amisevsk amisevsk left a comment

Choose a reason for hiding this comment

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

I don't see any documentation about che.api.internal and che.api.external in the current repo; Che will pick up any env vars starting with CHE and convert them to properties, but I don't think we should use properties that don't have defaults (even if null) in che.properties/multiuser.properties.

I do agree that it would be good for Che to use service addresses instead of public-facing routes when possible though.

@monaka monaka added this to the 7.x milestone Aug 28, 2019
@monaka
Copy link
Member Author

monaka commented Aug 28, 2019

@l0rd I rebased this and added the 7.x milestone tag. As it is not critical.

@monaka
Copy link
Member Author

monaka commented Jan 14, 2020

I reject this my myself as this PR will be replaced with the another PR soon.

@monaka monaka closed this Jan 14, 2020
@monaka monaka deleted the pr-respect-che.api.internal-and-che.api.external branch January 14, 2020 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants