You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
redis is an alternative to direct tcp connections to the master: rather than all the workers connecting to the master, all the workers and the master connect to redis, which relays replication commands between processes. this can give a significant cpu saving on the master and will be a prerequisite for operation gemini work.
Install redis following the normal procedure for your distro - eg apt install redis-server for debian/ubuntu
check it's running and accessible: you should be able to echo PING | nc -q1 localhost 6379 and get a response of +PONG.
Add config to homeserver.yaml:
redis:
enabled: true
Optional parameters which can go alongside enabled are host, port, password, dbid. If you don't know if you need the last two, you probably don't.
@demimarie-parity txredisapi doesn't support unix-domain sockets afaict and it's not entirely obvious to me that the performance boost would be anything other than trivial
Activity
richvdh commentedon May 6, 2020
redis is an alternative to direct tcp connections to the master: rather than all the workers connecting to the master, all the workers and the master connect to redis, which relays replication commands between processes. this can give a significant cpu saving on the master and will be a prerequisite for operation gemini work.
apt install redis-serverfor debian/ubuntuecho PING | nc -q1 localhost 6379and get a response of+PONG.enabledarehost,port,password,dbid. If you don't know if you need the last two, you probably don't.type: replicationlistener documented in https://github.com/matrix-org/synapse/blob/master/docs/workers.md#configuration is now redundant. (thetype: httpone is still needed).Question: should we put this in the sample config yet?
Demi-Marie commentedon May 8, 2020
If we support AF_UNIX connections as well as TCP connections, a performance boost can be expected.
richvdh commentedon May 11, 2020
done in #7446.
richvdh commentedon May 11, 2020
@demimarie-parity txredisapi doesn't support unix-domain sockets afaict and it's not entirely obvious to me that the performance boost would be anything other than trivial
jkhsjdhjs commentedon Dec 6, 2021
@richvdh txredisapi supports unix domain socket since at least 2013: https://github.com/IlyaSkriblovsky/txredisapi#features
Dual-0 commentedon Jun 18, 2022
Is adding redis via unix socket possible in the future? Do we need a new issue/feature_request?
ShadowJonathan commentedon Jun 18, 2022
I'd recommend filing a new issue for that.