openag_brain
openag_brain copied to clipboard
Replace gevent server with one that works better on the Raspberry Pi
Problem: the gevent API server doesn't seem to be able to handle more than one request at a time on the Raspberry Pi. If more than one request comes through within a short timeframe, gevent server raises a RequestNotReady exception.
gevent is a parallel server... perhaps the RPi doesn't support multitasking?
What servers work well on the Pi?
- Research notes http://wiki.openag.media.mit.edu/contributors/gordonb/server
- Issue https://github.com/OpenAgInitiative/openag_brain/issues/160
(Exported from Trello https://trello.com/c/z2VXJmwr/971-replace-gevent-server-with-one-that-works-better-on-the-raspberry-pi)
On 2017-04-27T17:13:34.226Z, @gordonbrander wrote:
Rob at Media Lab is investigating this. Flakiness appears to be with reverse proxy between CouchDB and GEvent, rather than with GEvent itself.
On 2017-04-27T17:11:47.119Z, @bobdavis27 wrote:
eventlet could be another good option
On 2017-04-03T23:30:32.146Z, @bobdavis27 wrote:
@gordonbrander Sure, I'd be glad to look into it. Perhaps we leave the ones in the icebox unassigned until we're ready to bring them into a sprint.
On 2017-04-03T18:08:49.907Z, @gordonbrander wrote:
@bobdavis27 do you want to take this from me?