Storage and sync
Storage
Section titled “Storage”storage.type can be:
| Type | Notes |
|---|---|
h2 | Default. Fast, file-backed, and needs no setup |
sqlite | File-backed |
mysql or mariadb | Set storage.mysql (host, port, database, username, password, pool size) |
yaml | Plain files |
/rr migrate <yaml|h2|sqlite> copies the current data into a sibling folder. After that, change storage.type and restart to switch backends. The command needs rexranks.admin.
Cross-server sync is off by default. Turn on sync.enabled and choose one or more methods in sync.method, for example database,redis:
| Method | How it works |
|---|---|
database | Polls updated_at every sync.poll-seconds. Works with MySQL or MariaDB |
redis | Pub/sub, so changes arrive instantly. Configure sync.redis |
plugin-messaging | Notifies other servers behind the same proxy |
/rr sync push and /rr sync pull force a cycle. On a network, give each backend a unique server-name.