mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Config for CheryPy Thread Pool Size
In some instances, a static thread pool size of 10 is too small. Provide a way to modify this via the config.
This commit is contained in:
parent
b87bd1dab2
commit
5becbd91d4
2 changed files with 3 additions and 1 deletions
|
@ -137,6 +137,7 @@ _CONFIG_DEFINITIONS = {
|
|||
'HTTP_RATE_LIMIT_ATTEMPTS': (int, 'General', 10),
|
||||
'HTTP_RATE_LIMIT_ATTEMPTS_INTERVAL': (int, 'General', 300),
|
||||
'HTTP_RATE_LIMIT_LOCKOUT_TIME': (int, 'General', 300),
|
||||
'HTTP_THREAD_POOL': (int, 'General', 10),
|
||||
'INTERFACE': (str, 'General', 'default'),
|
||||
'IMGUR_CLIENT_ID': (str, 'Monitoring', ''),
|
||||
'JOURNAL_MODE': (str, 'Advanced', 'WAL'),
|
||||
|
|
|
@ -88,7 +88,7 @@ def initialize(options):
|
|||
'server.socket_port': options['http_port'],
|
||||
'server.socket_host': options['http_host'],
|
||||
'environment': options['http_environment'],
|
||||
'server.thread_pool': 10,
|
||||
'server.thread_pool': plexpy.CONFIG.HTTP_THREAD_POOL,
|
||||
'server.max_request_body_size': 1073741824,
|
||||
'server.socket_timeout': 60,
|
||||
'tools.encode.on': True,
|
||||
|
@ -135,6 +135,7 @@ def initialize(options):
|
|||
else:
|
||||
plexpy.HTTP_ROOT = options['http_root'] = '/'
|
||||
|
||||
logger.info("Tautulli WebStart :: Thread Pool Size: %d.", plexpy.CONFIG.HTTP_THREAD_POOL)
|
||||
cherrypy.config.update(options_dict)
|
||||
|
||||
conf = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue