user2492364
user2492364

Reputation: 6713

Does Django support pgpool?

Django db setting is

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.postgresql',
        'NAME': 'mydatabase',
        'USER': 'mydatabaseuser',
        'PASSWORD': 'mypassword',
        'HOST': '127.0.0.1',
        'PORT': '5432',
    }
}

I want to know if I need to use pgpool
Should I need to change this settings ??

update

I try pgpool from this website
And I found that there is no need to modify the code

Upvotes: 1

Views: 2022

Answers (2)

Md.Alauddin Hossain
Md.Alauddin Hossain

Reputation: 186

Of course Django can connect and can use pgpool. If your pgpool is running on 127.0.0.1 at 5432 then for sure django can work with it. But I will recommend you not to use 5432 as pgppol port because it is the default port of postrgresql. You can use anyother port like 9999 or 7777 etc.

Follow this http://jensd.be/591/linux/setup-a-redundant-postgresql-database-with-repmgr-and-pgpool

to configure your postgresql in replication mode and failover.

Upvotes: 1

MrFrag
MrFrag

Reputation: 179

I don't know Django, but I know pgPool: you can connect to it just like you do with the standard Postgres server, no special config is needed.

Upvotes: 2

Related Questions