Scale akkounts Solid Queue workers and guard unit memory #713
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#713
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.
Sizes the akkounts background workers for the resized 4 GB / 4 vCPU VM, and separates the NIP-46 listener queue from the signing queue so long-blocking listeners cannot starve sign events.
JOB_CONCURRENCY=6scales thedefault,nostrworker group.NOSTR_CONNECT_THREADS=24andNOSTR_RPC_THREADS=4size the separatenostr_connect(long-blocking listeners) andnostr_rpc(signing) pools, matching the queue split added in thefeature/nostr-remote_signingbranch ofkosmos/akkounts.DB_POOL=24keeps the connection pool at least as large as the biggest worker thread count, since each worker thread holds a connection for the duration of its job.MemoryHigh/MemoryMax, and now restarts the service when the unit body changes — the unit carries this configuration, and nothing previously restarted it.The
chef-nodessubmodule bump only refreshesakkounts-2's persisted kernel version after its reboot.