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

Increase speed of performing plugn trigger #86

Merged
merged 4 commits into from
May 15, 2022
Merged

Conversation

josegonzalez
Copy link
Member

@josegonzalez josegonzalez commented May 14, 2022

The trigger command was importing plugin config for every plugin within it's loop. For the Dokku codebase, this caused a 10x decrease in performance due to the number of plugins, making it prohibitively expensive to perform a trigger.

While we can probably still refactor further to drop the command namespacing - which takes up half the entire runtime with a trigger implemented twice - this still provides a significant boost (4x as fast overall for the user-auth trigger).

Additionally, we now ignore SIGURG, which allows using a Golang newer than 1.13. See golang/go#37942 for details.

Finally, I officially switched to go-bindata/go-bindata. The source did not reflect what was previously used to wrap up the files.

We previously used it but didn't have that as the version committed.
…lly in use

This provides a 10x improvement for the Dokku codebase by avoiding unnecessary configuration imports.
The newer version ignores SIGURG, which was introduced in Golang 1.14. This allows us to use a newer version of Golang safely on all platforms. See golang/go#37942 for more details.
@josegonzalez
Copy link
Member Author

This has been confirmed working on arm servers, so I'm going to merge it. Huzzah!

@josegonzalez josegonzalez merged commit edcc7a5 into master May 15, 2022
@josegonzalez josegonzalez deleted the speedup-trigger branch May 15, 2022 19:04
@josegonzalez josegonzalez changed the title Speedup trigger Increase speed of performing plugn trigger May 15, 2022
josegonzalez added a commit that referenced this pull request May 15, 2022
### Changed

- @josegonzalez Increase speed of performing plugn trigger #86
@josegonzalez josegonzalez mentioned this pull request May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant