Scale akkounts Solid Queue workers and guard unit memory #713

Merged
raucao merged 2 commits from chore/akkounts_workers into master 2026-11-27 13:14:05 +00:00
Owner

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=6 scales the default,nostr worker group.
  • NOSTR_CONNECT_THREADS=24 and NOSTR_RPC_THREADS=4 size the separate nostr_connect (long-blocking listeners) and nostr_rpc (signing) pools, matching the queue split added in the feature/nostr-remote_signing branch of kosmos/akkounts.
  • DB_POOL=24 keeps 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.
  • The unit is capped with MemoryHigh/MemoryMax, and now restarts the service when the unit body changes — the unit carries this configuration, and nothing previously restarted it.

The chef-nodes submodule bump only refreshes akkounts-2's persisted kernel version after its reboot.

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=6` scales the `default,nostr` worker group. - `NOSTR_CONNECT_THREADS=24` and `NOSTR_RPC_THREADS=4` size the separate `nostr_connect` (long-blocking listeners) and `nostr_rpc` (signing) pools, matching the queue split added in the `feature/nostr-remote_signing` branch of `kosmos/akkounts`. - `DB_POOL=24` keeps 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. - The unit is capped with `MemoryHigh`/`MemoryMax`, and now restarts the service when the unit body changes — the unit carries this configuration, and nothing previously restarted it. The `chef-nodes` submodule bump only refreshes `akkounts-2`'s persisted kernel version after its reboot.
raucao added 2 commits 2026-11-27 13:12:02 +00:00
Size the akkounts background workers for the 4 GB / 4 vCPU VM:

* JOB_CONCURRENCY=6 scales the `default,nostr` worker group.
* NOSTR_CONNECT_THREADS=24 and NOSTR_RPC_THREADS=4 size the separate
  nostr_connect (long-blocking listeners) and nostr_rpc (signing) pools.
* DB_POOL=24 keeps the pool >= the largest worker thread count.

Also cap the unit with MemoryHigh/MemoryMax, and restart the service when
the unit body changes since it now carries this configuration.
The akkounts-2 node file gained the 6.8.0-151-generic kernel version after
its reboot during the VM resize.
raucao added the ops
service
accounts
kredits-1
labels 2026-11-27 13:14:00 +00:00
raucao merged commit 4c780808db into master 2026-11-27 13:14:05 +00:00
raucao deleted branch chore/akkounts_workers 2026-11-27 13:14:06 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kosmos/chef#713