ebu / OSCIED

Open Source Cloud Infrastructure for Encoding and Distribution
Other
16 stars 2 forks source link

Orchestra : Flooding Flask with requests make it fail. #110

Closed davidfischer-ch closed 10 years ago

davidfischer-ch commented 11 years ago

Source : http://flask.pocoo.org/docs/deploying/wsgi-standalone/#twisted-web

The API does not respond to any further requests, then I need to ssh into the orchestrator and do:

sudo su
screen -r
ctrl+c

And the API goes to a clean state but outputs that:

----------------------------------------
11/09/2013 15:52:59 INFO     - Allowed authenticated user Mister admin IBC2013
11/09/2013 15:53:00 INFO     - 129.194.185.47 - - [11/Sep/2013 15:53:00] "GET /transform/unit/environment/amazon HTTP/1.1" 200 -
11/09/2013 15:53:00 INFO     - Allowed authenticated user David Fischer
11/09/2013 15:53:00 INFO     - 10.242.155.107 - - [11/Sep/2013 15:53:00] "GET /user/login HTTP/1.1" 200 -
----------------------------------------
Exception happened during processing of request from ('10.242.155.107', 57875)
Traceback (most recent call last):
  File "/usr/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 321, in process_request
    self.finish_request(request, client_address)
  File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib/python2.7/SocketServer.py", line 651, in __init__
    self.finish()
  File "/usr/lib/python2.7/SocketServer.py", line 710, in finish
    self.wfile.close()
  File "/usr/lib/python2.7/socket.py", line 279, in close
    self.flush()
  File "/usr/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
----------------------------------------