In preparing for v1.0.x, I got the following table drawn up with LLM, and the one question that pops up is the requirement for a K-V (Valkey/redis) that I need to implement extra, while I was expecting NATS + FDB to be sufficient for the coordination and in-memory store, but seems that a REDIS equivalent Key-Value is now a requirement. Cant yet find motivation/reasoning for this new change/requirement (and since the v1.0.0 commit messages are private, could not check those either)
Question 1: reason for this change from NATS/in-memory to ValKey requirement?
Question 2: Seems that FoundationDB do have a Prefix method to “share” a single FDB cluster, but reading the report it seems that I will have to setup a NEW FDB cluster for 1.0, is that correct? Should I log a feature request for being able to do prefix/etc. in future Stalw.art releases?
Question 3: Anything else I might need to be aware of given the below?
Area
Today (0.16.27)
Change for 1.0.0
Stalwart
v0.16.27
v1.0.x, no in-place upgrade. .
FoundationDB
7.4.8, one cluster on 3 storage nodes
Still 7.4.x. The target must be a second, empty FDB cluster, with a new key layout and schema version 7.
Garage (S3 blobs)
v2.4.1
Blobs reused in place. spam-model keys overwritten at run --final. 1.0 purges unreferenced blobs
In-memory store
Default, which means FDB
Default is refused when any coordinator is set. A Redis-family store is required.
Coordinator
NATS 3-node cluster => core pub/sub
NATS still supported, or use Valkey(REDIS) for both
Valkey
None
New requirement: Valkey with Sentinel on 3x nodes (1 primary, 2 replicas, 3 sentinels).
Search
FTS inside FDB
It is rebuilt after start, with attachment FTS added
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
The docs give the reason as sharing. The Default in-memory store lives inside one process. In a cluster, rate-limit counters, greylisting state, locks and short-lived tokens must be visible to every node. So when any coordinator other than Disabled is set, the server refuses the Default store. The in-memory store must be Redis, RedisCluster, RedisSentinel or the Enterprise Sharded store. In 0.16, Default meant FDB, as your table says. The docs don’t say why that stopped being an option.
NATS can still be your coordinator. The in-memory store is a separate setting, though, so NATS plus FDB alone won’t satisfy the check. You can also set the coordinator to Default, which reuses the Redis server of the in-memory store. That means one Valkey deployment covers both roles, and you can drop NATS if you want. RedisSentinel is a supported variant, so your 3-node Valkey with Sentinel layout fits.
Yes. The 0.16 to 1.0 migration requirements say the target must be a new, empty store. For FoundationDB that means a new FoundationDB cluster. The source must be running 0.16.27. The migration also needs room for a second copy of the data store. External blob stores such as your Garage are reused, and only the data store is duplicated. The docs I found don’t mention FDB key prefixes or sharing a cluster. I can’t say whether a feature request would be accepted, but you can post one. Staff will follow up here.
FDB support is not in the official binaries or Docker images. You need the separate FDB build, which the install script installs with --fdb. Alternatively, build an image from Dockerfile.fdb. Every node also needs libfdb_c and the cluster file. See FoundationDB | Stalwart.
Read the full upgrade guide for the Garage, spam-model and search-rebuild details in your table. I didn’t verify those rows.
This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.
In 0.16 the in-memory store could be the data store itself, which is how FDB ended up holding your counters and locks. 1.0 dropped that option. Rate-limit counters, greylisting entries, locks and OAuth codes are written constantly and expire within seconds or minutes, and keeping them out of the data store avoids that churn on disk (In-memory store). Default now means a store in the memory of the process, which the nodes can’t share, so a cluster needs a Redis-family store. The rule and the order to configure it in are on Coordination mechanism.
Valkey doesn’t have to be a Sentinel setup. A single Valkey server works; Sentinel or Redis Cluster is what you’d pick if you want that layer to survive a node failure, and that’s your call. NATS can stay as the coordinator. Once Valkey is there you can also switch the coordinator to Default, which reuses the in-memory store’s connection, and retire NATS.
On FoundationDB: yes, the target has to be an empty cluster, and 1.0 has no key prefix setting to share one with another database. It can run on the same three machines as the current one with its own processes and cluster file, and the old one goes away once you’ve cut over and are happy with 1.0. A prefix option is a fair request for Feature Ideas.
The rest of your table matches the upgrade guide. Two more things for your plan: users of OAuth clients sign in again after the switch, and since Garage is shared between both versions, a return to 0.16 after 1.0 has started goes through stalwart-migrate rollback into a new store; the shared blob stores section explains why.