Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Losing connection to aerospike cluster with new gunicorn #616

Open
klemby opened this issue May 13, 2024 · 3 comments
Open

Losing connection to aerospike cluster with new gunicorn #616

klemby opened this issue May 13, 2024 · 3 comments

Comments

@klemby
Copy link

klemby commented May 13, 2024

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.

@juliannguyen4
Copy link
Collaborator

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

@klemby
Copy link
Author

klemby commented May 14, 2024

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.

@juliannguyen4
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants