From dcaf2d7f9b1ddd3d629bbde3fb0f4989d3e6a95c Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Sun, 18 May 2014 01:01:35 +0300 Subject: [PATCH] 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 --- docs/source/configure.rst | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/docs/source/configure.rst b/docs/source/configure.rst index fa95f415..9f310293 100644 --- a/docs/source/configure.rst +++ b/docs/source/configure.rst @@ -64,17 +64,7 @@ For instance:: bind = "127.0.0.1:8000" workers = multiprocessing.cpu_count() * 2 + 1 -On a side note, Python's older than 2.6 can use sysconf to get the -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 ` list. +All the settings are mentioned in the :ref:`settings ` list. Framework Settings