This is small test for Nginx upstream mechanism. For this reason I wrote server.py and client.py scripts.
Python script, that use Flask to server requests. Server server will sleep for 1 second, before returning response.
Python script, that use Gevent to spawn a asyncronous requests to server. Client will sleep for 0.1 second, before spawning next request.
Copy nginx.conf to sites-enabled folder
This is requirements for server.py and client.py. You can install them with:
pip install -r requirements.txt
server.log file is created by server.py to log request params in order they were passed from Nginx to server.py.
TBD