From: Charles Sprickman <spork@biglist.com>
To: Jim Mercer <jim@reptiles.org>
Cc: Achilleas Mantzios <achill@matrix.gatewaynet.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Installing multiple instances of Postgred on one FreeBSD server
Date: Wed, 8 May 2013 18:04:50 -0400
Message-ID: <FF75E5F4-18F0-459A-87B4-A8D511A95C6E@biglist.com> (raw)
In-Reply-To: <20130508153256.GA26995@reptiles.org>
References: <F4E6A2751A2823418A21D4A160B6898892BCE0@fletch.stackdump.local>
<1608284.rQGoEjIzhB@smadev.internal.net>
<20130508122831.GA21725@reptiles.org>
<2144587.F6s7CS4R5F@smadev.internal.net>
<20130508153256.GA26995@reptiles.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On May 8, 2013, at 11:32 AM, Jim Mercer wrote:
> On Wed, May 08, 2013 at 05:29:53PM +0300, Achilleas Mantzios wrote:
>> 1st the above links do not reveal anything new.
>> 2nd, judging by the wiki : https://wiki.freebsd.org/Jails ,
>> jailified SysV IPC (or SysV IPC-ified jails) (the specific territory where pgsql comes in contact with jails)
>> are in stalled state.
>
> ah, hrm.
>
> to be honest, i was making some assumptions, and now that i think of it, yeah
> the shared memory stuff is the likely cause of problems.
Use a different UID for the pgsql user in each jail if you run more than one.
> i was pretty sure that i was running pgsql in jails, and i looked at the
> servers i set up that way, only to find that i had build the server on
> the main system, and ran pgsql-client inside the jails, without issues.
We've been running multiple jails each with PG inside the jail for years, I
don't recall anything terribly special there aside from:
-ensure that PG in each jail runs under a unique UID
-ensure the sysctls for shared mem stuff are high enough to handle multiple
running PG instances
-ensure that you have set jail_sysvipc_allow="YES" in rc.conf
Trimming the rest after that top-posting discussion. :)
Charles
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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: spork@biglist.com, jim@reptiles.org, achill@matrix.gatewaynet.com
Subject: Re: Installing multiple instances of Postgred on one FreeBSD server
In-Reply-To: <FF75E5F4-18F0-459A-87B4-A8D511A95C6E@biglist.com>
References: <F4E6A2751A2823418A21D4A160B6898892BCE0@fletch.stackdump.local> <1608284.rQGoEjIzhB@smadev.internal.net> <20130508122831.GA21725@reptiles.org> <2144587.F6s7CS4R5F@smadev.internal.net> <20130508153256.GA26995@reptiles.org> <FF75E5F4-18F0-459A-87B4-A8D511A95C6E@biglist.com>
* 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