Fix busywait on docker-entrypoint script #832
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#832
Loading…
Reference in a new issue
No description provided.
Delete branch "cevado/akkoma:fix-busy-wait-docker-entrypoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rel/vm.args.eex are only applied to releases.
this one adds the flags to disable busywait for BEAM in the default entrypoint of the Dockerfile.
more info on busywait and docker relation can be read here
https://stressgrid.com/blog/beam_cpu_usage/
some other improvements that could be done:
i can open an issue for that if it's something desired.
Thanks, preconfiguring this for Docker like for OTP releases should be good although as done here it will be less convenient to disable if desired.
However, a Docker overhaul is already in the works in #803 letting Docker containers use OTP releases internally
that's the thing, this configuration just makes sense when running on docker or a shared machine. i don't see a reason why someone running that on docker would like a container holding the cpu busy when it's not using it.
I can change it to check a flag for choosing between both ways to start, but particularly i don't think it makes that much sense.
"in the works" meaning "stuck again" bweh
this will do as a stopgap i think