Re: Multiple PostgreSQL instances on one machine

From: Vick Khera <vivek(at)khera(dot)org>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Multiple PostgreSQL instances on one machine
Date: 2018-06-08 20:38:28
Message-ID: CALd+dcdGSz=ha2-34ku5Bs1uOE2+zwejkUpUErKRdS1zpk+cqw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If they are just test environments, why a whole dedicated cluster per
instance? Just give each a unique name for the database and run it all on
one cluster.

I'd also go back and reconsider why these are separate machines in the
first place and make sure you're not violating any assumptions that were
made.

On Fri, Jun 8, 2018 at 4:29 PM, Tony Sullivan <tony(at)exquisiteimages(dot)com>
wrote:

> I am trying to consolidate some machines in my server room particularly in
> the testing environment and I was hoping someone could point me in the
> right direction.
>
> I currently have three machines running PostgreSQL for testing purposes.
> Each week a backup is made of the production database and this is deployed
> onto these three machines. None of these machines is any where near
> capacity. I would like to host all three instances on one machine.
>
> I know that "initdb" can be used to create additional installations, but
> the part I am unsure about is the tablespace. The production database has
> a tablespace defined that resides on its SSD. When I use the production
> backup, I have to create a mount point on the test machine with the same
> name as the one on the production database. I am not certain how I would
> handle this situation if I am serving three separate instances of that
> database from one computer.
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-06-08 20:59:32 Re: Multiple PostgreSQL instances on one machine
Previous Message Tony Sullivan 2018-06-08 20:29:26 Multiple PostgreSQL instances on one machine