I have one data container and I would like to use several web_only containers (several forums on separate servers). How to I pass a DB ID to web_only container so that multiple forums use their own cache?
Without this the stats reported in Admin -> Reports are mixed up between different forums.
Iâve got the same issue. I have an existing redis cluster (with replication and failover) that I want Discourse to use, but I canât find a way to tell Discourse which database index to use.
Definitely do not do anything like this . Message Bus which is responsible for long polling relies on pub/sub, pub/sub is always on âdb 0â not configurable.
If you try to co-host multiple Discourses on one Redis DB expect some very major amount of breakage.
@sam, la tua avvertenza del 2018 sul message bus legato esclusivamente al db 0 di Redis è ancora valida, o possiamo ora utilizzare un diverso ID di database di unâistanza Redis per ospitare diverse istanze di Discourse?
Ho notato nella guida multisite-configuration-with-docker che è definito un db_id: 2; pensavo potesse riferirsi allâID del database Redis, da cui questa domanda
SÏ, per quanto ne so, è ancora al 100% corretto. PUB/SUB in Redis è legato al DB 0. Discourse multisite è progettato per funzionare correttamente con piÚ istanze che comunicano con un unico Redis con db 0.
Pub/Sub non ha alcuna relazione con lo spazio delle chiavi. Ă stato realizzato per non interferire con esso a nessun livello, inclusi i numeri dei database.
La pubblicazione su db 10 sarĂ ricevuta da un subscriber su db 1.