two api-replicas with LB-nginx

This commit is contained in:
2026-11-04 17:20:59 +03:00
parent f20b751207
commit 5c191c3bc5
50 changed files with 2991 additions and 311 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ TOKEN_BYTES = 32
_hasher = PasswordHasher()
_executor = ThreadPoolExecutor(
max_workers=max(1, (os.cpu_count() or 1) // _hasher.parallelism),
max_workers=max(1, min(2, (os.cpu_count() or 1) // _hasher.parallelism)),
thread_name_prefix="argon2",
)