mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Remove an outdated paragraph about getting CPU information.
Python 2.5 or older versions are not supported by Gunicorn. Also, fixed a typo: mentionned -> mentioned
This commit is contained in:
parent
bb73468b4c
commit
dcaf2d7f9b
@ -64,17 +64,7 @@ For instance::
|
|||||||
bind = "127.0.0.1:8000"
|
bind = "127.0.0.1:8000"
|
||||||
workers = multiprocessing.cpu_count() * 2 + 1
|
workers = multiprocessing.cpu_count() * 2 + 1
|
||||||
|
|
||||||
On a side note, Python's older than 2.6 can use sysconf to get the
|
All the settings are mentioned in the :ref:`settings <settings>` list.
|
||||||
number of processors::
|
|
||||||
|
|
||||||
import os
|
|
||||||
|
|
||||||
def numCPUs():
|
|
||||||
if not hasattr(os, "sysconf"):
|
|
||||||
raise RuntimeError("No sysconf detected.")
|
|
||||||
return os.sysconf("SC_NPROCESSORS_ONLN")
|
|
||||||
|
|
||||||
All the settings are mentionned in the :ref:`settings <settings>` list.
|
|
||||||
|
|
||||||
|
|
||||||
Framework Settings
|
Framework Settings
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user