Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXelf-00029g-Fx for pgsql-admin@arkaria.postgresql.org; Wed, 01 May 2013 21:40:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXele-0002x1-UN for pgsql-admin@arkaria.postgresql.org; Wed, 01 May 2013 21:40:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXeld-0002vY-7j for pgsql-admin@postgresql.org; Wed, 01 May 2013 21:40:49 +0000 Received: from [64.207.29.137] (helo=mail.illumen.com) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXelU-00053F-FP for pgsql-admin@postgresql.org; Wed, 01 May 2013 21:40:48 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CE46B4.81E4757F" Subject: Re: Installing multiple instances of Postgred on one FreeBSD server Date: Wed, 1 May 2013 15:40:31 -0600 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Installing multiple instances of Postgred on one FreeBSD server Thread-Index: Ac5GtESpUQqpuGxBSfaW2bgu/HYVOQAABoOw References: <20130501202021.GA36302@reptiles.org> <20130501202401.GA36654@reptiles.org> From: "Benjamin Krajmalnik" To: =?iso-8859-1?Q?Gezeala_M=2E_Bacu=F1o_II?= , "Jim Mercer" Cc: X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.207.29.137 (failed) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org This is a multi-part message in MIME format. ------_=_NextPart_001_01CE46B4.81E4757F Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable The problem, as I see it without using jails, is that the binaries are = going to be installed in the same location as the 9.0 - unless I am not = seeing something properly. =20 =20 From: Gezeala M. Bacu=F1o II [mailto:gezeala@gmail.com]=20 Sent: Wednesday, May 01, 2013 3:38 PM To: Jim Mercer Cc: Benjamin Krajmalnik; pgsql-admin@postgresql.org Subject: Re: [ADMIN] Installing multiple instances of Postgred on one = FreeBSD server =20 I used to do the ezjail route before but for ease, you can modify the = setting "unix_socket_directory" on your postgresql.conf and have it = point to another folder (default is /tmp) to have more than 1 instance = listen on port 5432. Of course you need to add an alias IP for each = instance and add that IP on your postgresql.conf "listen_addresses". -- regards gezeala bacu=F1o II =20 On Wed, May 1, 2013 at 1:24 PM, Jim Mercer wrote: On Wed, May 01, 2013 at 02:21:44PM -0600, Benjamin Krajmalnik wrote: > So essentially we would have to run jails on this - does that affect > performance? i would say minimal impact. > > > -----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" -- Jim Mercer Reptilian Research jim@reptiles.org +1 416 = 410-5633 =20 "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 =20 ------_=_NextPart_001_01CE46B4.81E4757F Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

The problem, as I see it without using jails, is that the binaries = are going to be installed in the same location as the 9.0 – unless = I am not seeing something properly.

 

 

From:= = Gezeala M. Bacu=F1o II [mailto:gezeala@gmail.com]
Sent: = Wednesday, May 01, 2013 3:38 PM
To: Jim Mercer
Cc: = Benjamin Krajmalnik; pgsql-admin@postgresql.org
Subject: Re: = [ADMIN] Installing multiple instances of Postgred on one FreeBSD = server

 

I used = to do the ezjail route before but for ease, you can modify the setting = "unix_socket_directory" on your postgresql.conf and have it = point to another folder (default is /tmp) to have more than 1 instance = listen on port 5432. Of course you need to add an alias IP for each = instance and add that IP on your postgresql.conf = "listen_addresses".


--

regards

gezeala bacu=F1o = II

 

On Wed, May 1, 2013 at 1:24 PM, Jim Mercer <jim@reptiles.org> wrote:

On Wed, May 01, 2013 at = 02:21:44PM -0600, Benjamin Krajmalnik wrote:
> So essentially we = would have to run jails on this - does that affect
> = performance?

i would say = minimal impact.


>
>
> -----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"

--
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=

 

------_=_NextPart_001_01CE46B4.81E4757F--