mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
Use threads in gunicorn rather than processes
This ensures that we share the auth-cache... will enable memory savings and may improve performances when a higher number of cores is available "smarter default"
This commit is contained in:
parent
56a6821875
commit
8d9f3214cc
@ -19,7 +19,8 @@ if account is not None and domain is not None and password is not None:
|
||||
os.system("flask mailu admin %s %s '%s' --mode %s" % (account, domain, password, mode))
|
||||
|
||||
start_command="".join([
|
||||
"gunicorn -w 4 -b :80 ",
|
||||
"gunicorn --threads ", str(os.cpu_count()),
|
||||
" -b :80 ",
|
||||
"--access-logfile - " if (log.root.level<=log.INFO) else "",
|
||||
"--error-logfile - ",
|
||||
"--preload ",
|
||||
|
Loading…
Reference in New Issue
Block a user