Skip to content

v0.12.2

Choose a tag to compare

@liustack liustack released this 03 Dec 20:08
· 28 commits to main since this release

Smaller servers, safer disk.

  • ssr.memo_size now defaults to 32MiB on machines with less than 768 MiB of memory (RAM or cgroup limit), and stays 64MiB elsewhere. On a 1 CPU, 512 MB server, a SQLite-backed shop carried the same 50 requests a second with 32MiB as with 64MiB, with about 20 MiB more free.
  • tifa deploy setup writes SSR_MEMO_DISK_SIZE for new apps: the smaller of 1 GiB and a fifth of the free disk, and leaves the disk tier off below 128 MiB. Existing apps keep their .env.
  • The memo's disk tier no longer allocates up to 64 MiB at start for an entry cut short by a power loss. Read errors during the start scan and failed syncs now turn the tier off and count in tifa.Stats().Memo.Disk.Errors.
  • The Background work guide now uses the durable queue in github.com/liustack/sqlite/queue instead of a copied jobs package.

Nothing in an existing app has to change. Full list: CHANGELOG