From e8acf39a910419289eacf57a56ba3bff0e02fc1c Mon Sep 17 00:00:00 2001 From: Nutomic Date: Mon, 4 Mar 2024 15:06:23 +0100 Subject: [PATCH] Correct command line flags in scaling page (#297) * Correct command line flags in scaling page * Update horizontal_scaling.md * Update horizontal_scaling.md --- src/administration/horizontal_scaling.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/administration/horizontal_scaling.md b/src/administration/horizontal_scaling.md index 199acba..2654177 100644 --- a/src/administration/horizontal_scaling.md +++ b/src/administration/horizontal_scaling.md @@ -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=1 --federate-process-count=3 +lemmy_server --disable-http-server --disable-scheduled-tasks --federate-process-index=2 --federate-process-count=3 +lemmy_server --disable-http-server --disable-scheduled-tasks --federate-process-index=3 --federate-process-count=3 ``` #### Scheduled tasks