0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-24 05:54:24 +01:00
synapse/debian/synctl.1

42 lines
2.2 KiB
Groff
Raw Normal View History

.\" generated with Ronn-NG/v0.8.0
.\" http://github.com/apjanke/ronn-ng/tree/0.8.0
.TH "SYNCTL" "1" "July 2021" "" ""
2018-12-10 18:14:34 +01:00
.SH "NAME"
\fBsynctl\fR \- Synapse server control interface
.SH "SYNOPSIS"
Start, stop or restart synapse server\.
.P
\fBsynctl\fR {start|stop|restart} [configfile] [\-w|\-\-worker=\fIWORKERCONFIG\fR] [\-a|\-\-all\-processes=\fIWORKERCONFIGDIR\fR]
.SH "DESCRIPTION"
\fBsynctl\fR can be used to start, stop or restart Synapse server\. The control operation can be done on all processes or a single worker process\.
.SH "OPTIONS"
.TP
\fBaction\fR
The value of action should be one of \fBstart\fR, \fBstop\fR or \fBrestart\fR\.
.TP
\fBconfigfile\fR
Optional path of the configuration file to use\. Default value is \fBhomeserver\.yaml\fR\. The configuration file must exist for the operation to succeed\.
.TP
\fB\-w\fR, \fB\-\-worker\fR:
2018-12-10 18:14:34 +01:00
.TP
\fB\-a\fR, \fB\-\-all\-processes\fR:
2018-12-10 18:14:34 +01:00
.SH "CONFIGURATION FILE"
Configuration file may be generated as follows:
.IP "" 4
.nf
$ python \-m synapse\.app\.homeserver \-c config\.yaml \-\-generate\-config \-\-server\-name=<server name>
2018-12-10 18:14:34 +01:00
.fi
.IP "" 0
.SH "ENVIRONMENT"
.TP
\fBSYNAPSE_CACHE_FACTOR\fR
Synapse\'s architecture is quite RAM hungry currently \- we deliberately cache a lot of recent room data and metadata in RAM in order to speed up common requests\. We\'ll improve this in the future, but for now the easiest way to either reduce the RAM usage (at the risk of slowing things down) is to set the almost\-undocumented \fBSYNAPSE_CACHE_FACTOR\fR environment variable\. The default is 0\.5, which can be decreased to reduce RAM usage in memory constrained enviroments, or increased if performance starts to degrade\.
.IP
However, degraded performance due to a low cache factor, common on machines with slow disks, often leads to explosions in memory use due backlogged requests\. In this case, reducing the cache factor will make things worse\. Instead, try increasing it drastically\. 2\.0 is a good starting value\.
2018-12-10 18:14:34 +01:00
.SH "COPYRIGHT"
This man page was written by Sunil Mohan Adapa <\fI\%mailto:sunil@medhas\.org\fR> for Debian GNU/Linux distribution\.
2018-12-10 18:14:34 +01:00
.SH "SEE ALSO"
synapse_port_db(1), hash_password(1), register_new_matrix_user(1), synapse_review_recent_signups(1)