mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Typo in gunicorn conf.
This commit is contained in:
parent
7ae2775ea3
commit
b63f436cfb
1 changed files with 4 additions and 6 deletions
|
@ -1,9 +1,7 @@
|
|||
import os
|
||||
import psutil
|
||||
|
||||
|
||||
GIGS_OF_MEMORY = psutil.TOTAL_PHYMEM/1024/1024/1024.
|
||||
NUM_CPU = psutil.NUM_CPU
|
||||
NUM_CPUS = psutil.NUM_CPUS
|
||||
|
||||
bind = "127.0.0.1:8000"
|
||||
pidfile = "/home/sclay/newsblur/logs/gunicorn.pid"
|
||||
|
@ -14,7 +12,7 @@ loglevel = "debug"
|
|||
name = "newsblur"
|
||||
timeout = 120
|
||||
max_requests = 1000
|
||||
if GIGS_OF_MEMORY > NUM_CPU:
|
||||
workers = NUM_CPU
|
||||
if GIGS_OF_MEMORY > NUM_CPUS:
|
||||
workers = NUM_CPUS
|
||||
else:
|
||||
workers = int(NUM_CPU / 2)
|
||||
workers = int(NUM_CPUS / 2)
|
||||
|
|
Loading…
Add table
Reference in a new issue