summaryrefslogtreecommitdiff
path: root/settings.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2011-11-20 21:38:05 +0530
committerPrabhu Ramachandran2011-11-20 21:38:05 +0530
commit13d4aa869a8a49c2ea27ee97b88decfde48639b5 (patch)
tree248ef1ec21672918cf9ebabf351fd164cbe280c7 /settings.py
parent637db68dca2a909657c151566ad36897a4353999 (diff)
downloadonline_test-13d4aa869a8a49c2ea27ee97b88decfde48639b5.tar.gz
online_test-13d4aa869a8a49c2ea27ee97b88decfde48639b5.tar.bz2
online_test-13d4aa869a8a49c2ea27ee97b88decfde48639b5.zip
ENH: Python server can now run multiple servers
- the SERVER_PORTS is now a list of ports and when you run python_server.py it will run as many servers as desired. - python_server.py now will create multiple servers via multiprocessing. - the xmlrpc_clients.py is changed to deal with these multiple servers. This allows us to handle many incoming requests. These changes allow us to run the online test for many users. We had over 400 simultaneous users and a total of about 650 users using the app with these modifications.
Diffstat (limited to 'settings.py')
-rw-r--r--settings.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/settings.py b/settings.py
index 4e9b390..e5e3e69 100644
--- a/settings.py
+++ b/settings.py
@@ -5,8 +5,9 @@ from os.path import dirname, join, basename, abspath
DEBUG = True
TEMPLATE_DEBUG = DEBUG
-# The port the Python server should run on.
-SERVER_PORT = 8001
+# The ports the Python server should run on. This will run one separate
+# server for each port listed in the following list.
+SERVER_PORTS = [8001] # range(8001, 8026)
# Timeout for the code to run in seconds. This is an integer!
SERVER_TIMEOUT = 2