Skip to content

Commit

Permalink
use_presence: Default to False
Browse files Browse the repository at this point in the history
Tracking issue with use_presence's performance problem:
matrix-org#3971.

Signed-off-by: rht <[email protected]>
  • Loading branch information
rht committed Jan 28, 2021
1 parent a78016d commit 032c57f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,12 @@ This also requires the optional `lxml` python dependency to be installed. This
in turn requires the `libxml2` library to be available - on Debian/Ubuntu this
means `apt-get install libxml2-dev`, or equivalent for your OS.

### Presence

By default, presence is disabled because because it consumes a lot CPU. If you
want to turn it on anyway, you can set `use_presence: true`. The tracking issue
is https://github.com/matrix-org/synapse/issues/3971.

### Troubleshooting Installation

`pip` seems to leak *lots* of memory during installation. For instance, a Linux
Expand Down
2 changes: 2 additions & 0 deletions changelog.d/9251.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
use_presence: Default to False.
Wait until https://github.com/matrix-org/synapse/issues/3971 is fixed.
3 changes: 2 additions & 1 deletion synapse/config/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def read_config(self, config, **kwargs):
self.public_baseurl += "/"

# Whether to enable user presence.
self.use_presence = config.get("use_presence", True)
# TODO https://github.com/matrix-org/synapse/issues/3971
self.use_presence = config.get("use_presence", False)

# Whether to update the user directory or not. This should be set to
# false only if we are updating the user directory in a worker
Expand Down

0 comments on commit 032c57f

Please sign in to comment.