pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Benjamin Krajmalnik <kraj@servoyant.com>
To: Jim Mercer <jim@reptiles.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: Installing multiple instances of Postgred on one FreeBSD server
Date: Wed, 1 May 2013 14:21:44 -0600
Message-ID: <F4E6A2751A2823418A21D4A160B6898892BCE2@fletch.stackdump.local> (raw)
In-Reply-To: <20130501202021.GA36302@reptiles.org>
References: <F4E6A2751A2823418A21D4A160B6898892BCE0@fletch.stackdump.local>
	<20130501202021.GA36302@reptiles.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

So essentially we would have to run jails on this - does that affect
performance?


-----Original Message-----
From: Jim Mercer [mailto:jim@reptiles.org] 
Sent: Wednesday, May 01, 2013 2:20 PM
To: Benjamin Krajmalnik
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Installing multiple instances of Postgred on one
FreeBSD server

On Wed, May 01, 2013 at 01:58:21PM -0600, Benjamin Krajmalnik wrote:
> I would like to install PG 9.2 on the same server and use Slony to 
> replicate the databases, and once everything is up take the 9.0 
> cluster down.

allocate a new ip to the server.
reconfigure/restart 9.0 to listen on the main IP (not "all" as default)

use ezjail to create a freebsd jail on thenew IP

install 9.2 in the jail

treat it them as two servers.

point clients at new ip.

once migrated, delete all 9.0 from the main server.

if you need to upgrade again, add another jail.

stop and delete the old jail whe the next upgrade is complete.

repeat as often as you want to upgrade.

i'm pretty sure this can be adapted to linux, but i forget what their
jail equivilent is.

the overhead is minimal



-- 
Jim Mercer     Reptilian Research      jim@reptiles.org    +1 416
410-5633
"He who dies with the most toys is nonetheless dead"


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (15+ messages)  latest in thread

Message-ID: <F4E6A2751A2823418A21D4A160B6898892BCE2@fletch.stackdump.local>
Permalink:  ../F4E6A2751A2823418A21D4A160B6898892BCE2@fletch.stackdump.local/
Also on:    postgresql.org/message-id/F4E6A2751A2823418A21D4A160B6898892BCE2@fletch.stackdump.local

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: kraj@servoyant.com, jim@reptiles.org
  Subject: Re: Installing multiple instances of Postgred on one FreeBSD server
  In-Reply-To: <F4E6A2751A2823418A21D4A160B6898892BCE2@fletch.stackdump.local>
  References: <F4E6A2751A2823418A21D4A160B6898892BCE0@fletch.stackdump.local> <20130501202021.GA36302@reptiles.org> <F4E6A2751A2823418A21D4A160B6898892BCE2@fletch.stackdump.local>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox