aerospike-client-python icon indicating copy to clipboard operation
aerospike-client-python copied to clipboard

Losing connection to aerospike cluster with new gunicorn

Open klemby opened this issue 1 year ago • 3 comments

Hi Im having difficulties after updating gunicorn to version 22.0.0 which has breaking changes mentioned in changelog.

bins = self.client.get(key)[BINS_INDEX] ^^^^^^^^^^^^^^^^^^^^ exception.ClusterError: (11, 'No connection to aerospike cluster', 'src/main/client/get.c', 73, False)

When gunicorn freezed to version 21.2.0 problem disappears. I didnt find anything in aerospike logs.

klemby avatar May 13 '24 08:05 klemby

Hey @klemby, this may not be an Aerospike-specific issue. Could you try adjusting your connection settings in gunicorn? I would need more details to debug this issue

juliannguyen4 avatar May 13 '24 15:05 juliannguyen4

This is my gunicorn config:

bind = '0.0.0.0:5100'
workers = 4

timeout = 90
accesslog = '-'  # sys.stdout - see http://docs.gunicorn.org/en/stable/settings.html#accesslog
errorlog = '-'
loglevel = 'info'
post_fork = 'matej.workers.gunicorn_worker.post_fork'
worker_exit = 'matej.workers.gunicorn_worker.worker_exit'

Well there is also kafka, sqlite, mongo but Im having difficulties only with aerospike cluster connection. Sure this might not be aerospike problem but I was wondering if you do not have similar experience after gunicorn update.

klemby avatar May 14 '24 07:05 klemby

Hi @klemby, can you share the Aerospike client config that you're using? I need to know which features of the Python client aren't working properly

juliannguyen4 avatar May 14 '24 19:05 juliannguyen4