I have a web server written in python, which is interacting with cassandra database using Cassandra's python driver. when i starting this python server using gunicorn http server my requests are handled without error. but when i run the same server using uwsgi http server after firs request, which must write some data into Cassandra table, cassandra raises an error
cassandra.OperationTimedOut: errors={}, last_host=127.0.0.1
the error raises in session.prepare() funcion call in python.
We got the same error message in our application.
And we fixed it by opening Cassandra session in constructor function, and shutdown it in destroy function in Model Class. Please see code below
EDITED: I found a better solution here: uWSGI Cassandra