Repository navigation
Replies: 5 comments 3 replies
|
The more I think about it, the more I can agree with this approach. For me personally, it's not a big deal to handle The most confusion I see at customers is about the terms, that one has to build a Keycloak image before it can be started in production. Most people assume with build a Java/Maven build, producing all the bytecode (not only the KC optimizations) and with image something like a container image and don't know why they have to do it, as they want to deploy KC in an old-fashioned way. So, having an automatic build when just using |
|
I think this is the right way to go as we've spent a long time and many iterations trying to make the build/start experience as smooth as possible, but it's just not ever going to get there, so having the build optimisation as an opt-in rather an opt-out experience makes a lot of sense to me. To add to what @pedroigor has written I would also have optimising the build centralised in a single guide (Optimising the server runtime guide or something like that), and not dilute other guides with this concept at all. |
|
For a migration perspective from Keycloak 17 we need to list in the migration guide the change to make everyone aware that an auto-build is now always happening unless "--no-auto-build" is used. Maybe we should also consider keeping "--auto-build" for a little while, but it would print a message saying that it is deprecated/no longer used. |
|
Not sure what is the best name for the option. "--no-auto-build" doesn't seem quite right, I'd rather have something that says "use the optimised build"; --use-build, --optimised-build, --optimised, dunno.. |
|
Any update on this, @pedroigor? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Based on the feedback we have received so far from the community (and really helpful feedback), one of the main problems people are struggling with is whether you should run the
buildcommand before actually running thestartcommand to start the server.This is also related to the confusion around what is a build option and what is a configuration option.
In order to avoid confusion when starting the server, people should just run
startwithout worrying about whether an option is targeted for thebuildor thestartcommand. But just rely on the server to perform an automatic build whenever a build option change.Right now, people should be able to achieve that by running the server using the
--auto-buildoption:But our guides and documentation are using the
buildcommand whenever a build option is being documented (e.g.: database, clustering, etc) instead of just using thestartcommand with the--auto-buildoption. That causes unnecessary confusion if you just want to start the server using any of the options available (no matter if they are build/runtime) and the performance penalty on the start-up is not a problem for you.That said, the proposal here is to:
--auto-buildoption by default when running thestartcommand, similarly to when runningstart-devbut the command is still targeted for production.startcommand when documenting how to use a specific build option--no-auto-buildoption that when used with thestartcommand it is going to skip the auto-build/re-augmentation step completly and just start the server based on any configuration previously set using thebuildcommand.--no-auto-buildoption and using thebuildcommand directly in order to achieve the best startup time and memory footprint.In the end, we consider the optimizations and performance improvements brought by Quarkus and
buildcommand as a second citizen (not in terms of importance) and not as a primary/mandatory concern as we are doing today as well as in favor of a better UX.Please, let us know what you think about this proposal and if it helps to make things easier when configuring/starting the server.
All reactions