This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example on how to load balance /sync requests (#14297)
Signed-off-by: lukas <lukas.walter@aceart.de> Signed-off-by: lukas <lukas.walter@aceart.de>
- Loading branch information
1 parent
e980982
commit 42f9d41
Showing
2 changed files
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add example on how to load balance /sync requests. Contributed by [aceArt](https://aceart.de). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42f9d41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, this is still "only" per session or per IP, not per user... While not half-bad, not the same. That being said, We at Hacklab Finland did very recently figured an surprisingly simple Nginx mapper that "extracts" username from synapse access token and uses that as hash key, but our actual problem is where should we put the example... It feels very out of place in this documentation where everything tries to be as program agnostic as possible, but then again doesn't make sense to paste half page worth of Nginx specific stuff into generic worker documentation...
42f9d41
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the current brainstorming we were pondering, not yet very well generalized and probably way too verbose, but beef is also there, aka the "mapper".. tswfi@b3704b9