Thread: Best practices for building and running on FreeBSD?
I'm looking for a document on best practices for building and operating PostgreSQL on FreeBSD (amd64). Does such a thing already exist? If not, I'm willing to put one together and maintain it. Things I care about: 1) I need to run multiple postmasters on the same server. I think that jails may provide a good way to virtualize this. I haven't seen any documentation on running PostgreSQL in FreeBSD jails except for a number of emails how it fails for FreeBSD 5.2. 2) Each of these postmasters may be running a different PostgreSQL binary (or PostgreSQL binaries with different additional modules like Slony1 included). The existing FreeBSD ports do not support having multiple versions of the PostgreSQL binaries installed. Again, there may be a work around for this using jails of which I am unaware. Currently I'm contemplating simply building binary tarballs. 3) My sysadmin wants me to do the Right Thing with regards to packaging. 4) I would strongly prefer to use DJB's services / multilog stuff to handle logging the operation of the database. 5) I would like to conform to community standards with regards to configure options to facilitate debugging or core dump analysis should it be necessary. Any guidance on this would be much appreciated. Andrew
Στις Τετάρτη 07 Φεβρουάριος 2007 02:15, ο/η Andrew Hammond έγραψε: > I'm looking for a document on best practices for building and > operating PostgreSQL on FreeBSD (amd64). Does such a thing already > exist? If not, I'm willing to put one together and maintain it. > > Things I care about: > 1) I need to run multiple postmasters on the same server. I think that > jails may provide a good way to virtualize this. I haven't seen any > documentation on running PostgreSQL in FreeBSD jails except for a > number of emails how it fails for FreeBSD 5.2. Just follow http://archives.postgresql.org/pgsql-hackers/2006-04/msg00037.php on what to expect from running postgresql inside FreeBSD jails. > > 2) Each of these postmasters may be running a different PostgreSQL > binary (or PostgreSQL binaries with different additional modules like > Slony1 included). The existing FreeBSD ports do not support having > multiple versions of the PostgreSQL binaries installed. Again, there > may be a work around for this using jails of which I am unaware. > Currently I'm contemplating simply building binary tarballs. > > 3) My sysadmin wants me to do the Right Thing with regards to > packaging. > > 4) I would strongly prefer to use DJB's services / multilog stuff to > handle logging the operation of the database. > > 5) I would like to conform to community standards with regards to > configure options to facilitate debugging or core dump analysis should > it be necessary. > > Any guidance on this would be much appreciated. > > Andrew > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings -- Achilleas Mantzios
Στις Τετάρτη 07 Φεβρουάριος 2007 16:31, ο/η Achilleas Mantzios έγραψε: > Στις Τετάρτη 07 Φεβρουάριος 2007 02:15, ο/η Andrew Hammond έγραψε: > > I'm looking for a document on best practices for building and > > operating PostgreSQL on FreeBSD (amd64). Does such a thing already > > exist? If not, I'm willing to put one together and maintain it. > > > > Things I care about: > > 1) I need to run multiple postmasters on the same server. I think that > > jails may provide a good way to virtualize this. I haven't seen any > > documentation on running PostgreSQL in FreeBSD jails except for a > > number of emails how it fails for FreeBSD 5.2. > > Just follow > http://archives.postgresql.org/pgsql-hackers/2006-04/msg00037.php on what > to expect from running postgresql inside FreeBSD jails. Also jail2 patch (which is a new implementation) http://docs.freevps.com/lib/exe/fetch.php?id=freebsd%3Achangelog&cache=cache&media=freebsd:jail2-releng6.diff.14.gz is definately worth a try. > > > 2) Each of these postmasters may be running a different PostgreSQL > > binary (or PostgreSQL binaries with different additional modules like > > Slony1 included). The existing FreeBSD ports do not support having > > multiple versions of the PostgreSQL binaries installed. Again, there > > may be a work around for this using jails of which I am unaware. > > Currently I'm contemplating simply building binary tarballs. > > > > 3) My sysadmin wants me to do the Right Thing with regards to > > packaging. > > > > 4) I would strongly prefer to use DJB's services / multilog stuff to > > handle logging the operation of the database. > > > > 5) I would like to conform to community standards with regards to > > configure options to facilitate debugging or core dump analysis should > > it be necessary. > > > > Any guidance on this would be much appreciated. > > > > Andrew > > > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 5: don't forget to increase your free space map settings -- Achilleas Mantzios