Setup
Redis turns a set of servers that share one database into a single live auction house. Before you switch it on, two things need to be true. Every server points at the same shared MySQL or PostgreSQL Database, and a Redis 6 or newer server is running somewhere all of them can reach. Redis on its own, without a shared database, has nothing to keep in step.
The settings
The redis block in config.yml has three keys. The whole block is read once at startup, so a change here needs a full server restart, not /ahadmin reload.
| Key | Default | What it does |
|---|---|---|
enabled | false | Turn cross-server sync on. Set it to true on every server in the network. |
uri | redis://localhost:6379 | The Redis connection URI. Use the form redis://host:port, or redis://:password@host:port if your Redis needs a password. |
channel | proton:updates | The pub/sub channel the servers talk on. Every server must use the same name. |
Turning it on
Set up the shared database first
Redis only signals changes, it does not store them. Point every server at one shared MySQL or PostgreSQL database before you touch Redis. See Database and the network walkthrough in How To Setup.
Point every server at the same Redis
Give each server the same
uriand the samechannel. If Redis needs a password, put it in theuri.Enable it
Set
redis.enabledtotruein each server's config.yml.Restart
Restart every server so the new
redisblock is read. A reload will not pick it up.Check it
List an item on one server and open
/ahon another. The listing should appear without a manual refresh. If it does not, see Troubleshooting.