Questions tagged [eventlet]

a concurrent networking library for Python that provides performance and scalability of non-blocking IO while writing simple blocking code (no callbacks) using green threads.

It uses epoll or kqueue or libevent for highly scalable non-blocking I/O. Coroutines ensure that the developer uses a blocking style of programming that is similar to threading, but provide the benefits of non-blocking I/O. The event dispatch is implicit, which means you can easily use Eventlet from the Python interpreter, or as a small part of a larger application. It's easy to get started using Eventlet, and easy to convert existing applications to use it. Start off by looking at examples, common design patterns, and the list of the basic API primitives.

License: MIT.

http://eventlet.net/

311 questions
3
votes
2 answers

Python consumes 99% of CPU running eventlet

I have posted to the python and eventlet mailing list already so I apologize if I seem impatient. I am running eventlet 0.9.16 on a Small (not micro) reserved ubuntu 11.10 aws instance. I have a socketserver that is similar to the echo server from…
tedtoy
  • 168
  • 2
  • 12
3
votes
1 answer

Celery Eventlet OSError: Load averages are unobtainable

Our django celery server is running with concurrency value of 500 with eventlet as execution pool. Recently, we encountered this issue and restarting the server fixed it. I am attaching the traceback of the error. python package versions: Django…
Shravan Nani
  • 31
  • 1
  • 2
3
votes
0 answers

How to serve Flask app on waitress and socket.io using eventlet server simultaneously?

I'm using waitress server to deploy the flask app for production. I'm also using flask's socketio along with the eventlet server which requires its own app run. Currently only serving app on waitress: serve(app, host='0.0.0.0', port=8080) How do I…
Liz
  • 31
  • 3
3
votes
0 answers

python AsyncIO for UDP send/receive server?

Can someone recommend a framework that uses python & eventlet to handle a simple but fast UDP receive/ack server? Note: I don't want to use twisted.
bitcycle
  • 7,632
  • 16
  • 70
  • 121
3
votes
1 answer

Lots of socket errors with celery eventlet tasks

I'm getting a lot of "IOError: Socket closed" exceptions from amqplib.client_0_8.method_framing.read_method when running my celery workers with the --pool=eventlet option. I'm also seeing a lot of timeout exceptions from …
Ben Dowling
  • 17,187
  • 8
  • 87
  • 103
3
votes
0 answers

Why is adding preload_app to gunicorn preventing it from starting unless SIGINT is sent?

I am running Flask through Gunicorn and I have a big problem. I get [CRITICAL] WORKER_TIMEOUT errors. To fix this I added "preload_app = True" to my gunicorn config. Add it almost works. The problem I am having is gunicorn will not start unless…
3
votes
2 answers

how to start flask_socketio app with ssl?

How should I translate app.run() to sockio.run() with SSL? I have below app start code to run with flask development server if __name__=='__main__': app.run(ssl_context=(ssl_cert, ssl_key)) I am now trying to start it with socketio like…
Kay
  • 1,235
  • 2
  • 13
  • 27
3
votes
0 answers

wrap_socket() got an unexpected keyword argument '_context'

I'm currently trying to put in production a django project using nginx and gunicorn for the first time. The project consist on a register page in which the user access, fills a form and the data is used to make a request to another server to create…
Seba Rossi
  • 91
  • 7
3
votes
0 answers

django works perfectly with socket io when I python manage.py runserver but how to do with gunicorn?

I have taken some help from django example with socket.io I found some issue that if I run this code it will only run my socket(5000) but not my main website(at 8000) so I modified it a little bit and the main working code snippets looked something…
Nimish Bansal
  • 1,719
  • 4
  • 20
  • 37
3
votes
1 answer

Speed of fetching web pages with Eventlet and Python?

I am writing a relatively simple crawler in Python but I want to use asynchronous networking lib in order to fetch multiple pages concurrently.I saw the examples on their page but when I apply the same logic that is shown and works for ~200 web…
3
votes
1 answer

Running eventlet server in bottle framework

i see something like this in bottle.py version 0.9. Does that means. i can run bottle server as a eventlet server. class EventletServer(ServerAdapter): """ Untested """ def run(self, handler): from eventlet import wsgi, listen …
Abdul Kader
  • 5,781
  • 4
  • 22
  • 40
3
votes
1 answer

Celery worker received task but not executing

I have tried to execute simple task using celery=4.2.0, Python=3.6 and Rabbitmq=3.7.9 on windows 10, the task is received by the worker but didn't execute and stays unacked. Task decleration: @app.task() def simpleTask(*args): …
YoavShe
  • 151
  • 2
  • 3
  • 11
3
votes
2 answers

flask-socketio does not work on aws with eventlet installed

I am currently having an issue running a Flask application using flask-socketio with eventlet. When I push to AWS without eventlet my application works perfectly. This is great, however I want my application to be production ready and running…
Fredmental
  • 445
  • 1
  • 7
  • 14
3
votes
1 answer

Celery - adding 7000 tasks with apply_async takes 12 seconds

I am using Celery to distribute tasks to multiple servers. For some reason, adding 7,000 tasks to the queue is incredibly slow and appears to be CPU bound. It takes 12 seconds to execute the code below, which is just adding tasks to the queue. …
monstermac77
  • 256
  • 3
  • 24
3
votes
2 answers

high performance (yet dumb) web server

I'm trying to write a very simple web server that does the following: Receive request. Respond with a tiny file; close the connection. Handle the request data. In other words, the response doesn't depend on the request information, but the request…
strtok
  • 31
  • 1