Re: [python] [flask] [CQLAlchemy] NoHostAvailable on create

2018-01-05 Thread Alan Hamlett
:13 AM, Alan Hamlett wrote: > Still getting the NoHostAvailable with more hosts, just occurring less > frequently. Created a JIRA issue on the Python cassandra-driver tracker: > https://datastax-oss.atlassian.net/browse/PYTHON-891 > > On Mon, Jan 1, 2018 at 8:43 PM, Alan Hamlett

Re: [python] [flask] [CQLAlchemy] NoHostAvailable on create

2018-01-02 Thread Alan Hamlett
Still getting the NoHostAvailable with more hosts, just occurring less frequently. Created a JIRA issue on the Python cassandra-driver tracker: https://datastax-oss.atlassian.net/browse/PYTHON-891 On Mon, Jan 1, 2018 at 8:43 PM, Alan Hamlett wrote: > Adding more nodes to the cluster fixed

Re: [python] [flask] [CQLAlchemy] NoHostAvailable on create

2018-01-01 Thread Alan Hamlett
ecking email. > > > -- > Jeff Jirsa > > > On Jan 1, 2018, at 12:14 PM, Alan Hamlett wrote: > > Still getting the cassandra.cluster.NoHostAvailable error periodically > from uWSGI hosts. Setting up the connection with postfork: > https:/

Re: [python] [flask] [CQLAlchemy] NoHostAvailable on create

2018-01-01 Thread Alan Hamlett
l requests when there's no Cassandra connection even if it's not needed for the current web app's request. This design decision gives me very low confidence in the Python cassandra-driver. On Sun, Dec 31, 2017 at 2:34 PM, Alan Hamlett wrote: > Thanks for the reply, I think it'

Re: [python] [flask] [CQLAlchemy] NoHostAvailable on create

2017-12-31 Thread Alan Hamlett
ny hosts', {}) On Sun, Dec 31, 2017 at 9:04 AM, Jeff Jirsa wrote: > uWSGI forks and the driver / cqlalchemy may need to reconnect or otherwise > fix the state after each fork - you could try to prove this is the cause by > checking uWSGI logs or ps for indication that a worker proce

Re: [python] [flask] [CQLAlchemy] NoHostAvailable on create

2017-12-31 Thread Alan Hamlett
ccurs about once every 30 minutes, so most request call Model.create() without the error. On Sun, Dec 31, 2017 at 1:07 AM, Alan Hamlett wrote: > I'm seeing tracebacks in my Python Flask app when creating rows: > > Traceback (most recent call last): > File "/opt/app/current

[python] [flask] [CQLAlchemy] NoHostAvailable on create

2017-12-31 Thread Alan Hamlett
I'm seeing tracebacks in my Python Flask app when creating rows: Traceback (most recent call last): File "/opt/app/current/app/api.py", line 1174, in consume_heartbeat Heartbeat.create(**form_data) File "/opt/app/current/venv/lib/python3.4/site-packages/cassandra/cqlengine/models.py", lin