liquor_cabinet: preload jemalloc into the Rainbows workers #704
No Reviewers
Labels
Clear labels
monitoring
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
Infrastructure metrics, alerts, notifications, etc.
service
discourse
Kosmos Community Forums
service
accounts
Kosmos Accounts
service
drone-ci
Kosmos Drone CI
service
email
mail.kosmos.org
service
garage
S3-compatible object storage
service
gitea
Kosmos Gitea
service
ipfs
Kosmos IPFS
service
lightning
Lightning address, lndhub, etc.
service
mastodon
kosmos.social
service
nostr
Relays, Blossom server, etc.
service
postgres
Database cluster
service
remotestorage
Portable data storage for the Web
service
wiki
Kosmos Wiki
service
xmpp
Kosmos Chat
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
All your base are belong to us
User interface, process design, etc.
This won't be fixed
release
major
release
minor
release
patch
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/chef#704
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Preloads jemalloc (
libjemalloc2) into the Rainbows master and workers viaLD_PRELOADonliquor-cabinet.service, so the long-lived workers stop retaining and fragmenting heap the way glibc malloc does.Also fixes a latent issue:
systemd_unitonly reloads the daemon and never restarts a running unit, so an env-only change would not have taken effect until the next deploy or reboot. The service now subscribes to the unit and restarts whenever it changes.Deployed to
lq-1andlq-2and verified:LD_PRELOADpresent, jemalloc mapped into both workers, still 2 workers, service active,storage.kosmos.orgreturning 401. Cold-start ΣPSS is 50 MB (down from ~250 MB on 10-day-old glibc workers); re-measuring after 24 h to confirm it stays flat.Cookbook version 0.3.0 → 0.4.0. Includes a routine
nodessubmodule update.