-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update worker docs with recent enhancements #7969
Conversation
f6b63fb
to
226a0b6
Compare
synapse/config/federation.py
Outdated
# If running with federation sender worker instances then they should | ||
# be listed by their `worker_name` here, as well as setting | ||
# `send_federation` to false. | ||
# | ||
#send_federation: false | ||
# | ||
#federation_sender_instances: | ||
# - federation_sender1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure what this means. I think it can be made clearer that this is what gets set in the shared config?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about now? I'm not 100% convinced about the new wording
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is much clearer. Reading workers.md also helps a lot. :)
Additionally, processes may make HTTP requests to each other. Typically this is | ||
used for operations which need to wait for a reply - such as sending an event. | ||
|
||
As of Synapse v1.13.0, it is possible to configure Synapse to send replication |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be nice to have a snazzy ASCII art diagram here of the processes communicating...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does https://matrix.sw1v.org/_matrix/media/r0/download/sw1v.org/uhqIFIqONRWcRsKgVvbehsqF help? some of the links have been left out for clarity but I think it might help?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possibly? I'm not really sure who it's aimed at.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am happy to put it at the end of the doc, to be clear.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure who it's aimed at.
well, people trying to set up workers. The idea is that a picture helps people get an overview of how it works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, will add it to the end with a note at the start pointing to it 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Can you make sure to link the various documentation issues with this PR?
This needs repointing at release branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some initial comments, but I need to go and make dinner
docs/sample_config.yaml
Outdated
# Configuration for Redis when using workers. | ||
# | ||
redis: | ||
# Uncomment the below to enable using Redis to replicate data between workers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if it's not enabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I guess we should reword this to make it clear that it needs (unless using old style replication) to be enabled if using workers
Additionally, processes may make HTTP requests to each other. Typically this is | ||
used for operations which need to wait for a reply - such as sending an event. | ||
|
||
As of Synapse v1.13.0, it is possible to configure Synapse to send replication |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
d239cf5
to
5dc360e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm otherwise
hrm, there was more that github has eaten |
b745743
to
bc951a2
Compare
Co-authored-by: Brendan Abolivier <[email protected]>
Co-authored-by: Patrick Cloke <[email protected]>
Co-authored-by: Patrick Cloke <[email protected]>
Co-authored-by: Patrick Cloke <[email protected]>
Co-authored-by: Patrick Cloke <[email protected]>
Co-authored-by: Patrick Cloke <[email protected]>
Co-authored-by: Richard van der Hoff <[email protected]>
7b76a03
to
49e804b
Compare
…bership_join_count * 'develop' of github.com:matrix-org/synapse: Update workers docs (#7990) Fix invite rejection when we have no forward-extremeties (#7980) Fix typo in docs/workers.md (#7992) Convert federation client to async/await. (#7975) Convert appservice to async. (#7973) Convert some of the data store to async. (#7976) Fix formatting of changelog and upgrade notes Ensure that remove_pusher is always async (#7981) Add deprecation warnings 1.18.0 Update worker docs with recent enhancements (#7969) Ensure the msg property of HttpResponseException is a string. (#7979) Remove from the event_relations table when purging historical events. (#7978) Add additional logging for SAML sessions. (#7971) Add MSC reference to changelog for #7736 Re-implement unread counts (#7736) Various improvements to the docs (#7899)
* commit 'a9631b7b4': 1.18.0 Update worker docs with recent enhancements (#7969)
We also add some of the new config options to the sample config.
This also updates the wording to recommend using Redis and removing suggestion that it is experimental.
Apologies in advance that me bad at words.