Comments (7)
@ask any ideas?
from django-postgrespool.
I actually had the same issue when running an SQLAlchemy app under uwsgi. The problem in that case was that uwsgi forked the workers which resulted in sqlalchemy using the same sockets between the workers. In uwsgi this was solved with the -lazy flag. See http://lists.unbit.it/pipermail/uwsgi/2011-May/002079.html
I'm pretty sure this is the same kind of problem.
from django-postgrespool.
What @mvantellingen says sounds about right! You should use multiprocessing.util.register_after_fork or something.
(though celery uses the billiard fork of multiprocessing which now has its own after fork registry (billiard.util.register_after_fork, I totally forgot about that, and it should really use the multiprocessing one for library consistency)
from django-postgrespool.
Interesting, we're using gunicorn. I don't see any flags that may help with that but it's a start.
from django-postgrespool.
@brockhaywood you solved this problem? I'm get this errors in my sentry just now :-(
I'm also use gunicorn.
from django-postgrespool.
No, I was unable to resolve.
On Wed, Feb 13, 2013 at 12:08 PM, Denis Veselov [email protected]:
@brockhaywood https://github.com/brockhaywood you solved this problem?
I'm get this errors in my sentry just now :-(—
Reply to this email directly or view it on GitHubhttps://github.com/kennethreitz/django-postgrespool/issues/3#issuecomment-13515303.
- bh
from django-postgrespool.
I'm about to push this to production, our celery tasks are intermittent and non-critical, so I'll add any information we get out of this here.
from django-postgrespool.
Related Issues (17)
- DATABASE_POOL_ARGS
- 'django_postgrespool' isn't an available database backend HOT 3
- postgrespool broken with Django 1.6 ('django_postgrespool' isn't an available database backend) HOT 6
- Benchmarks HOT 1
- support for pypy HOT 1
- Pooling not working with Django 1.7 HOT 2
- "autocommit cannot be used inside a transaction" error "hides" the actual error? HOT 18
- The current version doesn't support Django <1.6 HOT 2
- fail to install using pip on windows HOT 1
- UnicodeDecodeError while installing on Ubuntu Linux HOT 4
- Use Django 1.9+ location for postgresql backend HOT 4
- Does this project actually work? HOT 8
- Connection leak with StreamingResponse
- 'django_postgrespool' isn't an available database backend HOT 9
- Support for postgis (or arbitrary) driver? HOT 4
- SOUTH_DATABASE_ADAPTERS setting leaves GIS fields out of migrations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-postgrespool.