Skip to main content

Add a MySQL connection pool for django using gevent

Project description

Mysql Connection Pooling backend for Django < 2.0 using gevent, only supports Python 2.7 It works with gunicorn async worker via gevent.

Fork from :

This implimentation is based on django-db-geventpool(


pip install django-mysql-geventpool-27


Add the ‘django_mysql_geventpool_27’ modules to the INSTALLED_APPS like this:

    # ...other installed applications...

Add MAX_CONNS to OPTIONS to set the maximun number of connections allowed to database (default=4)

    'default': {
        'ENGINE': 'django_mysql_geventpool_27.backends.mysql',
        'NAME': 'dbname',
        'USER': 'dbuser',
        'PASSWORD': 'dbpassword',
        'HOST': 'dbhost',
        'PORT': 'dbport',
        'OPTIONS': {
            'MAX_CONNS': 20

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-mysql-geventpool-27, version 0.2.4
Filename, size File type Python version Upload date Hashes
Filename, size django_mysql_geventpool_27-0.2.4-py2-none-any.whl (10.2 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size django-mysql-geventpool-27-0.2.4.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page