commit | b7f756c0054bbd6c7b9e46334614ba131feb9fbc | [log] [tgz] |
---|---|---|
author | Brad Bishop <bradleyb@us.ibm.com> | Wed Dec 02 11:13:20 2015 -0500 |
committer | Brad Bishop <bradleyb@us.ibm.com> | Wed Dec 02 11:15:08 2015 -0500 |
tree | 2ba4d31f1e6537385e704f71abe9bc33a5f88926 | |
parent | 34cae732597fb3d4b18a23b6494efdbfeca2033b [diff] |
Drop number of Rocket threads to 1 By default Rocket creates a threadpool 8 deep which uses a fair amount of memory. We don't need a multi-threaded server so this patch drops the min/max to 1.
diff --git a/obmc-rest b/obmc-rest index c5ba8dc..2c5e7e1 100644 --- a/obmc-rest +++ b/obmc-rest
@@ -589,5 +589,7 @@ 443, default_cert, default_cert), - 'wsgi', {'wsgi_app': app}) + 'wsgi', {'wsgi_app': app}, + min_threads = 1, + max_threads = 1) server.start()