two api-replicas with LB-nginx
This commit is contained in:
@@ -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",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user