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

Making kamel CLI 90% faster on remote clusters #940

Merged
merged 4 commits into from
Sep 18, 2019

Conversation

nicolaferraro
Copy link
Member

@nicolaferraro nicolaferraro commented Sep 18, 2019

Fix #792

Latest released version:

[nferraro@localhost camel-k]$ time kamel-1.0.0-M1 run examples/routes.groovy
integration "routes" created

real    0m16.353s
user    0m0.794s
sys     0m0.068s

With this change:

[nferraro@localhost camel-k]$ time kamel run examples/routes.groovy
integration "routes" created

real    0m1.898s
user    0m0.508s
sys     0m0.036s

I.e. from 16 seconds to just ~ 2 seconds.

This is fast because it does not initialize all kubernetes custom resources available in the cluster (~50 on a standard OpenShift installation) but focuses on the 5 resource groups that our CLI needs.

Only drawback is that we should remember to sync the set of allowed API groups (you get a unknown-resource error in case you use a new group from the CLI client).

Release Note

Improved kamel CLI experience with remote clusters (90% faster)

@astefanutti
Copy link
Member

Very useful when doing demos at conferences with bad wifi and clusters thousand kilometers away 😉.

@astefanutti astefanutti merged commit cd6cf55 into apache:master Sep 18, 2019
@nicolaferraro
Copy link
Member Author

Very useful when doing demos at conferences with bad wifi and clusters thousand kilometers away .

You can call it "Conference Driven Development" 😆

@nicolaferraro nicolaferraro added the kind/feature New feature or request label Sep 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI too slow on remote clusters
3 participants