mirror of
https://github.com/LemmyNet/lemmy-docs.git
synced 2024-11-23 12:51:09 +00:00
Correct command line flags in scaling page
This commit is contained in:
parent
2c5c2053bb
commit
0a42de7a4a
1 changed files with 11 additions and 10 deletions
|
@ -61,17 +61,18 @@ Lemmy_server can be horizontally scaled, with a few caveats.
|
|||
Here's a quick example on how you could start 3 web servers, 3 federation servers and one scheduled task process:
|
||||
|
||||
```
|
||||
lemmy_server --http-server=false --federate-activities=false # scheduled tasks
|
||||
lemmy_server --http-server=true --federate-activities=false --disable-scheduled-task # http server 1
|
||||
lemmy_server --http-server=true --federate-activities=false --disable-scheduled-task # http server 2
|
||||
lemmy_server --http-server=true --federate-activities=false --disable-scheduled-task # http server 3
|
||||
# scheduled tasks
|
||||
lemmy_server --disable_http_server --disable_activity_sending
|
||||
|
||||
# federation server 1/3
|
||||
lemmy_server --http-server=false --federate-activities=true --federate-process-index=1 --federate-process-count=3 --disable-scheduled-tasks
|
||||
# federation server 2/3
|
||||
lemmy_server --http-server=false --federate-activities=true --federate-process-index=2 --federate-process-count=3 --disable-scheduled-tasks
|
||||
# federation server 3/3
|
||||
lemmy_server --http-server=false --federate-activities=true --federate-process-index=3 --federate-process-count=3 --disable-scheduled-tasks
|
||||
# 3 http servers
|
||||
lemmy_server --disable_activity_sending --disable-scheduled-tasks
|
||||
lemmy_server --disable_activity_sending --disable-scheduled-tasks
|
||||
lemmy_server --disable_activity_sending --disable-scheduled-tasks
|
||||
|
||||
# 3 servers for sending out federation activities
|
||||
lemmy_server --disable_http_server --disable_scheduled_tasks --federate-process-index=0 --federate-process-count=3
|
||||
lemmy_server --disable_http_server --disable_scheduled_tasks --federate-process-index=1 --federate-process-count=3
|
||||
lemmy_server --disable_http_server --disable_scheduled_tasks --federate-process-index=2 --federate-process-count=3
|
||||
```
|
||||
|
||||
#### Scheduled tasks
|
||||
|
|
Loading…
Reference in a new issue