1
0

synctl.1 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. .\" generated with Ronn/v0.7.3
  2. .\" http://github.com/rtomayko/ronn/tree/0.7.3
  3. .
  4. .TH "SYNCTL" "1" "February 2017" "" ""
  5. .
  6. .SH "NAME"
  7. \fBsynctl\fR \- Synapse server control interface
  8. .
  9. .SH "SYNOPSIS"
  10. Start, stop or restart synapse server\.
  11. .
  12. .P
  13. \fBsynctl\fR {start|stop|restart} [configfile] [\-w|\-\-worker=\fIWORKERCONFIG\fR] [\-a|\-\-all\-processes=\fIWORKERCONFIGDIR\fR]
  14. .
  15. .SH "DESCRIPTION"
  16. \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\.
  17. .
  18. .SH "OPTIONS"
  19. .
  20. .TP
  21. \fBaction\fR
  22. The value of action should be one of \fBstart\fR, \fBstop\fR or \fBrestart\fR\.
  23. .
  24. .TP
  25. \fBconfigfile\fR
  26. Optional path of the configuration file to use\. Default value is \fBhomeserver\.yaml\fR\. The configuration file must exist for the operation to succeed\.
  27. .
  28. .TP
  29. \fB\-w\fR, \fB\-\-worker\fR:
  30. .
  31. .IP
  32. Perform start, stop or restart operations on a single worker\. Incompatible with \fB\-a\fR|\fB\-\-all\-processes\fR\. Value passed must be a valid worker\'s configuration file\.
  33. .
  34. .TP
  35. \fB\-a\fR, \fB\-\-all\-processes\fR:
  36. .
  37. .IP
  38. Perform start, stop or restart operations on all the workers in the given directory and the main synapse process\. Incompatible with \fB\-w\fR|\fB\-\-worker\fR\. Value passed must be a directory containing valid work configuration files\. All files ending with \fB\.yaml\fR extension shall be considered as configuration files and all other files in the directory are ignored\.
  39. .
  40. .SH "CONFIGURATION FILE"
  41. Configuration file may be generated as follows:
  42. .
  43. .IP "" 4
  44. .
  45. .nf
  46. $ python \-m synapse\.app\.homeserver \-c config\.yaml \-\-generate\-config \-\-server\-name=<server name>
  47. .
  48. .fi
  49. .
  50. .IP "" 0
  51. .
  52. .SH "ENVIRONMENT"
  53. .
  54. .TP
  55. \fBSYNAPSE_CACHE_FACTOR\fR
  56. Synapse\'s architecture is quite RAM hungry currently \- a lot of recent room data and metadata is deliberately cached in RAM in order to speed up common requests\. This will be improved in future, but for now the easiest way to either reduce the RAM usage (at the risk of slowing things down) is to set the SYNAPSE_CACHE_FACTOR environment variable\. Roughly speaking, a SYNAPSE_CACHE_FACTOR of 1\.0 will max out at around 3\-4GB of resident memory \- this is what we currently run the matrix\.org on\. The default setting is currently 0\.1, which is probably around a ~700MB footprint\. You can dial it down further to 0\.02 if desired, which targets roughly ~512MB\. Conversely you can dial it up if you need performance for lots of users and have a box with a lot of RAM\.
  57. .
  58. .SH "COPYRIGHT"
  59. This man page was written by Sunil Mohan Adapa <\fIsunil@medhas\.org\fR> for Debian GNU/Linux distribution\.
  60. .
  61. .SH "SEE ALSO"
  62. synapse_port_db(1), hash_password(1), register_new_matrix_user(1)