comparison frontends/wsgi.py @ 6747:d32d43e4a5ba

wsgi can cache tracker instance enabled by feature flag. Patch by Marcus Priesch caches a loaded tracker instance and reuse it for future client sessions. It is enabled by a feature flag in wsgi.py since it arrived during the 2.2.0 beta period. The provided wsgi.py is modified to enable it. Testing is run with flag enabled and disabled. Ralf Schlatterbeck and Marcus tested it on one of their larger more complex trackers and it sped up the response time to a client request by a factor of 3 (270ms down to about 80-85ms).
author John Rouillard <rouilj@ieee.org>
date Sat, 02 Jul 2022 14:04:00 -0400
parents 7c852cad2ca8
children fde9fe504ebd
comparison
equal deleted inserted replaced
6746:efa203f3c696 6747:d32d43e4a5ba
10 from roundup.cgi.wsgi_handler import RequestDispatcher 10 from roundup.cgi.wsgi_handler import RequestDispatcher
11 11
12 # Set the path to tracker home. 12 # Set the path to tracker home.
13 tracker_home = '/path/to/tracker' 13 tracker_home = '/path/to/tracker'
14 14
15 # Enable the feature flag to speed up wsgi response by caching the
16 # Roundup tracker instance on startup. See upgrading.txt for
17 # more info.
18 feature_flags = { "cache_tracker": "" }
19
15 # Definition signature for app: app(environ, start_response): 20 # Definition signature for app: app(environ, start_response):
16 app = RequestDispatcher(tracker_home) 21 app = RequestDispatcher(tracker_home= feature_flags=feature_flags)

Roundup Issue Tracker: http://roundup-tracker.org/