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

Bash script for creating multiple stream writers #13271

Merged
merged 10 commits into from
Jul 19, 2022
2 changes: 1 addition & 1 deletion changelog.d/13271.doc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Added a script to contrib directory for creating multiple different stream writers. Renamed the script related to generic workers. Contributed by @villepeh.
Add another `contrib` script to help set up worker processes. Contributed by @villepeh.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ It also prints out the example lines for Synapse main configuration file.

Remember to route necessary endpoints directly to a worker associated with it.

If you run the script as-is, it will create workers with the replication listener starting from port 8034 and another, "safe" listener starting from 8044. If you don't need all of stream writers listed in the script, just remove them from the ```STREAM_WRITERS``` array.
If you run the script as-is, it will create workers with the replication listener starting from port 8034 and another, regular http listener starting from 8044. If you don't need all of stream writers listed in the script, just remove them from the ```STREAM_WRITERS``` array.
richvdh marked this conversation as resolved.
Show resolved Hide resolved

```sh
#!/bin/bash
Expand Down Expand Up @@ -83,6 +83,8 @@ EXAMPLECONFIG

Copy the code above save it to a file ```create_stream_writers.sh``` (for example).

Make the script executable by running ```chmod +x create_stream_writers.sh```.

## Run the script to create workers and print out a sample configuration

Simply run the script to create YAML files in the current folder and print out the required configuration for ```homeserver.yaml```.
Expand Down