Skip to content Skip to sidebar Skip to footer

Cassandra Python Driver Operationtimedout Issue

I have a python script which is used to interact with cassandra with datastax python driver It has been running since March 14th, 2016 and had not problem until today. 2016-06-02 1

Solution 1:

The default connect timeout is five seconds. In this case you would need to set Cluster.connect_timeout. The Session default_timeout applies to execution requests.

It's still a bit surprising when any TCP connection takes more than five seconds to establish. One other thing to check would be monkey patching. Did something in the application change patching for Gevent or Eventlet? That could cause a change in default behavior for the driver.

Solution 2:

I've learned that the gevent module interferes with the cassandra-driver

  • cassandra-driver (3.10)
  • gevent (1.1.1)

Uninstalling gevent solved the problem for me

pip uninstall gevent

Post a Comment for "Cassandra Python Driver Operationtimedout Issue"