Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

write some words about redis #7402

Closed
Closed

Description

@richvdh
No description provided.

Activity

  1. richvdh commented on May 6, 2020

    @richvdh
    MemberAuthor

    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.

    1. Install redis following the normal procedure for your distro - eg apt install redis-server for debian/ubuntu
    2. check it's running and accessible: you should be able to echo PING | nc -q1 localhost 6379 and get a response of +PONG.
    3. 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.
    4. That's it. Restart master and all workers.
    5. the type: replication listener documented in https://github.com/matrix-org/synapse/blob/master/docs/workers.md#configuration is now redundant. (the type: http one is still needed).

    Question: should we put this in the sample config yet?

  2. self-assigned this
    on May 7, 2020
  3. Demi-Marie commented on May 8, 2020

    @Demi-Marie

    If we support AF_UNIX connections as well as TCP connections, a performance boost can be expected.

  4. richvdh commented on May 11, 2020

    @richvdh
    MemberAuthor

    done in #7446.

  5. richvdh commented on May 11, 2020

    @richvdh
    MemberAuthor

    @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

  6. jkhsjdhjs commented on Dec 6, 2021

    @jkhsjdhjs

    @richvdh txredisapi supports unix domain socket since at least 2013: https://github.com/IlyaSkriblovsky/txredisapi#features

  7. Dual-0 commented on Jun 18, 2022

    @Dual-0

    Is adding redis via unix socket possible in the future? Do we need a new issue/feature_request?

  8. ShadowJonathan commented on Jun 18, 2022

    @ShadowJonathan
    Contributor

    I'd recommend filing a new issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-Docsthings relating to the documentation

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions