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

Akka-related startup improvements #10905

Merged
merged 4 commits into from
Aug 29, 2024
Merged

Akka-related startup improvements #10905

merged 4 commits into from
Aug 29, 2024

Conversation

hubertp
Copy link
Contributor

@hubertp hubertp commented Aug 27, 2024

Pull Request Description

Realized that Akka Typed and Spray were not used at all yet there were in the list of dependencies.
Additionally, the former would also show up in the list of Akka's library-extensions, initialized on startup.
Hardcoded library-extensions list which previously consisted of
["akka.actor.typed.internal.adapter.ActorSystemAdapter$LoadTypedExtensions","akka.serialization.SerializationExtension$","akka.stream.SystemMaterializer$"]

Important Notes

Screenshot from 2024-08-27 20-43-10
Typed extensions wasn't used at all. Serialization extension also seemed spurious and the system continues to work as before without it.

Realized that Akka Typed and Spray were not used **at all** yet there
were in the list of dependencies.
Additionally, the former would also show up in the list of Akka's
library-extensions, initialized on startup.
Hardcoding a list of library extensions is not recommended but I don't
see any other way of disabling expensive Serialization extension, which
we don't seem to use anyway.
@hubertp hubertp added the CI: No changelog needed Do not require a changelog entry for this PR. label Aug 29, 2024
@hubertp hubertp marked this pull request as ready for review August 29, 2024 09:10
@hubertp hubertp merged commit 1e6e69b into develop Aug 29, 2024
40 of 41 checks passed
@hubertp hubertp deleted the wip/hubert/akka-startup branch August 29, 2024 18:43
hubertp added a commit that referenced this pull request Aug 30, 2024
Recently (#10905) we got rid of 2 unnecessary dependencies. That seemed
to have affected the generated native-image.
hubertp added a commit that referenced this pull request Aug 30, 2024
Recently (#10905) we got rid of 2 unnecessary dependencies. That seemed
to have affected the generated native-image.
hubertp added a commit that referenced this pull request Sep 3, 2024
After #10905 we suddenly got a lot of (useless) logs from akka in
project-manager and language-server. After some investigation it turned
out that akka-typed had a special configuration to enable logging in
akka using slf4j.
As we don't need the whole library for that I only stole the
configuration.
hubertp added a commit that referenced this pull request Sep 4, 2024
* Reduce akka logs in PM and LS

After #10905 we suddenly got a lot of (useless) logs from akka in
project-manager and language-server. After some investigation it turned
out that akka-typed had a special configuration to enable logging in
akka using slf4j.
As we don't need the whole library for that I only stole the
configuration.

* nit

* licensing

* missing license files
jdunkerley pushed a commit that referenced this pull request Sep 9, 2024
* Reduce akka logs in PM and LS

After #10905 we suddenly got a lot of (useless) logs from akka in
project-manager and language-server. After some investigation it turned
out that akka-typed had a special configuration to enable logging in
akka using slf4j.
As we don't need the whole library for that I only stole the
configuration.

* nit

* licensing

* missing license files

(cherry picked from commit 8b30998)
jdunkerley pushed a commit that referenced this pull request Sep 10, 2024
* Reduce akka logs in PM and LS

After #10905 we suddenly got a lot of (useless) logs from akka in
project-manager and language-server. After some investigation it turned
out that akka-typed had a special configuration to enable logging in
akka using slf4j.
As we don't need the whole library for that I only stole the
configuration.

* nit

* licensing

* missing license files

(cherry picked from commit 8b30998)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants